fa-harness-tools 1.2.0 → 1.3.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: 51253c635049f814f42fcac831fd937ed713254a29547cf5915fc2861848a52e
4
- data.tar.gz: ed786f440ef207a1f2d6b4c920d82f673c1726c81571f4d0cec692f02a2c42a4
3
+ metadata.gz: 5b079414af732f3b0085b679d22c09f3cd8d97b47a2188dcdd3bf184493d448a
4
+ data.tar.gz: 9601a92287a4977b73fbe1d1538ec849b6e955ccc7af6a146ef62983bf220dcd
5
5
  SHA512:
6
- metadata.gz: 3cb5bc18ffb6355a629de71c8220f851e12a85814e59549f8cfd7b259d4425d4422f81e0d85dc2e80e05e9fa76c5d5b3dfb12fe161fc61a9b87550dbd61300af
7
- data.tar.gz: 73877cc9224058d573a41b3ab1b34e67d0fe8bbf06c17a408b37f646d552d7b627fab219d2b042654297b9ccb9dae09fbc4f1d833a6fae3e798b3603970fc320
6
+ metadata.gz: 7952f3c4896ce382956f49eef7602ad6bdcacab6c791c951389d1efb4835777cd18df47a1abdba6038dc84e106d688560ab5f0a4277a00009b9cc9ce07ab2b0d
7
+ data.tar.gz: de3a126c09d6c42b9e0a9e5b356d29fd997d7e4f45dfab125981a794f3a7b2cf6b5efcc10611731594149afd9de1ab9ba6ecede77985bbdb312377ba0e134ddb
@@ -0,0 +1,13 @@
1
+ name: reviewdog
2
+ on: [pull_request]
3
+ jobs:
4
+ actionlint:
5
+ name: runner / actionlint
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v2
9
+ - name: actionlint
10
+ uses: reviewdog/action-actionlint@v1
11
+ with:
12
+ fail_on_error: true
13
+ reporter: github-pr-review
@@ -1,20 +1,42 @@
1
- name: Ruby
1
+ name: CICD
2
2
 
3
3
  on: [push, pull_request]
4
4
 
5
5
  jobs:
6
- build:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+
9
+ steps:
10
+ - uses: actions/checkout@v1
11
+ - name: Set up Ruby
12
+ uses: ruby/setup-ruby@v1
13
+
14
+ - name: Build and test with Rake
15
+ run: |
16
+ bundle install --jobs 4 --retry 3
17
+ bundle exec rake
7
18
 
19
+ release:
20
+ needs: test
8
21
  runs-on: ubuntu-latest
22
+ if: ${{ github.ref == 'refs/heads/master' }}
9
23
 
10
24
  steps:
11
- - uses: actions/checkout@v1
12
- - name: Set up Ruby 2.5
13
- uses: actions/setup-ruby@v1
14
- with:
15
- ruby-version: 2.5.x
16
- - name: Build and test with Rake
17
- run: |
18
- gem install bundler -v 1.16.4
19
- bundle install --jobs 4 --retry 3
20
- bundle exec rake
25
+ - uses: actions/checkout@v2
26
+ - uses: ruby/setup-ruby@v1 # .ruby-version
27
+ with:
28
+ bundler-cache: true # bundle install
29
+
30
+ - run: bundle exec rake build
31
+
32
+ - uses: fac/ruby-gem-setup-credentials-action@v2
33
+ with:
34
+ user: ""
35
+ key: rubygems
36
+ token: ${{ secrets.FAC_RUBYGEMS_KEY }}
37
+
38
+ - uses: fac/ruby-gem-push-action@v2
39
+ with:
40
+ user: ""
41
+ key: rubygems
42
+ token: ${{ secrets.FAC_RUBYGEMS_KEY }}
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.7.8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fa-harness-tools (1.2.0)
4
+ fa-harness-tools (1.3.1)
5
5
  fugit (~> 1.3)
6
6
  octokit (~> 4.0)
7
7
  pastel (~> 0.7)
@@ -11,27 +11,42 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- addressable (2.7.0)
14
+ addressable (2.8.0)
15
15
  public_suffix (>= 2.0.2, < 5.0)
16
- concurrent-ruby (1.1.6)
16
+ concurrent-ruby (1.1.9)
17
17
  diff-lcs (1.3)
18
- equatable (0.6.1)
19
- et-orbi (1.2.4)
18
+ et-orbi (1.2.5)
20
19
  tzinfo
21
- faraday (1.0.1)
20
+ faraday (1.8.0)
21
+ faraday-em_http (~> 1.0)
22
+ faraday-em_synchrony (~> 1.0)
23
+ faraday-excon (~> 1.1)
24
+ faraday-httpclient (~> 1.0.1)
25
+ faraday-net_http (~> 1.0)
26
+ faraday-net_http_persistent (~> 1.1)
27
+ faraday-patron (~> 1.0)
28
+ faraday-rack (~> 1.0)
22
29
  multipart-post (>= 1.2, < 3)
23
- fugit (1.3.5)
30
+ ruby2_keywords (>= 0.0.4)
31
+ faraday-em_http (1.0.0)
32
+ faraday-em_synchrony (1.0.0)
33
+ faraday-excon (1.1.0)
34
+ faraday-httpclient (1.0.1)
35
+ faraday-net_http (1.0.1)
36
+ faraday-net_http_persistent (1.2.0)
37
+ faraday-patron (1.0.0)
38
+ faraday-rack (1.0.0)
39
+ fugit (1.5.2)
24
40
  et-orbi (~> 1.1, >= 1.1.8)
25
- raabro (~> 1.1)
41
+ raabro (~> 1.4)
26
42
  multipart-post (2.1.1)
