build-cloud 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b517a9b2e2211642ec326aab3b722d398e478cd69f92e9aa3d2df1ac2ee4e8e1
4
- data.tar.gz: cef64604f10c339655b8a2c6e32d3824ac4ccc5e561dceb205317d3cd9595967
3
+ metadata.gz: f8914414b926d7a60e8bb06324b8d2083f7aeaf22933cbc4d7a25331ee0f8f53
4
+ data.tar.gz: faa07714347d530ec4e6dcd0b864fd7932acbaee5badfe5b0574ef85242578c6
5
5
  SHA512:
6
- metadata.gz: 40cfa2e8d913e8406c25c65d01f99cd4b17085c5d4ddabe64396223ea95b8db1a072372e88ec72fbf203a1ce725335911f394a658aae491a81ea841025ed48c4
7
- data.tar.gz: 472bbd341295c7c1939220198247c8eefee46cb889c08040eefab7d88684b71b312c543c87d72bb37d8182fc7257dab2ad280ef1a63fe91cb65f3eed96545aee
6
+ metadata.gz: cf34d7d68225935c92dec21b3eed7a3489c08e51c9b41a4a025e5e6f019aa511d05bbd60811820965e37060355b8b8bf9e75b323ef2991292744e3f4f209f2a8
7
+ data.tar.gz: 3f0e2ffb227901f6299247714b9b1a03be0cb55d21157592d1d89d22a6c80e0de3944b9e2abf1a5927698951e01f2dafb8fb08a655b56a11e12fdcc9bcd56d74
@@ -1,5 +1,7 @@
1
1
  # Changelog
2
2
 
3
+ 2018-06-18 - version 1.1.7 - Handle more than 100 IAM policies
4
+
3
5
  2018-06-18 - version 1.1.6 - VPC tag addition now uses correct resource
4
6
 
5
7
  2018-06-18 - version 1.1.5 - Security groups now add missing tags.
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "build-cloud"
7
- spec.version = "1.1.6"
7
+ spec.version = "1.1.7"
8
8
  spec.authors = ["The Scale Factory"]
9
9
  spec.email = ["info@scalefactory.com"]
10
10
  spec.summary = %q{Tools for building resources in AWS}
@@ -38,8 +38,12 @@ class BuildCloud::IAMManagedPolicy
38
38
 
39
39
  end
40
40
 
41
+ # Fog only partly implements collection behaviour for managed policies
42
+ # Work around this using each() - and not, for example, select()
41
43
  def read
42
- @iam.managed_policies.select { |r| r.name == @options[:name] }.first
44
+ @iam.managed_policies.each do |item|
45
+ return item if item.name == @options[:name]
46
+ end
43
47
  end
44
48
 
45
49
  alias_method :fog_object, :read
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Scale Factory
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-05 00:00:00.000000000 Z
11
+ date: 2018-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.7.7
150
+ rubygems_version: 2.7.8
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Tools for building resources in AWS