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 +4 -4
- data/lib/awspec/stub/s3_bucket.rb +1 -1
- data/lib/awspec/type/s3_bucket.rb +5 -1
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0333a2d9cfa5d18c7c0895b1bcb4dfd32d58f69
|
|
4
|
+
data.tar.gz: bcaf4ead9db360a59640536be34f39c40f67d57f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
-
|
|
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)
|
data/lib/awspec/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|