egads 5.1.1 → 5.2.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: 8348c5aca63c2325a8095c5fdda6e8c85b44641e04d447554d80a40b566d5101
4
- data.tar.gz: 5b55d42a36076dccae4843a921f19f746838ff1803516ce36592321cd537b184
3
+ metadata.gz: '09258b7cad1e80200b4a8b3d6d47efffb9111f4fbe98ad5891d282db31f80e32'
4
+ data.tar.gz: ecded76960e9067e64730e6f2289635622a658b13d2ec8cd1c6a61b733882a20
5
5
  SHA512:
6
- metadata.gz: 36a66fa1bd1420bca04a1ff0863da5cf779f81363131de3c20017c7e12cb8aa19fd4ebfc3167cc7f8abe4a224c76595cbdf7aeb4124641ab1113be235ff53498
7
- data.tar.gz: d14ca2674e18202225343602e8efc30164998edfb5a5e2fa8996518624f1ce5a7da03261d0535d3928e6d6ba0bfbb96942ca7c7c0382512fb194ce4d8851a65e
6
+ metadata.gz: 9493f4ce2b5c34b24f3422a8aa076b7a77816b00db3140de4d0aea6c3f1c8b5e8ba71d349037980b309e530502b55e9211b32fc06275a61bf0bd9fea31eb7468
7
+ data.tar.gz: e9b3ed9c711f7b0f01e45cc2ffa8310e83a6747b20ab6f3edbdd656c9efba420c19722c9bdd4044531fd24ab39387f0dd923b8cddb00a9ab98b4bffcdf2f0462
@@ -1,19 +1,18 @@
1
1
  name: Setup RubyGems
2
2
  description: Setup RubyGems credentials
3
3
  inputs:
4
- rubygems_api_key:
4
+ api-key:
5
5
  description: RubyGems API key
6
6
  required: true
7
7
  runs:
8
8
  using: composite
9
9
  steps:
10
- - run: mkdir -p ~/.gem
10
+ - name: setup rubygems
11
11
  shell: bash
12
- - run: |
12
+ run: |
13
+ mkdir -p ~/.gem
13
14
  cat <<-YAML > ~/.gem/credentials
14
15
  ---
15
- :rubygems_api_key: ${{ inputs.rubygems_api_key }}
16
+ :rubygems_api_key: ${{ inputs.api-key }}
16
17
  YAML
17
- shell: bash
18
- - run: chmod 0600 ~/.gem/credentials
19
- shell: bash
18
+ chmod 0600 ~/.gem/credentials
@@ -2,6 +2,15 @@ name: Test and Release
2
2
  on:
3
3
  pull_request:
4
4
  push:
5
+ paths:
6
+ - .github/**
7
+ - bin/**
8
+ - lib/**
9
+ - spec/**
10
+ - Gemfile
11
+ - Guardfile
12
+ - Rakefile
13
+ - egads.gemspec
5
14
  release:
6
15
  types:
7
16
  - published
@@ -12,11 +21,10 @@ jobs:
12
21
  strategy:
13
22
  matrix:
14
23
  ruby-version:
15
- - "2.7"
16
- - "3.1"
17
24
  - "3.2"
25
+ - "3.3"
18
26
  steps:
19
- - uses: actions/checkout@v3
27
+ - uses: actions/checkout@v4
20
28
  - uses: ruby/setup-ruby@v1
21
29
  with:
22
30
  ruby-version: ${{ matrix.ruby-version }}
@@ -29,12 +37,12 @@ jobs:
29
37
  - test
30
38
  runs-on: ubuntu-latest
31
39
  steps:
32
- - uses: actions/checkout@v3
40
+ - uses: actions/checkout@v4
33
41
  - uses: ruby/setup-ruby@v1
34
42
  with:
35
- ruby-version: "3.2"
43
+ ruby-version: "3.3"
36
44
  - uses: ./.github/actions/setup-rubygems
37
45
  with:
38
- rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
46
+ api-key: ${{ secrets.RUBYGEMS_API_KEY }}
39
47
  - run: bundle install
40
48
  - run: bundle exec rake gem:push
data/egads.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.rdoc_options = ["--charset=UTF-8"]
20
20
 
21
21
  s.add_dependency "aws-sdk-s3", '~> 1.0'
22
- s.add_dependency "rexml" # required for Ruby 3+
22
+ s.add_dependency "rexml", ">= 3.3.4" # required for Ruby 3+
23
23
  s.add_dependency "thor"
24
24
 
25
25
  s.add_development_dependency "rake"
@@ -3,6 +3,7 @@ module Egads
3
3
  include Thor::Actions
4
4
 
5
5
  desc "[remote, plumbing] Downloads tarball for SHA from S3 and extracts it to the filesystem"
6
+ class_option :deployment_id, type: :string, default: nil, banner: 'Append suffix to release directory'
6
7
  class_option :force, type: :boolean, aliases: '-f', default: false, banner: "Overwrite existing files"
7
8
  argument :sha, type: :string, required: true, desc: 'git SHA to download and extract'
8
9
 
@@ -89,7 +90,8 @@ module Egads
89
90
 
90
91
  # Directory created upon successful extraction
91
92
  def release_dir
92
- RemoteConfig.release_dir(sha)
93
+ suffix = options[:deployment_id] ? "_#{options[:deployment_id]}" : ''
94
+ RemoteConfig.release_dir(sha) + suffix
93
95
  end
94
96
 
95
97
  # Directory where in-progress extraction occurs
@@ -3,6 +3,7 @@ module Egads
3
3
  include Thor::Actions
4
4
 
5
5
  desc "[remote] Symlinks SHA to current and restarts services. If needed, stages SHA"
6
+ class_option :deployment_id, type: :string, default: nil, banner: 'Append suffix to release directory'
6
7
  class_option :force, type: :boolean, default: false, banner: "Overwrite existing release"
7
8
  argument :sha, type: :string, required: true, desc: 'git SHA to stage'
8
9
  def setup_environment
@@ -44,8 +45,10 @@ module Egads
44
45
  end
45
46
 
46
47
  protected
48
+
47
49
  def dir
48
- RemoteConfig.release_dir(sha)
50
+ suffix = options[:deployment_id] ? "_#{options[:deployment_id]}" : ''
51
+ RemoteConfig.release_dir(sha) + suffix
49
52
  end
50
53
 
51
54
  def release_to
@@ -2,8 +2,8 @@ module Egads
2
2
  class Stage < Group
3
3
  include Thor::Actions
4
4
 
5
-
6
5
  desc "[remote] Readies SHA for release. If needed, generates URL for SHA and extracts"
6
+ class_option :deployment_id, type: :string, default: nil, banner: 'Append suffix to release directory'
7
7
  class_option :force, type: :boolean, default: false, banner: "Overwrite existing files"
8
8
  argument :sha, type: :string, required: true, desc: 'git SHA to stage'
9
9
 
@@ -57,8 +57,10 @@ module Egads
57
57
  end
58
58
 
59
59
  protected
60
+
60
61
  def dir
61
- RemoteConfig.release_dir(sha)
62
+ suffix = options[:deployment_id] ? "_#{options[:deployment_id]}" : ''
63
+ RemoteConfig.release_dir(sha) + suffix
62
64
  end
63
65
 
64
66
  def stage_flag_path
data/lib/egads/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Egads
2
- VERSION = '5.1.1'
2
+ VERSION = '5.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egads
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Suggs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-08 00:00:00.000000000 Z
11
+ date: 2024-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 3.3.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 3.3.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -92,7 +92,6 @@ extra_rdoc_files:
92
92
  - README.md
93
93
  files:
94
94
  - ".github/actions/setup-rubygems/action.yml"
95
- - ".github/actions/test/action.yml"
96
95
  - ".github/workflows/test-release.yml"
97
96
  - ".gitignore"
98
97
  - Gemfile
@@ -150,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
149
  - !ruby/object:Gem::Version
151
150
  version: '0'
152
151
  requirements: []
153
- rubygems_version: 3.4.10
152
+ rubygems_version: 3.5.16
154
153
  signing_key:
155
154
  specification_version: 4
156
155
  summary: Extensible Git Archive Deploy Strategy
@@ -1,15 +0,0 @@
1
- name: Test
2
- description: Run tests
3
- inputs:
4
- activesupport-version:
5
- description: ActiveSupport version constraint
6
- required: true
7
- runs:
8
- using: composite
9
- steps:
10
- - run: bundle add activesupport -v '${{ inputs.activesupport-version }}'
11
- shell: bash
12
- - run: bundle install
13
- shell: bash
14
- - run: bundle exec rake
15
- shell: bash