awspec 0.88.0 → 0.88.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: 8e6a4131853e729d3af670609f7134fcd244fd37
4
- data.tar.gz: 052e01f16b1507dd1c6f4f55c9c553ffc0bedf72
3
+ metadata.gz: 347ce836414ad89cc7d2ccbd452fae2938a12ea3
4
+ data.tar.gz: 1448321a37033765ac8351a99c4aff9dc1e76e56
5
5
  SHA512:
6
- metadata.gz: ab2ba7acf7e1df2b3d487a5422b5d5c200ea615fbf4333c8ae5d7173048700a18da1e152c709c8caaac297a4e305933641c08d9eaadeca1432c6f0223b9427a9
7
- data.tar.gz: a9337de7160775a8b4101f8ee9c15e9ac4debb0072667341abd37d783c0d6ced3b3c51c28f632f20a48097a70fe484a4f5d54d23b14f98ee80cf02de277e04d5
6
+ metadata.gz: 87c70b95d3801d99cef2239d181a2b4b2eda02c929d80c730e03fde61c32da145cbcf82d0c3a9aedec7dd96b8756e078f539fa3c3817887bb97dec2efb48523f
7
+ data.tar.gz: ee1304a2e751fb5d42fcf085cb477d0a570c8615650ea861b5a3f70dce59b9a4799893dd5dfac48877a202b6d13521e9655f0fbe3ef1d48a617082b6a3f85c8d
@@ -11,7 +11,7 @@ Metrics/AbcSize:
11
11
  Max: 50
12
12
 
13
13
  Metrics/ClassLength:
14
- Max: 120
14
+ Max: 130
15
15
 
16
16
  Metrics/BlockLength:
17
17
  Max: 60
@@ -1,5 +1,4 @@
1
1
  module Awspec::Generator
2
- # rubocop:disable Metrics/ClassLength
3
2
  class Template
4
3
  def self.generate(type)
5
4
  @type = type
@@ -137,7 +137,7 @@ Aws.config[:ec2] = {
137
137
  prefix_list_id: 'pl-a5321fa3'
138
138
  }
139
139
  ]
140
- },
140
+ }
141
141
  ]
142
142
  }
143
143
  ]
@@ -16,6 +16,10 @@ module Awspec::Type
16
16
  @id ||= resource_via_client.instance_id if resource_via_client
17
17
  end
18
18
 
19
+ def security_group_count
20
+ resource_via_client.security_groups.count
21
+ end
22
+
19
23
  STATES = %w(
20
24
  pending running shutting-down
21
25
  terminated stopping stopped
@@ -94,7 +94,7 @@ module Awspec::Type
94
94
  ret = permission.prefix_list_ids.select do |prefix_list_id|
95
95
  prefix_list_id.prefix_list_id == cidr
96
96
  end
97
- return true if ret.count >0
97
+ return true if ret.count > 0
98
98
  ret = permission.ip_ranges.select do |ip_range|
99
99
  # if the cidr is an IP address then do a true CIDR match
100
100
  if cidr =~ /^\d+\.\d+\.\d+\.\d+/
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.88.0'
2
+ VERSION = '0.88.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.88.0
4
+ version: 0.88.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-10-23 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -581,7 +581,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
581
581
  version: '0'
582
582
  requirements: []
583
583
  rubyforge_project:
584
- rubygems_version: 2.6.13
584
+ rubygems_version: 2.5.2
585
585
  signing_key:
586
586
  specification_version: 4
587
587
  summary: RSpec tests for your AWS resources.