fa-harness-tools 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51253c635049f814f42fcac831fd937ed713254a29547cf5915fc2861848a52e
4
- data.tar.gz: ed786f440ef207a1f2d6b4c920d82f673c1726c81571f4d0cec692f02a2c42a4
3
+ metadata.gz: ab0431cf2bbd5ebb8988790fd5336b93e11880d6fa3be07d1c580192d9a9aca3
4
+ data.tar.gz: 729256cfb4d548df271c156ef1ae60486c379fe40cee2d38cb4ef0c792283b0d
5
5
  SHA512:
6
- metadata.gz: 3cb5bc18ffb6355a629de71c8220f851e12a85814e59549f8cfd7b259d4425d4422f81e0d85dc2e80e05e9fa76c5d5b3dfb12fe161fc61a9b87550dbd61300af
7
- data.tar.gz: 73877cc9224058d573a41b3ab1b34e67d0fe8bbf06c17a408b37f646d552d7b627fab219d2b042654297b9ccb9dae09fbc4f1d833a6fae3e798b3603970fc320
6
+ metadata.gz: 86068a39f783c7f91754cd3a116e5bcef456b03c33f71b066e86203d6c1c3ba52766c63a6af36a5b63890e8e062db5f0fce5fad6ff0e6a732297f9d39824c363
7
+ data.tar.gz: 60a571e75deb4f9c828ec3dbec4993eab017ea4f11f99afb7ed97430e3f933ab4605d6df7334963969985b086288068caf385278c91d48a58b11df4bf6c68884
@@ -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.2.0
11
+ with:
12
+ fail_on_error: true
13
+ reporter: github-pr-review
@@ -1,20 +1,43 @@
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 2.5
12
+ uses: actions/setup-ruby@v1
13
+
14
+ - name: Build and test with Rake
15
+ run: |
16
+ gem install bundler -v 1.16.4
17
+ bundle install --jobs 4 --retry 3
18
+ bundle exec rake
7
19
 
20
+ release:
21
+ needs: test
8
22
  runs-on: ubuntu-latest
23
+ if: ${{ github.ref == 'refs/heads/master' }}
9
24
 
10
25
  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
26
+ - uses: actions/checkout@v2
27
+ - uses: ruby/setup-ruby@v1 # .ruby-version
28
+ with:
29
+ bundler-cache: true # bundle install
30
+
31
+ - run: bundle exec rake build
32
+
33
+ - uses: fac/ruby-gem-setup-credentials-action@v2
34
+ with:
35
+ user: ""
36
+ key: rubygems
37
+ token: ${{ secrets.FAC_RUBYGEMS_KEY }}
38
+
39
+ - uses: fac/ruby-gem-push-action@v2
40
+ with:
41
+ user: ""
42
+ key: rubygems
43
+ token: ${{ secrets.FAC_RUBYGEMS_KEY }}
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.0)
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,14 +61,15 @@ 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
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.
@@ -1,3 +1,3 @@
1
1
  module FaHarnessTools
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
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.0
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: 2021-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -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: