maxmind 0.4.6 → 0.4.7
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/README.md +3 -1
- data/lib/maxmind/request.rb +2 -1
- data/lib/maxmind/version.rb +1 -1
- data/spec/maxmind/request_spec.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4608e9c60c8244b7b82c9a95add791a1b0d4f718
|
|
4
|
+
data.tar.gz: 7e2da7ff1682d4db6c238b0a56480b3014265fdb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a9e248e97806a9391aa3e25d3c5c68e323d08b3ba28525bcf9da55fd2b0eecafe01c7ba071ff0db5ad9c0f1a13e66d4e0afce2e7db14abe7427f7ae7912a939
|
|
7
|
+
data.tar.gz: 17a3e05790a99d970ec19b08b0b932f5798bd4be29f47fc595c8437a33245c60540b71cdc5b2a18e2afe04f6440ff219df61c9009e1aea92d2cfc8d015a86b07
|
data/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
maxmind
|
|
2
2
|
==========
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
An unofficial wrapper around MaxMind's minFraud anti-fraud service.
|
|
5
5
|
|
|
6
|
+
For MaxMind's Proxy Detection Service, see this gem: [https://github.com/eric-smartlove/maxmind\_proxy\_detection](https://github.com/eric-smartlove/maxmind_proxy_detection)
|
|
6
7
|
|
|
7
8
|
Installation
|
|
8
9
|
------------
|
|
@@ -161,6 +162,7 @@ Contributors
|
|
|
161
162
|
* Tinu Cleatus <tinu.cleatus@me.com>
|
|
162
163
|
* Don Pflaster <dpflaster@gmail.com>
|
|
163
164
|
* Igor Pstyga
|
|
165
|
+
* Jack Kelly <jack@trikeapps.com>
|
|
164
166
|
|
|
165
167
|
Thanks to all :)
|
|
166
168
|
|
data/lib/maxmind/request.rb
CHANGED
|
@@ -105,7 +105,8 @@ module Maxmind
|
|
|
105
105
|
:avs_result => @avs_result,
|
|
106
106
|
:cvv_result => @cvv_result,
|
|
107
107
|
:txn_type => @txn_type,
|
|
108
|
-
:order_amount => @order_amount
|
|
108
|
+
:order_amount => @order_amount,
|
|
109
|
+
:order_currency => @order_currency
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
field_set = required_fields.merge(optional_fields)
|
data/lib/maxmind/version.rb
CHANGED
|
@@ -43,6 +43,11 @@ describe Maxmind::Request do
|
|
|
43
43
|
}.not_to raise_error
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
it "saves order currency" do
|
|
47
|
+
@request.order_currency = 'GBP'
|
|
48
|
+
expect(@request.query[:order_currency]).to eq 'GBP'
|
|
49
|
+
end
|
|
50
|
+
|
|
46
51
|
it "converts username to MD5" do
|
|
47
52
|
@request.username = 'testuser'
|
|
48
53
|
expect(@request.username).to eq '5d9c68c6c50ed3d02a2fcf54f63993b6'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: maxmind
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Daniels
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: "A wrapper around MaxMind's minFraud anti-fraud service. \n\nhttp://www.maxmind.com/app/ccv_overview\n"
|
|
14
14
|
email: adam@mediadrive.ca
|
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
63
63
|
version: '0'
|
|
64
64
|
requirements: []
|
|
65
65
|
rubyforge_project:
|
|
66
|
-
rubygems_version: 2.4.
|
|
66
|
+
rubygems_version: 2.4.8
|
|
67
67
|
signing_key:
|
|
68
68
|
specification_version: 4
|
|
69
69
|
summary: Wrapper for MaxMind's minFraud service
|