Skip to content

Commit

Permalink
Merge pull request #25 from sul-dlss/cleanup
Browse files Browse the repository at this point in the history
markdown, not rdoc.  remove yard.
  • Loading branch information
jcoyne authored Aug 23, 2019
2 parents e5e7ec5 + 118a6fc commit 7caa935
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 120 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ log/*
pkg/*
tags
tmp
.yardoc/*
Gemfile.lock
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[![Build Status](https://travis-ci.org/sul-dlss/assembly-objectfile.svg?branch=master)](https://travis-ci.org/sul-dlss/assembly-objectfile)
[![Test Coverage](https://api.codeclimate.com/v1/badges/2310962acce78d78e76c/test_coverage)](https://codeclimate.com/github/sul-dlss/assembly-objectfile/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/2310962acce78d78e76c/maintainability)](https://codeclimate.com/github/sul-dlss/assembly-objectfile/maintainability)

# Assembly-ObjectFile Gem

## Overview
This gem contains classes used by the Stanford University Digital Library to
perform file operations necessary for accessioning of content. It is also
used by related gems to perform content type specific operations (such as jp2
generation).

## Usage

The gem currently has methods for:
* filesize
* exif
* generate content metadata

## Running tests

```
bundle exec spec
```

## Releasing the gem

```
rake release
```

## Prerequisites

1. Exiftool

RHEL: (RPM to install comming soon) Download latest version from:
http://www.sno.phy.queensu.ca/~phil/exiftool

tar -xf Image-ExifTool-#.##.tar.gz
cd Image-ExifTool-#.##
perl Makefile.PL
make test
sudo make install

Mac users:
brew install exiftool
117 changes: 0 additions & 117 deletions README.rdoc

This file was deleted.

1 change: 0 additions & 1 deletion assembly-objectfile.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rubocop'
s.add_development_dependency 'rubocop-rspec'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'yard'
end
2 changes: 1 addition & 1 deletion spec/object_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
expect(@ai.object_type).not_to eq(:image)
expect(@ai.valid_image?).to eq(false)

non_image_file = File.join(Assembly::PATH_TO_GEM, 'README.rdoc')
non_image_file = File.join(Assembly::PATH_TO_GEM, 'spec/test_data/input/file_with_no_exif.xml')
expect(File.exist?(non_image_file)).to be true
@ai = described_class.new(non_image_file)
expect(@ai.image?).to eq(false)
Expand Down

0 comments on commit 7caa935

Please sign in to comment.