awspec 0.82.0 → 0.82.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bf3b3b5b1169aa506af43ab8313049de7108685
4
- data.tar.gz: 288116aac0f59e7afc2140c62991d4fcebd0c6d8
3
+ metadata.gz: 8248bcc51c59953143120a15cfa9ede3b8c50655
4
+ data.tar.gz: 70ce22f4b30d81fbb0b993fe18e540434a0c9af8
5
5
  SHA512:
6
- metadata.gz: eb0ee16cbc5441eb85bf1ee0d1e6fc38175064abb48ac105ce93e68635af85ab878ccb42814b06168ad487d6dd48ecad924ed9211cf44edaa9f797170849b64a
7
- data.tar.gz: b6c4783251da19a5ba6a15b57122cdd35f5d46645efad4f97f082ac557eaa88b2abb975aab8ee26742b13b95460d210dd6c02a850fd7dd8231abc02ee4010a6c
6
+ metadata.gz: 31a14dd7941207ccc3aa27dc39d29807846e6889a242b1cc28c2690bebefa7c3e7ac6f60ea8dcb5a688562c5b14b04cf351152e67fb5d78b7922719842520149
7
+ data.tar.gz: 619e8cc58c5fcf36facac4ab468efe433619772b8294322184be5813faf7474e2d74cd060d82968b371b8442eff374216e9e4b9ff05e7df3aa89bf49bd84f3ba
data/README.md CHANGED
@@ -52,7 +52,7 @@ aws_secret_access_key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
52
52
  EOF
53
53
  ```
54
54
 
55
- ### STEP 3. Write spec/*_spec.rb
55
+ ### STEP 3. Write spec/\*\_spec.rb
56
56
 
57
57
  ```ruby
58
58
  require 'spec_helper'
@@ -70,6 +70,23 @@ describe ec2('my-ec2-tag-name') do
70
70
  end
71
71
  ```
72
72
 
73
+ #### Using shared_context: region
74
+
75
+ ```ruby
76
+ require 'spec_helper'
77
+
78
+ describe sqs('my-sqs-queue'), region: 'us-west-2' do
79
+ it { should exist }
80
+ its(:queue_url) { should eq 'https://sqs.us-west-2.amazonaws.com/xxxxxxxxxxxx/my-sqs-queue' }
81
+ its(:queue_arn) { should eq 'arn:aws:sqs:us-west-2:xxxxxxxxxxxx:my-sqs-queue' }
82
+ its(:visibility_timeout) { should eq '30' }
83
+ its(:maximum_message_size) { should eq '256000' }
84
+ its(:message_retention_period) { should eq '86400' }
85
+ its(:delay_seconds) { should eq '0' }
86
+ its(:receive_message_wait_time_seconds) { should eq '10' }
87
+ end
88
+ ```
89
+
73
90
  ### STEP 4. Run tests
74
91
 
75
92
  $ bundle exec rake spec
@@ -124,7 +124,9 @@ end
124
124
  ```
125
125
 
126
126
 
127
- ### its(:architecture), its(:creation_date), its(:image_id), its(:image_location), its(:image_type), its(:public), its(:kernel_id), its(:owner_id), its(:platform), its(:ramdisk_id), its(:state), its(:description), its(:ena_support), its(:hypervisor), its(:image_owner_alias), its(:name), its(:root_device_name), its(:root_device_type), its(:sriov_net_support), its(:state_reason), its(:tags), its(:virtualization_type)
127
+ ### have_tag
128
+
129
+ ### its(:architecture), its(:creation_date), its(:image_id), its(:image_location), its(:image_type), its(:public), its(:kernel_id), its(:owner_id), its(:platform), its(:ramdisk_id), its(:state), its(:description), its(:ena_support), its(:hypervisor), its(:image_owner_alias), its(:name), its(:root_device_name), its(:root_device_type), its(:sriov_net_support), its(:state_reason), its(:virtualization_type)
128
130
  ### :unlock: Advanced use
129
131
 
130
132
  `ami` can use `Aws::EC2::Image` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Image.html).
@@ -44,7 +44,12 @@ Aws.config[:ec2] = {
44
44
  }
45
45
  ],
46
46
  virtualization_type: 'hvm',
47
- tags: [],
47
+ tags: [
48
+ {
49
+ key: 'stage',
50
+ value: 'production'
51
+ }
52
+ ],
48
53
  hypervisor: 'xen'
49
54
  }
50
55
  ]
@@ -1,6 +1,7 @@
1
1
  module Awspec::Type
2
2
  class Ami < ResourceBase
3
3
  aws_resource Aws::EC2::Image
4
+ tags_allowed
4
5
 
5
6
  def resource_via_client
6
7
  @resource_via_client ||= find_ami(@display_name)
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.82.0'
2
+ VERSION = '0.82.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.82.0
4
+ version: 0.82.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-07 00:00:00.000000000 Z
11
+ date: 2017-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec