awspec 0.17.1 → 0.18.0

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: 9897b708a76aa62064bd1252c47c5cf538f081dc
4
- data.tar.gz: 5de3207cbfc28b6cf5fe68d565f306aff1fdab83
3
+ metadata.gz: 6db22930c102c95bc37c65c8324aa7554e74aa5b
4
+ data.tar.gz: 34a00b15b832de7d042b68e1564c96750f4a6fc8
5
5
  SHA512:
6
- metadata.gz: c92beed3db59962ba2406cf453a1f46903787f1c7c7b3f3f362110b295cc6146d54a3f7190a8bf3af209883a21783aa73878fff16016b1386e38f150740730da
7
- data.tar.gz: 041294444ed3af5cc2aefa763e7478789f75cf614ac0bd6fafcdf5ecfaf9b6d0fd132edd52c49955326122c8f9c2c87e1355ac1e924405fe140209e6b91258b6
6
+ metadata.gz: 4fbcef8b5ccf42f73b20b667f535419f7a6c02352378e19486e5f23daa3861612de8a9f8c25d6f280d03cd08f2602784a3f2f1d6b27fa444451dad2af85895f8
7
+ data.tar.gz: 0de1236f9099647af9840c4313989b885b464bb052163d2e1d6b559a3db1ff1dd9e2f10b6b15e0a1919c917cdbb3130d022fef1cb51891130cabf94cf47a02e8
@@ -12,5 +12,14 @@ module Awspec
12
12
  desc 'generate [resource]', 'Generate AWS resource *_spec.rb'
13
13
  subcommand 'generate', Generate
14
14
  map 'g' => 'generate'
15
+
16
+ option :version, type: :boolean, aliases: :v
17
+ def help(version = nil)
18
+ if version
19
+ puts Awspec::VERSION
20
+ else
21
+ super
22
+ end
23
+ end
15
24
  end
16
25
  end
@@ -59,7 +59,7 @@ EOF
59
59
 
60
60
  def security_group_spec_template
61
61
  template = <<-'EOF'
62
- describe security_group('<%= sg.group_id %>') do
62
+ describe security_group('<%= sg.group_name %>') do
63
63
  it { should exist }
64
64
  <% describes.each do |describe| %>
65
65
  <%- if sg.key?(describe) -%>
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.17.1'
2
+ VERSION = '0.18.0'
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.17.1
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-19 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec