omniauth-shopify-oauth2 1.1.0 → 1.1.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.
- data/Gemfile +1 -1
 - data/Gemfile.lock +21 -18
 - data/lib/omniauth/shopify/version.rb +1 -1
 - data/lib/omniauth/strategies/shopify.rb +2 -0
 - data/spec/omniauth/strategies/shopify_spec.rb +10 -1
 - metadata +24 -10
 
    
        data/Gemfile
    CHANGED
    
    
    
        data/Gemfile.lock
    CHANGED
    
    | 
         @@ -1,31 +1,34 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            PATH
         
     | 
| 
       2 
2 
     | 
    
         
             
              remote: .
         
     | 
| 
       3 
3 
     | 
    
         
             
              specs:
         
     | 
| 
       4 
     | 
    
         
            -
                omniauth-shopify-oauth2 (1. 
     | 
| 
       5 
     | 
    
         
            -
                  omniauth-oauth2 (~> 1. 
     | 
| 
      
 4 
     | 
    
         
            +
                omniauth-shopify-oauth2 (1.1.1)
         
     | 
| 
      
 5 
     | 
    
         
            +
                  omniauth-oauth2 (~> 1.1.0)
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            GEM
         
     | 
| 
       8 
     | 
    
         
            -
              remote:  
     | 
| 
      
 8 
     | 
    
         
            +
              remote: https://rubygems.org/
         
     | 
| 
       9 
9 
     | 
    
         
             
              specs:
         
     | 
| 
       10 
     | 
    
         
            -
                addressable (2.2.6)
         
     | 
| 
       11 
10 
     | 
    
         
             
                diff-lcs (1.1.3)
         
     | 
| 
       12 
     | 
    
         
            -
                faraday (0. 
     | 
| 
       13 
     | 
    
         
            -
                   
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
                 
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
                 
     | 
| 
       19 
     | 
    
         
            -
                 
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
      
 11 
     | 
    
         
            +
                faraday (0.8.8)
         
     | 
| 
      
 12 
     | 
    
         
            +
                  multipart-post (~> 1.2.0)
         
     | 
| 
      
 13 
     | 
    
         
            +
                hashie (2.0.5)
         
     | 
| 
      
 14 
     | 
    
         
            +
                httpauth (0.2.0)
         
     | 
| 
      
 15 
     | 
    
         
            +
                jwt (0.1.8)
         
     | 
| 
      
 16 
     | 
    
         
            +
                  multi_json (>= 1.5)
         
     | 
| 
      
 17 
     | 
    
         
            +
                multi_json (1.8.2)
         
     | 
| 
      
 18 
     | 
    
         
            +
                multipart-post (1.2.0)
         
     | 
| 
      
 19 
     | 
    
         
            +
                oauth2 (0.8.1)
         
     | 
| 
      
 20 
     | 
    
         
            +
                  faraday (~> 0.8)
         
     | 
| 
      
 21 
     | 
    
         
            +
                  httpauth (~> 0.1)
         
     | 
| 
      
 22 
     | 
    
         
            +
                  jwt (~> 0.1.4)
         
     | 
| 
       21 
23 
     | 
    
         
             
                  multi_json (~> 1.0)
         
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
      
 24 
     | 
    
         
            +
                  rack (~> 1.2)
         
     | 
| 
      
 25 
     | 
    
         
            +
                omniauth (1.1.4)
         
     | 
| 
      
 26 
     | 
    
         
            +
                  hashie (>= 1.2, < 3)
         
     | 
| 
       24 
27 
     | 
    
         
             
                  rack
         
     | 
| 
       25 
     | 
    
         
            -
                omniauth-oauth2 (1. 
     | 
| 
       26 
     | 
    
         
            -
                  oauth2 (~> 0. 
     | 
| 
      
 28 
     | 
    
         
            +
                omniauth-oauth2 (1.1.1)
         
     | 
| 
      
 29 
     | 
    
         
            +
                  oauth2 (~> 0.8.0)
         
     | 
| 
       27 
30 
     | 
    
         
             
                  omniauth (~> 1.0)
         
     | 
| 
       28 
     | 
    
         
            -
                rack (1. 
     | 
| 
      
 31 
     | 
    
         
            +
                rack (1.5.2)
         
     | 
| 
       29 
32 
     | 
    
         
             
                rake (0.9.2.2)
         
     | 
| 
       30 
33 
     | 
    
         
             
                rspec (2.7.0)
         
     | 
| 
       31 
34 
     | 
    
         
             
                  rspec-core (~> 2.7.0)
         
     | 
| 
         @@ -4,7 +4,8 @@ require 'base64' 
     | 
|
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            describe OmniAuth::Strategies::Shopify do
         
     | 
| 
       6 
6 
     | 
    
         
             
              before :each do
         
     | 
| 
       7 
     | 
    
         
            -
                @request = double('Request' 
     | 
| 
      
 7 
     | 
    
         
            +
                @request = double('Request',
         
     | 
| 
      
 8 
     | 
    
         
            +
                                  :env => { })
         
     | 
| 
       8 
9 
     | 
    
         
             
                @request.stub(:params) { {} }
         
     | 
| 
       9 
10 
     | 
    
         
             
                @request.stub(:cookies) { {} }
         
     | 
| 
       10 
11 
     | 
    
         | 
| 
         @@ -17,6 +18,7 @@ describe OmniAuth::Strategies::Shopify do 
     | 
|
| 
       17 
18 
     | 
    
         
             
                args = [@client_id, @client_secret, @options].compact
         
     | 
| 
       18 
19 
     | 
    
         
             
                OmniAuth::Strategies::Shopify.new(nil, *args).tap do |strategy|
         
     | 
| 
       19 
20 
     | 
    
         
             
                  strategy.stub(:request) { @request }
         
     | 
| 
      
 21 
     | 
    
         
            +
                  strategy.stub(:session) { {} }
         
     | 
| 
       20 
22 
     | 
    
         
             
                end
         
     | 
| 
       21 
23 
     | 
    
         
             
              end
         
     | 
| 
       22 
24 
     | 
    
         | 
| 
         @@ -62,6 +64,12 @@ describe OmniAuth::Strategies::Shopify do 
     | 
|
| 
       62 
64 
     | 
    
         
             
                end
         
     | 
| 
       63 
65 
     | 
    
         
             
              end
         
     | 
| 
       64 
66 
     | 
    
         | 
| 
      
 67 
     | 
    
         
            +
              describe '#uid' do
         
     | 
| 
      
 68 
     | 
    
         
            +
                it 'returns the shop' do
         
     | 
| 
      
 69 
     | 
    
         
            +
                  subject.uid.should eq('example.myshopify.com')
         
     | 
| 
      
 70 
     | 
    
         
            +
                end
         
     | 
| 
      
 71 
     | 
    
         
            +
              end
         
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
       65 
73 
     | 
    
         
             
              describe '#credentials' do
         
     | 
| 
       66 
74 
     | 
    
         
             
                before :each do
         
     | 
| 
       67 
75 
     | 
    
         
             
                  @access_token = double('OAuth2::AccessToken')
         
     | 
| 
         @@ -88,5 +96,6 @@ describe OmniAuth::Strategies::Shopify do 
     | 
|
| 
       88 
96 
     | 
    
         
             
                  @access_token.stub(:expires?) { false }
         
     | 
| 
       89 
97 
     | 
    
         
             
                  subject.credentials['expires'].should eq(false)
         
     | 
| 
       90 
98 
     | 
    
         
             
                end
         
     | 
| 
      
 99 
     | 
    
         
            +
             
     | 
| 
       91 
100 
     | 
    
         
             
              end
         
     | 
| 
       92 
101 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: omniauth-shopify-oauth2
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.1.1
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -9,11 +9,11 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2013- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2013-11-18 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: omniauth-oauth2
         
     | 
| 
       16 
     | 
    
         
            -
              requirement:  
     | 
| 
      
 16 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       17 
17 
     | 
    
         
             
                none: false
         
     | 
| 
       18 
18 
     | 
    
         
             
                requirements:
         
     | 
| 
       19 
19 
     | 
    
         
             
                - - ~>
         
     | 
| 
         @@ -21,10 +21,15 @@ dependencies: 
     | 
|
| 
       21 
21 
     | 
    
         
             
                    version: 1.1.0
         
     | 
| 
       22 
22 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       23 
23 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       24 
     | 
    
         
            -
              version_requirements:  
     | 
| 
      
 24 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 25 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 26 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 27 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 28 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 29 
     | 
    
         
            +
                    version: 1.1.0
         
     | 
| 
       25 
30 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       26 
31 
     | 
    
         
             
              name: rspec
         
     | 
| 
       27 
     | 
    
         
            -
              requirement:  
     | 
| 
      
 32 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       28 
33 
     | 
    
         
             
                none: false
         
     | 
| 
       29 
34 
     | 
    
         
             
                requirements:
         
     | 
| 
       30 
35 
     | 
    
         
             
                - - ~>
         
     | 
| 
         @@ -32,10 +37,15 @@ dependencies: 
     | 
|
| 
       32 
37 
     | 
    
         
             
                    version: 2.7.0
         
     | 
| 
       33 
38 
     | 
    
         
             
              type: :development
         
     | 
| 
       34 
39 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       35 
     | 
    
         
            -
              version_requirements:  
     | 
| 
      
 40 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 41 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 42 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 43 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 44 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 45 
     | 
    
         
            +
                    version: 2.7.0
         
     | 
| 
       36 
46 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       37 
47 
     | 
    
         
             
              name: rake
         
     | 
| 
       38 
     | 
    
         
            -
              requirement:  
     | 
| 
      
 48 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       39 
49 
     | 
    
         
             
                none: false
         
     | 
| 
       40 
50 
     | 
    
         
             
                requirements:
         
     | 
| 
       41 
51 
     | 
    
         
             
                - - ! '>='
         
     | 
| 
         @@ -43,7 +53,12 @@ dependencies: 
     | 
|
| 
       43 
53 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       44 
54 
     | 
    
         
             
              type: :development
         
     | 
| 
       45 
55 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       46 
     | 
    
         
            -
              version_requirements:  
     | 
| 
      
 56 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 57 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 58 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 59 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 60 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 61 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       47 
62 
     | 
    
         
             
            description: 
         
     | 
| 
       48 
63 
     | 
    
         
             
            email:
         
     | 
| 
       49 
64 
     | 
    
         
             
            - denis.odorcic@shopify.com
         
     | 
| 
         @@ -87,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       87 
102 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       88 
103 
     | 
    
         
             
            requirements: []
         
     | 
| 
       89 
104 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       90 
     | 
    
         
            -
            rubygems_version: 1.8. 
     | 
| 
      
 105 
     | 
    
         
            +
            rubygems_version: 1.8.23
         
     | 
| 
       91 
106 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       92 
107 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       93 
108 
     | 
    
         
             
            summary: Shopify strategy for OmniAuth
         
     | 
| 
         @@ -95,4 +110,3 @@ test_files: 
     | 
|
| 
       95 
110 
     | 
    
         
             
            - spec/omniauth/strategies/shopify_spec.rb
         
     | 
| 
       96 
111 
     | 
    
         
             
            - spec/spec_helper.rb
         
     | 
| 
       97 
112 
     | 
    
         
             
            - spec/support/shared_examples.rb
         
     | 
| 
       98 
     | 
    
         
            -
            has_rdoc: 
         
     |