minfraud 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/.travis.yml +20 -3
- data/CHANGELOG.md +42 -0
- data/CODE_OF_CONDUCT.md +4 -4
- data/Gemfile +9 -2
- data/LICENSE.txt +2 -1
- data/README.dev.md +4 -0
- data/README.md +109 -39
- data/lib/maxmind/geoip2/model/city.rb +99 -0
- data/lib/maxmind/geoip2/model/country.rb +94 -0
- data/lib/maxmind/geoip2/model/insights.rb +38 -0
- data/lib/maxmind/geoip2/record/abstract.rb +46 -0
- data/lib/maxmind/geoip2/record/city.rb +62 -0
- data/lib/maxmind/geoip2/record/continent.rb +61 -0
- data/lib/maxmind/geoip2/record/country.rb +78 -0
- data/lib/maxmind/geoip2/record/location.rb +97 -0
- data/lib/maxmind/geoip2/record/maxmind.rb +41 -0
- data/lib/maxmind/geoip2/record/place.rb +52 -0
- data/lib/maxmind/geoip2/record/postal.rb +54 -0
- data/lib/maxmind/geoip2/record/represented_country.rb +47 -0
- data/lib/maxmind/geoip2/record/subdivision.rb +72 -0
- data/lib/maxmind/geoip2/record/traits.rb +224 -0
- data/lib/minfraud.rb +6 -4
- data/lib/minfraud/assessments.rb +32 -13
- data/lib/minfraud/components/account.rb +2 -2
- data/lib/minfraud/components/addressable.rb +2 -2
- data/lib/minfraud/components/base.rb +26 -4
- data/lib/minfraud/components/credit_card.rb +6 -1
- data/lib/minfraud/components/custom_inputs.rb +14 -0
- data/lib/minfraud/components/device.rb +11 -0
- data/lib/minfraud/components/event.rb +14 -9
- data/lib/minfraud/components/order.rb +1 -0
- data/lib/minfraud/components/payment.rb +125 -13
- data/lib/minfraud/components/report/transaction.rb +69 -0
- data/lib/minfraud/components/shipping.rb +1 -5
- data/lib/minfraud/components/shopping_cart.rb +2 -1
- data/lib/minfraud/enum.rb +8 -4
- data/lib/minfraud/error_handler.rb +37 -17
- data/lib/minfraud/http_service.rb +1 -2
- data/lib/minfraud/http_service/request.rb +1 -1
- data/lib/minfraud/http_service/response.rb +38 -10
- data/lib/minfraud/model/abstract.rb +20 -0
- data/lib/minfraud/model/address.rb +52 -0
- data/lib/minfraud/model/billing_address.rb +11 -0
- data/lib/minfraud/model/credit_card.rb +75 -0
- data/lib/minfraud/model/device.rb +54 -0
- data/lib/minfraud/model/disposition.rb +35 -0
- data/lib/minfraud/model/email.rb +54 -0
- data/lib/minfraud/model/email_domain.rb +24 -0
- data/lib/minfraud/model/error.rb +28 -0
- data/lib/minfraud/model/factors.rb +24 -0
- data/lib/minfraud/model/geoip2_location.rb +25 -0
- data/lib/minfraud/model/insights.rb +68 -0
- data/lib/minfraud/model/ip_address.rb +82 -0
- data/lib/minfraud/model/issuer.rb +49 -0
- data/lib/minfraud/model/score.rb +76 -0
- data/lib/minfraud/model/score_ip_address.rb +23 -0
- data/lib/minfraud/model/shipping_address.rb +30 -0
- data/lib/minfraud/model/subscores.rb +156 -0
- data/lib/minfraud/model/warning.rb +63 -0
- data/lib/minfraud/report.rb +38 -0
- data/lib/minfraud/resolver.rb +4 -3
- data/lib/minfraud/version.rb +1 -1
- data/minfraud.gemspec +18 -15
- metadata +68 -19
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minfraud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kushnir.yb
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,56 +16,68 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.9.1
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 0.9.1
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: faraday_middleware
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
39
|
+
version: 0.9.1
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '2.0'
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - ">="
|
39
48
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
49
|
+
version: 0.9.1
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '2.0'
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: bundler
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
|
-
- - "
|
57
|
+
- - ">="
|
46
58
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
59
|
+
version: '1.16'
|
48
60
|
type: :development
|
49
61
|
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
|
-
- - "
|
64
|
+
- - ">="
|
53
65
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
66
|
+
version: '1.16'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
name: rake
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
58
70
|
requirements:
|
59
|
-
- - "
|
71
|
+
- - ">="
|
60
72
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
73
|
+
version: '0'
|
62
74
|
type: :development
|
63
75
|
prerelease: false
|
64
76
|
version_requirements: !ruby/object:Gem::Requirement
|
65
77
|
requirements:
|
66
|
-
- - "
|
78
|
+
- - ">="
|
67
79
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
80
|
+
version: '0'
|
69
81
|
- !ruby/object:Gem::Dependency
|
70
82
|
name: rspec
|
71
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +94,7 @@ dependencies:
|
|
82
94
|
version: '3.0'
|
83
95
|
description:
|
84
96
|
email:
|
85
|
-
-
|
97
|
+
- support@maxmind.com
|
86
98
|
executables: []
|
87
99
|
extensions: []
|
88
100
|
extra_rdoc_files: []
|
@@ -90,13 +102,29 @@ files:
|
|
90
102
|
- ".gitignore"
|
91
103
|
- ".rspec"
|
92
104
|
- ".travis.yml"
|
105
|
+
- CHANGELOG.md
|
93
106
|
- CODE_OF_CONDUCT.md
|
94
107
|
- Gemfile
|
95
108
|
- LICENSE.txt
|
109
|
+
- README.dev.md
|
96
110
|
- README.md
|
97
111
|
- Rakefile
|
98
112
|
- bin/console
|
99
113
|
- bin/setup
|
114
|
+
- lib/maxmind/geoip2/model/city.rb
|
115
|
+
- lib/maxmind/geoip2/model/country.rb
|
116
|
+
- lib/maxmind/geoip2/model/insights.rb
|
117
|
+
- lib/maxmind/geoip2/record/abstract.rb
|
118
|
+
- lib/maxmind/geoip2/record/city.rb
|
119
|
+
- lib/maxmind/geoip2/record/continent.rb
|
120
|
+
- lib/maxmind/geoip2/record/country.rb
|
121
|
+
- lib/maxmind/geoip2/record/location.rb
|
122
|
+
- lib/maxmind/geoip2/record/maxmind.rb
|
123
|
+
- lib/maxmind/geoip2/record/place.rb
|
124
|
+
- lib/maxmind/geoip2/record/postal.rb
|
125
|
+
- lib/maxmind/geoip2/record/represented_country.rb
|
126
|
+
- lib/maxmind/geoip2/record/subdivision.rb
|
127
|
+
- lib/maxmind/geoip2/record/traits.rb
|
100
128
|
- lib/minfraud.rb
|
101
129
|
- lib/minfraud/assessments.rb
|
102
130
|
- lib/minfraud/components/account.rb
|
@@ -104,11 +132,13 @@ files:
|
|
104
132
|
- lib/minfraud/components/base.rb
|
105
133
|
- lib/minfraud/components/billing.rb
|
106
134
|
- lib/minfraud/components/credit_card.rb
|
135
|
+
- lib/minfraud/components/custom_inputs.rb
|
107
136
|
- lib/minfraud/components/device.rb
|
108
137
|
- lib/minfraud/components/email.rb
|
109
138
|
- lib/minfraud/components/event.rb
|
110
139
|
- lib/minfraud/components/order.rb
|
111
140
|
- lib/minfraud/components/payment.rb
|
141
|
+
- lib/minfraud/components/report/transaction.rb
|
112
142
|
- lib/minfraud/components/shipping.rb
|
113
143
|
- lib/minfraud/components/shopping_cart.rb
|
114
144
|
- lib/minfraud/components/shopping_cart_item.rb
|
@@ -118,10 +148,30 @@ files:
|
|
118
148
|
- lib/minfraud/http_service.rb
|
119
149
|
- lib/minfraud/http_service/request.rb
|
120
150
|
- lib/minfraud/http_service/response.rb
|
151
|
+
- lib/minfraud/model/abstract.rb
|
152
|
+
- lib/minfraud/model/address.rb
|
153
|
+
- lib/minfraud/model/billing_address.rb
|
154
|
+
- lib/minfraud/model/credit_card.rb
|
155
|
+
- lib/minfraud/model/device.rb
|
156
|
+
- lib/minfraud/model/disposition.rb
|
157
|
+
- lib/minfraud/model/email.rb
|
158
|
+
- lib/minfraud/model/email_domain.rb
|
159
|
+
- lib/minfraud/model/error.rb
|
160
|
+
- lib/minfraud/model/factors.rb
|
161
|
+
- lib/minfraud/model/geoip2_location.rb
|
162
|
+
- lib/minfraud/model/insights.rb
|
163
|
+
- lib/minfraud/model/ip_address.rb
|
164
|
+
- lib/minfraud/model/issuer.rb
|
165
|
+
- lib/minfraud/model/score.rb
|
166
|
+
- lib/minfraud/model/score_ip_address.rb
|
167
|
+
- lib/minfraud/model/shipping_address.rb
|
168
|
+
- lib/minfraud/model/subscores.rb
|
169
|
+
- lib/minfraud/model/warning.rb
|
170
|
+
- lib/minfraud/report.rb
|
121
171
|
- lib/minfraud/resolver.rb
|
122
172
|
- lib/minfraud/version.rb
|
123
173
|
- minfraud.gemspec
|
124
|
-
homepage: https://github.com/
|
174
|
+
homepage: https://github.com/maxmind/minfraud-api-ruby
|
125
175
|
licenses:
|
126
176
|
- MIT
|
127
177
|
metadata: {}
|
@@ -133,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
183
|
requirements:
|
134
184
|
- - ">="
|
135
185
|
- !ruby/object:Gem::Version
|
136
|
-
version: '
|
186
|
+
version: '1.9'
|
137
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
188
|
requirements:
|
139
189
|
- - ">="
|
@@ -141,9 +191,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
191
|
version: '0'
|
142
192
|
requirements: []
|
143
193
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.6.
|
194
|
+
rubygems_version: 2.7.6.2
|
145
195
|
signing_key:
|
146
196
|
specification_version: 4
|
147
197
|
summary: Ruby interface to the MaxMind minFraud v2.0 API services
|
148
198
|
test_files: []
|
149
|
-
has_rdoc:
|