openstax_aws 1.6.1 → 2.0.1

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: 191d214c52384a2d517e840e417e21b730d2fed201b5741219e936bc8976f065
4
- data.tar.gz: 7100a155891a0bdc2bc54094b5765b840857d0fd9e15b5de31722e3ffde845ab
3
+ metadata.gz: f6d703aebb57c8bd0392990c3a413bdebe5a6f04b69bfa9365066ce3030e5794
4
+ data.tar.gz: 8e6d2cf503cc05da15d96fa3f68fe625255cdc211688a078f6ce186485dbcf96
5
5
  SHA512:
6
- metadata.gz: 7e70e666b69fc7406ab03ee49f0ea292e8c1f5edf52e1d6a887acc93b6b8fecbb7754232920ee0060e869b435279b4c82cfb5d486574651ba21f69338565ecaf
7
- data.tar.gz: 9e21262c80f9a98751283c692dbd41b7eef7b95de3bff6a5553766d5f9033b45287e96f5f1959a95208115303fd76eb36e05fbcc7160abe24fba9b4ffc361d30
6
+ metadata.gz: 1f411b29829f48ee35cb2b4c28be8ef871bc63b1ecbe623ee274fd7a510f6bd7d222b1ebeaa9ded24a54f35b35de8a1807deb0c79784109cbd1faa93a1e80ab6
7
+ data.tar.gz: ed725aebf0eff6889c629da30094fc1bb1c7feb8674d8352122bf8d9fad512475a5bbee2ebb4a245a66169cb8d7b3708800ee64667836b75dde58667cdaa9911
@@ -4,28 +4,18 @@ on:
4
4
  pull_request:
5
5
  push:
6
6
  branches:
7
- - master
7
+ - main
8
8
 
9
9
  jobs:
10
10
  tests:
11
11
  timeout-minutes: 10
12
- runs-on: ubuntu-18.04
12
+ runs-on: ubuntu-22.04
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v2
16
- - uses: actions/setup-ruby@v1
16
+ - uses: ruby/setup-ruby@v1
17
17
  with:
18
- ruby-version: 2.6
19
- - uses: actions/cache@v2
20
- with:
21
- path: vendor/bundle
22
- key: ${{ runner.os }}-gems-pr-${{ hashFiles('**/Gemfile.lock') }}
23
- restore-keys: |
24
- ${{ runner.os }}-gems-pr-
18
+ ruby-version: 3.1
19
+ bundler-cache: true
25
20
  - name: Test
26
- run: |
27
- gem install bundler --force --no-document --version 2.1.4
28
- bundle config path vendor/bundle
29
- bundle config jobs 2
30
- bundle install
31
- bundle exec rspec
21
+ run: bundle exec rspec
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Aws
3
- VERSION = "1.6.1"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
data/lib/openstax_aws.rb CHANGED
@@ -27,9 +27,16 @@ module OpenStax
27
27
  begin
28
28
  ::Aws::S3::Client.new(region: configuration.cfn_template_bucket_region)
29
29
  .head_bucket(bucket: configuration.cfn_template_bucket_name)
30
- rescue ::Aws::S3::Errors::Forbidden => ee
31
- raise "The provided AWS credentials cannot access the template bucket. Please " \
32
- "verify that you are using the correct credentials for the targeted AWS account."
30
+ rescue ::Aws::S3::Errors::Forbidden
31
+ # If get_caller_identity throws, that is fine, we get a nice error message from it
32
+ id = ::Aws::STS::Client.new(
33
+ region: configuration.cfn_template_bucket_region
34
+ ).get_caller_identity
35
+
36
+ raise "Your current role or user, \"#{id.arn}\", cannot access the CFN template bucket \"#{
37
+ configuration.cfn_template_bucket_name}\" in the \"#{
38
+ configuration.cfn_template_bucket_region}\" region. " \
39
+ "Please verify that you are using the correct role and account."
33
40
  end
34
41
  end
35
42
 
data/openstax_aws.gemspec CHANGED
@@ -40,15 +40,16 @@ Gem::Specification.new do |spec|
40
40
  spec.add_dependency "aws-sdk-s3", "~> 1"
41
41
  spec.add_dependency "aws-sdk-ssm", "~> 1"
42
42
 
43
- spec.add_dependency 'git'
44
43
  spec.add_dependency "activesupport"
44
+ spec.add_dependency "git"
45
+ spec.add_dependency "ox"
45
46
 
46
47
  spec.add_development_dependency "bundler"
47
48
  spec.add_development_dependency "rake", "~> 13.0"
48
49
  spec.add_development_dependency "rspec", "~> 3.0"
49
50
  spec.add_development_dependency "byebug"
50
51
  spec.add_development_dependency "awesome_print"
51
- spec.add_development_dependency "vcr"
52
+ spec.add_development_dependency "vcr", ">= 6.1"
52
53
  spec.add_development_dependency "webmock"
53
54
  spec.add_development_dependency "dotenv"
54
55
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-autoscaling
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '1'
153
+ - !ruby/object:Gem::Dependency
154
+ name: activesupport
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: git
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +179,7 @@ dependencies:
165
179
  - !ruby/object:Gem::Version
166
180
  version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
- name: activesupport
182
+ name: ox
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - ">="
@@ -254,14 +268,14 @@ dependencies:
254
268
  requirements:
255
269
  - - ">="
256
270
  - !ruby/object:Gem::Version
257
- version: '0'
271
+ version: '6.1'
258
272
  type: :development
259
273
  prerelease: false
260
274
  version_requirements: !ruby/object:Gem::Requirement
261
275
  requirements:
262
276
  - - ">="
263
277
  - !ruby/object:Gem::Version
264
- version: '0'
278
+ version: '6.1'
265
279
  - !ruby/object:Gem::Dependency
266
280
  name: webmock
267
281
  requirement: !ruby/object:Gem::Requirement
@@ -373,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
373
387
  - !ruby/object:Gem::Version
374
388
  version: '0'
375
389
  requirements: []
376
- rubygems_version: 3.1.4
390
+ rubygems_version: 3.1.6
377
391
  signing_key:
378
392
  specification_version: 4
379
393
  summary: openstax IaC