Skip to content

Commit

Permalink
Move stuff around, use minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
billdueber committed Oct 7, 2013
1 parent 6b3040c commit 79e7370
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 36 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source :rubygems

source 'https://rubygems.org'
gemspec

group :development do
gem 'kramdown'
gem 'minitest'
end
12 changes: 8 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ YARD::Rake::YardocTask.new
task :doc => :yard

require 'rake/testtask'
Rake::TestTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
Rake::TestTask.new do |t|
t.libs.push 'lib'
t.libs.push 'spec'
t.test_files = Dir.glob('spec/**/*_spec.rb')
end

task :spec => :test

task(:default => :test)
1 change: 1 addition & 0 deletions lib/traject/umich_format.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'traject/umich_format/version'
5 changes: 5 additions & 0 deletions lib/traject/umich_format/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Traject
class UMichFormat
VERSION = "0.1.0"
end
end
1 change: 0 additions & 1 deletion lib/traject_umich_format.rb

This file was deleted.

4 changes: 0 additions & 4 deletions lib/traject_umich_format/version.rb

This file was deleted.

8 changes: 2 additions & 6 deletions test/helper.rb → spec/helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'rubygems'

begin
require 'bundler'
rescue LoadError => e
Expand All @@ -16,7 +14,5 @@
exit e.status_code
end

require 'test/unit'

class Test::Unit::TestCase
end
require "minitest/autorun"
require 'minitest/hell' # parallelize testing
9 changes: 9 additions & 0 deletions spec/test_traject_umich_format.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'helper'
require 'traject/umich_format'

describe "version" do
it "must exist" do
version = Traject::UMichFormat.const_get('VERSION')
version.wont_be_empty
end
end
12 changes: 0 additions & 12 deletions test/test_traject_umich_format.rb

This file was deleted.

14 changes: 7 additions & 7 deletions traject_umich_format.gemspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# -*- encoding: utf-8 -*-

require File.expand_path('../lib/traject_umich_format/version', __FILE__)
require File.expand_path('../lib/traject/umich_format/version', __FILE__)

Gem::Specification.new do |gem|
gem.name = "traject_umich_format"
gem.version = TrajectUmichFormat::VERSION
gem.summary = %q{TODO: Summary}
gem.description = %q{TODO: Description}
gem.version = Traject::UMichFormat::VERSION
gem.summary = %q{Extract the format and type from a MARC record, the UMich way}
gem.description = %q{The algorithm used by the University of Michigan University Library to determine format (book, serial, etc.) and type (audio, video, conference, etc.) from a (ruby marc) MARC record}
gem.license = "MIT"
gem.authors = ["Bill Dueber"]
gem.email = "bill@dueber.com"
Expand All @@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ['lib']

gem.add_development_dependency 'bundler', '~> 1.0'
gem.add_development_dependency 'rake', '~> 0.8'
gem.add_development_dependency 'yard', '~> 0.8'
gem.add_development_dependency 'bundler'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'yard'
end

0 comments on commit 79e7370

Please sign in to comment.