k2-connect-ruby 4.0.0 → 4.0.4

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: 82dededa6abe9ac67a070c68fd0c1e1d4bd9f3fde78ba141864995d3071836ac
4
- data.tar.gz: d471a6d6293283569fb858340d64a704e99d35ca0a634bb5f2ea30c2eb610f7a
3
+ metadata.gz: d8e7c0fcc0a11af2e572abf81adc32ed720078341ae1e2f18379cc6918527aa7
4
+ data.tar.gz: 13246eaa99daf1e3a700254fd810e1eca035de843d0f30f1f6167126fd60aea0
5
5
  SHA512:
6
- metadata.gz: 9b71b48d4536a98f8a226278fb1997f478601c352b6f1b0bf51189d4a6c83c289ae8e2ee8123cafe3710341fccb873d8519d4b78d2257fd3c60a47f47bcca237
7
- data.tar.gz: d5ea542673790f8f061f60edf00be70f364fdd41bd7cac611097924f81ed3f6e65d6fcaabe1eff880876e6e7c325fde9cb32db42c407f67d6137ceace3eceeac
6
+ metadata.gz: ad4941b04dc2d373ae9cec79e2925099c56c20f300339002f904635a139a2387cdf3d22730eb9894e9c95818a0f7bac46853bc619c3d0b097bb41da71b0bdf58
7
+ data.tar.gz: 93bf6e1c8998280d67fe9ed7bb3cc61a2e47e0aea6ce5d016298b60a8740d336c478a4ed9e52d423f33fe7ab5a36f1c1044a52d70517f0fe66817617964d85a8
@@ -0,0 +1,46 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+
7
+ permissions: {}
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: "3.4.13"
17
+ bundler-cache: true
18
+ - run: bundle exec rspec
19
+
20
+ release:
21
+ needs: test
22
+ runs-on: ubuntu-latest
23
+ environment: release
24
+ permissions:
25
+ id-token: write # trusted publishing (OIDC)
26
+ contents: write # push the git tag
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+
30
+ - uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: "3.4.13"
33
+ bundler-cache: true
34
+
35
+ - name: Skip if this version is already released
36
+ id: check
37
+ run: |
38
+ VERSION=$(ruby -Ilib -e 'require "k2-connect-ruby/version"; puts K2ConnectRuby::VERSION')
39
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
40
+ if git ls-remote --exit-code --tags origin "v$VERSION" >/dev/null 2>&1; then
41
+ echo "v$VERSION already tagged, skipping release."
42
+ echo "skip=true" >> "$GITHUB_OUTPUT"
43
+ fi
44
+
45
+ - uses: rubygems/release-gem@v1
46
+ if: steps.check.outputs.skip != 'true'
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.5
1
+ 3.4.13
data/Gemfile.lock CHANGED
@@ -1,51 +1,53 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- k2-connect-ruby (4.0.0)
5
- activemodel (>= 7.2.2, <= 8.1.1)
6
- activesupport (>= 7.2.2, <= 8.1.1)
4
+ k2-connect-ruby (4.0.4)
5
+ activemodel (>= 7.2.2)
6
+ activesupport (>= 7.2.2)
7
7
  json (~> 2.8.2)
8
8
  rest-client (~> 2.1.0)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activemodel (7.2.2)
14
- activesupport (= 7.2.2)
15
- activesupport (7.2.2)
13
+ activemodel (8.1.4.1)
14
+ activesupport (= 8.1.4.1)
15
+ activesupport (8.1.4.1)
16
16
  base64
17
- benchmark (>= 0.3)
18
17
  bigdecimal
19
18
  concurrent-ruby (~> 1.0, >= 1.3.1)
20
19
  connection_pool (>= 2.2.5)
21
20
  drb
22
21
  i18n (>= 1.6, < 2)
22
+ json
23
23
  logger (>= 1.4.2)
24
24
  minitest (>= 5.1)
25
25
  securerandom (>= 0.3)
26
26
  tzinfo (~> 2.0, >= 2.0.5)
27
- addressable (2.8.7)
28
- public_suffix (>= 2.0.2, < 7.0)
27
+ uri (>= 0.13.1)
28
+ addressable (2.9.2)
29
+ public_suffix (>= 2.0.2, < 8.0)
29
30
  ast (2.4.3)
30
- base64 (0.2.0)
31
- benchmark (0.4.0)
32
- bigdecimal (3.1.8)
31
+ base64 (0.3.0)
32
+ bigdecimal (4.1.3)
33
33
  coderay (1.1.3)
34
- concurrent-ruby (1.3.4)
35
- connection_pool (2.4.1)
36
- crack (1.0.0)
34
+ concurrent-ruby (1.3.8)
35
+ connection_pool (3.0.3)
36
+ crack (1.0.1)
37
37
  bigdecimal
38
38
  rexml
39
- diff-lcs (1.5.1)
40
- domain_name (0.6.20240107)
41
- drb (2.2.1)
42
- faker (3.5.1)
39
+ diff-lcs (1.6.2)
40
+ domain_name (0.7.20261117)
41
+ drb (2.2.3)
42
+ faker (3.5.3)
43
43
  i18n (>= 1.8.11, < 2)
44
- ffi (1.17.0)
45
- formatador (1.1.0)
46
- guard (2.19.0)
44
+ ffi (1.17.4)
45
+ formatador (1.2.3)
46
+ reline
47
+ guard (2.21.0)
47
48
  formatador (>= 0.2.4)
48
49
  listen (>= 2.7, < 4.0)
50
+ logger (~> 1.6)
49
51
  lumberjack (>= 1.0.12, < 2.0)
50
52
  nenv (~> 0.1)
51
53
  notiffany (~> 0.0)
@@ -57,70 +59,77 @@ GEM
57
59
  guard (~> 2.1)
58
60
  guard-compat (~> 1.1)
59
61
  rspec (>= 2.99.0, < 4.0)
60
- hashdiff (1.1.2)
62
+ hashdiff (1.2.2)
61
63
  http-accept (1.7.0)
62
- http-cookie (1.0.7)
64
+ http-cookie (1.1.6)
63
65
  domain_name (~> 0.5)
64
- i18n (1.14.6)
66
+ i18n (1.15.2)
65
67
  concurrent-ruby (~> 1.0)
68
+ io-console (0.9.5)
66
69
  json (2.8.2)
67
- language_server-protocol (3.17.0.5)
70
+ language_server-protocol (3.17.0.6)
68
71
  lint_roller (1.1.0)
69
- listen (3.9.0)
72
+ listen (3.10.1)
73
+ logger
70
74
  rb-fsevent (~> 0.10, >= 0.10.3)
71
75
  rb-inotify (~> 0.9, >= 0.9.10)
72
- logger (1.6.1)
73
- lumberjack (1.2.10)
76
+ logger (1.7.0)
77
+ lumberjack (1.4.2)
74
78
  method_source (1.1.0)
75
- mime-types (3.6.0)
79
+ mime-types (3.7.0)
76
80
  logger
77
- mime-types-data (~> 3.2015)
78
- mime-types-data (3.2024.1105)
79
- minitest (5.25.2)
81
+ mime-types-data (~> 3.2025, >= 3.2025.0507)
82
+ mime-types-data (3.2026.1103)
83
+ minitest (6.1.0)
84
+ drb (~> 2.0)
85
+ prism (>= 1.5, < 3)
80
86
  nenv (0.3.0)
81
87
  netrc (0.11.0)
82
88
  notiffany (0.1.3)
83
89
  nenv (~> 0.1)
84
90
  shellany (~> 0.0)
85
- parallel (1.27.0)
86
- parser (3.3.9.0)
91
+ parallel (1.28.0)
92
+ parser (3.3.14.0)
87
93
  ast (~> 2.4.1)
88
94
  racc
89
- prism (1.4.0)
90
- pry (0.15.0)
95
+ prism (2.1.0)
96
+ pry (0.16.1)
91
97
  coderay (~> 1.1)
92
98
  method_source (~> 1.0)
93
- public_suffix (6.0.1)
99
+ reline (>= 0.6.0)
100
+ public_suffix (7.0.5)
94
101
  racc (1.8.1)
