sport_ngin_aws_auditor 3.8.1 → 3.8.2

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: 61d6d41031de3858552e36e195d2d139d6a9a144
4
- data.tar.gz: e12cdde6945decdf7dd19d9a957fabe6a53591a0
3
+ metadata.gz: 57b8658e2851778a2cb51a97a24abff4b3f7aaf0
4
+ data.tar.gz: efbb6954e3bd4a5db327e65b995a59880380389d
5
5
  SHA512:
6
- metadata.gz: a7a8c9a59da8348942d6fb012530a634a2c239e94d81e47683ae5879e39d94537b6c28954a2497981dd3116e5a6011d003a03368faa6e2320da5e4bfb658da73
7
- data.tar.gz: 82a740a5a5dfb4d8698f201ae9ea258eb83dec6d73d2f5cf44c1901fe0eaccda7ed2d13f7ee28a0be18bfef4e4338ecc6a9a3d412b2ceef021c83296d580a2dd
6
+ metadata.gz: ebceaccabab56682e8a33cc8c5c54d451227b8962740369b11db2c3bff689b3254c235d49066255d103dc99eee2078942b5e406e8d1157bf9b569784351dae94
7
+ data.tar.gz: bc246c946109b27e7db5a0655e5ea6f3c13937d9773287e3ac35c1efd1a4a060d9f4a795325c9fa7151be878260a15df01b6a46c21da7610ff234091700678b9
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ #### v3.8.2
2
+ * Fixing bugs so that counts are accurate again
3
+
4
+ > Emma Sax: : https://github.com/sportngin/sport_ngin_aws_auditor/pull/20
5
+
1
6
  #### v3.8.1
2
7
  #### v3.8.0
3
8
  * Clarifying printout of audit command
@@ -2,9 +2,9 @@ require_relative './recently_retired_tag'
2
2
  require_relative './audit_data'
3
3
 
4
4
  module SportNginAwsAuditor
5
- module InstanceHelper
5
+ module InstanceHelper
6
6
 
7
- def instance_hash
7
+ def instance_hash
8
8
  Hash[get_instances.map { |instance| instance.nil? ? next : [instance.id, instance]}.compact]
9
9
  end
10
10
 
@@ -16,7 +16,7 @@ module SportNginAwsAuditor
16
16
  instance_hash = Hash.new()
17
17
  instances.each do |instance|
18
18
  next if instance.nil?
19
- instance_hash[instance.to_s] = instance_hash.has_key?(instance.to_s) ? instance_hash[instance.to_s][0] + instance.count : instance.count
19
+ instance_hash[instance.to_s] = instance_hash.has_key?(instance.to_s) ? instance_hash[instance.to_s] + instance.count : instance.count
20
20
  end if instances
21
21
 
22
22
  instance_hash.each do |key, value|
@@ -31,9 +31,9 @@ module SportNginAwsAuditor
31
31
  key = instance.to_s << " with tag"
32
32
  instance_result = []
33
33
  if instance_hash.has_key?(key)
34
- instance_result << instance_hash[key][0] + 1
34
+ instance_result << instance_hash[key][0] + instance.count
35
35
  else
36
- instance_result << 1
36
+ instance_result << instance.count
37
37
  end
38
38
  instance_result << instance.name
39
39
  instance_result << instance.tag_reason
@@ -107,5 +107,5 @@ module SportNginAwsAuditor
107
107
  end
108
108
  value
109
109
  end
110
- end
110
+ end
111
111
  end
@@ -1,3 +1,3 @@
1
1
  module SportNginAwsAuditor
2
- VERSION = "3.8.1"
2
+ VERSION = "3.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sport_ngin_aws_auditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.1
4
+ version: 3.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Hursh
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-09-28 00:00:00.000000000 Z
13
+ date: 2016-10-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk