From ac56e4f54ba49e52ce7ca53dde3a93446d11d21e Mon Sep 17 00:00:00 2001 From: Igor Bogicevic Date: Sun, 12 Aug 2012 22:24:39 +0200 Subject: [PATCH 1/3] add m1.medium instance --- lib/AWS/EC2/instances.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AWS/EC2/instances.rb b/lib/AWS/EC2/instances.rb index 71f7653..d234a06 100644 --- a/lib/AWS/EC2/instances.rb +++ b/lib/AWS/EC2/instances.rb @@ -37,7 +37,7 @@ def run_instances( options = {} ) raise ArgumentError, ":image_id must be provided" if options[:image_id].nil? || options[:image_id].empty? raise ArgumentError, ":min_count is not valid" unless options[:min_count].to_i > 0 raise ArgumentError, ":max_count is not valid or must be >= :min_count" unless options[:max_count].to_i > 0 && options[:max_count].to_i >= options[:min_count].to_i - raise ArgumentError, ":instance_type must specify a valid instance type" unless options[:instance_type].nil? || ["t1.micro", "m1.small", "m1.large", "m1.xlarge", "m2.xlarge", "c1.medium", "c1.xlarge", "m2.2xlarge", "m2.4xlarge", "cc1.4xlarge"].include?(options[:instance_type]) + raise ArgumentError, ":instance_type must specify a valid instance type" unless options[:instance_type].nil? || ["t1.micro", "m1.small", "m1.medium", "m1.large", "m1.xlarge", "m2.xlarge", "c1.medium", "c1.xlarge", "m2.2xlarge", "m2.4xlarge", "cc1.4xlarge"].include?(options[:instance_type]) raise ArgumentError, ":monitoring_enabled must be 'true' or 'false'" unless options[:monitoring_enabled].nil? || [true, false].include?(options[:monitoring_enabled]) raise ArgumentError, ":disable_api_termination must be 'true' or 'false'" unless options[:disable_api_termination].nil? || [true, false].include?(options[:disable_api_termination]) raise ArgumentError, ":instance_initiated_shutdown_behavior must be 'stop' or 'terminate'" unless options[:instance_initiated_shutdown_behavior].nil? || ["stop", "terminate"].include?(options[:instance_initiated_shutdown_behavior]) From d9663bcd553b95214842d7c813fcc1e8e6aa7aa8 Mon Sep 17 00:00:00 2001 From: Igor Bogicevic Date: Sun, 12 Aug 2012 22:42:13 +0200 Subject: [PATCH 2/3] dependency fix (support higher versions of rake) --- Gemfile.lock | 4 ++-- amazon-ec2.gemspec | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 13ae2ac..69f08cb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,8 +8,7 @@ GEM remote: http://rubygems.org/ specs: mocha (0.9.9) - rake - rake (0.8.7) + rake (0.9.2.2) rcov (0.9.9) test-spec (0.10.0) test-unit (2.1.2) @@ -22,6 +21,7 @@ PLATFORMS DEPENDENCIES amazon-ec2! mocha (>= 0.9.9) + rake (>= 0.8.7) rcov (>= 0.9.9) test-spec (>= 0.10.0) test-unit (>= 2.1.2) diff --git a/amazon-ec2.gemspec b/amazon-ec2.gemspec index 835ac37..db25725 100644 --- a/amazon-ec2.gemspec +++ b/amazon-ec2.gemspec @@ -26,6 +26,7 @@ Gem::Specification.new do |s| s.add_development_dependency('test-unit', '>= 2.1.2') s.add_development_dependency('test-spec', '>= 0.10.0') s.add_development_dependency('rcov', '>= 0.9.9') + s.add_development_dependency('rake', '>= 0.8.7') # s.add_development_dependency('perftools.rb', '>= 0.5.4') s.add_development_dependency('yard', '>= 0.6.2') From d74d9a1371099f354f1dc46107afa75eff87ce92 Mon Sep 17 00:00:00 2001 From: Igor Bogicevic Date: Thu, 23 Aug 2012 15:18:19 +0200 Subject: [PATCH 3/3] new version of yard --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 69f08cb..932e48f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -13,7 +13,7 @@ GEM test-spec (0.10.0) test-unit (2.1.2) xml-simple (1.0.12) - yard (0.6.2) + yard (0.8.2.1) PLATFORMS ruby