awspec 0.87.0 → 0.87.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: f0bcfc84f264a0b85f2f18f22519ed7aab5ffde2
4
- data.tar.gz: 23da8dcad88edde7095a351e0c438dbde7f81f84
3
+ metadata.gz: ab2f1d81f78fc41c8220c707e6b4bb2e8723219e
4
+ data.tar.gz: 62fc35595857dd28a73b363c41e0e78ff673870e
5
5
  SHA512:
6
- metadata.gz: 4c9ccb900e383f560887452ec04f430eb8ee5a2c8b5532bce01d7b080b8c886e781d98e9a2c4c3d9108ed18af398b462f4291100256129341d9fb86d790cace9
7
- data.tar.gz: 721e77e16de76fc711c7196330804ad48492ccc4dae6b1853a54bada63f04057cdbcdbef1be41fd393c9ed77514ef9464449276d4d03838dfb858d140f86d506
6
+ metadata.gz: c3562045e596c333942c6b5d4eee86dc850037acc2ea75b9c61c956e2d8a27f64aeccdfd51db4abe6da558d37ce056c6ddb93028d3812150f1ba4a5a588c809d
7
+ data.tar.gz: aa2675d96de408a20d906d8336e551add0ad2b195a2611382363c5020873c740aab1abf4639d0efe4d77528096273b23f35c4d912bab3f085b539f221e1877a1
@@ -1180,7 +1180,7 @@ end
1180
1180
  ```
1181
1181
 
1182
1182
 
1183
- ### its(:domain_id), its(:domain_name), its(:arn), its(:created), its(:deleted), its(:endpoint), its(:processing), its(:elasticsearch_version), its(:access_policies), its(:snapshot_options), its(:advanced_options)
1183
+ ### its(:domain_id), its(:domain_name), its(:arn), its(:created), its(:deleted), its(:endpoint), its(:processing), its(:elasticsearch_version), its(:access_policies), its(:snapshot_options), its(:advanced_options), its(:log_publishing_options)
1184
1184
  ## <a name="elastictranscoder_pipeline">elastictranscoder_pipeline</a>
1185
1185
 
1186
1186
  ElastictranscoderPipeline resource type.
@@ -2565,7 +2565,7 @@ end
2565
2565
  ```
2566
2566
 
2567
2567
 
2568
- ### its(:availability_zone), its(:state), its(:type), its(:vpc_attachments), its(:vpn_gateway_id), its(:tags)
2568
+ ### its(:availability_zone), its(:state), its(:type), its(:vpc_attachments), its(:vpn_gateway_id), its(:amazon_side_asn), its(:tags)
2569
2569
  ## <a name="waf_web_acl">waf_web_acl</a>
2570
2570
 
2571
2571
  WafWebAcl resource type.
@@ -20,10 +20,10 @@ Aws.config[:ec2] = {
20
20
  ip_protocol: 'tcp',
21
21
  ip_ranges: [
22
22
  {
23
- cidr_ip: '123.456.789.012/32'
23
+ cidr_ip: '123.45.67.0/24'
24
24
  },
25
25
  {
26
- cidr_ip: '456.789.123.456/32'
26
+ cidr_ip: '123.45.68.89/32'
27
27
  }
28
28
  ],
29
29
  user_id_group_pairs: []
@@ -46,7 +46,7 @@ Aws.config[:ec2] = {
46
46
  ip_protocol: 'tcp',
47
47
  ip_ranges: [
48
48
  {
49
- cidr_ip: '100.456.789.012/32'
49
+ cidr_ip: '100.45.67.12/32'
50
50
  }
51
51
  ],
52
52
  user_id_group_pairs: []
@@ -57,7 +57,7 @@ Aws.config[:ec2] = {
57
57
  ip_protocol: 'tcp',
58
58
  ip_ranges: [
59
59
  {
60
- cidr_ip: '100.456.789.012/32'
60
+ cidr_ip: '100.45.67.89/32'
61
61
  }
62
62
  ],
63
63
  user_id_group_pairs: []
@@ -68,7 +68,7 @@ Aws.config[:ec2] = {
68
68
  ip_protocol: 'tcp',
69
69
  ip_ranges: [
70
70
  {
71
- cidr_ip: '101.456.789.012/32'
71
+ cidr_ip: '100.45.67.12/32'
72
72
  }
73
73
  ],
74
74
  user_id_group_pairs: []
@@ -79,7 +79,7 @@ Aws.config[:ec2] = {
79
79
  ip_protocol: 'tcp',
80
80
  ip_ranges: [
81
81
  {
82
- cidr_ip: '123.456.789.012/32'
82
+ cidr_ip: '123.45.67.89/32'
83
83
  }
84
84
  ],
85
85
  user_id_group_pairs: []
@@ -108,7 +108,7 @@ Aws.config[:ec2] = {
108
108
  ip_protocol: 'tcp',
109
109
  ip_ranges: [
110
110
  {
111
- cidr_ip: '100.456.789.012/32'
111
+ cidr_ip: '100.45.67.12/32'
112
112
  }
113
113
  ]
114
114
  },
@@ -92,7 +92,13 @@ module Awspec::Type
92
92
  def cidr_opened?(permission, cidr)
93
93
  return true unless cidr
94
94
  ret = permission.ip_ranges.select do |ip_range|
95
- ip_range.cidr_ip == cidr
95
+ # if the cidr is an IP address then do a true CIDR match
96
+ if cidr =~ /^\d+\.\d+\.\d+\.\d+/
97
+ net = IPAddr.new(ip_range.cidr_ip)
98
+ net.include?(cidr)
99
+ else
100
+ ip_range.cidr_ip == cidr
101
+ end
96
102
  end
97
103
  return true if ret.count > 0
98
104
  ret = permission.user_id_group_pairs.select do |sg|
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.87.0'
2
+ VERSION = '0.87.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.87.0
4
+ version: 0.87.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-06 00:00:00.000000000 Z
11
+ date: 2017-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec