defra_ruby_govpay 1.0.0 → 1.0.2

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: 64bcc877234037364951bacc95c04b7b1b271cdc3c00dc5fba2580d400a80119
4
- data.tar.gz: 3337a1593262fb4fb8d4fca99ff7f08f3754dbc8062eb20af9e6dff618e9f6bd
3
+ metadata.gz: 7864631baaae149b487329392889e27cffdea8c1ac48ab82e94728a68786d99f
4
+ data.tar.gz: ce5c2fca8fc52b326465aebee8ff8a2d499f10851810481994e8d497e72f71d0
5
5
  SHA512:
6
- metadata.gz: 5f65a4b685d433c6fc3a294e3e191f55a269c88618da2e54a3b206c9b29c90428dcb9d7bcf3fe80d7674051ed4fea5081e6ad5026730d59cf92e5a2a486720b3
7
- data.tar.gz: 5876f1a42828f461d1e59dac18a8ea477981fbdec3830d2abb7244e83fc8fbbfe89a9acabceae56501e16386590258d416927b456d1f6d8b1149cc8010f60c58
6
+ metadata.gz: fe1254fd86f79691cedcaa93d9a89aa7612a189bfac6f34b71673a2773894b66abaf84e9c8eb0843c291d7ae7fdfb6f817b7783afd7a2b6fa6244e7c40ef0035
7
+ data.tar.gz: 95b985bff36238d5412da57919d0d84307803fa8220cc5b5dd6c8ffb4512154fffa4db25ba239946e21e285f19541da356e56c08d5131b92414a775309e98189
data/CHANGELOG.md CHANGED
@@ -1,11 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.0.1](https://github.com/DEFRA/defra-ruby-govpay/tree/v1.0.1) (2025-08-05)
4
+
5
+ [Full Changelog](https://github.com/DEFRA/defra-ruby-govpay/compare/v1.0.0...v1.0.1)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Fix/ruby 3682 webhook payment not found [\#36](https://github.com/DEFRA/defra-ruby-govpay/pull/36) ([PaulDoyle-EA](https://github.com/PaulDoyle-EA))
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Release/v1.0.1 [\#37](https://github.com/DEFRA/defra-ruby-govpay/pull/37) ([PaulDoyle-EA](https://github.com/PaulDoyle-EA))
14
+
3
15
  ## [v1.0.0](https://github.com/DEFRA/defra-ruby-govpay/tree/v1.0.0) (2025-04-30)
4
16
 
5
17
  [Full Changelog](https://github.com/DEFRA/defra-ruby-govpay/compare/v0.2.8...v1.0.0)
6
18
 
7
19
  **Merged pull requests:**
8
20
 
21
+ - Version 1.0.0 - Major release for renamed webhook services [\#35](https://github.com/DEFRA/defra-ruby-govpay/pull/35) ([jjromeo](https://github.com/jjromeo))
9
22
  - \[RUBY-3757\] Refactor webhook handling services in Govpay gem [\#34](https://github.com/DEFRA/defra-ruby-govpay/pull/34) ([jjromeo](https://github.com/jjromeo))
10
23
 
11
24
  ## [v0.2.8](https://github.com/DEFRA/defra-ruby-govpay/tree/v0.2.8) (2025-04-29)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- defra_ruby_govpay (0.2.8)
4
+ defra_ruby_govpay (1.0.2)
5
5
  rest-client (~> 2.1)
6
6
 
7
7
  GEM
@@ -17,9 +17,9 @@ GEM
17
17
  minitest (>= 5.1)
18
18
  mutex_m
19
19
  tzinfo (~> 2.0)
20
- addressable (2.8.5)
21
- public_suffix (>= 2.0.2, < 6.0)
22
- ast (2.4.2)
20
+ addressable (2.8.7)
21
+ public_suffix (>= 2.0.2, < 7.0)
22
+ ast (2.4.3)
23
23
  async (2.6.5)
24
24
  console (~> 1.10)
25
25
  fiber-annotation
@@ -41,21 +41,22 @@ GEM
41
41
  async-pool (0.4.0)
42
42
  async (>= 1.25)
43
43
  base64 (0.1.1)
44
- bigdecimal (3.1.4)
44
+ bigdecimal (3.2.2)
45
45
  byebug (11.1.3)
46
46
  concurrent-ruby (1.2.2)
47
47
  connection_pool (2.4.1)
48
48
  console (1.23.2)
49
49
  fiber-annotation
50
50
  fiber-local
51
- crack (0.4.5)
51
+ crack (1.0.0)
52
+ bigdecimal
52
53
  rexml
53
54
  defra_ruby_style (0.4.0)
54
55
  rubocop (>= 1.0, < 2.0)
55
56
  rubocop-factory_bot
56
57
  rubocop-rake
57
58
  rubocop-rspec
58
- diff-lcs (1.5.0)
59
+ diff-lcs (1.6.2)
59
60
  domain_name (0.5.20190701)
60
61
  unf (>= 0.0.5, < 1.0.0)
61
62
  drb (2.1.1)
@@ -78,15 +79,16 @@ GEM
78
79
  octokit (~> 4.6)
79
80
  rainbow (>= 2.2.1)
80
81
  rake (>= 10.0)
81
- hashdiff (1.0.1)
82
+ hashdiff (1.2.0)
82
83
  http-accept (1.7.0)
83
84
  http-cookie (1.0.5)
84
85
  domain_name (~> 0.5)
85
86
  i18n (1.14.1)
86
87
  concurrent-ruby (~> 1.0)
87
88
  io-event (1.3.3)
88
- json (2.6.3)
89
- language_server-protocol (3.17.0.3)
89
+ json (2.13.2)
90
+ language_server-protocol (3.17.0.5)
91
+ lint_roller (1.1.0)
90
92
  mime-types (3.5.1)
91
93
  mime-types-data (~> 3.2015)
92
94
  mime-types-data (3.2023.0808)
@@ -97,10 +99,11 @@ GEM
97
99
  octokit (4.25.1)
98
100
  faraday (>= 1, < 3)
99
101
  sawyer (~> 0.9)
100
- parallel (1.23.0)
101
- parser (3.2.2.4)
102
+ parallel (1.27.0)
103
+ parser (3.3.9.0)
102
104
  ast (~> 2.4.1)
103
105
  racc
106
+ prism (1.4.0)
104
107
  protocol-hpack (1.4.2)
105
108
  protocol-http (0.25.0)
106
109
  protocol-http1 (0.16.0)
@@ -108,53 +111,52 @@ GEM
108
111
  protocol-http2 (0.15.1)
109
112
  protocol-hpack (~> 1.4)
110
113
  protocol-http (~> 0.18)
111
- public_suffix (5.0.3)
112
- racc (1.7.2)
114
+ public_suffix (6.0.2)
115
+ racc (1.8.1)
113
116
  rainbow (3.1.1)
114
117
  rake (13.1.0)
115
- regexp_parser (2.8.2)
118
+ regexp_parser (2.11.0)
116
119
  rest-client (2.1.0)
117
120
  http-accept (>= 1.7.0, < 2.0)
118
121
  http-cookie (>= 1.0.2, < 2.0)
119
122
  mime-types (>= 1.16, < 4.0)
120
123
  netrc (~> 0.8)
121
- rexml (3.2.6)
122
- rspec (3.12.0)
123
- rspec-core (~> 3.12.0)
124
- rspec-expectations (~> 3.12.0)
125
- rspec-mocks (~> 3.12.0)
126
- rspec-core (3.12.2)
127
- rspec-support (~> 3.12.0)
128
- rspec-expectations (3.12.3)
124
+ rexml (3.4.1)
125
+ rspec (3.13.1)
126
+ rspec-core (~> 3.13.0)
127
+ rspec-expectations (~> 3.13.0)
128
+ rspec-mocks (~> 3.13.0)
129
+ rspec-core (3.13.5)
130
+ rspec-support (~> 3.13.0)
131
+ rspec-expectations (3.13.5)
129
132
  diff-lcs (>= 1.2.0, < 2.0)
130
- rspec-support (~> 3.12.0)
131
- rspec-mocks (3.12.5)
133
+ rspec-support (~> 3.13.0)
134
+ rspec-mocks (3.13.5)
132
135
  diff-lcs (>= 1.2.0, < 2.0)
133
- rspec-support (~> 3.12.0)
134
- rspec-support (3.12.1)
135
- rubocop (1.57.2)
136
+ rspec-support (~> 3.13.0)
137
+ rspec-support (3.13.4)
138
+ rubocop (1.79.1)
136
139
  json (~> 2.3)
137
- language_server-protocol (>= 3.17.0)
140
+ language_server-protocol (~> 3.17.0.2)
141
+ lint_roller (~> 1.1.0)
138
142
  parallel (~> 1.10)
139
- parser (>= 3.2.2.4)
143
+ parser (>= 3.3.0.2)
140
144
  rainbow (>= 2.2.2, < 4.0)
141
- regexp_parser (>= 1.8, < 3.0)
142
- rexml (>= 3.2.5, < 4.0)
143
- rubocop-ast (>= 1.28.1, < 2.0)
145
+ regexp_parser (>= 2.9.3, < 3.0)
146
+ rubocop-ast (>= 1.46.0, < 2.0)
144
147
  ruby-progressbar (~> 1.7)
145
- unicode-display_width (>= 2.4.0, < 3.0)
146
- rubocop-ast (1.30.0)
147
- parser (>= 3.2.1.0)
148
- rubocop-capybara (2.19.0)
149
- rubocop (~> 1.41)
150
- rubocop-factory_bot (2.24.0)
151
- rubocop (~> 1.33)
148
+ unicode-display_width (>= 2.4.0, < 4.0)
149
+ rubocop-ast (1.46.0)
150
+ parser (>= 3.3.7.2)
151
+ prism (~> 1.4)
152
+ rubocop-factory_bot (2.27.1)
153
+ lint_roller (~> 1.1)
154
+ rubocop (~> 1.72, >= 1.72.1)
152
155
  rubocop-rake (0.6.0)
153
156
  rubocop (~> 1.0)
154
- rubocop-rspec (2.25.0)
155
- rubocop (~> 1.40)
156
- rubocop-capybara (~> 2.17)
157
- rubocop-factory_bot (~> 2.22)
157
+ rubocop-rspec (3.6.0)
158
+ lint_roller (~> 1.1)
159
+ rubocop (~> 1.72, >= 1.72.1)
158
160
  ruby-progressbar (1.13.0)
159
161
  ruby2_keywords (0.0.5)
160
162
  sawyer (0.9.2)
@@ -167,8 +169,10 @@ GEM
167
169
  unf (0.1.4)
168
170
  unf_ext
169
171
  unf_ext (0.0.8.2)
170
- unicode-display_width (2.5.0)
171
- webmock (3.19.1)
172
+ unicode-display_width (3.1.4)
173
+ unicode-emoji (~> 4.0, >= 4.0.4)
174
+ unicode-emoji (4.0.4)
175
+ webmock (3.25.1)
172
176
  addressable (>= 2.8.0)
173
177
  crack (>= 0.3.2)
174
178
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -7,7 +7,7 @@ module DefraRubyGovpay
7
7
  # and gives us openstruct objects for easier reading/consuming
8
8
  class Object < OpenStruct
9
9
  def initialize(attributes)
10
- super to_ostruct(attributes)
10
+ super(to_ostruct(attributes))
11
11
  end
12
12
 
13
13
  def to_ostruct(obj)
@@ -31,7 +31,7 @@ module DefraRubyGovpay
31
31
  else
32
32
  DefraRubyGovpay.logger.warn(
33
33
  "Status \"#{@previous_status}\" unchanged in #{payment_or_refund_str} webhook update " \
34
- "#{log_webhook_context}"
34
+ "#{log_webhook_context} "
35
35
  )
36
36
  end
37
37
 
@@ -4,9 +4,9 @@ module DefraRubyGovpay
4
4
  class WebhookPaymentService < WebhookBaseService
5
5
 
6
6
  VALID_STATUS_TRANSITIONS = {
7
- "created" => %w[started submitted success failed cancelled error],
8
- "started" => %w[submitted success failed cancelled error],
9
- "submitted" => %w[success failed cancelled error],
7
+ "created" => %w[started submitted success failed cancelled expired error],
8
+ "started" => %w[submitted success failed cancelled expired error],
9
+ "submitted" => %w[success failed cancelled expired error],
10
10
  "success" => %w[],
11
11
  "failed" => %w[],
12
12
  "cancelled" => %w[],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DefraRubyGovpay
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defra_ruby_govpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerome Pratt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-30 00:00:00.000000000 Z
11
+ date: 2025-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client