minfraud 2.3.0 → 2.4.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: 7f182ec6ff9542ff7b8ece4510f041f4781ea6f6866dac5abef6de9f3444f615
4
- data.tar.gz: c3ab3c050bd54c5b48afef905ddc1233f27137d32bf33679a0853df568b5bdde
3
+ metadata.gz: 14d6fda0782c4f12ecd3599b4d6f3887be93845fca267490bbc64ad6bf5e3518
4
+ data.tar.gz: 0dbcb74c203b066c41ad1d85b25e236a63c9e2904a87064bece9ce69a60eecc6
5
5
  SHA512:
6
- metadata.gz: 134ffce329ee439af6850e9ab57e7f66ca68c25578fa4d204973ecc7528ae3e7fd1d7f5548422baad3b421ca06459c6b731dcc10edd958642479015abd1df412
7
- data.tar.gz: 55f507d7d54bbf7f4798027d8ea53a27464f0af26a8b53b80fcf5d56c15fb308bb921eca23f17ac6fffffddc94427ca946fee5ef6c75589d966c536815cf9448
6
+ metadata.gz: 74a6d172a649d417c89ca8a22a454407e54d70a19cea0583594165a2de23ac9df889478675fadad4becade61a84ac7fb39950ae890cd8d98c80e2dcdb6a2d38d
7
+ data.tar.gz: 7c9c52f1929869e043878b4f74c40d488fa5a44df587b63362a537b14b8f3602a4c78b51abeb18ab2404bf49ba2662b38919a5470de8270f2b53dc1ea2b80071
@@ -0,0 +1,28 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ pull_request:
6
+ push:
7
+ branches:
8
+ - main
9
+ release:
10
+ types:
11
+ - published
12
+
13
+ jobs:
14
+ push:
15
+ if: github.event_name == 'release' && github.event.action == 'published'
16
+ runs-on: ubuntu-latest
17
+ environment: release
18
+ permissions:
19
+ id-token: write
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - name: Set up Ruby
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ bundler-cache: true
26
+ ruby-version: ruby
27
+
28
+ - uses: rubygems/release-gem@v1
@@ -13,6 +13,6 @@ jobs:
13
13
  - uses: actions/checkout@v4
14
14
  - uses: ruby/setup-ruby@v1
15
15
  with:
16
- ruby-version: 3.2
16
+ ruby-version: 3.3
17
17
  - run: bundle install
18
18
  - run: bundle exec rake -t rubocop
@@ -15,12 +15,11 @@ jobs:
15
15
  os: [ubuntu-latest, windows-latest, macos-latest]
16
16
  version:
17
17
  [
18
- 2.5,
19
- 2.6,
20
18
  2.7,
21
19
  '3.0',
22
20
  3.1,
23
21
  3.2,
22
+ 3.3,
24
23
  jruby,
25
24
  ]
26
25
  exclude:
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.7
3
3
  NewCops: enable
4
4
 
5
5
  # Metrics.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.4.0 (2024-01-12)
4
+
5
+ * Ruby 2.7+ is now required. If you're using Ruby 2.5 or 2.6, please use
6
+ version 2.3.0 of this gem.
7
+ * Added the processors `:pxp_financial` and `:trustpay` to
8
+ `Minfraud::Components::Payment`.
9
+
3
10
  ## v2.3.0 (2023-12-04)
4
11
 
5
12
  * Added the processor `:shopify_payments` to `Minfraud::Components::Payment`.
data/LICENSE.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2016-2020 kushnir.yb
4
- Copyright (c) 2020-2023 MaxMind, Inc.
4
+ Copyright (c) 2020-2024 MaxMind, Inc.
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -275,7 +275,7 @@ to the client API, please see
275
275
 
276
276
  ## Requirements
277
277
 
278
- This gem works with Ruby 2.5 and above.
278
+ This gem works with Ruby 2.7 and above.
279
279
 
280
280
  ## Contributing
281
281
 
@@ -293,7 +293,7 @@ This API uses [Semantic Versioning](https://semver.org/).
293
293
 
294
294
  Copyright (c) 2016-2020 kushnir.yb.
295
295
 
296
- Copyright (c) 2020-2023 MaxMind, Inc.
296
+ Copyright (c) 2020-2024 MaxMind, Inc.
297
297
 
298
298
  The gem is available as open source under the terms of the [MIT
299
299
  License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,59 @@
1
+ #!/bin/bash
2
+
3
+ set -eu -o pipefail
4
+
5
+ changelog=$(cat CHANGELOG.md)
6
+
7
+ regex='
8
+ ## v([0-9]+\.[0-9]+\.[0-9]+) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
9
+
10
+ ((.|
11
+ )*)
12
+ '
13
+
14
+ if [[ ! $changelog =~ $regex ]]; then
15
+ echo "Could not find date line in change log!"
16
+ exit 1
17
+ fi
18
+
19
+ version="${BASH_REMATCH[1]}"
20
+ date="${BASH_REMATCH[2]}"
21
+ notes="$(echo "${BASH_REMATCH[3]}" | sed -n -E '/^## v[0-9]+\.[0-9]+\.[0-9]+/,$!p')"
22
+
23
+ echo "$notes"
24
+ if [[ "$date" != "$(date +"%Y-%m-%d")" ]]; then
25
+ echo "$date is not today!"
26
+ exit 1
27
+ fi
28
+
29
+ tag="v$version"
30
+
31
+ if [ -n "$(git status --porcelain)" ]; then
32
+ echo ". is not clean." >&2
33
+ exit 1
34
+ fi
35
+
36
+ perl -pi -e "s/(?<=VERSION = \').+?(?=\')/$version/g" lib/minfraud/version.rb
37
+
38
+ echo $"Test results:"
39
+
40
+ rake
41
+
42
+ echo $'\nDiff:'
43
+ git diff
44
+
45
+ echo $'\nRelease notes:'
46
+ echo "$notes"
47
+
48
+ read -e -p "Commit changes and push to origin? " should_push
49
+
50
+ if [ "$should_push" != "y" ]; then
51
+ echo "Aborting"
52
+ exit 1
53
+ fi
54
+
55
+ git commit -m "Update for $tag" -a
56
+
57
+ git push
58
+
59
+ gh release create --target "$(git branch --show-current)" -t "$version" -n "$notes" "$tag"
@@ -134,6 +134,7 @@ module Minfraud
134
134
  posconnect
135
135
  princeton_payment_solutions
136
136
  psigate
137
+ pxp_financial
137
138
  qiwi
138
139
  quickpay
139
140
  raberil
@@ -158,6 +159,7 @@ module Minfraud
158
159
  towah
159
160
  transact_pro
160
161
  trustly
162
+ trustpay
161
163
  tsys
162
164
  usa_epay
163
165
  vantiv
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Minfraud
4
4
  # The Gem version.
5
- VERSION = '2.3.0'
5
+ VERSION = '2.4.0'
6
6
  end
data/minfraud.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.homepage = 'https://github.com/maxmind/minfraud-api-ruby'
16
16
  spec.license = 'MIT'
17
17
 
18
- spec.required_ruby_version = '>= 2.5.0'
18
+ spec.required_ruby_version = '>= 2.7.0'
19
19
 
20
20
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
21
  spec.bindir = 'exe'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minfraud
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kushnir.yb
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-12-04 00:00:00.000000000 Z
12
+ date: 2024-01-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: connection_pool
@@ -157,6 +157,7 @@ extensions: []
157
157
  extra_rdoc_files: []
158
158
  files:
159
159
  - ".github/dependabot.yml"
160
+ - ".github/workflows/release.yml"
160
161
  - ".github/workflows/rubocop.yml"
161
162
  - ".github/workflows/test.yml"
162
163
  - ".gitignore"
@@ -171,6 +172,7 @@ files:
171
172
  - Rakefile
172
173
  - bin/console
173
174
  - bin/setup
175
+ - dev-bin/release.sh
174
176
  - lib/minfraud.rb
175
177
  - lib/minfraud/assessments.rb
176
178
  - lib/minfraud/components/account.rb
@@ -230,14 +232,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
230
232
  requirements:
231
233
  - - ">="
232
234
  - !ruby/object:Gem::Version
233
- version: 2.5.0
235
+ version: 2.7.0
234
236
  required_rubygems_version: !ruby/object:Gem::Requirement
235
237
  requirements:
236
238
  - - ">="
237
239
  - !ruby/object:Gem::Version
238
240
  version: '0'
239
241
  requirements: []
240
- rubygems_version: 3.4.18
242
+ rubygems_version: 3.5.3
241
243
  signing_key:
242
244
  specification_version: 4
243
245
  summary: Ruby API for the minFraud Score, Insights, Factors, and Report Transactions