require 'rubygems' require 'rake' begin require 'jeweler' Jeweler::Tasks.new do |gem| 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/hashrocket/mousetrap" gem.authors = ["Jon Larkowski", "Sandro Turriate", "Wolfram Arnold", "Corey Grusden"] 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 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end require 'spec/rake/spectask' Spec::Rake::SpecTask.new(:spec) do |spec| spec.spec_opts = ['--options', 'spec/spec.opts'] spec.libs << 'lib' << 'spec' spec.spec_files = FileList['spec/**/*_spec.rb'] end Spec::Rake::SpecTask.new(:rcov) do |spec| spec.libs << 'lib' << 'spec' spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true end task :spec => :check_dependencies task :default => :spec require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| if File.exist?('VERSION') version = File.read('VERSION') else version = "" end 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, [">= 0.6.1"]) s.add_development_dependency(%q, [">= 2.3.3"]) s.add_development_dependency(%q, [">= 1.2.9"]) s.add_development_dependency(%q, [">= 1.2.3"]) else s.add_dependency(%q, [">= 0.6.1"]) s.add_dependency(%q, [">= 2.3.3"]) s.add_dependency(%q, [">= 1.2.9"]) s.add_dependency(%q, [">= 1.2.3"]) end else s.add_dependency(%q, [">= 0.6.1"]) s.add_dependency(%q, [">= 2.3.3"]) s.add_dependency(%q, [">= 1.2.9"]) s.add_dependency(%q, [">= 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