95
102
  rainbow (3.1.1)
96
103
  rake (13.2.1)
97
104
  rb-fsevent (0.11.2)
98
105
  rb-inotify (0.11.1)
99
106
  ffi (~> 1.0)
100
- regexp_parser (2.11.2)
107
+ regexp_parser (2.13.4)
108
+ reline (0.7.0)
109
+ io-console (~> 0.5)
101
110
  rest-client (2.1.0)
102
111
  http-accept (>= 1.7.0, < 2.0)
103
112
  http-cookie (>= 1.0.2, < 2.0)
104
113
  mime-types (>= 1.16, < 4.0)
105
114
  netrc (~> 0.8)
106
- rexml (3.3.9)
107
- rspec (3.13.0)
115
+ rexml (3.4.4)
116
+ rspec (3.13.2)
108
117
  rspec-core (~> 3.13.0)
109
118
  rspec-expectations (~> 3.13.0)
110
119
  rspec-mocks (~> 3.13.0)
111
- rspec-core (3.13.2)
120
+ rspec-core (3.13.7)
112
121
  rspec-support (~> 3.13.0)
113
- rspec-expectations (3.13.3)
122
+ rspec-expectations (3.13.6)
114
123
  diff-lcs (>= 1.2.0, < 2.0)
115
124
  rspec-support (~> 3.13.0)
116
- rspec-mocks (3.13.2)
125
+ rspec-mocks (3.13.9)
117
126
  diff-lcs (>= 1.2.0, < 2.0)
118
127
  rspec-support (~> 3.13.0)
119
128
  rspec-nc (0.3.0)
120
129
  rspec (>= 3)
121
130
  terminal-notifier (>= 1.4)
122
- rspec-support (3.13.1)
123
- rubocop (1.80.1)
131
+ rspec-support (3.13.8)
132
+ rubocop (1.80.2)
124
133
  json (~> 2.3)
125
134
  language_server-protocol (~> 3.17.0.2)
126
135
  lint_roller (~> 1.1.0)
@@ -131,24 +140,27 @@ GEM
131
140
  rubocop-ast (>= 1.46.0, < 2.0)
132
141
  ruby-progressbar (~> 1.7)
133
142
  unicode-display_width (>= 2.4.0, < 4.0)
134
- rubocop-ast (1.46.0)
143
+ rubocop-ast (1.53.0)
144
+ ast (~> 2.4)
135
145
  parser (>= 3.3.7.2)
136
- prism (~> 1.4)
146
+ prism (>= 1.7)
147
+ racc
137
148
  rubocop-shopify (2.17.1)
138
149
  rubocop (~> 1.62)
139
150
  ruby-progressbar (1.13.0)
140
- securerandom (0.3.2)
151
+ securerandom (0.4.1)
141
152
  shellany (0.0.1)
142
- terminal-notifier (2.0.0)
143
- thor (1.3.2)
153
+ terminal-notifier (3.1.0)
154
+ thor (1.5.0)
144
155
  tzinfo (2.0.6)
145
156
  concurrent-ruby (~> 1.0)
146
- unicode-display_width (3.1.5)
147
- unicode-emoji (~> 4.0, >= 4.0.4)
148
- unicode-emoji (4.0.4)
157
+ unicode-display_width (3.3.0)
158
+ unicode-emoji (~> 4.3)
159
+ unicode-emoji (4.3.0)
160
+ uri (1.1.2)
149
161
  vcr (6.3.1)
150
162
  base64
151
- webmock (3.24.0)
163
+ webmock (3.35.0)
152
164
  addressable (>= 2.8.0)
153
165
  crack (>= 0.3.2)
154
166
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.description = "Ruby SDK for the Kopo Kopo K2 Connect API, with webhook subscriptions, STK Push and Send Money capabilities. Allows decomposition and break down of results and webhooks returned from the K2 Connect API."
15
15
  spec.homepage = "https://github.com/kopokopo/k2-connect-ruby.git"
16
16
  spec.license = "MIT"
