hermod 3.0.0 → 3.2.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 +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/dependabot.yml +11 -0
- data/.github/workflows/actionlint.yml +58 -0
- data/.github/workflows/freeagent-gem.yml +17 -48
- data/.github/workflows/tests.yml +17 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +10 -0
- data/Gemfile +3 -3
- data/README.md +4 -0
- data/hermod.gemspec +7 -7
- data/lib/hermod/version.rb +1 -1
- metadata +24 -18
- data/.github/workflows/reviewdog.yml +0 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 302360031558c04da583c3848285d0e8bdf06c78ae0c2043b8acee1c1956e949
|
|
4
|
+
data.tar.gz: a3d411386728d0a9535502027f17fcf068d3c144b5918ad6ce26f0f3d1568864
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3cb736cc90afdbab08345354f8b4ffab923488f9208dfeb417382cb91bb14590b9532aa4638c0683950ee8702234569f56e81e6b9fa7775d4a1e18404b7d790b
|
|
7
|
+
data.tar.gz: d97888ab601cd78634837481260da4cae48f437ce7388d8ead4359b3b418260423d895833c1b625b095f91a4f1033e7ace0171f08000a55b65c9c82527553220
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
**/* @fac/tax-engineering
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "bundler" # See documentation for possible values
|
|
9
|
+
directory: "/" # Location of package manifests
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "weekly"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Duplicated from: https://github.com/fac/shared-workflows/blob/main/.github/workflows/actionlint.yml
|
|
2
|
+
# Using this public repo as a de facto public mirror for the shared workflow
|
|
3
|
+
|
|
4
|
+
name: Lint workflow files
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
paths:
|
|
9
|
+
- '.github/workflows/*.yml'
|
|
10
|
+
- '.github/workflows/*.yaml'
|
|
11
|
+
pull_request:
|
|
12
|
+
types:
|
|
13
|
+
- opened
|
|
14
|
+
- reopened
|
|
15
|
+
- synchronize
|
|
16
|
+
paths:
|
|
17
|
+
- '.github/workflows/*.yml'
|
|
18
|
+
- '.github/workflows/*.yaml'
|
|
19
|
+
workflow_call:
|
|
20
|
+
|
|
21
|
+
permissions:
|
|
22
|
+
pull-requests: write
|
|
23
|
+
contents: read
|
|
24
|
+
|
|
25
|
+
env:
|
|
26
|
+
REVIEWDOG_REPORTER: ${{ github.event_name == 'pull_request' && 'github-pr-review' || 'github-check' }}
|
|
27
|
+
|
|
28
|
+
jobs:
|
|
29
|
+
actionlint:
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
steps:
|
|
32
|
+
- name: Find PR
|
|
33
|
+
if: ${{ ! contains(env.REVIEWDOG_REPORTER, 'pr') }}
|
|
34
|
+
id: pr
|
|
35
|
+
env:
|
|
36
|
+
GH_TOKEN: ${{ secrets.github_token }}
|
|
37
|
+
run: |
|
|
38
|
+
pr_number="$(gh api graphql -f query='{
|
|
39
|
+
repository(name:"${{ github.event.repository.name }}", owner:"${{ github.repository_owner }}") {
|
|
40
|
+
object(oid:"${{ github.sha }}") {
|
|
41
|
+
... on Commit {
|
|
42
|
+
associatedPullRequests(first:1) {
|
|
43
|
+
nodes {
|
|
44
|
+
number
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}' --jq '.data.repository.object.associatedPullRequests.nodes[].number')"
|
|
51
|
+
echo "number=$pr_number" >> "$GITHUB_OUTPUT"
|
|
52
|
+
|
|
53
|
+
- uses: actions/checkout@v3
|
|
54
|
+
- uses: reviewdog/action-actionlint@v1.37.1
|
|
55
|
+
if: ${{ ! steps.pr.outputs.number }}
|
|
56
|
+
with:
|
|
57
|
+
fail_on_error: true
|
|
58
|
+
reporter: ${{ env.REVIEWDOG_REPORTER }}
|
|
@@ -1,58 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# https://www.notion.so/freeagent/Internal-gems-5c8098501fcc48e4921be31aa9b4d495
|
|
4
|
-
name: FreeAgent Gem
|
|
1
|
+
name: Release Gem
|
|
2
|
+
|
|
5
3
|
on:
|
|
6
4
|
push:
|
|
7
|
-
branches:
|
|
8
|
-
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
paths:
|
|
8
|
+
- "lib/hermod/version.rb"
|
|
9
9
|
|
|
10
10
|
jobs:
|
|
11
|
-
# Install the bundle and run the gems test suite.
|
|
12
|
-
tests:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v2
|
|
17
|
-
- uses: ruby/setup-ruby@v1 # .ruby-version
|
|
18
|
-
with:
|
|
19
|
-
bundler-cache: true # bundle install
|
|
20
|
-
|
|
21
|
-
- name: Test
|
|
22
|
-
run: bundle exec rake
|
|
23
|
-
|
|
24
|
-
# Builds that pass testing above, will trigger a build and push of the new
|
|
25
|
-
# gem version to the registry. If the version.rb has not been bumped since
|
|
26
|
-
# the last release, the push will no-op.
|
|
27
11
|
release:
|
|
28
|
-
needs: tests
|
|
29
12
|
runs-on: ubuntu-latest
|
|
30
13
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
user: ""
|
|
35
|
-
key: rubygems
|
|
36
|
-
token: ${{ secrets.FAC_RUBYGEMS_KEY }}
|
|
14
|
+
permissions:
|
|
15
|
+
id-token: write
|
|
16
|
+
contents: write
|
|
37
17
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- run: bundle exec rake build
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
- uses: ruby/setup-ruby@v1
|
|
21
|
+
with:
|
|
22
|
+
bundler-cache: true
|
|
44
23
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if: github.ref == 'refs/heads/master'
|
|
48
|
-
uses: fac/ruby-gem-push-action@v2
|
|
49
|
-
with:
|
|
50
|
-
key: rubygems
|
|
24
|
+
- name: Test
|
|
25
|
+
run: bundle exec rake
|
|
51
26
|
|
|
52
|
-
|
|
53
|
-
- name: Pre-Release
|
|
54
|
-
if: github.ref != 'refs/heads/master'
|
|
55
|
-
uses: fac/ruby-gem-push-action@v2
|
|
56
|
-
with:
|
|
57
|
-
key: rubygems
|
|
58
|
-
pre-release: true
|
|
27
|
+
- uses: rubygems/release-gem@v1
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.1
|
|
1
|
+
3.4.1
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.2.0] - 2025-02-10
|
|
11
|
+
### Changed
|
|
12
|
+
- Bumped minimum ruby version to 3.4.1
|
|
13
|
+
- Updated bundler version to 2.6.2
|
|
14
|
+
|
|
15
|
+
## [3.1.0] - 2025-01-03
|
|
16
|
+
### Changed
|
|
17
|
+
- Bumped minimum ruby requirement from 2.5 to 3.0
|
|
18
|
+
- Updated nokogiri, rake, libxml-ruby, guard, prydoc, pry-byebug versions
|
|
19
|
+
|
|
10
20
|
## [3.0.0] - 2023-04-19
|
|
11
21
|
### Removed
|
|
12
22
|
- Removed support for Ruby 2.0 - 2.4, minimum supported version is now 2.5
|
data/Gemfile
CHANGED
|
@@ -4,8 +4,8 @@ source 'https://rubygems.org'
|
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
6
|
group :test do
|
|
7
|
-
gem "guard", "~> 2.
|
|
7
|
+
gem "guard", "~> 2.19.0"
|
|
8
8
|
gem "guard-minitest", "~> 2.4.6"
|
|
9
|
-
gem "pry-byebug", "~> 3.
|
|
10
|
-
gem "pry-doc", "~> 1.
|
|
9
|
+
gem "pry-byebug", "~> 3.10.1"
|
|
10
|
+
gem "pry-doc", "~> 1.5.0"
|
|
11
11
|
end
|
data/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
[](https://sonarcloud.io/summary/new_code?id=fac_hermod)
|
|
2
|
+
[](https://sonarcloud.io/summary/new_code?id=fac_hermod)
|
|
3
|
+
[](https://sonarcloud.io/summary/new_code?id=fac_hermod)
|
|
4
|
+
|
|
1
5
|
# Hermod
|
|
2
6
|
|
|
3
7
|
[](https://github.com/fac/hermod/actions/workflows/freeagent-gem.yml)
|
data/hermod.gemspec
CHANGED
|
@@ -6,8 +6,8 @@ require 'hermod/version'
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "hermod"
|
|
8
8
|
spec.version = Hermod::VERSION
|
|
9
|
-
spec.authors = ["
|
|
10
|
-
spec.email = ["
|
|
9
|
+
spec.authors = ["FreeAgent"]
|
|
10
|
+
spec.email = ["opensource@freeagent.com"]
|
|
11
11
|
spec.summary = %q{A Ruby library for talking to the HMRC Government Gateway.}
|
|
12
12
|
spec.description = %q{A Ruby library for talking to the HMRC Government Gateway.
|
|
13
13
|
This provides a builder for creating classes that can generate the XML needed complete with type information and
|
|
@@ -20,16 +20,16 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
21
21
|
spec.require_paths = ["lib"]
|
|
22
22
|
|
|
23
|
-
spec.required_ruby_version = ">=
|
|
23
|
+
spec.required_ruby_version = ">= 3.0"
|
|
24
24
|
|
|
25
|
-
spec.add_runtime_dependency "libxml-ruby", "~>
|
|
25
|
+
spec.add_runtime_dependency "libxml-ruby", "~> 5.0.3"
|
|
26
26
|
spec.add_runtime_dependency "activesupport", "> 3.2"
|
|
27
27
|
|
|
28
|
-
spec.add_development_dependency "bundler", "~> 2.
|
|
29
|
-
spec.add_development_dependency "rake", "~> 13.
|
|
28
|
+
spec.add_development_dependency "bundler", "~> 2.6", ">= 2.6.2"
|
|
29
|
+
spec.add_development_dependency "rake", "~> 13.2"
|
|
30
30
|
spec.add_development_dependency "minitest", "~> 5.15"
|
|
31
31
|
spec.add_development_dependency "minitest-reporters", "~> 1.6"
|
|
32
|
-
spec.add_development_dependency "nokogiri", "~> 1.
|
|
32
|
+
spec.add_development_dependency "nokogiri", "~> 1.16"
|
|
33
33
|
|
|
34
34
|
spec.metadata = {
|
|
35
35
|
"allowed_push_host" => "https://rubygems.org",
|
data/lib/hermod/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hermod
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
8
|
-
autorequire:
|
|
7
|
+
- FreeAgent
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2025-02-10 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: libxml-ruby
|
|
@@ -16,14 +15,14 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
18
|
+
version: 5.0.3
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
25
|
+
version: 5.0.3
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: activesupport
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -44,28 +43,34 @@ dependencies:
|
|
|
44
43
|
requirements:
|
|
45
44
|
- - "~>"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '2.
|
|
46
|
+
version: '2.6'
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: 2.6.2
|
|
48
50
|
type: :development
|
|
49
51
|
prerelease: false
|
|
50
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
53
|
requirements:
|
|
52
54
|
- - "~>"
|
|
53
55
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '2.
|
|
56
|
+
version: '2.6'
|
|
57
|
+
- - ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: 2.6.2
|
|
55
60
|
- !ruby/object:Gem::Dependency
|
|
56
61
|
name: rake
|
|
57
62
|
requirement: !ruby/object:Gem::Requirement
|
|
58
63
|
requirements:
|
|
59
64
|
- - "~>"
|
|
60
65
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 13.
|
|
66
|
+
version: '13.2'
|
|
62
67
|
type: :development
|
|
63
68
|
prerelease: false
|
|
64
69
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
70
|
requirements:
|
|
66
71
|
- - "~>"
|
|
67
72
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 13.
|
|
73
|
+
version: '13.2'
|
|
69
74
|
- !ruby/object:Gem::Dependency
|
|
70
75
|
name: minitest
|
|
71
76
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -100,26 +105,29 @@ dependencies:
|
|
|
100
105
|
requirements:
|
|
101
106
|
- - "~>"
|
|
102
107
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '1.
|
|
108
|
+
version: '1.16'
|
|
104
109
|
type: :development
|
|
105
110
|
prerelease: false
|
|
106
111
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
112
|
requirements:
|
|
108
113
|
- - "~>"
|
|
109
114
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '1.
|
|
115
|
+
version: '1.16'
|
|
111
116
|
description: |-
|
|
112
117
|
A Ruby library for talking to the HMRC Government Gateway.
|
|
113
118
|
This provides a builder for creating classes that can generate the XML needed complete with type information and
|
|
114
119
|
runtime validation.
|
|
115
120
|
email:
|
|
116
|
-
-
|
|
121
|
+
- opensource@freeagent.com
|
|
117
122
|
executables: []
|
|
118
123
|
extensions: []
|
|
119
124
|
extra_rdoc_files: []
|
|
120
125
|
files:
|
|
126
|
+
- ".github/CODEOWNERS"
|
|
127
|
+
- ".github/dependabot.yml"
|
|
128
|
+
- ".github/workflows/actionlint.yml"
|
|
121
129
|
- ".github/workflows/freeagent-gem.yml"
|
|
122
|
-
- ".github/workflows/
|
|
130
|
+
- ".github/workflows/tests.yml"
|
|
123
131
|
- ".gitignore"
|
|
124
132
|
- ".ruby-version"
|
|
125
133
|
- CHANGELOG.md
|
|
@@ -176,7 +184,6 @@ metadata:
|
|
|
176
184
|
changelog_uri: https://github.com/fac/hermod/blob/master/CHANGELOG.md
|
|
177
185
|
source_code_uri: https://github.com/fac/hermod
|
|
178
186
|
wiki_uri: https://github.com/fac/hermod/blob/master/README.md
|
|
179
|
-
post_install_message:
|
|
180
187
|
rdoc_options: []
|
|
181
188
|
require_paths:
|
|
182
189
|
- lib
|
|
@@ -184,15 +191,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
184
191
|
requirements:
|
|
185
192
|
- - ">="
|
|
186
193
|
- !ruby/object:Gem::Version
|
|
187
|
-
version: '
|
|
194
|
+
version: '3.0'
|
|
188
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
196
|
requirements:
|
|
190
197
|
- - ">="
|
|
191
198
|
- !ruby/object:Gem::Version
|
|
192
199
|
version: '0'
|
|
193
200
|
requirements: []
|
|
194
|
-
rubygems_version: 3.
|
|
195
|
-
signing_key:
|
|
201
|
+
rubygems_version: 3.6.2
|
|
196
202
|
specification_version: 4
|
|
197
203
|
summary: A Ruby library for talking to the HMRC Government Gateway.
|
|
198
204
|
test_files:
|
|
@@ -1,13 +0,0 @@
|
|
|
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@v3
|
|
9
|
-
- name: actionlint
|
|
10
|
-
uses: reviewdog/action-actionlint@v1
|
|
11
|
-
with:
|
|
12
|
-
fail_on_error: true
|
|
13
|
-
reporter: github-pr-review
|