27
- octokit (4.18.0)
43
+ octokit (4.21.0)
28
44
  faraday (>= 0.9)
29
45
  sawyer (~> 0.8.0, >= 0.5.3)
30
- pastel (0.7.4)
31
- equatable (~> 0.6)
46
+ pastel (0.8.0)
32
47
  tty-color (~> 0.5)
33
- public_suffix (4.0.5)
34
- raabro (1.3.1)
48
+ public_suffix (4.0.6)
49
+ raabro (1.4.0)
35
50
  rake (13.0.1)
36
51
  rspec (3.9.0)
37
52
  rspec-core (~> 3.9.0)
@@ -46,25 +61,26 @@ GEM
46
61
  diff-lcs (>= 1.2.0, < 2.0)
47
62
  rspec-support (~> 3.9.0)
48
63
  rspec-support (3.9.0)
64
+ ruby2_keywords (0.0.5)
49
65
  sawyer (0.8.2)
50
66
  addressable (>= 2.3.5)
51
67
  faraday (> 0.8, < 2.0)
52
68
  timecop (0.9.1)
53
- tty-color (0.5.1)
54
- tzinfo (2.0.2)
69
+ tty-color (0.6.0)
70
+ tzinfo (2.0.4)
55
71
  concurrent-ruby (~> 1.0)
56
- tzinfo-data (1.2020.1)
72
+ tzinfo-data (1.2021.1)
57
73
  tzinfo (>= 1.0.0)
58
74
 
59
75
  PLATFORMS
60
76
  ruby
61
77
 
62
78
  DEPENDENCIES
63
- bundler (~> 1.0)
79
+ bundler (~> 2.3)
64
80
  fa-harness-tools!
65
81
  rake (~> 13.0)
66
82
  rspec (~> 3.8)
67
83
  timecop (~> 0.9)
68
84
 
69
85
  BUNDLED WITH
70
- 1.17.2
86
+ 2.4.10
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # fa-harness-tools
2
2
 
3
+ #### https://rubygems.org/gems/fa-harness-tools
4
+
3
5
  FreeAgent-specific pre-flight checks and tools that are designed to work in [Harness](https://harness.io).
4
6
 
5
7
  ## Installation
@@ -82,7 +84,9 @@ After checking out the repo, run `bin/setup` to install dependencies. You can al
82
84
 
83
85
  To install this gem onto your local machine, run `bundle exec rake install`.
84
86
 
85
- To release a new version, update the version number in `version.rb`, run `bundle` and commit the version bump. Then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
87
+ To release a new version, update the version number in `version.rb`. After your PR is merged to master, the CICD GitHub Action workflow will release to RubyGems automatically:
88
+ Gem is hosted publicly here:
89
+ https://rubygems.org/gems/fa-harness-tools
86
90
 
87
91
  The Ruby version used matches the one from the `harness/delegate` Docker image.
88
92
 
data/exe/check-schedule CHANGED
@@ -22,8 +22,7 @@ end.parse!
22
22
  def schedules(options)
23
23
  if options[:schedules].length == 0
24
24
  options[:schedules] = [
25
- "* 9-15 * * mon-thu",
26
- "* 9-11 * * fri",
25
+ "* 9-15 * * mon-fri",
27
26
  ]
28
27
  end
29
28
  options[:schedules].map { |schedule| FaHarnessTools::Schedule.new(schedule: schedule.to_s) }
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.metadata["homepage_uri"] = spec.homepage
17
17
  spec.metadata["source_code_uri"] = spec.homepage
18
18
  spec.metadata["changelog_uri"] = "https://github.com/fac/fa-harness-tools/releases"
19
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
19
20
 
20
21
  # Specify which files should be added to the gem when it is released.
21
22
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -32,7 +33,7 @@ Gem::Specification.new do |spec|
32
33
  spec.add_runtime_dependency "tzinfo-data", "~> 1.0"
33
34
  spec.add_runtime_dependency "fugit", "~> 1.3"
34
35
 
35
- spec.add_development_dependency "bundler", "~> 1.0"
36
+ spec.add_development_dependency "bundler", "~> 2.3"
36
37
  spec.add_development_dependency "rake", "~> 13.0"
37
38
  spec.add_development_dependency "rspec", "~> 3.8"
38
39
  spec.add_development_dependency "timecop", "~> 0.9"
@@ -1,3 +1,3 @@
1
1
  module FaHarnessTools
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fa-harness-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - FreeAgent
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-26 00:00:00.000000000 Z
11
+ date: 2023-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.0'
89
+ version: '2.3'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.0'
96
+ version: '2.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -149,6 +149,7 @@ executables:
149
149
  extensions: []
150
150
  extra_rdoc_files: []
151
151
  files:
152
+ - ".github/workflows/reviewdog.yml"
152
153
  - ".github/workflows/ruby.yml"
153
154
  - ".gitignore"
154
155
  - ".rspec"
@@ -188,6 +189,7 @@ metadata:
188
189
  homepage_uri: https://github.com/fac/fa-harness-tools
189
190
  source_code_uri: https://github.com/fac/fa-harness-tools
190
191
  changelog_uri: https://github.com/fac/fa-harness-tools/releases
192
+ allowed_push_host: https://rubygems.org
191
193
  post_install_message:
192
194
  rdoc_options: []
193
195
  require_paths:
@@ -203,8 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
205
  - !ruby/object:Gem::Version
204
206
  version: '0'
205
207
  requirements: []
206
- rubyforge_project:
207
- rubygems_version: 2.7.6
208
+ rubygems_version: 3.1.6
208
209
  signing_key:
209
210
  specification_version: 4
210
211
  summary: Tools including preflight checks for Harness.io