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 +4 -4
- data/.rubocop.yml +1 -1
- data/lib/awspec/generator/template.rb +0 -1
- data/lib/awspec/stub/security_group.rb +1 -1
- data/lib/awspec/type/ec2.rb +4 -0
- data/lib/awspec/type/security_group.rb +1 -1
- data/lib/awspec/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 347ce836414ad89cc7d2ccbd452fae2938a12ea3
|
4
|
+
data.tar.gz: 1448321a37033765ac8351a99c4aff9dc1e76e56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87c70b95d3801d99cef2239d181a2b4b2eda02c929d80c730e03fde61c32da145cbcf82d0c3a9aedec7dd96b8756e078f539fa3c3817887bb97dec2efb48523f
|
7
|
+
data.tar.gz: ee1304a2e751fb5d42fcf085cb477d0a570c8615650ea861b5a3f70dce59b9a4799893dd5dfac48877a202b6d13521e9655f0fbe3ef1d48a617082b6a3f85c8d
|
data/.rubocop.yml
CHANGED
data/lib/awspec/type/ec2.rb
CHANGED
@@ -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+/
|
data/lib/awspec/version.rb
CHANGED
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.
|
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-
|
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.
|
584
|
+
rubygems_version: 2.5.2
|
585
585
|
signing_key:
|
586
586
|
specification_version: 4
|
587
587
|
summary: RSpec tests for your AWS resources.
|