HornsAndHooves-emailage 1.1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '095c248fc9de5c0b18734dbb119745b39211b540570ed5bb2578ba5fd49b8162'
4
+ data.tar.gz: 825f7398aedba3ba3c820e1b33497c30732620c835ca707ef1e2c2d1160bede7
5
+ SHA512:
6
+ metadata.gz: 9df469e1aacd6b6df57701368ff1a51346fa0d05add5e6551bfb090dc4ea49c28c233f4a54afa9f7c39fa958d58791904cd1c7f5f78a3d70eb9efc99358f1bc3
7
+ data.tar.gz: a376cfd41ba425b0fbe2427a89bca79c768e8821236ee1aae764c6e676ab6c318d5bd7664cfa17483110697e48483a00a59a0e758e9f322b655ea1efc1b03bd1
@@ -0,0 +1,7 @@
1
+ .git*
2
+ db/*.sqlite3
3
+ db/*.sqlite3-journal
4
+ log/*
5
+ tmp/*
6
+ Dockerfile
7
+ README.rdoc
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.gem
@@ -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 ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in emailage.gemspec
4
+ gemspec
@@ -0,0 +1,31 @@
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 = "HornsAndHooves-emailage"
8
+ spec.version = Emailage::VERSION
9
+ spec.authors = ["Emailage DEV Team"]
10
+ spec.email = ["devit@emailage.com"]
11
+
12
+ spec.license = "MIT"
13
+ spec.summary = "Emailage API client written in Ruby"
14
+ spec.description = "Emailage is a Fraud Prevention Solution. This gem implements a client for the Emailage web service."
15
+ spec.homepage = "https://emailage.com/"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_development_dependency "bundler", "~> 1.11"
21
+ spec.add_development_dependency "rake", "~> 10.0"
22
+ spec.add_development_dependency "rspec-core", "~> 3.4"
23
+ spec.add_development_dependency "rspec-expectations", "~> 3.4"
24
+ spec.add_development_dependency "rspec-mocks", "~> 3.4"
25
+ spec.add_development_dependency "yard", ">= 0.9.11"
26
+ spec.add_development_dependency "redcarpet", "~> 3.3"
27
+
28
+ spec.add_dependency "typhoeus", "~> 1.0"
29
+ spec.add_dependency "uuid", "~> 2.3"
30
+ spec.add_dependency "json", "~> 2.1"
31
+ end
data/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright 2016-2017 Emailage Corp
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,100 @@
1
+ # Emailage Ruby API Client
2
+
3
+ ![alt text][logo]
4
+
5
+ [logo]: https://www.emailage.com/wp-content/uploads/2018/01/logo-dark.svg "Emailage Logo"
6
+
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.
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ``` ruby
14
+ gem 'HornsAndHooves-emailage', require 'emailage'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ ``` bash
20
+ bundle
21
+ ```
22
+
23
+ Or install it yourself as:
24
+
25
+ ``` bash
26
+ gem install emailage
27
+ ```
28
+
29
+ ## Usage
30
+
31
+ Instantiate a client
32
+
33
+ ```ruby
34
+ # For a production server
35
+ emailage = Emailage::Client.new('My account SID', 'My auth token')
36
+ # ... or for a sandbox
37
+ emailage = Emailage::Client.new('My account SID', 'My auth token', sandbox: true)
38
+ ```
39
+
40
+ Query risk score information for the provided email address, IP address, or a combination
41
+
42
+ ```ruby
43
+ # For an email address
44
+ emailage.query 'test@example.com'
45
+ # For an IP address
46
+ emailage.query '127.0.0.1'
47
+ # For a combination. Please note the order
48
+ emailage.query ['test@example.com', '127.0.0.1']
49
+ # Pass a User Defined Record ID.
50
+ # Can be used when you want to add an identifier for a query.
51
+ # The identifier will be displayed in the result.
52
+ emailage.query 'test@example.com', urid: 'My record ID for test@example.com'
53
+ ```
54
+
55
+ Explicit methods produce the same request while validating format of the arguments passed
56
+
57
+ ```ruby
58
+ # For an email address
59
+ emailage.query_email 'test@example.com'
60
+ # For an IP address
61
+ emailage.query_ip_address '127.0.0.1'
62
+ # For a combination. Please note the order
63
+ emailage.query_email_and_ip_address 'test@example.com', '127.0.0.1'
64
+ # Pass a User Defined Record ID
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'
66
+ ```
67
+
68
+ Mark an email address as fraud, good, or neutral.
69
+ All the listed forms are possible.
70
+
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"
81
+
82
+ ```ruby
83
+ # Mark an email address as fraud.
84
+ emailage.flag 'fraud', 'test@example.com', 8
85
+ emailage.flag_as_fraud 'test@example.com', 8
86
+ # Mark an email address as good.
87
+ emailage.flag 'good', 'test@example.com'
88
+ emailage.flag_as_good 'test@example.com'
89
+ # Unflag an email address that was previously marked as good or fraud.
90
+ emailage.flag 'neutral', 'test@example.com'
91
+ emailage.remove_flag 'test@example.com'
92
+ ```
93
+
94
+ ### Exceptions
95
+
96
+ This gem can throw exceptions for any of the following issues:
97
+
98
+ 1. When Curl has an issue and it's not possible to connect to the Emailage API
99
+ 2. When improperly formatted JSON is received
100
+ 3. When an incorrect email or IP address is passed to a flagging or explicitly querying method.
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -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
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,20 @@
1
+ require 'emailage/version'
2
+ require 'emailage/signature'
3
+ require 'emailage/validation'
4
+ require 'emailage/client'
5
+
6
+ module Emailage
7
+ FRAUD_CODES = {
8
+ 1 => 'Card Not Present Fraud',
9
+ 2 => 'Customer Dispute (Chargeback)',
10
+ 3 => 'First Party Fraud',
11
+ 4 => 'First Payment Default',
12
+ 5 => 'Identify Theft (Fraud Application)',
13
+ 6 => 'Identify Theft (Account Take Over)',
14
+ 7 => 'Suspected Fraud (Not Confirmed)',
15
+ 8 => 'Synthetic ID',
16
+ 9 => 'Other'
17
+ }
18
+
19
+ class Error < StandardError; end
20
+ end
@@ -0,0 +1,165 @@
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.
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
+ json = res.body.sub(/^[^{]+/, '')
50
+ JSON.parse json
51
+ end
52
+
53
+ public
54
+
55
+ # Query a risk score information for the provided email address, IP address, or a combination.
56
+ #
57
+ # @param query [String | Array<String>] Email, IP or a tuple of (Email, IP).
58
+ # @param params [Hash] Extra request params as in API documentation.
59
+ # @option urid [String] User Defined Record ID.
60
+ # Can be used when you want to add an identifier for a query.
61
+ # The identifier will be displayed in the result.
62
+ #
63
+ def query(query, params={})
64
+ query *= '+' if query.is_a? Array
65
+ request '', params.merge(:query => query)
66
+ end
67
+
68
+ # Query a risk score information for the provided email address.
69
+ # This method differs from #query in that it ensures that the string supplied is in rfc2822 format.
70
+ #
71
+ # @param email [String]
72
+ # @param params [Hash] Extra request params as in API documentation.
73
+ # @option urid [String] User Defined Record ID. See #query.
74
+ #
75
+ def query_email(email, params={})
76
+ Validation.validate_email! email
77
+ query email, params
78
+ end
79
+
80
+ # Query a risk score information for the provided IP address.
81
+ # This method differs from #query in that it ensures that the string supplied is in rfc791 format.
82
+ #
83
+ # @param ip [String]
84
+ # @param params [Hash] Extra request params as in API documentation.
85
+ # @option urid [String] User Defined Record ID. See #query.
86
+ #
87
+ def query_ip_address(ip, params={})
88
+ Validation.validate_ip! ip
89
+ query ip, params
90
+ end
91
+
92
+ # Query a risk score information for the provided combination of an Email and IP address.
93
+ # This method differs from #query in that it ensures that the strings supplied are in rfc2822 and rfc791 formats.
94
+ #
95
+ # @param email [String]
96
+ # @param ip [String]
97
+ # @param params [Hash] Extra request params as in API documentation.
98
+ # @option urid [String] User Defined Record ID. See #query.
99
+ #
100
+ def query_email_and_ip_address(email, ip, params={})
101
+ Validation.validate_email! email
102
+ Validation.validate_ip! ip
103
+ query [email, ip], params
104
+ end
105
+
106
+
107
+ # Mark an email address as fraud, good, or neutral.
108
+ #
109
+ # @param flag [String] Either fraud, neutral, or good.
110
+ # @param query [String] Email to be flagged.
111
+ # @param fraud_code [Integer | String] Reason why the Email or IP is considered fraud. ID or name of the one of FRAUD_CODES options.
112
+ # E.g. 8 or "Syntethic ID" for Syntethic ID
113
+ # Required only if you flag something as fraud.
114
+ # @see Emailage::FRAUD_CODES for the list of available reasons and their IDs.
115
+ #
116
+ def flag(flag, query, fraud_code=nil)
117
+ flags = %w[fraud neutral good]
118
+ unless flags.include? flag.to_s
119
+ raise ArgumentError, "flag must be one of #{flags * ', '}. #{flag} is given."
120
+ end
121
+
122
+ Validation.validate_email! query
123
+
124
+ query *= '+' if query.is_a? Array
125
+ params = {:flag => flag, :query => query}
126
+
127
+ if flag == 'fraud'
128
+ unless (1..9).to_a.include? fraud_code
129
+ raise ArgumentError, "fraud_code must be an integer from 1 to 9 corresponding to #{FRAUD_CODES.values*', '}. #{fraud_code} is given."
130
+ end
131
+ params[:fraudcodeID] = fraud_code
132
+ end
133
+
134
+ request '/flag', params
135
+ end
136
+
137
+ # Mark an email address as fraud.
138
+ #
139
+ # @param query [String] Email to be flagged.
140
+ # @param fraud_code [Integer | String] Reason why the Email or IP is considered fraud. ID or name of the one of FRAUD_CODES options.
141
+ # E.g. 8 or "Syntethic ID" for Syntethic ID
142
+ # @see Emailage::FRAUD_CODES for the list of available reasons and their IDs.
143
+ #
144
+ def flag_as_fraud(query, fraud_code)
145
+ flag 'fraud', query, fraud_code
146
+ end
147
+
148
+ # Mark an email address as good.
149
+ #
150
+ # @param query [String] Email to be flagged.
151
+ #
152
+ def flag_as_good(query)
153
+ flag 'good', query
154
+ end
155
+
156
+ # Unflag an email address that was marked as good or fraud previously.
157
+ #
158
+ # @param query [String] Email to be flagged.
159
+ #
160
+ def remove_flag(query)
161
+ flag 'neutral', query
162
+ end
163
+
164
+ end
165
+ end
@@ -0,0 +1,45 @@
1
+ require 'cgi'
2
+ require 'openssl'
3
+ require 'base64'
4
+ require 'erb'
5
+
6
+ module Emailage
7
+ module Signature
8
+ class << self
9
+
10
+ # 9.1.1. Normalize Request Parameters
11
+ def normalize_query_parameters(params)
12
+ params.sort.map {|k,v| [CGI.escape(k.to_s), ERB::Util.url_encode(v.to_s)].join '='}.join '&'
13
+ end
14
+
15
+ # 9.1.3. Concatenate Request Elements
16
+ def concatenate_request_elements(method, url, query)
17
+ [method.to_s.upcase, url, query].map {|e| CGI.escape(e)}.join '&'
18
+ end
19
+
20
+ # 9.2. HMAC-SHA1
21
+ def hmac_sha1(base_string, hmac_key)
22
+ OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha1'), hmac_key, base_string)
23
+ end
24
+
25
+ # http://oauth.net/core/1.0/#signing_process
26
+ # Using HTTP GET parameters option.
27
+ #
28
+ # @param method [String] HTTP 1.1 Method
29
+ # @param url [String] Normalized URL to be requested until ? sign.
30
+ # @param params [Hash] GET or www-urlencoded POST request params.
31
+ # @param hmac_key [String] Key generated out of Consumer secret and token.
32
+ #
33
+ # @return [String] Value of the oauth_signature query parameter.
34
+ #
35
+ def create(method, url, params, hmac_key)
36
+ query = normalize_query_parameters(params)
37
+ base_string = concatenate_request_elements(method, url, query)
38
+ digest = hmac_sha1(base_string, hmac_key)
39
+ # 9.2.1. Generating Signature
40
+ Base64.strict_encode64 digest
41
+ end
42
+
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,39 @@
1
+ require "resolv"
2
+
3
+ module Emailage
4
+ module Validation
5
+ class << self
6
+
7
+ def validate_email!(email)
8
+ unless email =~ /\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/
9
+ raise ArgumentError, "#{email} is not a valid email address."
10
+ end
11
+ end
12
+
13
+ def validate_ip!(ip)
14
+ unless ((ip =~ Resolv::IPv4::Regex) || (ip =~ Resolv::IPv6::Regex))
15
+ raise ArgumentError, "#{ip} is not a valid IP address."
16
+ end
17
+ end
18
+
19
+ def validate_email_or_ip!(email_or_ip)
20
+ if email_or_ip.is_a? Array
21
+ if email_or_ip.size != 2
22
+ raise ArgumentError, "an array must contain exactly one Email and one IP address. #{email_or_ip} is given."
23
+ end
24
+ validate_email! email_or_ip.first
25
+ validate_ip! email_or_ip.last
26
+ else
27
+ regex_union = Regexp.union(URI::MailTo::EMAIL_REGEXP, Resolv::IPv4::Regex, Resolv::IPv6::Regex)
28
+ unless email_or_ip =~ regex_union
29
+ raise ArgumentError, "#{email_or_ip} is neither a valid IP address nor a valid email address."
30
+ end
31
+ end
32
+ end
33
+
34
+ end
35
+ end
36
+ end
37
+
38
+
39
+
@@ -0,0 +1,3 @@
1
+ module Emailage
2
+ VERSION = "1.1.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: HornsAndHooves-emailage
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Emailage DEV Team
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-08-16 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.9.11
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 0.9.11
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: '2.1'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '2.1'
153
+ description: Emailage is a Fraud Prevention Solution. This gem implements a client
154
+ for the Emailage web service.
155
+ email:
156
+ - devit@emailage.com
157
+ executables: []
158
+ extensions: []
159
+ extra_rdoc_files: []
160
+ files:
161
+ - ".dockerignore"
162
+ - ".gitignore"
163
+ - Dockerfile
164
+ - Gemfile
165
+ - HornsAndHooves-emailage.gemspec
166
+ - LICENSE
167
+ - README.md
168
+ - Rakefile
169
+ - bin/console
170
+ - bin/setup
171
+ - lib/emailage.rb
172
+ - lib/emailage/client.rb
173
+ - lib/emailage/signature.rb
174
+ - lib/emailage/validation.rb
175
+ - lib/emailage/version.rb
176
+ homepage: https://emailage.com/
177
+ licenses:
178
+ - MIT
179
+ metadata: {}
180
+ post_install_message:
181
+ rdoc_options: []
182
+ require_paths:
183
+ - lib
184
+ required_ruby_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ required_rubygems_version: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
194
+ requirements: []
195
+ rubyforge_project:
196
+ rubygems_version: 2.7.9
197
+ signing_key:
198
+ specification_version: 4
199
+ summary: Emailage API client written in Ruby
200
+ test_files: []