emailage 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fd6e1898527dc50eca7cae2acac4ea4219023a41df8f944684693417abc4ebe
4
- data.tar.gz: 172f3ecdea21b0a696fe8ffef196776f8cc40ff1fa4569e21994ab0f1a95fa05
3
+ metadata.gz: 8efa8dad34039bd2294cf6a7edde81f6d84b37d91c66b8a5aa5226fb0eda7b83
4
+ data.tar.gz: 2052d8c290aff9348221b57513fe8070252c7342262a5ea2c79bc985d3fd7694
5
5
  SHA512:
6
- metadata.gz: 63c6dd9f2f5c01d92a1c62ce645fe9f7d916169e30d858508203fce4402c86e2c858e36d3fac9b74b8b5a5f80585996337732baf545a67f0d8751f1d90a87a7b
7
- data.tar.gz: 748956181727e212e80c46a25b1e83dc7db52e4e46b1d9e235e40ef5252a04dafbd19bbe9837a202080504eb985b0e161e92ab353fa99f037393c8eb71aa117b
6
+ metadata.gz: 5dae66738e6ce642b79bedda2dc37f3cca8115bfc9a3dafd3415cc9b9078cee406ef5ba64c9df8ec1f25b6843de50c081b882cfcc7ce6cda7c16abfc44972127
7
+ data.tar.gz: 2c42e945a41bc670d5563cceaf4dd3261ddae785bb1cf7a86a0ad61776773aeb955860333d3195b423bf6501a4ec4bfc848f2f1ef85034bb044f8848edab0c5f
@@ -0,0 +1,7 @@
1
+ .git*
2
+ db/*.sqlite3
3
+ db/*.sqlite3-journal
4
+ log/*
5
+ tmp/*
6
+ Dockerfile
7
+ README.rdoc
data/.gitignore CHANGED
File without changes
@@ -0,0 +1,10 @@
1
+ FROM ruby:2.2
2
+ RUN apt-get update && apt-get install -y \
3
+ build-essential \
4
+ nodejs
5
+ RUN mkdir -p /app
6
+ WORKDIR /app
7
+ RUN gem install bundler
8
+
9
+ # docker build -t emailageDev .
10
+ # docker run -it -v $(pwd):/app emailageDev bash
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
- [logo]: https://emailage.com/Content/Images/logo.svg "Emailage Logo"
1
+ # Emailage Ruby API Client
2
2
 
3
- ![alt text][logo](https://www.emailage.com)
3
+ ![alt text][logo]
4
+
5
+ [logo]: https://www.emailage.com/wp-content/uploads/2018/01/logo-dark.svg "Emailage Logo"
4
6
 
5
7
  The Emailage™ API is organized around REST (Representational State Transfer). The API was built to help companies integrate with our highly efficient fraud risk and scoring system. By calling our API endpoints and simply passing us an email and/or IP Address, companies will be provided with real-time risk scoring assessments based around machine learning and proprietary algorithms that evolve with new fraud trends.
6
8
 
@@ -8,21 +10,26 @@ The Emailage™ API is organized around REST (Representational State Transfe
8
10
 
9
11
  Add this line to your application's Gemfile:
10
12
 
11
- ```ruby
13
+ ``` ruby
12
14
  gem 'emailage'
13
15
  ```
14
16
 
15
17
  And then execute:
16
18
 
17
- $ bundle
19
+ ``` bash
20
+ bundle
21
+ ```
18
22
 
19
23
  Or install it yourself as:
20
24
 
21
- $ gem install emailage
22
-
25
+ ``` bash
26
+ gem install emailage
27
+ ```
28
+
23
29
  ## Usage
24
30
 
25
31
  Instantiate a client
32
+
26
33
  ```ruby
27
34
  # For a production server
28
35
  emailage = Emailage::Client.new('My account SID', 'My auth token')
@@ -31,6 +38,7 @@ emailage = Emailage::Client.new('My account SID', 'My auth token', sandbox: true
31
38
  ```
32
39
 
33
40
  Query risk score information for the provided email address, IP address, or a combination
41
+
34
42
  ```ruby
35
43
  # For an email address
36
44
  emailage.query 'test@example.com'
@@ -43,7 +51,9 @@ emailage.query ['test@example.com', '127.0.0.1']
43
51
  # The identifier will be displayed in the result.
44
52
  emailage.query 'test@example.com', urid: 'My record ID for test@example.com'
45
53
  ```
54
+
46
55
  Explicit methods produce the same request while validating format of the arguments passed
56
+
47
57
  ```ruby
48
58
  # For an email address
49
59
  emailage.query_email 'test@example.com'
@@ -55,19 +65,19 @@ emailage.query_email_and_ip_address 'test@example.com', '127.0.0.1'
55
65
  emailage.query_email_and_ip_address 'test@example.com', '127.0.0.1', urid: 'My record ID for test@example.com and 127.0.0.1'
56
66
  ```
57
67
 
58
- Mark an email address as fraud, good, or neutral.
59
- All the listed forms are possible.
68
+ Mark an email address as fraud, good, or neutral.
69
+ All the listed forms are possible.
60
70
 
61
- When you mark an email as fraud, you must pass the fraudCodeId:
62
- 1 - "Card Not Present Fraud"
63
- 2 - "Customer Dispute (Chargeback)"
64
- 3 - "First Party Fraud"
65
- 4 - "First Payment Default"
66
- 5 - "Identify Theft (Fraud Application)"
67
- 6 - "Identify Theft (Account Take Over)"
68
- 7 - "Suspected Fraud (Not Confirmed)"
69
- 8 - "Synthetic ID"
70
- 9 - "Other"
71
+ When you mark an email as fraud, you must pass the fraudCodeId:
72
+ 1 - "Card Not Present Fraud"
73
+ 2 - "Customer Dispute (Chargeback)"
74
+ 3 - "First Party Fraud"
75
+ 4 - "First Payment Default"
76
+ 5 - "Identify Theft (Fraud Application)"
77
+ 6 - "Identify Theft (Account Take Over)"
78
+ 7 - "Suspected Fraud (Not Confirmed)"
79
+ 8 - "Synthetic ID"
80
+ 9 - "Other"
71
81
 
72
82
  ```ruby
73
83
  # Mark an email address as fraud.
@@ -87,4 +97,4 @@ This gem can throw exceptions for any of the following issues:
87
97
 
88
98
  1. When Curl has an issue and it's not possible to connect to the Emailage API
89
99
  2. When improperly formatted JSON is received
90
- 3. When an incorrect email or IP address is passed to a flagging or explicitly querying method.
100
+ 3. When an incorrect email or IP address is passed to a flagging or explicitly querying method.
data/Rakefile CHANGED
File without changes
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rspec-core", "~> 3.4"
23
23
  spec.add_development_dependency "rspec-expectations", "~> 3.4"
24
24
  spec.add_development_dependency "rspec-mocks", "~> 3.4"
25
- spec.add_development_dependency "yard", "~> 0.8"
25
+ spec.add_development_dependency "yard", ">= 0.9.11"
26
26
  spec.add_development_dependency "redcarpet", "~> 3.3"
27
-
27
+
28
28
  spec.add_dependency "typhoeus", "~> 1.0"
29
29
  spec.add_dependency "uuid", "~> 2.3"
30
- spec.add_dependency "json", "~> 1.8"
30
+ spec.add_dependency "json", "~> 2.1"
31
31
  end
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Emailage
2
- VERSION = "1.0.4"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emailage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emailage DEV Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-20 00:00:00.000000000 Z
11
+ date: 2019-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: yard
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '0.8'
89
+ version: 0.9.11
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '0.8'
96
+ version: 0.9.11
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: redcarpet
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '1.8'
145
+ version: '2.1'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '1.8'
152
+ version: '2.1'
153
153
  description: Emailage is a Fraud Prevention Solution. This gem implements a client
154
154
  for the Emailage web service.
155
155
  email:
@@ -158,7 +158,9 @@ executables: []
158
158
  extensions: []
159
159
  extra_rdoc_files: []
160
160
  files:
161
+ - ".dockerignore"
161
162
  - ".gitignore"
163
+ - Dockerfile
162
164
  - Gemfile
163
165
  - LICENSE
164
166
  - README.md