aws_assume_role 1.1.0-universal-darwin → 1.1.1-universal-darwin

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
  SHA256:
3
- metadata.gz: 80766e274bca0bd30c54400247e55717a9fa5c1899d67cf9c08158324c457e9c
4
- data.tar.gz: 9efd6ebbb0d4d9517bb08ff99a0268ead47934f524f5824b4584696ce55bbdd2
3
+ metadata.gz: b46ab295761b4a148d02a5f05a7cf6806e0227c0afa2d424bfb387ccc0ec595e
4
+ data.tar.gz: 668321c5e53ac81752e2fb96ace590ef5055cf875402c8460d0e106878c91e51
5
5
  SHA512:
6
- metadata.gz: 1d301c8414767965d80c0cc97b123107d8f6661f3b7ac725b5c2d5b4ca3fc76c7d8a44b742c293ecc4a8acc90bff2998b5725d5d7f7b6e2e08b4f6a2f5a8ab55
7
- data.tar.gz: 36d28bf31fe195de8696b8c4ada51c3e7c47528f26969146f4ceb448685cae6bed437f6688f989811ed526ace45cfb484b0f736224ae6266ad1aec977797838e
6
+ metadata.gz: ca25e3e06a2cba00d8d9207148f4dcb91acf005fbebedd849218017a03bc5f2ab8d13c271973994cad71130b69fb37da0fa5d275dc5a2287cd0e9ba8d39bc803
7
+ data.tar.gz: 5126294731ffeb1a4b9df4a3383669644d44ce1ca14126a0fd6d5ad24f401d10bd03818ad426d36a1938b2b3dc932ac814c17a768141172c1af1e715bd450568
data/.travis.yml CHANGED
@@ -11,8 +11,6 @@ jobs:
11
11
  - stage: deploy
12
12
  rvm: 2.3
13
13
  script: bundle exec rake setup_credentials && chmod 0600 /home/travis/.gem/credentials && bundle exec rake publish
14
- secure: "VQtFNu/kHZdKrmURVx4cPgW4uo+7klWQkMA9fJVYvyQzYoELmo/Q5L/75AE8mzNzXHTsRfRu/ggA5vlyHtXpQguz0Tz/pZ0pi24HKIkFFYzmXL4xb2depLTLu2DBFOZUPhshyIEJ9rVhT4sE2E7TOZErhJ1od5NQFAn1I17NyF3qStiORpjptSeU12OReNrlx0kquiZjyYklxO1M3ybzWHLmxVYNRjabqjkm0YB2NrTTFraeivixpRLSolsbzxRBxZwT7UOv/zbEcp9RGZDHxtxcD71rq8KaCXWzscErrcCiJtzrnHUHjAULFFkCPD+rCSbJJkydjxFjg3lVJbf5JulZYr4VzWLimjLUZv4HeeN+bvtwrPKCOe0KxRnsAr4kieX16MO/5ehkNHzjFyiSfkVGWK0uoWGNE9MdCwHLo+o+cz3XoKMQFZhmSheuxKKibr0m9PedynQQdg7bc3kB3UaYurrDs5ldb8e97BnZJrTaTD3/8vaWv30MFuZ+Nw/Hi2uEP7nIZoZfz2D8S6a83YLAC7YAfnf/1lMCU2mfBSLg6L8H26h5bmOUfg10ZNiJDW0g0WqbjbI0xUcMjHd5qdPYP1bH4qtXAdDp9I09NHpteEo42P58milj7n7qWAx+TiRnQR0/jBJL+dXGwYRfoXuzI+4QDy8sq20Cvi34RPU="
15
-
16
14
  stages:
17
15
  - name: test
18
16
  - name: deploy
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.1.1
2
+ * Allow aws-assume-role to retrieve all Yubikey stored OATH tokens (@alanthing)
3
+
1
4
  ## 1.1.0
2
5
  * Publish separate gems for Linux, BSD and MacOS (@randomvariable)
3
6
 
data/Rakefile CHANGED
@@ -36,7 +36,7 @@ task :setup_credentials do
36
36
  File.write(File.expand_path("~/.gem/credentials"), CREDENTIALS.to_yaml)
37
37
  end
38
38
 
39
- task publish: [:build] do
39
+ task publish: %i[build build_generic] do
40
40
  Dir.glob("#{File.dirname(__FILE__)}/pkg/*.gem") do |g|
41
41
  sh "gem push #{g}"
42
42
  end
@@ -55,6 +55,12 @@ end
55
55
 
56
56
  task build: DISTRIBUTIONS.map { |d| "build_arch:#{d}" }
57
57
 
58
+ task :build_generic do
59
+ sh "cd #{File.dirname(__FILE__)} && GENERIC_GEM=true gem build aws_assume_role.gemspec"
60
+ FileUtils.mkdir_p(File.join(File.dirname(__FILE__), "pkg"))
61
+ sh "cd #{File.dirname(__FILE__)} && mv *.gem pkg/"
62
+ end
63
+
58
64
  task :no_pry do
59
65
  files = Dir.glob("**/**").reject { |x| x.match(/^spec|Gemfile|coverage|\.gemspec$|Rakefile/) || File.directory?(x) }
60
66
  files.each do |file|
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.bindir = "bin"
26
26
  spec.executables = spec.files.grep(%r{^bin/aws}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
- spec.platform = PLATFORM
28
+ spec.platform = PLATFORM unless ENV.fetch("GENERIC_GEM", false)
29
29
  spec.add_runtime_dependency "activesupport", "~> 4.2"
30
30
  spec.add_runtime_dependency "aws-sdk", "~> 2.7"
31
31
  spec.add_runtime_dependency "dry-configurable", "~> 0.5"
@@ -67,8 +67,7 @@ class AwsAssumeRole::Credentials::Providers::MfaSessionCredentials < Dry::Struct
67
67
  raise "Yubikey not found" unless context.readers.length == 1
68
68
  reader_name = context.readers.first
69
69
  card = Smartcard::PCSC::Card.new(context, reader_name, :shared)
70
- codes = YubiOATH.new(card).calculate_all(timestamp: Time.now)
71
- codes.fetch(BinData::String.new(@yubikey_oath_name))
70
+ YubiOATH.new(card).calculate(name: @yubikey_oath_name, timestamp: Time.now)
72
71
  end
73
72
 
74
73
  def refresh_using_mfa
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AwsAssumeRole
4
- VERSION = "1.1.0".freeze
4
+ VERSION = "1.1.1".freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_assume_role
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: universal-darwin
6
6
  authors:
7
7
  - Jon Topper
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2018-01-04 00:00:00.000000000 Z
17
+ date: 2018-02-01 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: activesupport
@@ -431,7 +431,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
431
431
  version: '0'
432
432
  requirements: []
433
433
  rubyforge_project:
434
- rubygems_version: 2.7.2
434
+ rubygems_version: 2.7.4
435
435
  signing_key:
436
436
  specification_version: 4
437
437
  summary: Manage AWS STS credentials with MFA