awspec 0.75.0 → 0.75.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: 854646c2471fb85fee7273e6845286df2778a144
4
- data.tar.gz: 6820b9e4e51c71a57b75da9f30fca139af783e26
3
+ metadata.gz: 49fe94ffa30e6b9c92023146cd85c521aceff9e2
4
+ data.tar.gz: 179a8c1ce8704c773a939256ae6d9236e0ede141
5
5
  SHA512:
6
- metadata.gz: 14164e74f64889927dbf416f76ef0779753053116b213f1e87f8fed1b9293dbd3339959b109efcc9533279886241b3b312cccd396b63ffb25ec05de6d14d5b69
7
- data.tar.gz: 70e3a2081cc28fd0d01d66ab7e28c81516679e2bd5a31d90db5ef22b088d52e499017debbb6b27b217c9f1b97c3e346c10ed802d403c7af1aff760b6f2280e81
6
+ metadata.gz: a1e86efde98bdfac2803b68190fd244be251d51b623170d5369a7d1666cb5e6ff6077b1a301e7369c7be7a56655eebb3681d3fc02dfa13c1a13e5a0952c7612b
7
+ data.tar.gz: 666058aa1d1c028f5585fe798e4920010365d4fa74437b995072044c555bd3a760803308cdd9d8ff9d3264ac727ecef52760fc84b137d491389e6fd84aa83a46
@@ -98,9 +98,15 @@ module Awspec::Helper
98
98
  dynamodb_client: Aws::DynamoDB::Client
99
99
  }
100
100
 
101
+ CLIENT_OPTIONS = {
102
+ http_proxy: ENV['http_proxy'] || ENV['https_proxy'] || nil
103
+ }
104
+
101
105
  CLIENTS.each do |method_name, client|
102
106
  define_method method_name do
103
- eval "@#{method_name} ||= #{client}.new"
107
+ unless self.methods.include? "@#{method_name}"
108
+ instance_variable_set("@#{method_name}", client.new(CLIENT_OPTIONS))
109
+ end
104
110
  end
105
111
  end
106
112
  end
@@ -42,13 +42,13 @@ module Awspec::Type
42
42
  return true if route.gateway_id == gateway_id
43
43
  # internet gateway
44
44
  igw = find_internet_gateway(gateway_id)
45
- return true if igw && igw.tag_name == gateway_id
45
+ return true if igw && igw.internet_gateway_id == route.gateway_id
46
46
  # vpn gateway
47
47
  vgw = find_vpn_gateway(gateway_id)
48
- return true if vgw && vgw.tag_name == gateway_id
48
+ return true if vgw && vgw.vpn_gateway_id == route.gateway_id
49
49
  # customer gateway
50
50
  cgw = find_customer_gateway(gateway_id)
51
- return true if cgw && cgw.tag_name == gateway_id
51
+ return true if cgw && cgw.customer_gateway_id == route.gateway_id
52
52
  # nat gateway
53
53
  return true if route.nat_gateway_id == gateway_id
54
54
  false
@@ -58,7 +58,7 @@ module Awspec::Type
58
58
  # instance
59
59
  return true if route.instance_id == instance_id
60
60
  instance = find_ec2(instance_id)
61
- return true if instance && instance.tag_name == instance_id
61
+ return true if instance && instance.instance_id == route.instance_id
62
62
  false
63
63
  end
64
64
 
@@ -71,7 +71,7 @@ module Awspec::Type
71
71
  # vpc_peering_connection_id
72
72
  return true if route.vpc_peering_connection_id == vpc_peering_connection_id
73
73
  connection = find_vpc_peering_connection(vpc_peering_connection_id)
74
- return true if connection && connection.tag_name == vpc_peering_connection_id
74
+ return true if connection && connection.vpc_peering_connection_id == route.vpc_peering_connection_id
75
75
  false
76
76
  end
77
77
  end
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.75.0'
2
+ VERSION = '0.75.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.75.0
4
+ version: 0.75.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-04-09 00:00:00.000000000 Z
11
+ date: 2017-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec