lucid-cumulus 0.11.5 → 0.11.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +2 -2
- data/lib/aws_extensions/iam/Policy.rb +2 -2
- data/lib/iam/models/ResourceWithPolicy.rb +1 -2
- data/lucid-cumulus.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2FhNDkzYjc3ZDQzOTgwYjhhYzMxZTI0Y2U5NGM0MzRmYjYyM2JjNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGQzNjUzZGIyYjhkZWI1ZGNjZDJkNjk5OTg4NTI2MjhjMGIxMmE3MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGQzNGFiODQ5ZWJhYTg1YWM2NGE2YTUxZDFkMGExYTVhZTYzNjJkYzQ2OTFh
|
10
|
+
Zjg1YmYzMWZkZWE3NDNiNGQ0NjRkZjc4OTU3OTUxMzNmNWQyMjU5ZGRkZDFl
|
11
|
+
NGY1NTBkZjU5YjQxZDIzZTg4MDg0MmFlNDBjZTIzMWQ4ZTc4ZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjgyZjhmZTBmODRjMzc5NjZmZDM2MjA1ZTkyYmIxNzY5MmNmMzM5OTdkMzc3
|
14
|
+
ZWZjMWYwM2M2MWRhN2E1NzEwNzRiODMzODVjZWNlNDMwOWE3ZjU2ODRmYzg5
|
15
|
+
NjU4MThhMThlNTE3MmJmMjg3NGNjMDdhMjMzNjcyOTRmOTU4MjA=
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lucid-cumulus (0.11.
|
4
|
+
lucid-cumulus (0.11.6)
|
5
5
|
aws-sdk (= 2.2.30)
|
6
6
|
deepsort (~> 0.1)
|
7
7
|
parse-cron (~> 0.1.4)
|
@@ -15,7 +15,7 @@ GEM
|
|
15
15
|
jmespath (~> 1.0)
|
16
16
|
aws-sdk-resources (2.2.30)
|
17
17
|
aws-sdk-core (= 2.2.30)
|
18
|
-
deepsort (0.
|
18
|
+
deepsort (0.3.1)
|
19
19
|
diff-lcs (1.2.5)
|
20
20
|
jmespath (1.3.1)
|
21
21
|
parse-cron (0.1.4)
|
@@ -6,7 +6,7 @@ module AwsExtensions
|
|
6
6
|
module Policy
|
7
7
|
def as_hash
|
8
8
|
# Sort the statments to prevent false conflicts while diffing
|
9
|
-
sorted_policy = JSON.parse(URI.unescape(policy_document))
|
9
|
+
sorted_policy = JSON.parse(URI.unescape(policy_document))
|
10
10
|
sorted_policy["Statement"].each do |statement|
|
11
11
|
# actions sometimes contains a single string element instead of the expected array
|
12
12
|
statement["Action"] = [statement["Action"]] if statement["Action"].is_a? String
|
@@ -14,7 +14,7 @@ module AwsExtensions
|
|
14
14
|
statement["Resource"] = [statement["Resource"]] if statement["Resource"].is_a? String
|
15
15
|
end
|
16
16
|
# return the sorted policy hash
|
17
|
-
sorted_policy
|
17
|
+
sorted_policy.deep_sort
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -192,8 +192,7 @@ module Cumulus
|
|
192
192
|
else
|
193
193
|
aws_statements = aws_policy["Statement"]
|
194
194
|
local_statements = p.as_hash["Statement"]
|
195
|
-
|
196
|
-
if aws_statements.uniq != local_statements.uniq
|
195
|
+
if aws_statements != local_statements
|
197
196
|
diff = IamDiff.new(IamChange::POLICY, aws_statements, p)
|
198
197
|
diff.policy_name = generated_policy_name
|
199
198
|
diffs << diff
|
data/lucid-cumulus.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucid-cumulus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keilan Jackson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|