amazon-ec2 0.7.5 → 0.7.6

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.5
1
+ 0.7.6
data/amazon-ec2.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{amazon-ec2}
8
- s.version = "0.7.5"
8
+ s.version = "0.7.6"
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{2009-12-08}
12
+ s.date = %q{2009-12-14}
13
13
  s.description = %q{A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling API's.}
14
14
  s.email = %q{glenn@rempe.us}
15
15
  s.executables = ["ec2-gem-example.rb", "ec2-gem-profile.rb", "ec2sh", "setup.rb"]
@@ -6,11 +6,15 @@ module AWS
6
6
 
7
7
  # The DescribeSnapshots operation describes the status of Amazon EBS snapshots.
8
8
  #
9
- # @option options [Array] :snapshot_id ([])
9
+ # @option options [optional,Array] :snapshot_id ([]) The ID of the Amazon EBS snapshot.
10
+ # @option options [optional,String] :owner ('') Returns snapshots owned by the specified owner. Multiple owners can be specified. Valid values self | amazon | AWS Account ID
11
+ # @option options [optional,String] :restorable_by ('') Account ID of a user that can create volumes from the snapshot.
10
12
  #
11
13
  def describe_snapshots( options = {} )
12
- options = { :snapshot_id => [] }.merge(options)
13
- params = pathlist("SnapshotId", options[:snapshot_id] )
14
+ options = { :snapshot_id => [], :restorable_by => '', :owner => '' }.merge(options)
15
+ params = pathlist("SnapshotId", options[:snapshot_id] )
16
+ params["RestorableBy"] = options[:restorable_by]
17
+ params["Owner"] = options[:owner]
14
18
  return response_generator(:action => "DescribeSnapshots", :params => params)
15
19
  end
16
20
 
@@ -45,7 +45,7 @@ context "EC2 snaphots " do
45
45
 
46
46
 
47
47
  specify "should be able to be described with describe_snapshots" do
48
- @ec2.stubs(:make_request).with('DescribeSnapshots', {"SnapshotId.1"=>"snap-78a54011"}).
48
+ @ec2.stubs(:make_request).with('DescribeSnapshots', {'Owner' => '', 'SnapshotId.1' => 'snap-78a54011', 'RestorableBy' => ''}).
49
49
  returns stub(:body => @describe_snapshots_response_body, :is_a? => true)
50
50
 
51
51
  @ec2.describe_snapshots( :snapshot_id => "snap-78a54011" ).should.be.an.instance_of Hash
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.7.5
4
+ version: 0.7.6
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: 2009-12-08 00:00:00 -08:00
12
+ date: 2009-12-14 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency