Permalink
Browse files

Updated to use Bundler instead of Jeweler to manage installation of d…

…ependencies and push to Rubygems.org. Do 'bundle install' followed by 'rake -T'
  • Loading branch information...
grempe committed Nov 21, 2010
1 parent c1fb8b2 commit 63b0e0f33709b2ec93f5acff87a362ee1c30c094
Showing with 72 additions and 509 deletions.
  1. +3 −0 .gitignore
  2. +3 −0 ChangeLog
  3. +6 −0 Gemfile
  4. +29 −0 Gemfile.lock
  5. +0 −11 README_dev.rdoc
  6. +3 −24 Rakefile
  7. +25 −140 amazon-ec2.gemspec
  8. +3 −0 lib/AWS/version.rb
  9. BIN perftools/ec2prof
  10. +0 −132 perftools/ec2prof-results.dot
  11. +0 −100 perftools/ec2prof-results.txt
  12. +0 −102 perftools/ec2prof.symbols
View
@@ -6,3 +6,6 @@ doc
.yardoc
pkg
.idea
+.bundle
+.rvmrc
+perftools
View
@@ -1,5 +1,8 @@
* (In progress) Close issue #22, allow detach_volume to take a boolean as a string or TrueClass FalseClass
+=== 0.9.17 2010-11-21
+ * Converted from Jeweler to Bundler, 'bundle install' to install dependencies
+
=== 0.9.16 2010-07-07
* Less strict checking on which server endpoints you can pass in as an environment var.
* Moved ec2sh script to awshell to better reflect the more comprehensive nature of the gem.
View
@@ -0,0 +1,6 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in amazon-ec2.gemspec
+gemspec
+
+
View
@@ -0,0 +1,29 @@
+PATH
+ remote: .
+ specs:
+ amazon-ec2 (0.9.17)
+ xml-simple (>= 1.0.12)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ mocha (0.9.9)
+ rake
+ perftools.rb (0.5.4)
+ rake (0.8.7)
+ rcov (0.9.9)
+ test-spec (0.10.0)
+ xml-simple (1.0.12)
+ yard (0.6.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ amazon-ec2!
+ mocha (>= 0.9.9)
+ perftools.rb (>= 0.5.4)
+ rcov (>= 0.9.9)
+ test-spec (>= 0.10.0)
+ xml-simple (>= 1.0.12)
+ yard (>= 0.6.2)
View
@@ -1,11 +0,0 @@
-= Dev Docs
-
-Publishing the gem using Jeweler:
-
- rake version:bump:patch release
-
-Push the gem to gemcutter:
-
- rake build
- gem push pkg/amazon-ec2-X.Y.Z.gem
-
View
@@ -1,26 +1,5 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "amazon-ec2"
- gem.summary = %Q{Amazon EC2 Ruby Gem}
- gem.description = %Q{A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling APIs.}
- gem.email = "glenn@rempe.us"
- gem.homepage = "http://github.com/grempe/amazon-ec2"
- gem.authors = ["Glenn Rempe"]
- gem.rdoc_options = ["--title", "amazon-ec2 documentation", "--line-numbers", "--main", "README.rdoc"]
- gem.rubyforge_project = 'amazon-ec2'
- gem.add_dependency('xml-simple', '>= 1.0.12')
- gem.add_development_dependency('mocha', '>= 0.9.8')
- gem.add_development_dependency('test-spec', '>= 0.10.0')
- gem.add_development_dependency('rcov', '>= 0.9.6')
- gem.add_development_dependency('perftools.rb', '>= 0.3.9')
- end
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: [sudo] gem install jeweler"
-end
+require 'bundler'
+Bundler::GemHelper.install_tasks
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
@@ -71,7 +50,7 @@ end
desc "Generate a perftools.rb profile"
task :profile do
- system("CPUPROFILE=perftools/ec2prof RUBYOPT='-r/Library/Ruby/Gems/1.8/gems/perftools.rb-0.3.2/lib/perftools.bundle' ruby -r'rubygems' bin/ec2-gem-profile.rb")
+ system("CPUPROFILE=perftools/ec2prof RUBYOPT='-r/Users/glenn/.rvm/gems/ruby-1.8.7-p302@amazon-ec2/gems/perftools.rb-0.5.4/lib/perftools.bundle' ruby -r'rubygems' bin/ec2-gem-profile.rb")
system("pprof.rb --text --ignore=Gem perftools/ec2prof > perftools/ec2prof-results.txt")
system("pprof.rb --dot --ignore=Gem perftools/ec2prof > perftools/ec2prof-results.dot")
end
View
@@ -1,151 +1,36 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "AWS/version"
Gem::Specification.new do |s|
- s.name = %q{amazon-ec2}
- s.version = "0.9.15"
+ s.name = "amazon-ec2"
+ s.version = AWS::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Glenn Rempe"]
+ s.email = ["glenn@rempe.us"]
+ s.homepage = "http://github.com/grempe/amazon-ec2"
+ s.summary = "Amazon EC2 Ruby gem"
+ s.description = "A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling APIs."
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Glenn Rempe"]
- s.date = %q{2010-06-10}
- s.description = %q{A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling APIs.}
- s.email = %q{glenn@rempe.us}
- s.executables = ["ec2-gem-example.rb", "ec2-gem-profile.rb", "ec2sh", "setup.rb"]
+ s.rubyforge_project = "amazon-ec2"
+
+ s.rdoc_options = ["--title", "amazon-ec2 documentation", "--line-numbers", "--main", "README.rdoc"]
s.extra_rdoc_files = [
"ChangeLog",
- "LICENSE",
- "README.rdoc",
- "README_dev.rdoc"
- ]
- s.files = [
- ".gitignore",
- ".yardopts",
- "ChangeLog",
- "LICENSE",
- "README.rdoc",
- "README_dev.rdoc",
- "Rakefile",
- "VERSION",
- "amazon-ec2.gemspec",
- "bin/ec2-gem-example.rb",
- "bin/ec2-gem-profile.rb",
- "bin/ec2sh",
- "bin/setup.rb",
- "deps.rip",
- "lib/AWS.rb",
- "lib/AWS/Autoscaling.rb",
- "lib/AWS/Autoscaling/autoscaling.rb",
- "lib/AWS/Cloudwatch.rb",
- "lib/AWS/Cloudwatch/monitoring.rb",
- "lib/AWS/EC2.rb",
- "lib/AWS/EC2/availability_zones.rb",
- "lib/AWS/EC2/console.rb",
- "lib/AWS/EC2/devpay.rb",
- "lib/AWS/EC2/elastic_ips.rb",
- "lib/AWS/EC2/image_attributes.rb",
- "lib/AWS/EC2/images.rb",
- "lib/AWS/EC2/instances.rb",
- "lib/AWS/EC2/keypairs.rb",
- "lib/AWS/EC2/products.rb",
- "lib/AWS/EC2/security_groups.rb",
- "lib/AWS/EC2/snapshots.rb",
- "lib/AWS/EC2/spot_instance_requests.rb",
- "lib/AWS/EC2/spot_prices.rb",
- "lib/AWS/EC2/subnets.rb",
- "lib/AWS/EC2/volumes.rb",
- "lib/AWS/ELB.rb",
- "lib/AWS/ELB/load_balancers.rb",
- "lib/AWS/RDS.rb",
- "lib/AWS/RDS/rds.rb",
- "lib/AWS/exceptions.rb",
- "lib/AWS/responses.rb",
- "perftools/ec2prof",
- "perftools/ec2prof-results.dot",
- "perftools/ec2prof-results.txt",
- "perftools/ec2prof.symbols",
- "test/test_Autoscaling_groups.rb",
- "test/test_EC2.rb",
- "test/test_EC2_availability_zones.rb",
- "test/test_EC2_console.rb",
- "test/test_EC2_elastic_ips.rb",
- "test/test_EC2_image_attributes.rb",
- "test/test_EC2_images.rb",
- "test/test_EC2_instances.rb",
- "test/test_EC2_keypairs.rb",
- "test/test_EC2_products.rb",
- "test/test_EC2_responses.rb",
- "test/test_EC2_s3_xmlsimple.rb",
- "test/test_EC2_security_groups.rb",
- "test/test_EC2_snapshots.rb",
- "test/test_EC2_spot_instance_requests.rb",
- "test/test_EC2_spot_prices.rb",
- "test/test_EC2_subnets.rb",
- "test/test_EC2_volumes.rb",
- "test/test_ELB_load_balancers.rb",
- "test/test_RDS.rb",
- "test/test_helper.rb",
- "wsdl/2007-08-29.ec2.wsdl",
- "wsdl/2008-02-01.ec2.wsdl",
- "wsdl/2008-05-05.ec2.wsdl",
- "wsdl/2008-12-01.ec2.wsdl",
- "wsdl/2009-10-31.ec2.wsdl",
- "wsdl/2009-11-30.ec2.wsdl"
- ]
- s.homepage = %q{http://github.com/grempe/amazon-ec2}
- s.rdoc_options = ["--title", "amazon-ec2 documentation", "--line-numbers", "--main", "README.rdoc"]
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{amazon-ec2}
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Amazon EC2 Ruby Gem}
- s.test_files = [
- "test/test_Autoscaling_groups.rb",
- "test/test_EC2.rb",
- "test/test_EC2_availability_zones.rb",
- "test/test_EC2_console.rb",
- "test/test_EC2_elastic_ips.rb",
- "test/test_EC2_image_attributes.rb",
- "test/test_EC2_images.rb",
- "test/test_EC2_instances.rb",
- "test/test_EC2_keypairs.rb",
- "test/test_EC2_products.rb",
- "test/test_EC2_responses.rb",
- "test/test_EC2_s3_xmlsimple.rb",
- "test/test_EC2_security_groups.rb",
- "test/test_EC2_snapshots.rb",
- "test/test_EC2_spot_instance_requests.rb",
- "test/test_EC2_spot_prices.rb",
- "test/test_EC2_subnets.rb",
- "test/test_EC2_volumes.rb",
- "test/test_ELB_load_balancers.rb",
- "test/test_helper.rb",
- "test/test_RDS.rb"
+ "LICENSE",
+ "README.rdoc"
]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.add_dependency('xml-simple', '>= 1.0.12')
+ s.add_development_dependency('mocha', '>= 0.9.9')
+ s.add_development_dependency('test-spec', '>= 0.10.0')
+ s.add_development_dependency('rcov', '>= 0.9.9')
+ s.add_development_dependency('perftools.rb', '>= 0.5.4')
+ s.add_development_dependency('yard', '>= 0.6.2')
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<xml-simple>, [">= 1.0.12"])
- s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
- s.add_development_dependency(%q<test-spec>, [">= 0.10.0"])
- s.add_development_dependency(%q<rcov>, [">= 0.9.6"])
- s.add_development_dependency(%q<perftools.rb>, [">= 0.3.9"])
- else
- s.add_dependency(%q<xml-simple>, [">= 1.0.12"])
- s.add_dependency(%q<mocha>, [">= 0.9.8"])
- s.add_dependency(%q<test-spec>, [">= 0.10.0"])
- s.add_dependency(%q<rcov>, [">= 0.9.6"])
- s.add_dependency(%q<perftools.rb>, [">= 0.3.9"])
- end
- else
- s.add_dependency(%q<xml-simple>, [">= 1.0.12"])
- s.add_dependency(%q<mocha>, [">= 0.9.8"])
- s.add_dependency(%q<test-spec>, [">= 0.10.0"])
- s.add_dependency(%q<rcov>, [">= 0.9.6"])
- s.add_dependency(%q<perftools.rb>, [">= 0.3.9"])
- end
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
end
View
@@ -0,0 +1,3 @@
+module AWS
+ VERSION = "0.9.17"
+end
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit 63b0e0f

Please sign in to comment.