aws_assume_role 1.1.0-universal-openbsd → 1.1.1-universal-openbsd
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/CHANGELOG.md +3 -0
- data/Rakefile +7 -1
- data/aws_assume_role.gemspec +1 -1
- data/lib/aws_assume_role/credentials/providers/mfa_session_credentials.rb +1 -2
- data/lib/aws_assume_role/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13c0173ee1d126b2eb115d5c67f38070028f113002aa69dd83fadbed9eb12816
|
4
|
+
data.tar.gz: 668321c5e53ac81752e2fb96ace590ef5055cf875402c8460d0e106878c91e51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3be110fa5c460e8dae6fe1def62a620924849abc5b2460998cf769511974a0503f8aec95fc4d879326d0992cb4a369a788b6e03d34f4dede85567876ffb676a1
|
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
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: [
|
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|
|
data/aws_assume_role.gemspec
CHANGED
@@ -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
|
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
|
-
|
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
|
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.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: universal-openbsd
|
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
|
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.
|
434
|
+
rubygems_version: 2.7.4
|
435
435
|
signing_key:
|
436
436
|
specification_version: 4
|
437
437
|
summary: Manage AWS STS credentials with MFA
|