Rakefile in cameroncox-mousetrap-0.5.3.10 vs Rakefile in cameroncox-mousetrap-0.6.1

- old
+ new

@@ -2,17 +2,17 @@ require 'rake' begin require 'jeweler' Jeweler::Tasks.new do |gem| - gem.name = "cameroncox-mousetrap" + gem.name = "mousetrap" gem.summary = %Q{CheddarGetter API Client in Ruby} gem.description = %Q{CheddarGetter API Client in Ruby} gem.email = "jonlarkowski@gmail.com" - gem.homepage = "http://github.com/cameroncox/mousetrap" + gem.homepage = "http://github.com/hashrocket/mousetrap" gem.authors = ["Jon Larkowski", "Sandro Turriate", "Wolfram Arnold", "Corey Grusden"] - gem.add_dependency 'httparty', '>= 0.4.2' + gem.add_dependency 'httparty', '>= 0.6.1' gem.add_development_dependency "activesupport", '>= 2.3.3' gem.add_development_dependency "rspec", '>= 1.2.9' gem.add_development_dependency 'factory_girl', '>= 1.2.3' end rescue LoadError @@ -47,5 +47,98 @@ rdoc.rdoc_dir = 'rdoc' rdoc.title = "mousetrap #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end + +require 'rake/gempackagetask' + +gem_spec = Gem::Specification.new do |s| + s.name = %q{cameroncox-mousetrap} + s.version = "0.6.1" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Jon Larkowski", "Sandro Turriate", "Wolfram Arnold", "Corey Grusden"] + s.date = %q{2010-07-16} + s.description = %q{CheddarGetter API Client in Ruby} + s.email = %q{jonlarkowski@gmail.com} + s.extra_rdoc_files = [ + "README.textile" + ] + s.files = [ + ".document", + ".gitignore", + "MIT-LICENSE", + "README.textile", + "Rakefile", + "VERSION", + "lib/mousetrap.rb", + "lib/mousetrap/customer.rb", + "lib/mousetrap/invoice.rb", + "lib/mousetrap/plan.rb", + "lib/mousetrap/resource.rb", + "lib/mousetrap/subscription.rb", + "mousetrap.gemspec", + "script/authenticate.rb", + "script/cheddar_getter.example.yml", + "script/console", + "spec/factories.rb", + "spec/integration/settings.example.yml", + "spec/integration/smoke_test.rb", + "spec/integration/spike.rb", + "spec/mousetrap/customer_spec.rb", + "spec/mousetrap/plan_spec.rb", + "spec/mousetrap/resource_spec.rb", + "spec/mousetrap/subscription_spec.rb", + "spec/mousetrap_spec.rb", + "spec/spec.opts", + "spec/spec_helper.rb", + "spec/support/fixtures.rb", + "spec/support/random_data.rb" + ] + s.homepage = %q{http://github.com/cameroncox/mousetrap} + s.rdoc_options = ["--charset=UTF-8"] + s.require_paths = ["lib"] + s.rubygems_version = %q{1.3.7} + s.summary = %q{CheddarGetter API Client in Ruby} + s.test_files = [ + "spec/factories.rb", + "spec/integration/smoke_test.rb", + "spec/integration/spike.rb", + "spec/mousetrap/customer_spec.rb", + "spec/mousetrap/plan_spec.rb", + "spec/mousetrap/resource_spec.rb", + "spec/mousetrap/subscription_spec.rb", + "spec/mousetrap_spec.rb", + "spec/spec_helper.rb", + "spec/support/fixtures.rb", + "spec/support/random_data.rb" + ] + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 3 + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q<httparty>, [">= 0.6.1"]) + s.add_development_dependency(%q<activesupport>, [">= 2.3.3"]) + s.add_development_dependency(%q<rspec>, [">= 1.2.9"]) + s.add_development_dependency(%q<factory_girl>, [">= 1.2.3"]) + else + s.add_dependency(%q<httparty>, [">= 0.6.1"]) + s.add_dependency(%q<activesupport>, [">= 2.3.3"]) + s.add_dependency(%q<rspec>, [">= 1.2.9"]) + s.add_dependency(%q<factory_girl>, [">= 1.2.3"]) + end + else + s.add_dependency(%q<httparty>, [">= 0.6.1"]) + s.add_dependency(%q<activesupport>, [">= 2.3.3"]) + s.add_dependency(%q<rspec>, [">= 1.2.9"]) + s.add_dependency(%q<factory_girl>, [">= 1.2.3"]) + end +end + +Rake::GemPackageTask.new(gem_spec) do |p| + p.gem_spec = gem_spec + p.need_tar = true + p.need_zip = true +end \ No newline at end of file