diff --git a/.gitignore b/.gitignore index 39272ef..7422f56 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .DS_Store *.gem nbproject +doc/ +rdoc/ \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..0f2ca40 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +# A sample Gemfile +source "http://rubygems.org" + +gemspec diff --git a/holidays.gemspec b/holidays.gemspec index 461d36a..9973f56 100644 --- a/holidays.gemspec +++ b/holidays.gemspec @@ -4,19 +4,20 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| - s.name = %q{holidays} + s.name = "holidays" s.version = "1.0.3" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Alex Dunae", "Rowan Crawford"] - s.date = %q{2011-09-02} - s.description = %q{A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!} - s.email = %q{code@dunae.ca} + s.date = "2011-09-14" + s.description = "A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!" + s.email = "code@dunae.ca" s.extra_rdoc_files = [ "LICENSE", "README.rdoc" ] s.files = [ + ".travis.yml", "CHANGELOG", "LICENSE", "README.rdoc", @@ -46,6 +47,7 @@ Gem::Specification.new do |s| "data/north_america_informal.yaml", "data/nyse.yaml", "data/nz.yaml", + "data/pl.yaml", "data/pt.yaml", "data/se.yaml", "data/united_nations.yaml", @@ -78,6 +80,7 @@ Gem::Specification.new do |s| "lib/holidays/north_america.rb", "lib/holidays/nyse.rb", "lib/holidays/nz.rb", + "lib/holidays/pl.rb", "lib/holidays/pt.rb", "lib/holidays/scandinavia.rb", "lib/holidays/se.rb", @@ -109,30 +112,37 @@ Gem::Specification.new do |s| "test/defs/test_defs_north_america.rb", "test/defs/test_defs_nyse.rb", "test/defs/test_defs_nz.rb", + "test/defs/test_defs_pl.rb", "test/defs/test_defs_pt.rb", "test/defs/test_defs_scandinavia.rb", "test/defs/test_defs_se.rb", "test/defs/test_defs_ups.rb", "test/defs/test_defs_us.rb", "test/defs/test_defs_za.rb", + "test/test_all_regions.rb", "test/test_date.rb", "test/test_helper.rb", "test/test_holidays.rb", "test/test_multiple_regions.rb" ] - s.homepage = %q{https://github.com/alexdunae/holidays} + s.homepage = "https://github.com/alexdunae/holidays" s.require_paths = ["lib"] - s.rubygems_version = %q{1.3.6} - s.summary = %q{A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!} + s.rubygems_version = "1.8.10" + s.summary = "A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!" if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION s.specification_version = 3 - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, [">= 2.4.2"]) else + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 2.4.2"]) end else + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 2.4.2"]) end end diff --git a/rakefile.rb b/rakefile.rb index c7c6880..f79f350 100644 --- a/rakefile.rb +++ b/rakefile.rb @@ -100,6 +100,7 @@ begin gemspec.homepage = "https://github.com/alexdunae/holidays" gemspec.version = Holidays::VERSION gemspec.authors = ["Alex Dunae", "Rowan Crawford"] + gemspec.add_development_dependency('rdoc', '>= 2.4.2') end rescue LoadError puts "Jeweler not available. Install it with: gem install jeweler"