emailage 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +4 -0
- data/README.md +89 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/emailage.gemspec +30 -0
- data/lib/emailage.rb +22 -0
- data/lib/emailage/client.rb +166 -0
- data/lib/emailage/signature.rb +44 -0
- data/lib/emailage/validation.rb +33 -0
- data/lib/emailage/version.rb +3 -0
- metadata +196 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fc9fbe9dfc143428f04a27e577fdbc63df467c84
|
4
|
+
data.tar.gz: c76766cbc9f668a8c5ec2a6e0bf613c0facb45bf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e14df265b8c3e97bbe3efc07dc0340512ff20ee994fccf3805507a0fb745cc7e9478ad5b24753fbf97cf5d53dae406dad4c774b729fdec2b5811a184c3d0b8a2
|
7
|
+
data.tar.gz: 48fbd62d151d0bc4d0da5f6bb653dde808c9c51b8995294ddb14a7beb6617b8bcacf2c6259acf4ae1a36445ffa75e2c8dd1082efdaeabdf74b52ab5e38d801de
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
[logo]: https://emailage.com/Content/Images/logo.svg "Emailage Logo"
|
2
|
+
|
3
|
+
![alt text][logo](https://www.emailage.com)
|
4
|
+
|
5
|
+
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
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'emailage'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install emailage
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Instantiate a client
|
26
|
+
```ruby
|
27
|
+
# For a production server
|
28
|
+
emailage = Emailage::Client.new('My account SID', 'My auth token')
|
29
|
+
# ... or for a sandbox
|
30
|
+
emailage = Emailage::Client.new('My account SID', 'My auth token', sandbox: true)
|
31
|
+
```
|
32
|
+
|
33
|
+
Query a risk score information for the provided email address, IP address, or a combination
|
34
|
+
```ruby
|
35
|
+
# For an email address
|
36
|
+
emailage.query 'test@example.com'
|
37
|
+
# For an IP address
|
38
|
+
emailage.query '127.0.0.1'
|
39
|
+
# For a combination. Please note the order
|
40
|
+
emailage.query ['test@example.com', '127.0.0.1']
|
41
|
+
# Pass a User Defined Record ID.
|
42
|
+
# Can be used when you want to add an identifier for a query.
|
43
|
+
# The identifier will be displayed in the result.
|
44
|
+
emailage.query 'test@example.com', urid: 'My record ID for test@example.com'
|
45
|
+
```
|
46
|
+
Explicit methods produce the same request while validating format of the arguments passed
|
47
|
+
```ruby
|
48
|
+
# For an email address
|
49
|
+
emailage.query_email 'test@example.com'
|
50
|
+
# For an IP address
|
51
|
+
emailage.query_ip_address '127.0.0.1'
|
52
|
+
# For a combination. Please note the order
|
53
|
+
emailage.query_email_and_ip_address 'test@example.com', '127.0.0.1'
|
54
|
+
# Pass a User Defined Record ID
|
55
|
+
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
|
+
```
|
57
|
+
|
58
|
+
Mark an email address as fraud, good, or neutral.
|
59
|
+
All the listed forms are possible.
|
60
|
+
When you mark something as fraud, don't forget to pass a fraud code number from this list:
|
61
|
+
1 - Card Not Present Fraud
|
62
|
+
2 - Customer Dispute (Chargeback)
|
63
|
+
3 - First Party Fraud
|
64
|
+
4 - First Payment Default
|
65
|
+
5 - Identify Theft (Fraud Application)
|
66
|
+
6 - Identify Theft (Account Take Over)
|
67
|
+
7 - Suspected Fraud (Not Confirmed)
|
68
|
+
8 - Synthetic ID
|
69
|
+
9 - Other
|
70
|
+
|
71
|
+
```ruby
|
72
|
+
# Mark an email address as fraud because of Synthetic ID.
|
73
|
+
emailage.flag 'fraud', 'test@example.com', 8
|
74
|
+
emailage.flag_as_fraud 'test@example.com', 8
|
75
|
+
# Mark an email address as good.
|
76
|
+
emailage.flag 'good', 'test@example.com'
|
77
|
+
emailage.flag_as_good 'test@example.com'
|
78
|
+
# Unflag an email address that was previously marked as good or fraud.
|
79
|
+
emailage.flag 'neutral', 'test@example.com'
|
80
|
+
emailage.remove_flag 'test@example.com'
|
81
|
+
```
|
82
|
+
|
83
|
+
### Exceptions
|
84
|
+
|
85
|
+
This gem can throw exceptions on any of the following issues:
|
86
|
+
|
87
|
+
1. When Curl has an issue, like not being able to connect from your server to Emailage API,
|
88
|
+
2. When bad formatted JSON is received,
|
89
|
+
3. When an incorrect email or IP address is passed to a flagging or explicitly querying method.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "emailage"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/emailage.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'emailage/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "emailage"
|
8
|
+
spec.version = Emailage::VERSION
|
9
|
+
spec.authors = ["Sergey Baev"]
|
10
|
+
spec.email = ["tinbka@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "Emailage API client written in Ruby"
|
13
|
+
spec.description = "Emailage is a Fraud Prevention Solution. This gem implements a client for the Emailage web service."
|
14
|
+
spec.homepage = "https://emailage.com/"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.require_paths = ["lib"]
|
18
|
+
|
19
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
20
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
21
|
+
spec.add_development_dependency "rspec-core", "~> 3.4"
|
22
|
+
spec.add_development_dependency "rspec-expectations", "~> 3.4"
|
23
|
+
spec.add_development_dependency "rspec-mocks", "~> 3.4"
|
24
|
+
spec.add_development_dependency "yard", "~> 0.8"
|
25
|
+
spec.add_development_dependency "redcarpet", "~> 3.3"
|
26
|
+
|
27
|
+
spec.add_dependency "typhoeus", "~> 1.0"
|
28
|
+
spec.add_dependency "uuid", "~> 2.3"
|
29
|
+
spec.add_dependency "json", "~> 1.8"
|
30
|
+
end
|
data/lib/emailage.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
$:<<'./lib'
|
2
|
+
|
3
|
+
require 'emailage/version'
|
4
|
+
require 'emailage/signature'
|
5
|
+
require 'emailage/validation'
|
6
|
+
require 'emailage/client'
|
7
|
+
|
8
|
+
module Emailage
|
9
|
+
FRAUD_CODES = {
|
10
|
+
1 => 'Card Not Present Fraud',
|
11
|
+
2 => 'Customer Dispute (Chargeback)',
|
12
|
+
3 => 'First Party Fraud',
|
13
|
+
4 => 'First Payment Default',
|
14
|
+
5 => 'Identify Theft (Fraud Application)',
|
15
|
+
6 => 'Identify Theft (Account Take Over)',
|
16
|
+
7 => 'Suspected Fraud (Not Confirmed)',
|
17
|
+
8 => 'Synthetic ID',
|
18
|
+
9 => 'Other'
|
19
|
+
}
|
20
|
+
|
21
|
+
class Error < StandardError; end
|
22
|
+
end
|
@@ -0,0 +1,166 @@
|
|
1
|
+
require 'typhoeus'
|
2
|
+
require 'uuid'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
module Emailage
|
6
|
+
class Client
|
7
|
+
attr_reader :secret, :token, :hmac_key, :sandbox
|
8
|
+
attr_accessor :raise_errors
|
9
|
+
|
10
|
+
# @param secret [String] Consumer secret, e.g. SID or API key.
|
11
|
+
# @param token [String] Consumer OAuth token.
|
12
|
+
# @param sandbox [Boolean] Whether to use a sandbox instead of a production server.
|
13
|
+
# Ensure the according secret and token are supplied.
|
14
|
+
#
|
15
|
+
# @note HMAC key is created according to Emailage docs rather than OAuth1 spec.
|
16
|
+
#
|
17
|
+
def initialize(secret, token, options={})
|
18
|
+
@secret, @token = secret, token
|
19
|
+
@sandbox = options.fetch :sandbox, false
|
20
|
+
@raise_errors = options.fetch :raise_errors, false
|
21
|
+
|
22
|
+
# @hmac_key = [@secret, @token].map {|e| CGI.escape(e)}.join '&'
|
23
|
+
@hmac_key = @token + '&'
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
# Basic request method utilized by #query and #flag.
|
29
|
+
#
|
30
|
+
# @param endpoint [String] Currently, either an empty string or "/flag".
|
31
|
+
# @param params [Hash] Non-general GET request params.
|
32
|
+
#
|
33
|
+
# @return [Hash] Original Emailage API's JSON body.
|
34
|
+
#
|
35
|
+
def request(endpoint, params)
|
36
|
+
base_url = "https://#{@sandbox ? 'sandbox' : 'api'}.emailage.com/emailagevalidator"
|
37
|
+
url = "#{base_url}#{endpoint}/"
|
38
|
+
params = {
|
39
|
+
:format => 'json',
|
40
|
+
:oauth_consumer_key => @secret,
|
41
|
+
:oauth_nonce => UUID.new.generate,
|
42
|
+
:oauth_signature_method => 'HMAC-SHA1',
|
43
|
+
:oauth_timestamp => Time.now.to_i,
|
44
|
+
:oauth_version => 1.0
|
45
|
+
}.merge(params)
|
46
|
+
|
47
|
+
res = Typhoeus.get url, :params => params.merge(:oauth_signature => Signature.create('GET', url, params, @hmac_key))
|
48
|
+
|
49
|
+
# For whatever reason Emailage dispatches JSON with unreadable symbls at the start, like \xEF\xBB\xBF.
|
50
|
+
json = res.body.sub(/^[^{]+/, '')
|
51
|
+
JSON.parse json
|
52
|
+
end
|
53
|
+
|
54
|
+
public
|
55
|
+
|
56
|
+
# Query a risk score information for the provided email address, IP address, or a combination.
|
57
|
+
#
|
58
|
+
# @param query [String | Array<String>] Email, IP or a tuple of (Email, IP).
|
59
|
+
# @param params [Hash] Extra request params as in API documentation.
|
60
|
+
# @option urid [String] User Defined Record ID.
|
61
|
+
# Can be used when you want to add an identifier for a query.
|
62
|
+
# The identifier will be displayed in the result.
|
63
|
+
#
|
64
|
+
def query(query, params={})
|
65
|
+
query *= '+' if query.is_a? Array
|
66
|
+
request '', params.merge(:query => query)
|
67
|
+
end
|
68
|
+
|
69
|
+
# Query a risk score information for the provided email address.
|
70
|
+
# This method differs from #query in that it ensures that the string supplied is in rfc2822 format.
|
71
|
+
#
|
72
|
+
# @param email [String]
|
73
|
+
# @param params [Hash] Extra request params as in API documentation.
|
74
|
+
# @option urid [String] User Defined Record ID. See #query.
|
75
|
+
#
|
76
|
+
def query_email(email, params={})
|
77
|
+
Validation.validate_email! email
|
78
|
+
query email, params
|
79
|
+
end
|
80
|
+
|
81
|
+
# Query a risk score information for the provided IP address.
|
82
|
+
# This method differs from #query in that it ensures that the string supplied is in rfc791 format.
|
83
|
+
#
|
84
|
+
# @param ip [String]
|
85
|
+
# @param params [Hash] Extra request params as in API documentation.
|
86
|
+
# @option urid [String] User Defined Record ID. See #query.
|
87
|
+
#
|
88
|
+
def query_ip_address(ip, params={})
|
89
|
+
Validation.validate_ip! ip
|
90
|
+
query ip, params
|
91
|
+
end
|
92
|
+
|
93
|
+
# Query a risk score information for the provided combination of an Email and IP address.
|
94
|
+
# This method differs from #query in that it ensures that the strings supplied are in rfc2822 and rfc791 formats.
|
95
|
+
#
|
96
|
+
# @param email [String]
|
97
|
+
# @param ip [String]
|
98
|
+
# @param params [Hash] Extra request params as in API documentation.
|
99
|
+
# @option urid [String] User Defined Record ID. See #query.
|
100
|
+
#
|
101
|
+
def query_email_and_ip_address(email, ip, params={})
|
102
|
+
Validation.validate_email! email
|
103
|
+
Validation.validate_ip! ip
|
104
|
+
query [email, ip], params
|
105
|
+
end
|
106
|
+
|
107
|
+
|
108
|
+
# Mark an email address as fraud, good, or neutral.
|
109
|
+
#
|
110
|
+
# @param flag [String] Either fraud, neutral, or good.
|
111
|
+
# @param query [String] Email to be flagged.
|
112
|
+
# @param fraud_code [Integer | String] Reason why the Email or IP is considered fraud. ID or name of the one of FRAUD_CODES options.
|
113
|
+
# E.g. 8 or "Syntethic ID" for Syntethic ID
|
114
|
+
# Required only if you flag something as fraud.
|
115
|
+
# @see Emailage::FRAUD_CODES for the list of available reasons and their IDs.
|
116
|
+
#
|
117
|
+
def flag(flag, query, fraud_code=nil)
|
118
|
+
flags = %w[fraud neutral good]
|
119
|
+
unless flags.include? flag.to_s
|
120
|
+
raise ArgumentError, "flag must be one of #{flags * ', '}. #{flag} is given."
|
121
|
+
end
|
122
|
+
|
123
|
+
Validation.validate_email! query
|
124
|
+
|
125
|
+
query *= '+' if query.is_a? Array
|
126
|
+
params = {:flag => flag, :query => query}
|
127
|
+
|
128
|
+
if flag == 'fraud'
|
129
|
+
unless (1..9).to_a.include? fraud_code
|
130
|
+
raise ArgumentError, "fraud_code must be an integer from 1 to 9 corresponding to #{FRAUD_CODES.values*', '}. #{fraud_code} is given."
|
131
|
+
end
|
132
|
+
params[:fraudcodeID] = fraud_code
|
133
|
+
end
|
134
|
+
|
135
|
+
request '/flag', params
|
136
|
+
end
|
137
|
+
|
138
|
+
# Mark an email address as fraud.
|
139
|
+
#
|
140
|
+
# @param query [String] Email to be flagged.
|
141
|
+
# @param fraud_code [Integer | String] Reason why the Email or IP is considered fraud. ID or name of the one of FRAUD_CODES options.
|
142
|
+
# E.g. 8 or "Syntethic ID" for Syntethic ID
|
143
|
+
# @see Emailage::FRAUD_CODES for the list of available reasons and their IDs.
|
144
|
+
#
|
145
|
+
def flag_as_fraud(query, fraud_code)
|
146
|
+
flag 'fraud', query, fraud_code
|
147
|
+
end
|
148
|
+
|
149
|
+
# Mark an email address as good.
|
150
|
+
#
|
151
|
+
# @param query [String] Email to be flagged.
|
152
|
+
#
|
153
|
+
def flag_as_good(query)
|
154
|
+
flag 'good', query
|
155
|
+
end
|
156
|
+
|
157
|
+
# Unflag an email address that was marked as good or fraud previously.
|
158
|
+
#
|
159
|
+
# @param query [String] Email to be flagged.
|
160
|
+
#
|
161
|
+
def remove_flag(query)
|
162
|
+
flag 'neutral', query
|
163
|
+
end
|
164
|
+
|
165
|
+
end
|
166
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'cgi'
|
2
|
+
require 'openssl'
|
3
|
+
require 'base64'
|
4
|
+
|
5
|
+
module Emailage
|
6
|
+
module Signature
|
7
|
+
class << self
|
8
|
+
|
9
|
+
# 9.1.1. Normalize Request Parameters
|
10
|
+
def normalize_query_parameters(params)
|
11
|
+
params.sort.map {|k,v| [CGI.escape(k.to_s), CGI.escape(v.to_s)].join '='}.join '&'
|
12
|
+
end
|
13
|
+
|
14
|
+
# 9.1.3. Concatenate Request Elements
|
15
|
+
def concatenate_request_elements(method, url, query)
|
16
|
+
[method.to_s.upcase, url, query].map {|e| CGI.escape(e)}.join '&'
|
17
|
+
end
|
18
|
+
|
19
|
+
# 9.2. HMAC-SHA1
|
20
|
+
def hmac_sha1(base_string, hmac_key)
|
21
|
+
OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha1'), hmac_key, base_string)
|
22
|
+
end
|
23
|
+
|
24
|
+
# http://oauth.net/core/1.0/#signing_process
|
25
|
+
# Using HTTP GET parameters option.
|
26
|
+
#
|
27
|
+
# @param method [String] HTTP 1.1 Method
|
28
|
+
# @param url [String] Normalized URL to be requested until ? sign.
|
29
|
+
# @param params [Hash] GET or www-urlencoded POST request params.
|
30
|
+
# @param hmac_key [String] Key generated out of Consumer secret and token.
|
31
|
+
#
|
32
|
+
# @return [String] Value of the oauth_signature query parameter.
|
33
|
+
#
|
34
|
+
def create(method, url, params, hmac_key)
|
35
|
+
query = normalize_query_parameters(params)
|
36
|
+
base_string = concatenate_request_elements(method, url, query)
|
37
|
+
digest = hmac_sha1(base_string, hmac_key)
|
38
|
+
# 9.2.1. Generating Signature
|
39
|
+
Base64.strict_encode64 digest
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Emailage
|
2
|
+
module Validation
|
3
|
+
class << self
|
4
|
+
|
5
|
+
def validate_email!(email)
|
6
|
+
unless email =~ /\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/
|
7
|
+
raise ArgumentError, "#{email} is not a valid email address."
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def validate_ip!(ip)
|
12
|
+
unless ip =~ /\A\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\z/
|
13
|
+
raise ArgumentError, "#{ip} is not a valid IP address."
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def validate_email_or_ip!(email_or_ip)
|
18
|
+
if email_or_ip.is_a? Array
|
19
|
+
if email_or_ip.size != 2
|
20
|
+
raise ArgumentError, "an array must contain exactly one Email and one IP address. #{email_or_ip} is given."
|
21
|
+
end
|
22
|
+
validate_email! email_or_ip.first
|
23
|
+
validate_ip! email_or_ip.last
|
24
|
+
else
|
25
|
+
unless email_or_ip =~ /\A([^@\s]+@([^@\s]+\.)+[^@\s]+|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\z/
|
26
|
+
raise ArgumentError, "#{email_or_ip} is neither a valid IP address nor a valid email address."
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,196 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: emailage
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sergey Baev
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec-core
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.4'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.4'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-expectations
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-mocks
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.8'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.8'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: redcarpet
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.3'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.3'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: typhoeus
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: uuid
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2.3'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '2.3'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: json
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '1.8'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '1.8'
|
153
|
+
description: Emailage is a Fraud Prevention Solution. This gem implements a client
|
154
|
+
for the Emailage web service.
|
155
|
+
email:
|
156
|
+
- tinbka@gmail.com
|
157
|
+
executables: []
|
158
|
+
extensions: []
|
159
|
+
extra_rdoc_files: []
|
160
|
+
files:
|
161
|
+
- ".gitignore"
|
162
|
+
- Gemfile
|
163
|
+
- README.md
|
164
|
+
- Rakefile
|
165
|
+
- bin/console
|
166
|
+
- bin/setup
|
167
|
+
- emailage.gemspec
|
168
|
+
- lib/emailage.rb
|
169
|
+
- lib/emailage/client.rb
|
170
|
+
- lib/emailage/signature.rb
|
171
|
+
- lib/emailage/validation.rb
|
172
|
+
- lib/emailage/version.rb
|
173
|
+
homepage: https://emailage.com/
|
174
|
+
licenses: []
|
175
|
+
metadata: {}
|
176
|
+
post_install_message:
|
177
|
+
rdoc_options: []
|
178
|
+
require_paths:
|
179
|
+
- lib
|
180
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '0'
|
185
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
requirements: []
|
191
|
+
rubyforge_project:
|
192
|
+
rubygems_version: 2.4.8
|
193
|
+
signing_key:
|
194
|
+
specification_version: 4
|
195
|
+
summary: Emailage API client written in Ruby
|
196
|
+
test_files: []
|