miam 0.2.4.beta5 → 0.2.4.beta6

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: d8f1bb0af1a2fc50488600724625331227f2d140
4
- data.tar.gz: d3d47fde2bcaa09e111128288ae7df5b503d0672
3
+ metadata.gz: e1c150b030553f7b4eefb432270b89335915eec8
4
+ data.tar.gz: 39f678345ea0954fa1cc1aa1b31a0d216a077daa
5
5
  SHA512:
6
- metadata.gz: 94f5a8bbe72365205d570058894105b69a21be1f9bff0037ce026ca89d140eb2de6f40fa6f7a02cd4fd71cf3d54341fcdb052646335dbcf087f12b5c6dd35f97
7
- data.tar.gz: 9c2a71d660f36313d38cae51b048e828aa20bd1c2d666b77ff67a6f1b8a7537164df49196eb6fba1c3801d97dfa87695cac087d1ea5116f6623dbc86ec7ac097
6
+ metadata.gz: f9afc6853fada3dd41deff6cbc304a339c56cc6e7b92b940ef69cac3e1a32b79910d9897a8b33c51d29f7c2674cb0809bc94808872ff3696aff70d518c4a207d
7
+ data.tar.gz: 2545494db13024cc827de64cc57a9f0addf14f8113567f967917ae0197a979e6067573b51614027c2ed269e960b43223829715fecee64cc98a20dcd39e5a17f3
data/.travis.yml CHANGED
@@ -10,4 +10,3 @@ env:
10
10
  - secure: "Ec8bwSfp06anSzLJpGhkKjPz9EocMwl7H8t2LKoI3bKV/cz9JU0GhhUdUUmg3mCFH9+8/YGLzcbFKcxZIqnDK7ukdgTGsnGDevnctis0QwM7/nKHdkaK8JWhCx41TUXOqoiCKkNEnm1EbDtrILt4rJwb0BGXGnPjv6nLAyvdE2Y="
11
11
  - secure: "Ky5Dpxc7SIqbQ4Y10m/jik/rVdeGMeh1439m3KB+tiV/Bz1hhWv4+If150ajLjbmWCZBPMLhxrTL0EePoyqYXpOGHvINvYM+/XCPcpP4iYkaTzr1MVIOMpa8A8aAOOgQWoGOwfyWoxfrYzv/TRvtMietnm+dZwVcbbkQ4ut7oa4="
12
12
  - AWS_REGION=ap-northeast-1
13
- - DEBUG=1
data/lib/miam/driver.rb CHANGED
@@ -67,6 +67,14 @@ class Miam::Driver
67
67
  @iam.delete_signing_certificate(:user_name => user_name, :certificate_id => certificate_id)
68
68
  end
69
69
 
70
+ mfa_devices = @iam.list_mfa_devices(:user_name => user_name).map {|resp|
71
+ resp.mfa_devices
72
+ }.flatten
73
+
74
+ mfa_devices.each do |md|
75
+ @iam.deactivate_mfa_device(:user_name => user_name, :serial_number => md.serial_number)
76
+ end
77
+
70
78
  @iam.delete_user(:user_name => user_name)
71
79
  end
72
80
  end
data/lib/miam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Miam
2
- VERSION = '0.2.4.beta5'
2
+ VERSION = '0.2.4.beta6'
3
3
  end
data/miam.gemspec CHANGED
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rspec', '>= 3.0.0'
30
30
  spec.add_development_dependency 'rspec-instafail'
31
31
  spec.add_development_dependency 'coveralls'
32
+ spec.add_development_dependency 'nokogiri'
32
33
  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.beta5
4
+ version: 0.2.4.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-06 00:00:00.000000000 Z
11
+ date: 2016-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: nokogiri
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
167
181
  description: Miam is a tool to manage IAM. It defines the state of IAM using DSL,
168
182
  and updates IAM according to DSL.
169
183
  email:
@@ -229,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
243
  version: 1.3.1
230
244
  requirements: []
231
245
  rubyforge_project:
232
- rubygems_version: 2.4.5.1
246
+ rubygems_version: 2.5.1
233
247
  signing_key:
234
248
  specification_version: 4
235
249
  summary: Miam is a tool to manage IAM.