awspec 0.47.0 → 0.48.0

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
  SHA1:
3
- metadata.gz: f75f06c93510af2f1a7f3931a5c63858d1bc47b6
4
- data.tar.gz: f24d388ea583d2ae6357f4e1ec9ae447fe7e5258
3
+ metadata.gz: a0333a2d9cfa5d18c7c0895b1bcb4dfd32d58f69
4
+ data.tar.gz: bcaf4ead9db360a59640536be34f39c40f67d57f
5
5
  SHA512:
6
- metadata.gz: e6bea348559eccdffee3c28ed315bd1efd7ca21dd7e2282704828ea7d6672f267cf6fe137a8cb019831030cae6fd899a277042f1b72aaac6f2266a104a86e7fc
7
- data.tar.gz: 2683c4cd677e9022a2f26fa506a3bce06321bab15ec05cd9aac4d6354b87b6162b65b260bded05140b00306c511c4e090af6948f9948a7dfd8c5dc877ec03b84
6
+ metadata.gz: 6cc66093c3669124dbd1ea477f9e8a4b67d19e28f12112e26add58d05554442f89e74226253f8ebb1137fc4aeb2a7865de8dbb97136acf84f61d1a4e150a1c4e
7
+ data.tar.gz: d986e623ed158dc347183f302b4cc43c01b052cf0503d9471e8d71a9e9ffb64f07978fbfe6ba9d41dbf7abf108d4265f8268f234e3e3f3bc87f989110b33cb05
@@ -56,7 +56,7 @@ Aws.config[:s3] = {
56
56
  get_bucket_policy: {
57
57
  policy: '{"Version":"2012-10-17","Statement":[{"Sid":"","Effect":"Allow","Principal":' \
58
58
  '{"AWS":"arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity XXXXX"},' \
59
- '"Action":"s3:GetObject","Resource":"arn:aws:s3:::my-bucket/*"}]}'
59
+ '"Action":"s3:*","Resource":["arn:aws:s3:::my-bucket","arn:aws:s3:::my-bucket/*"]}]}'
60
60
  },
61
61
  get_bucket_logging: {
62
62
  logging_enabled: {
@@ -56,7 +56,11 @@ module Awspec::Type
56
56
 
57
57
  def has_policy?(policy)
58
58
  bp = find_bucket_policy(@id)
59
- bp ? (JSON.parse(bp.policy.read) == JSON.parse(policy)) : false
59
+ if bp
60
+ JSON.parse(bp.policy.read, array_class: Set) == JSON.parse(policy, array_class: Set)
61
+ else
62
+ false
63
+ end
60
64
  end
61
65
 
62
66
  def has_logging_enabled?(target_bucket: nil, target_prefix: nil)
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.47.0'
2
+ VERSION = '0.48.0'
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.47.0
4
+ version: 0.48.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-19 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec