emailage 1.0.4 → 1.1.0
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/.dockerignore +7 -0
 - data/.gitignore +0 -0
 - data/Dockerfile +10 -0
 - data/Gemfile +0 -0
 - data/LICENSE +0 -0
 - data/README.md +29 -19
 - data/Rakefile +0 -0
 - data/emailage.gemspec +3 -3
 - data/lib/emailage.rb +0 -0
 - data/lib/emailage/client.rb +0 -0
 - data/lib/emailage/signature.rb +0 -0
 - data/lib/emailage/validation.rb +0 -0
 - data/lib/emailage/version.rb +1 -1
 - metadata +10 -8
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8efa8dad34039bd2294cf6a7edde81f6d84b37d91c66b8a5aa5226fb0eda7b83
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 2052d8c290aff9348221b57513fe8070252c7342262a5ea2c79bc985d3fd7694
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5dae66738e6ce642b79bedda2dc37f3cca8115bfc9a3dafd3415cc9b9078cee406ef5ba64c9df8ec1f25b6843de50c081b882cfcc7ce6cda7c16abfc44972127
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 2c42e945a41bc670d5563cceaf4dd3261ddae785bb1cf7a86a0ad61776773aeb955860333d3195b423bf6501a4ec4bfc848f2f1ef85034bb044f8848edab0c5f
         
     | 
    
        data/.dockerignore
    ADDED
    
    
    
        data/.gitignore
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/Dockerfile
    ADDED
    
    
    
        data/Gemfile
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/LICENSE
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,6 +1,8 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
      
 1 
     | 
    
         
            +
            # Emailage Ruby API Client
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            ![alt text][logo] 
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 19 
     | 
    
         
            +
            ``` bash
         
     | 
| 
      
 20 
     | 
    
         
            +
            bundle
         
     | 
| 
      
 21 
     | 
    
         
            +
            ```
         
     | 
| 
       18 
22 
     | 
    
         | 
| 
       19 
23 
     | 
    
         
             
            Or install it yourself as:
         
     | 
| 
       20 
24 
     | 
    
         | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       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
         
     | 
    
        data/emailage.gemspec
    CHANGED
    
    | 
         @@ -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", " 
     | 
| 
      
 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 
     | 
| 
      
 30 
     | 
    
         
            +
              spec.add_dependency "json", "~> 2.1"
         
     | 
| 
       31 
31 
     | 
    
         
             
            end
         
     | 
    
        data/lib/emailage.rb
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/lib/emailage/client.rb
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/lib/emailage/signature.rb
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/lib/emailage/validation.rb
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/lib/emailage/version.rb
    CHANGED
    
    
    
        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 
     | 
    
         
            +
              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:  
     | 
| 
      
 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:  
     | 
| 
      
 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:  
     | 
| 
      
 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 
     | 
| 
      
 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 
     | 
| 
      
 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
         
     |