openstax_aws 1.6.0 → 2.0.0

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: d7ed7cb99a4131a436325e8766d03f6a62accbd62a700a6238a0a6278ae1e6e5
4
- data.tar.gz: 46f26ea0c266cf1c1ca1b0cf7c5307848bf8be3c5097c7fe16472a1fe3115f81
3
+ metadata.gz: 375c4b62f3bd1ed25994dfb639f7233dee7c593bb8e07a67161d9de257e0732f
4
+ data.tar.gz: b7a84e86e1bf7b954a8700dc9c479069e5e0d4d75a565f8d00ee0d365f4141c5
5
5
  SHA512:
6
- metadata.gz: 1871bbb908ecbfb58eb782fae57f960cf1db1a066adf8003c14115756273656a51aa2c32e061bb8fcc6607fe06633fd6936b7d71da38c907d313aa9d5509ad8b
7
- data.tar.gz: 82108d04dde247454dfeafe8450a2bfed4ffe40d8d00c45dea2693501ae9693e7e77be618605cf3f49cb647bdb6cdf0b78e1cac71b37f3fe0fbe94543a1ffac8
6
+ metadata.gz: a82917718080f27c4cc1768444d2723ffb61ddb13764ab3087309ae0d8930a0edfe6c5db46f7391597919c425dd6c8eded1c2f738ca9cbcfd348e41606007d5c
7
+ data.tar.gz: d1c342c3e2043b8ae0cb4d1c936d73132676fb713b688bb759700ca34acd3504f8f7bcced088312e78744b10c7c2efe5621a8eddf528b04e917306c3d49bd475
@@ -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
@@ -19,8 +19,6 @@ module OpenStax
19
19
  )
20
20
  end
21
21
 
22
- deployment_sha ||= OpenStax::Aws::GitHelper.current_sha
23
-
24
22
  ami_name = "#{ami_name_base}@#{sha[0..6]} #{Time.now.utc.strftime("%y%m%d%H%MZ")}"
25
23
 
26
24
  @packer = OpenStax::Aws::PackerFactory.new_packer(
@@ -33,7 +31,7 @@ module OpenStax
33
31
  @packer.var("region", region)
34
32
  @packer.var("ami_name", ami_name)
35
33
  @packer.var("sha", sha)
36
- @packer.var("deployment_sha", deployment_sha)
34
+ @packer.var("deployment_sha", deployment_sha) unless deployment_sha.nil?
37
35
  @packer.var("playbook_file", playbook_absolute_file_path)
38
36
  @packer.var("ami_description", {
39
37
  sha: sha,
@@ -23,8 +23,9 @@ module OpenStax::Aws
23
23
  end
24
24
  end
25
25
 
26
- def self.current_sha
27
- ::Git.revparse('HEAD')
26
+ def self.local_repo_sha(path: nil)
27
+ path ||= Dir.pwd
28
+ ::Git.open(path).revparse('HEAD')
28
29
  end
29
30
  end
30
31
  end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Aws
3
- VERSION = "1.6.0"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
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.0
4
+ version: 2.0.0
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-01 00:00:00.000000000 Z
11
+ date: 2023-02-17 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