amazon-ec2 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +26 -18
- data/VERSION +1 -1
- data/amazon-ec2.gemspec +3 -3
- data/lib/AWS/EC2.rb +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
@@ -1,22 +1,25 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
|
-
require 'yard'
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "amazon-ec2"
|
8
|
+
gem.summary = %Q{Amazon EC2 Ruby Gem}
|
9
|
+
gem.description = %Q{A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling APIs.}
|
10
|
+
gem.email = "glenn@rempe.us"
|
11
|
+
gem.homepage = "http://github.com/grempe/amazon-ec2"
|
12
|
+
gem.authors = ["Glenn Rempe"]
|
13
|
+
gem.rdoc_options = ["--title", "amazon-ec2 documentation", "--line-numbers", "--main", "README.rdoc"]
|
14
|
+
gem.rubyforge_project = 'amazon-ec2'
|
15
|
+
gem.add_dependency('xml-simple', '>= 1.0.12')
|
16
|
+
gem.add_development_dependency('mocha', '>= 0.9.8')
|
17
|
+
gem.add_development_dependency('test-spec', '>= 0.10.0')
|
18
|
+
gem.add_development_dependency('rcov', '>= 0.9.6')
|
19
|
+
gem.add_development_dependency('perftools.rb', '>= 0.3.9')
|
20
|
+
end
|
21
|
+
rescue LoadError
|
22
|
+
puts "Jeweler (or a dependency) not available. Install it with: [sudo] gem install jeweler"
|
20
23
|
end
|
21
24
|
|
22
25
|
require 'rake/testtask'
|
@@ -57,8 +60,13 @@ Rake::RDocTask.new do |rdoc|
|
|
57
60
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
58
61
|
end
|
59
62
|
|
60
|
-
|
61
|
-
|
63
|
+
begin
|
64
|
+
require 'yard'
|
65
|
+
YARD::Rake::YardocTask.new do |t|
|
66
|
+
#t.files = ['lib/**/*.rb']
|
67
|
+
end
|
68
|
+
rescue LoadError
|
69
|
+
puts "YARD (or a dependency) not available. Install it with: [sudo] gem install yard"
|
62
70
|
end
|
63
71
|
|
64
72
|
desc "Generate a perftools.rb profile"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.4
|
data/amazon-ec2.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{amazon-ec2}
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Glenn Rempe"]
|
12
|
-
s.date = %q{2010-02-
|
13
|
-
s.description = %q{A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling
|
12
|
+
s.date = %q{2010-02-12}
|
13
|
+
s.description = %q{A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling APIs.}
|
14
14
|
s.email = %q{glenn@rempe.us}
|
15
15
|
s.executables = ["ec2-gem-example.rb", "ec2-gem-profile.rb", "ec2sh", "setup.rb"]
|
16
16
|
s.extra_rdoc_files = [
|
data/lib/AWS/EC2.rb
CHANGED
@@ -9,7 +9,7 @@ module AWS
|
|
9
9
|
if ENV['EC2_URL']
|
10
10
|
EC2_URL = ENV['EC2_URL']
|
11
11
|
VALID_HOSTS = ['https://ec2.amazonaws.com', 'https://us-east-1.ec2.amazonaws.com', 'https://us-west-1.ec2.amazonaws.com', 'https://eu-west-1.ec2.amazonaws.com']
|
12
|
-
raise ArgumentError, "Invalid EC2_URL environment variable : #{EC2_URL}" unless VALID_HOSTS.include?(EC2_URL)
|
12
|
+
raise ArgumentError, "Invalid EC2_URL environment variable : #{EC2_URL}" unless VALID_HOSTS.include?(EC2_URL.chomp('/'))
|
13
13
|
DEFAULT_HOST = URI.parse(EC2_URL).host
|
14
14
|
else
|
15
15
|
# Default US API endpoint
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amazon-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glenn Rempe
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-12 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -62,7 +62,7 @@ dependencies:
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: 0.3.9
|
64
64
|
version:
|
65
|
-
description: A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling
|
65
|
+
description: A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling APIs.
|
66
66
|
email: glenn@rempe.us
|
67
67
|
executables:
|
68
68
|
- ec2-gem-example.rb
|