miam 0.2.4.beta9 → 0.2.4.beta10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44bcfc369fae53c8765d934768e003a496078243
4
- data.tar.gz: e7074dd752db3217df398dbe0bbd831853a3e2e7
3
+ metadata.gz: 8251e78648421d3acb0afa0a5a663a570ccd2f27
4
+ data.tar.gz: 8e7322231ec3e6ece6e297aba849a0870f6edde6
5
5
  SHA512:
6
- metadata.gz: 80661b72134d986f3d3c77f7e02dd42e6c187eac8801fd019c72c657e3e94d4149137bc865034aa363310e6531786a6dbade724cbc751fb8daf923dc251a70d7
7
- data.tar.gz: 1d2814ba935448e1bbb49ec5d3ff9e4587824913ec03ae338b69684440bed06537ff1a997fb6f184b37479b6593bd00139d2310bb5e200c2dc39ae2477cad521
6
+ metadata.gz: 8de5260855df74629d5c7e2eac076469d686a711e652f5df43d478de1988d88d844d941055471ba112cfa45bc60eb0d27230aa11109c84db7813531d1bdd31b2
7
+ data.tar.gz: 3b17645369feff700cc7c813c41602ffa887409276fa378f5ff332d163dd9b2bb90703dbe5e2f1fc207cb4034a22a5c0a6e0df561af3f155e1bd2bfaef4841c3
data/lib/miam/exporter.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # coding: utf-8
2
2
  class Miam::Exporter
3
3
  AWS_MANAGED_POLICY_PREFIX = 'arn:aws:iam::aws:'
4
+ AWS_CN_MANAGED_POLICY_PREFIX = 'arn:aws-cn:iam::aws:'
4
5
 
5
6
  def self.export(iam, options = {})
6
7
  self.new(iam, options).export
@@ -200,7 +201,7 @@ class Miam::Exporter
200
201
  result = {}
201
202
 
202
203
  Parallel.each(policies, :in_threads => @concurrency) do |policy|
203
- if policy.arn.start_with?(AWS_MANAGED_POLICY_PREFIX)
204
+ if policy.arn.start_with?(AWS_MANAGED_POLICY_PREFIX) or policy.arn.start_with?(AWS_CN_MANAGED_POLICY_PREFIX)
204
205
  next
205
206
  end
206
207
 
data/lib/miam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Miam
2
- VERSION = '0.2.4.beta9'
2
+ VERSION = '0.2.4.beta10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.beta9
4
+ version: 0.2.4.beta10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-17 00:00:00.000000000 Z
11
+ date: 2017-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core