aws_runas 0.1.1 → 0.1.2

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: 37b01d059e3e638dbb72b1f44c8c045538d5dd09
4
- data.tar.gz: e87607cde3cf9fe18224cdb37c541250b043492e
3
+ metadata.gz: 166b3e595ae6aa7dd121a945715a9eff29aae90c
4
+ data.tar.gz: 76ce3d0b5522a93ce950bf849cfebc0227b068c0
5
5
  SHA512:
6
- metadata.gz: 428dcad9d20132126ca3219a0281fde61eb623f4d381cc8c94978d9d253cb5b1995968db32bb78beda907772b1d259bbab35d6cb950738650350e39cdf0f0bda
7
- data.tar.gz: e350dce44f330823342244ff1e8756170211a945d5028fcd92e18f4288d5a8d68e7836b47d40ffc4a9f4883d088e55dcb3fb2f8c368e6353436b644d956742dc
6
+ metadata.gz: 3cf889367e458ed4ba71c87e2e263acfb56a1399a4bdb0bde55cc26fab7f237a67e0af8f3a5026972bf869f37e87c9dfef753cfbd9bffa6872f3e6e074c8c630
7
+ data.tar.gz: c3e14f375de48a3260680376c23c1622c75bfa0e4ac78639a398a53b727d4a2d5a45d1fdeb3252700c184b3cbbe6e8c92298e5a125646543e27430aad3a32c68
checksums.yaml.gz.sig CHANGED
@@ -1 +1 @@
1
- �)g&;�,�I䖞 ؅���@��GS^��:���5w�=��Ne/k_9k5���`�'˖�B}� �_�'�,I�G;��5s/i�*+Ǹ�_ie�~��Т���̟s����a'70ܸߖ:��.UI\����m�W��(C�i�Mk2}�)��̝��mv�0��5.�
1
+ N�۠ʂQQW��\q`��Ӂ`�l �*�{�θ�P�������R9?�#�ウsk������6J
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ aws_runas CHANGELOG
2
+ ====================
3
+
4
+ 0.1.2 (Wed 25 Nov 2015 09:09:09 PST)
5
+ -------------------------------------
6
+
7
+ * Fixed #1 and #2 (default credentials fallback bug and overzealous version
8
+ restrictions).
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ [![Build Status](https://img.shields.io/travis/vancluever/aws-runas.svg)](https://travis-ci.org/vancluever/aws-runas)
2
+ [![Gem Version](https://img.shields.io/gem/v/aws_runas.svg)](https://rubygems.org/gems/aws_runas)
3
+ [![Codecov](https://img.shields.io/codecov/c/github/vancluever/aws-runas.svg)](https://codecov.io/github/vancluever/aws-runas)
4
+
1
5
  aws-runas
2
6
  ==========
3
7
 
data/aws_runas.gemspec CHANGED
@@ -35,13 +35,14 @@ Gem::Specification.new do |spec|
35
35
  spec.cert_chain = ['certs/vancluever.pem']
36
36
  spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $PROGRAM_NAME =~ /gem\z/
37
37
 
38
- spec.required_ruby_version = ['>= 2.1.7']
38
+ spec.required_ruby_version = ['>= 2.1']
39
39
 
40
- spec.add_dependency 'aws-sdk', '~> 2.2.1'
41
- spec.add_dependency 'inifile', '~> 3.0.0'
42
- spec.add_dependency 'trollop', '~> 2.1.2'
40
+ spec.add_dependency 'aws-sdk', '~> 2.2'
41
+ spec.add_dependency 'inifile', '~> 3.0'
42
+ spec.add_dependency 'trollop', '~> 2.1'
43
43
 
44
- spec.add_development_dependency 'rake', '~> 10.4.2'
45
- spec.add_development_dependency 'rspec', '~> 3.4.0'
46
- spec.add_development_dependency 'simplecov', '~> 0.10.0'
44
+ spec.add_development_dependency 'rake', '~> 10.4'
45
+ spec.add_development_dependency 'rspec', '~> 3.4'
46
+ spec.add_development_dependency 'simplecov', '~> 0.10'
47
+ spec.add_development_dependency 'codecov', '~> 0.1'
47
48
  end
@@ -51,7 +51,7 @@ module AwsRunAs
51
51
  def load_source_profile
52
52
  source_profile = load_config_value(key: 'source_profile')
53
53
  return source_profile if source_profile
54
- profile
54
+ @profile
55
55
  end
56
56
  end
57
57
  end
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module AwsRunAs
16
- VERSION = '0.1.1'
16
+ VERSION = '0.1.2'
17
17
  end
@@ -43,6 +43,12 @@ describe AwsRunAs::Config do
43
43
  expect(@cfg.load_config_value(key: 'region')).to eq('us-east-1')
44
44
  end
45
45
  end
46
+
47
+ describe '#load_source_profile' do
48
+ it 'returns the default profile when no source profile is present' do
49
+ expect(@cfg.load_source_profile).to eq('default')
50
+ end
51
+ end
46
52
  end
47
53
 
48
54
  context 'with profile set to test-profile' do
@@ -71,7 +77,7 @@ describe AwsRunAs::Config do
71
77
 
72
78
  describe '#load_source_profile' do
73
79
  it 'loads the source credentials profile for the the non-default profile' do
74
- expect(@cfg.load_source_profile).to eq('default')
80
+ expect(@cfg.load_source_profile).to eq('test-credentials')
75
81
  end
76
82
  end
77
83
  end
@@ -5,4 +5,4 @@ region = us-east-1
5
5
  role_arn = arn:aws:iam::123456789012:role/test-admin
6
6
  mfa_serial = arn:aws:iam::123456789012:mfa/test
7
7
  region = us-west-1
8
- source_profile = default
8
+ source_profile = test-credentials
data/spec/spec_helper.rb CHANGED
@@ -13,10 +13,14 @@
13
13
  # limitations under the License.
14
14
 
15
15
  require 'simplecov'
16
+ require 'codecov'
16
17
  SimpleCov.start do
17
18
  add_filter '/vendor/'
19
+ add_filter '/spec/'
18
20
  end
19
21
 
22
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov if ENV['CI'] == 'true'
23
+
20
24
  require 'aws-sdk'
21
25
 
22
26
  RSpec.configure do |config|
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_runas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Marchesi
@@ -31,7 +31,7 @@ cert_chain:
31
31
  reriQxVYXGlD8ZDuaKlDyVqUbF026ZHIlHKIgg90O037qFPxCBACTtxtYTP2hwug
32
32
  Yis=
33
33
  -----END CERTIFICATE-----
34
- date: 2015-11-24 00:00:00.000000000 Z
34
+ date: 2015-11-25 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: aws-sdk
@@ -39,84 +39,98 @@ dependencies:
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 2.2.1
42
+ version: '2.2'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: 2.2.1
49
+ version: '2.2'
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: inifile
52
52
  requirement: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: 3.0.0
56
+ version: '3.0'
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: 3.0.0
63
+ version: '3.0'
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: trollop
66
66
  requirement: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: 2.1.2
70
+ version: '2.1'
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: 2.1.2
77
+ version: '2.1'
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: rake
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: 10.4.2
84
+ version: '10.4'
85
85
  type: :development
86
86
  prerelease: false
87
87
  version_requirements: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - "~>"
90
90
  - !ruby/object:Gem::Version
91
- version: 10.4.2
91
+ version: '10.4'
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: rspec
94
94
  requirement: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - "~>"
97
97
  - !ruby/object:Gem::Version
98
- version: 3.4.0
98
+ version: '3.4'
99
99
  type: :development
100
100
  prerelease: false
101
101
  version_requirements: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - "~>"
104
104
  - !ruby/object:Gem::Version
105
- version: 3.4.0
105
+ version: '3.4'
106
106
  - !ruby/object:Gem::Dependency
107
107
  name: simplecov
108
108
  requirement: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - "~>"
111
111
  - !ruby/object:Gem::Version
112
- version: 0.10.0
112
+ version: '0.10'
113
113
  type: :development
114
114
  prerelease: false
115
115
  version_requirements: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - "~>"
118
118
  - !ruby/object:Gem::Version
119
- version: 0.10.0
119
+ version: '0.10'
120
+ - !ruby/object:Gem::Dependency
121
+ name: codecov
122
+ requirement: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: '0.1'
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '0.1'
120
134
  description: Run a command or shell under an assumed AWS IAM role
121
135
  email:
122
136
  - chrism@vancluevertech.com
@@ -128,6 +142,7 @@ files:
128
142
  - ".gitignore"
129
143
  - ".rubocop.yml"
130
144
  - ".travis.yml"
145
+ - CHANGELOG.md
131
146
  - Gemfile
132
147
  - LICENSE
133
148
  - README.md
@@ -158,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
173
  requirements:
159
174
  - - ">="
160
175
  - !ruby/object:Gem::Version
161
- version: 2.1.7
176
+ version: '2.1'
162
177
  required_rubygems_version: !ruby/object:Gem::Requirement
163
178
  requirements:
164
179
  - - ">="
metadata.gz.sig CHANGED
Binary file