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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjcwMDAwZjA2YzQ5OTAxY2UwNmU2MzAwNTk2ZTIxZmU5NDNlM2RhOQ==
4
+ Y2FhNDkzYjc3ZDQzOTgwYjhhYzMxZTI0Y2U5NGM0MzRmYjYyM2JjNg==
5
5
  data.tar.gz: !binary |-
6
- YjA1NmFiYjg4YzlkNmVhNzg1MjBmN2I3N2M4OTFkOGY4ZTkwMjZmZQ==
6
+ NGQzNjUzZGIyYjhkZWI1ZGNjZDJkNjk5OTg4NTI2MjhjMGIxMmE3MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGY4OTQ3NTk0NWZkOTM1MmFmZTc2YWM1Mzg3YzY4NmM3NGI2ZmFhY2IyODhk
10
- YzMzOTE5NzhhZmQ5OGQ5OWNlYmEyYTBkNDEwMDIyNjI2NTJhNDA0N2U5YmMz
11
- OTZjNzIwNzQ2MjdkMzFmODYyMjFiMTBkMjMyNzU0MDdhZWM3Y2U=
9
+ OGQzNGFiODQ5ZWJhYTg1YWM2NGE2YTUxZDFkMGExYTVhZTYzNjJkYzQ2OTFh
10
+ Zjg1YmYzMWZkZWE3NDNiNGQ0NjRkZjc4OTU3OTUxMzNmNWQyMjU5ZGRkZDFl
11
+ NGY1NTBkZjU5YjQxZDIzZTg4MDg0MmFlNDBjZTIzMWQ4ZTc4ZjQ=
12
12
  data.tar.gz: !binary |-
13
- MmM2ZmI2NjRjZTI4OTU5NGU3MDM0OGJhZTljOWYwMTQ4ZWJmYTA3ZDdmODAy
14
- YWVhNGQ3NjQzMTZhMmQxODM2ZDlmNGM5NmE2ZjU3ODRkODg0NjU5NWJiNjc0
15
- YWUwNWUwZGNlZjkxNDc1MGI5YWYxOTRlZTNlZjE3ZjhiZDM4MTY=
13
+ MjgyZjhmZTBmODRjMzc5NjZmZDM2MjA1ZTkyYmIxNzY5MmNmMzM5OTdkMzc3
14
+ ZWZjMWYwM2M2MWRhN2E1NzEwNzRiODMzODVjZWNlNDMwOWE3ZjU2ODRmYzg5
15
+ NjU4MThhMThlNTE3MmJmMjg3NGNjMDdhMjMzNjcyOTRmOTU4MjA=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lucid-cumulus (0.11.5)
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.2.1)
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)).deep_sort
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
- # turns out, policies defined locally can be redundant. this causes false diffs
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
@@ -4,7 +4,7 @@ require "bundler"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "lucid-cumulus"
7
- s.version = "0.11.5"
7
+ s.version = "0.11.6"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Keilan Jackson", "Mark Siebert"]
10
10
  s.email = "cumulus@lucidchart.com"
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.5
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-16 00:00:00.000000000 Z
12
+ date: 2016-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk