yukon 0.5.0 → 0.5.1
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/.gitignore +1 -0
 - data/.ruby-version +1 -1
 - data/README.md +21 -3
 - data/lib/yukon/credentials_checker.rb +1 -0
 - data/lib/yukon/version.rb +1 -1
 - data/yukon.gemspec +6 -5
 - metadata +27 -14
 - data/config/paypal-sample.yml +0 -12
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ac50a5128ff8b66cda8078b934302b0875dec89f
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 1346b5568a2321bd2254cbf2a2f36eac691c2d91
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: a39b39ecc6280dbdcb5390569932645bf7b8086347bcc9a3a44c5c3b32850203064ca35866e51c64b84ea50e32ec02c23b880b68034504c32619497e531a951a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 94eb00cc62802014e11e5161d1803bc2ea5cce31fb6701ca41c90219c36d3ff756224e4aea26afe583557b114e449439f6acf12a1f91443544e99bda6ec29726
         
     | 
    
        data/.gitignore
    CHANGED
    
    
    
        data/.ruby-version
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            2. 
     | 
| 
      
 1 
     | 
    
         
            +
            2.3.1
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -6,9 +6,13 @@ This Micro Gem encapsulates Express Checkout Paypal API. To experiment with that 
     | 
|
| 
       6 
6 
     | 
    
         
             
            require_relative './lib/yukon/cart.rb'
         
     | 
| 
       7 
7 
     | 
    
         
             
            ```
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
      
 9 
     | 
    
         
            +
            ## Our Sponsor
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            This project is sponsored by Zepho Inc. If you are interested in learning TDD in Ruby, you can redeem the coupon here: https://www.udemy.com/learn-test-driven-development-in-ruby/?couponCode=svr
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
       9 
13 
     | 
    
         
             
            ## Versions
         
     | 
| 
       10 
14 
     | 
    
         | 
| 
       11 
     | 
    
         
            -
            Ruby 		   : 2.2.2  
     | 
| 
      
 15 
     | 
    
         
            +
            Ruby 		   : 2.2.2, 2.2.3 or 2.3.0
         
     | 
| 
       12 
16 
     | 
    
         
             
            ActiveMerchant : 1.52
         
     | 
| 
       13 
17 
     | 
    
         | 
| 
       14 
18 
     | 
    
         
             
            ## Installation
         
     | 
| 
         @@ -65,7 +69,21 @@ The mode value is :test for development and test environments and :live only for 
     | 
|
| 
       65 
69 
     | 
    
         | 
| 
       66 
70 
     | 
    
         
             
            ## Test Credentials
         
     | 
| 
       67 
71 
     | 
    
         | 
| 
       68 
     | 
    
         
            -
            Credentials  
     | 
| 
      
 72 
     | 
    
         
            +
            Credentials Checker
         
     | 
| 
      
 73 
     | 
    
         
            +
             
     | 
| 
      
 74 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 75 
     | 
    
         
            +
            CredentialsChecker.check(login, password, signature)
         
     | 
| 
      
 76 
     | 
    
         
            +
            ```  
         
     | 
| 
      
 77 
     | 
    
         
            +
               
         
     | 
| 
      
 78 
     | 
    
         
            +
            Wrong login, password or signature results in response.message value: 
         
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
            ```
         
     | 
| 
      
 81 
     | 
    
         
            +
            Security header is not valid. 
         
     | 
| 
      
 82 
     | 
    
         
            +
            ```
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
            You can use the above method in your custom rake task to test Paypal credentials.
         
     | 
| 
      
 85 
     | 
    
         
            +
             
     | 
| 
      
 86 
     | 
    
         
            +
            Credentials Test from the Command Line using Curl
         
     | 
| 
       69 
87 
     | 
    
         | 
| 
       70 
88 
     | 
    
         
             
            Once you’ve set up your test accounts and have your API test credentials, you’re ready to make PayPal requests to the Sandbox environment.
         
     | 
| 
       71 
89 
     | 
    
         | 
| 
         @@ -115,7 +133,7 @@ test: 
     | 
|
| 
       115 
133 
     | 
    
         | 
| 
       116 
134 
     | 
    
         
             
            ## Development
         
     | 
| 
       117 
135 
     | 
    
         | 
| 
       118 
     | 
    
         
            -
            After checking out the repo, run `bin/setup` to install dependencies. Then, run ` 
     | 
| 
      
 136 
     | 
    
         
            +
            After checking out the repo, run `bin/setup` to install dependencies. Then, run `rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
         
     | 
| 
       119 
137 
     | 
    
         | 
| 
       120 
138 
     | 
    
         
             
            To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
         
     | 
| 
       121 
139 
     | 
    
         | 
    
        data/lib/yukon/version.rb
    CHANGED
    
    
    
        data/yukon.gemspec
    CHANGED
    
    | 
         @@ -24,9 +24,10 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       24 
24 
     | 
    
         
             
              spec.add_dependency 'activemerchant', "~> 1.52"
         
     | 
| 
       25 
25 
     | 
    
         
             
              spec.add_dependency 'lyon', "~> 0.1"
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
              spec.add_development_dependency "bundler", "~> 1. 
     | 
| 
       28 
     | 
    
         
            -
              spec.add_development_dependency "rake", "~> 10.0"
         
     | 
| 
       29 
     | 
    
         
            -
              spec.add_development_dependency "rspec", "~> 3. 
     | 
| 
       30 
     | 
    
         
            -
              spec.add_development_dependency "vcr", "~>  
     | 
| 
       31 
     | 
    
         
            -
              spec.add_development_dependency "webmock", "~> 1. 
     | 
| 
      
 27 
     | 
    
         
            +
              spec.add_development_dependency "bundler", "~> 1.12.5"
         
     | 
| 
      
 28 
     | 
    
         
            +
              spec.add_development_dependency "rake", "~> 10.5.0"
         
     | 
| 
      
 29 
     | 
    
         
            +
              spec.add_development_dependency "rspec", "~> 3.4"
         
     | 
| 
      
 30 
     | 
    
         
            +
              spec.add_development_dependency "vcr", "~> 3.0.1"
         
     | 
| 
      
 31 
     | 
    
         
            +
              spec.add_development_dependency "webmock", "~> 1.24"
         
     | 
| 
      
 32 
     | 
    
         
            +
              spec.add_development_dependency "rubycritic"
         
     | 
| 
       32 
33 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: yukon
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.5. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.5.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Bala Paranj
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-06-13 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: activemerchant
         
     | 
| 
         @@ -44,70 +44,84 @@ dependencies: 
     | 
|
| 
       44 
44 
     | 
    
         
             
                requirements:
         
     | 
| 
       45 
45 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       46 
46 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       47 
     | 
    
         
            -
                    version:  
     | 
| 
      
 47 
     | 
    
         
            +
                    version: 1.12.5
         
     | 
| 
       48 
48 
     | 
    
         
             
              type: :development
         
     | 
| 
       49 
49 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       50 
50 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       51 
51 
     | 
    
         
             
                requirements:
         
     | 
| 
       52 
52 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       53 
53 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       54 
     | 
    
         
            -
                    version:  
     | 
| 
      
 54 
     | 
    
         
            +
                    version: 1.12.5
         
     | 
| 
       55 
55 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       56 
56 
     | 
    
         
             
              name: rake
         
     | 
| 
       57 
57 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       58 
58 
     | 
    
         
             
                requirements:
         
     | 
| 
       59 
59 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       60 
60 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       61 
     | 
    
         
            -
                    version:  
     | 
| 
      
 61 
     | 
    
         
            +
                    version: 10.5.0
         
     | 
| 
       62 
62 
     | 
    
         
             
              type: :development
         
     | 
| 
       63 
63 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       64 
64 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       65 
65 
     | 
    
         
             
                requirements:
         
     | 
| 
       66 
66 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       67 
67 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       68 
     | 
    
         
            -
                    version:  
     | 
| 
      
 68 
     | 
    
         
            +
                    version: 10.5.0
         
     | 
| 
       69 
69 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       70 
70 
     | 
    
         
             
              name: rspec
         
     | 
| 
       71 
71 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       72 
72 
     | 
    
         
             
                requirements:
         
     | 
| 
       73 
73 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       74 
74 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       75 
     | 
    
         
            -
                    version: '3. 
     | 
| 
      
 75 
     | 
    
         
            +
                    version: '3.4'
         
     | 
| 
       76 
76 
     | 
    
         
             
              type: :development
         
     | 
| 
       77 
77 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       78 
78 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       79 
79 
     | 
    
         
             
                requirements:
         
     | 
| 
       80 
80 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       81 
81 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       82 
     | 
    
         
            -
                    version: '3. 
     | 
| 
      
 82 
     | 
    
         
            +
                    version: '3.4'
         
     | 
| 
       83 
83 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       84 
84 
     | 
    
         
             
              name: vcr
         
     | 
| 
       85 
85 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       86 
86 
     | 
    
         
             
                requirements:
         
     | 
| 
       87 
87 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       88 
88 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       89 
     | 
    
         
            -
                    version:  
     | 
| 
      
 89 
     | 
    
         
            +
                    version: 3.0.1
         
     | 
| 
       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: 3.0.1
         
     | 
| 
       97 
97 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       98 
98 
     | 
    
         
             
              name: webmock
         
     | 
| 
       99 
99 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       100 
100 
     | 
    
         
             
                requirements:
         
     | 
| 
       101 
101 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       102 
102 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       103 
     | 
    
         
            -
                    version: '1. 
     | 
| 
      
 103 
     | 
    
         
            +
                    version: '1.24'
         
     | 
| 
       104 
104 
     | 
    
         
             
              type: :development
         
     | 
| 
       105 
105 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       106 
106 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       107 
107 
     | 
    
         
             
                requirements:
         
     | 
| 
       108 
108 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       109 
109 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       110 
     | 
    
         
            -
                    version: '1. 
     | 
| 
      
 110 
     | 
    
         
            +
                    version: '1.24'
         
     | 
| 
      
 111 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 112 
     | 
    
         
            +
              name: rubycritic
         
     | 
| 
      
 113 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 114 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 115 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 116 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 117 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 118 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 119 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 120 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 121 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 122 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 123 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 124 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       111 
125 
     | 
    
         
             
            description: Express checkout using ActiveMerchant Paypal API.
         
     | 
| 
       112 
126 
     | 
    
         
             
            email:
         
     | 
| 
       113 
127 
     | 
    
         
             
            - bparanj@gmail.com
         
     | 
| 
         @@ -126,7 +140,6 @@ files: 
     | 
|
| 
       126 
140 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       127 
141 
     | 
    
         
             
            - bin/console
         
     | 
| 
       128 
142 
     | 
    
         
             
            - bin/setup
         
     | 
| 
       129 
     | 
    
         
            -
            - config/paypal-sample.yml
         
     | 
| 
       130 
143 
     | 
    
         
             
            - config/paypal.yml
         
     | 
| 
       131 
144 
     | 
    
         
             
            - fixtures/vcr_cassettes/correct_credentials.yml
         
     | 
| 
       132 
145 
     | 
    
         
             
            - fixtures/vcr_cassettes/credentials.yml
         
     | 
| 
         @@ -159,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       159 
172 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       160 
173 
     | 
    
         
             
            requirements: []
         
     | 
| 
       161 
174 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       162 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 175 
     | 
    
         
            +
            rubygems_version: 2.5.1
         
     | 
| 
       163 
176 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       164 
177 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       165 
178 
     | 
    
         
             
            summary: Payment processing using Paypal.
         
     | 
    
        data/config/paypal-sample.yml
    DELETED
    
    | 
         @@ -1,12 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            development: &default
         
     | 
| 
       2 
     | 
    
         
            -
              username: bparan_1360459336_biz_api1.gmail.com
         
     | 
| 
       3 
     | 
    
         
            -
              password: 1360459362
         
     | 
| 
       4 
     | 
    
         
            -
              signature: AiPC9BjkCyDFQXbSkoZcgqH3hpacARbNPHYwGcAEv3pAorm.KuIxgJw8
         
     | 
| 
       5 
     | 
    
         
            -
              app_id: APP-80W284485P519543T
         
     | 
| 
       6 
     | 
    
         
            -
              http_timeout: 30
         
     | 
| 
       7 
     | 
    
         
            -
              mode: sandbox
         
     | 
| 
       8 
     | 
    
         
            -
            test:
         
     | 
| 
       9 
     | 
    
         
            -
              <<: *default
         
     | 
| 
       10 
     | 
    
         
            -
            production:
         
     | 
| 
       11 
     | 
    
         
            -
              <<: *default
         
     | 
| 
       12 
     | 
    
         
            -
              mode: live
         
     |