17
- spec.required_ruby_version = [">= 3.3.5", "<= 3.4.7"]
17
+ spec.required_ruby_version = [">= 3.3.5"]
18
18
 
19
19
 
20
20
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host"
@@ -40,8 +40,8 @@ Gem::Specification.new do |spec|
40
40
  spec.require_paths = ["lib"]
41
41
 
42
42
 
43
- spec.add_dependency("activemodel", [">= 7.2.2", "<= 8.1.1"])
44
- spec.add_dependency("activesupport", [">= 7.2.2", "<= 8.1.1"])
43
+ spec.add_dependency("activemodel", [">= 7.2.2"])
44
+ spec.add_dependency("activesupport", [">= 7.2.2"])
45
45
  spec.add_dependency("json", "~> 2.8.2")
46
46
  spec.add_dependency("rest-client", "~> 2.1.0")
47
47
  spec.add_development_dependency("bundler", "~> 4.0.3")
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module K2ConnectRuby
2
- VERSION = "4.0.0"
4
+ VERSION = "4.0.4"
3
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k2-connect-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - DavidKar1uk1
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2026-04-29 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activemodel
@@ -17,9 +16,6 @@ dependencies:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: 7.2.2
20
- - - "<="
21
- - !ruby/object:Gem::Version
22
- version: 8.1.1
23
19
  type: :runtime
24
20
  prerelease: false
25
21
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +23,6 @@ dependencies:
27
23
  - - ">="
28
24
  - !ruby/object:Gem::Version
29
25
  version: 7.2.2
30
- - - "<="
31
- - !ruby/object:Gem::Version
32
- version: 8.1.1
33
26
  - !ruby/object:Gem::Dependency
34
27
  name: activesupport
35
28
  requirement: !ruby/object:Gem::Requirement
@@ -37,9 +30,6 @@ dependencies:
37
30
  - - ">="
38
31
  - !ruby/object:Gem::Version
39
32
  version: 7.2.2
40
- - - "<="
41
- - !ruby/object:Gem::Version
42
- version: 8.1.1
43
33
  type: :runtime
44
34
  prerelease: false
45
35
  version_requirements: !ruby/object:Gem::Requirement
@@ -47,9 +37,6 @@ dependencies:
47
37
  - - ">="
48
38
  - !ruby/object:Gem::Version
49
39
  version: 7.2.2
50
- - - "<="
51
- - !ruby/object:Gem::Version
52
- version: 8.1.1
53
40
  - !ruby/object:Gem::Dependency
54
41
  name: json
55
42
  requirement: !ruby/object:Gem::Requirement
@@ -242,6 +229,7 @@ extensions: []
242
229
  extra_rdoc_files: []
243
230
  files:
244
231
  - ".github/pull_request_template.md"
232
+ - ".github/workflows/release.yml"
245
233
  - ".gitignore"
246
234
  - ".gitmodules"
247
235
  - ".rspec"
@@ -339,7 +327,6 @@ metadata:
339
327
  homepage_uri: https://github.com/kopokopo/k2-connect-ruby.git
340
328
  source_code_uri: https://github.com/kopokopo/k2-connect-ruby.git
341
329
  changelog_uri: https://github.com/kopokopo/k2-connect-ruby.git/CHANGELOG.MD
342
- post_install_message:
343
330
  rdoc_options: []
344
331
  require_paths:
345
332
  - lib
@@ -348,17 +335,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
348
335
  - - ">="
349
336
  - !ruby/object:Gem::Version
350
337
  version: 3.3.5
351
- - - "<="
352
- - !ruby/object:Gem::Version
353
- version: 3.4.7
354
338
  required_rubygems_version: !ruby/object:Gem::Requirement
355
339
  requirements:
356
340
  - - ">="
357
341
  - !ruby/object:Gem::Version
358
342
  version: '0'
359
343
  requirements: []
360
- rubygems_version: 3.5.16
361
- signing_key:
344
+ rubygems_version: 3.6.9
362
345
  specification_version: 4
363
346
  summary: Ruby SDK for the Kopo Kopo K2 Connect API.
364
347
  test_files: []