<img src=“https://travis-ci.org/sul-dlss/revs-utils.svg?branch=master” alt=“Build Status” /> <img src=“https://coveralls.io/repos/sul-dlss/revs-utils/badge.svg?branch=master&service=github” alt=“Coverage Status” />

Revs::Utils

Shared methods and functions used by revs-indexer, pre-assembly and bulk metadata loading code.

Releases

  • 0.0.1 Initial release

  • 0.0.3 Add collection name cleaning method

  • 0.0.5 Lock down the version of countries gem to avoid problems

  • 0.0.5 Lock down the version of countries gem to avoid problems

  • 0.0.7 Don’t use this version, it uses the wrong method of Dir.pwd to find the root directory for loading assets.

  • 0.0.8 Add in helper functions to check the .csv files for registration and metadata updates

  • 0.0.9 Add in a clean marque function

  • 1.0.0 Make format fixing case insensitive; add a method for loading CSV files with UTF-8 compliance

  • 1.0.1 Remove a couple methods from Revs code and update the methods to make them consistent in gem

  • 1.0.2 and 1.0.3 Make invalid two digit years in dates return as false

  • 1.0.4 Revs-Utils now assumes .csv files are in UTF-8 format instead of Latin-1

  • 1.0.5 Parse location using commas as well as pipes

  • 1.0.6 Add some more conditions to CSV header checks

  • 1.0.7 Label column needs to be there but does not need to have a value to register

  • 1.0.8 Update clean_collection_name method to deal with other possible names

  • 2.0.0 Updating to use ActionPack 4 for Rails 4 applications. For Rails 3, continue to use 1.x.y releases.

  • 2.0.1 Add more common format corrections

  • 2.0.2 and 2.0.3 Update valid for metadata method so it is not sensitive to blank or uppercase columns

  • 2.0.4 Fix issues with year parsing

  • 2.0.10 Update to latest version of actionpack

  • 2.1.0 - 2.1.4 Add field mapping and other common methods used in both revs digital library and revs-indexing

  • 2.1.10 Display output showing reasons for validation failures when checking manifests

  • 2.1.11 Allow for optional metadata columns in the manifest

  • 2.1.12 Score computation should work with any kind of hash key

  • 2.1.13 Add more information when sourceIDs are not unique

  • 2.1.14-15 Add new engine-type field

  • 2.1.16-17 Add new format authority field and update acceptable formats

  • 2.1.18-19 Add support for newly split apart group and class fields

  • 2.1.20-21 Group field made multivalued

  • 2.1.22 Add original size field

  • 2.2.0 Relax requirement for rails 4

Running tests

bundle exec rspec spec

Release the gem to the gemserver

  1. Bump the version number in lib/revs-utils/version.rb

  2. Add to the release notes in this readme.

  3. Ensure the tests pass.

  4. Git commit and push

  5. rake release

Installation

Add this line to your application’s Gemfile:

gem 'revs-utils'

And then execute:

$ bundle

Or install it yourself as:

$ gem install revs-utils

Updating LC Automobile Terms in Gem

  1. Check out Gem code.

  2. CD into Gem directory

  3. ruby bin/revs_lc_automobile_terms.rb

  4. Update Gem in git, bump version number and rake dlss_release