File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ source "http://rubygems.org"
2+
3+ gemspec
Original file line number Diff line number Diff line change 1- RUBY_OAI_VERSION = '0.0.13'
21
32require 'rubygems'
43require 'rake'
4+ begin
5+ require 'bundler/setup'
6+ rescue LoadError
7+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
8+ end
9+
10+ Bundler ::GemHelper . install_tasks
11+
512require 'rake/testtask'
613require 'rake/rdoctask'
7- require 'rake/packagetask'
8- require 'rake/gempackagetask'
914
1015task :default => [ "test" ]
1116
1217task :test => [ "test:client" , "test:provider" ]
1318
14- spec = Gem ::Specification . new do |s |
15- s . name = 'oai'
16- s . version = RUBY_OAI_VERSION
17- s . author = 'Ed Summers'
18- s . email = 'ehs@pobox.com'
19- s . homepage = 'http://github.com/code4lib/ruby-oai'
20- s . platform = Gem ::Platform ::RUBY
21- s . summary = 'A ruby library for working with the Open Archive Initiative Protocol for Metadata Harvesting (OAI-PMH)'
22- s . require_path = 'lib'
23- s . autorequire = 'oai'
24- s . bindir = 'bin'
25- s . executables = 'oai'
26-
27- s . add_dependency ( 'builder' , '>=2.0.0' )
28-
29- s . files = %w( README.md Rakefile ) +
30- Dir . glob ( "{bin,test,lib}/**/*" ) +
31- Dir . glob ( "examples/**/*.rb" )
32- end
33-
34- Rake ::GemPackageTask . new ( spec ) do |pkg |
35- pkg . need_zip = true
36- pkg . need_tar = true
37- pkg . gem_spec = spec
38- end
39-
4019namespace :test do
4120 Rake ::TestTask . new ( 'client' ) do |t |
4221 t . libs << [ 'lib' , 'test/client' ]
Original file line number Diff line number Diff line change 1+ Gem ::Specification . new do |s |
2+ s . name = 'oai'
3+ s . version = '0.0.13'
4+ s . author = 'Ed Summers'
5+ s . email = 'ehs@pobox.com'
6+ s . homepage = 'http://github.com/code4lib/ruby-oai'
7+ s . platform = Gem ::Platform ::RUBY
8+ s . summary = 'A ruby library for working with the Open Archive Initiative Protocol for Metadata Harvesting (OAI-PMH)'
9+ s . require_path = 'lib'
10+ s . autorequire = 'oai'
11+ s . bindir = 'bin'
12+ s . executables = 'oai'
13+
14+ s . add_dependency ( 'builder' , '>=2.0.0' )
15+ s . add_development_dependency ( 'rake' )
16+
17+ s . files = %w( README.md Rakefile ) +
18+ Dir . glob ( "{bin,test,lib}/**/*" ) +
19+ Dir . glob ( "examples/**/*.rb" )
20+ end
You can’t perform that action at this time.
0 commit comments