File tree Expand file tree Collapse file tree 3 files changed +31
-29
lines changed Expand file tree Collapse file tree 3 files changed +31
-29
lines changed 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'
2
1
3
2
require 'rubygems'
4
3
require '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
+
5
12
require 'rake/testtask'
6
13
require 'rake/rdoctask'
7
- require 'rake/packagetask'
8
- require 'rake/gempackagetask'
9
14
10
15
task :default => [ "test" ]
11
16
12
17
task :test => [ "test:client" , "test:provider" ]
13
18
14
- spec = Gem ::Specification . new do |s |
15
- s . name = 'oai'
16
- s . version = RUBY_OAI_VERSION
17
- s . author = 'Ed Summers'
18
-
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
-
40
19
namespace :test do
41
20
Rake ::TestTask . new ( 'client' ) do |t |
42
21
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
+
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