omniauth-createsend 1.0.2 → 1.0.3
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 +7 -0
 - data/.gitignore +2 -0
 - data/.travis.yml +1 -3
 - data/CONTRIBUTING.md +8 -0
 - data/Gemfile +1 -1
 - data/HISTORY.md +6 -2
 - data/LICENSE +16 -15
 - data/README.md +5 -8
 - data/Rakefile +2 -2
 - data/example/Gemfile +2 -2
 - data/example/config.ru +10 -10
 - data/lib/omniauth-createsend.rb +1 -1
 - data/lib/omniauth/createsend.rb +2 -2
 - data/lib/omniauth/createsend/version.rb +1 -1
 - data/lib/omniauth/strategies/createsend.rb +5 -5
 - data/omniauth-createsend.gemspec +17 -16
 - data/spec/omniauth/strategies/createsend_spec.rb +18 -18
 - data/spec/spec_helper.rb +9 -9
 - metadata +35 -50
 - data/Gemfile.lock +0 -74
 
    
        checksums.yaml
    ADDED
    
    | 
         @@ -0,0 +1,7 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            SHA1:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: de2be915ab702b927d153e122919771a66f2c8fb
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 7ad2298e37e3c7a87042a6fec690635839e63672
         
     | 
| 
      
 5 
     | 
    
         
            +
            SHA512:
         
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 28591e7d9e6f40e5025f50bf7064f69170100996049fde87293b1aed2eb4bdec77cf29d7036726ed3f4e3f2d3c3f8291b610210b7f2b7adf4c21f7b2cfef7c13
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 68be54dabc04c78338f12e7d9e1dbf06483f44d7b72b6a91740b2a9b34a75c21fe8434daadc9fe3dcd236cb39d13de3794d3c147329c99b8db5a164bab3fc620
         
     | 
    
        data/.gitignore
    CHANGED
    
    
    
        data/.travis.yml
    CHANGED
    
    
    
        data/CONTRIBUTING.md
    ADDED
    
    | 
         @@ -0,0 +1,8 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Guidelines for contributing
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            1. [Fork the repository](https://help.github.com/articles/fork-a-repo).
         
     | 
| 
      
 4 
     | 
    
         
            +
            2. Create a topic branch.
         
     | 
| 
      
 5 
     | 
    
         
            +
            3. Make your changes, including tests for your changes which maintain [coverage](https://coveralls.io/r/jdennes/omniauth-createsend).
         
     | 
| 
      
 6 
     | 
    
         
            +
            4. Ensure that all tests pass, by running `bundle exec rake`. The [Travis CI build](https://travis-ci.org/jdennes/omniauth-createsend) runs on Ruby `2.0.0`, `1.9.3`, `1.9.2`, `1.8.7`, and `ree`.
         
     | 
| 
      
 7 
     | 
    
         
            +
            5. It should go without saying, but do not increment the version number in your commits.
         
     | 
| 
      
 8 
     | 
    
         
            +
            6. [Submit a pull request](https://help.github.com/articles/using-pull-requests).
         
     | 
    
        data/Gemfile
    CHANGED
    
    
    
        data/HISTORY.md
    CHANGED
    
    | 
         @@ -1,9 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # omniauth-createsend history
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            ## v1.0. 
     | 
| 
      
 3 
     | 
    
         
            +
            ## v1.0.3 - 19 Jan, 2015
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            * Patch release to update dependencies and improve some code formatting.
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            ## v1.0.2 - 1 Apr, 2013
         
     | 
| 
       4 
8 
     | 
    
         | 
| 
       5 
9 
     | 
    
         
             
            * Refactored out unnecessary code and brought test coverage to 100%.
         
     | 
| 
       6 
10 
     | 
    
         | 
| 
       7 
     | 
    
         
            -
            ## v1.0.1 - 24 Feb, 2013 
     | 
| 
      
 11 
     | 
    
         
            +
            ## v1.0.1 - 24 Feb, 2013
         
     | 
| 
       8 
12 
     | 
    
         | 
| 
       9 
13 
     | 
    
         
             
            * Initial release ready for use in production.
         
     | 
    
        data/LICENSE
    CHANGED
    
    | 
         @@ -1,19 +1,20 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
      
 1 
     | 
    
         
            +
            The MIT License (MIT)
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            of this software and associated documentation files (the "Software"), to deal
         
     | 
| 
       5 
     | 
    
         
            -
            in the Software without restriction, including without limitation the rights
         
     | 
| 
       6 
     | 
    
         
            -
            to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         
     | 
| 
       7 
     | 
    
         
            -
            copies of the Software, and to permit persons to whom the Software is
         
     | 
| 
       8 
     | 
    
         
            -
            furnished to do so, subject to the following conditions:
         
     | 
| 
      
 3 
     | 
    
         
            +
            Copyright (c) 2013-2015 James Dennes
         
     | 
| 
       9 
4 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
      
 5 
     | 
    
         
            +
            Permission is hereby granted, free of charge, to any person obtaining a copy of
         
     | 
| 
      
 6 
     | 
    
         
            +
            this software and associated documentation files (the "Software"), to deal in
         
     | 
| 
      
 7 
     | 
    
         
            +
            the Software without restriction, including without limitation the rights to
         
     | 
| 
      
 8 
     | 
    
         
            +
            use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
         
     | 
| 
      
 9 
     | 
    
         
            +
            the Software, and to permit persons to whom the Software is furnished to do so,
         
     | 
| 
      
 10 
     | 
    
         
            +
            subject to the following conditions:
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            The above copyright notice and this permission notice shall be included in all
         
     | 
| 
      
 13 
     | 
    
         
            +
            copies or substantial portions of the Software.
         
     | 
| 
       12 
14 
     | 
    
         | 
| 
       13 
15 
     | 
    
         
             
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         
     | 
| 
       14 
     | 
    
         
            -
            IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
            THE SOFTWARE.
         
     | 
| 
      
 16 
     | 
    
         
            +
            IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
         
     | 
| 
      
 17 
     | 
    
         
            +
            FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
         
     | 
| 
      
 18 
     | 
    
         
            +
            COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
         
     | 
| 
      
 19 
     | 
    
         
            +
            IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
         
     | 
| 
      
 20 
     | 
    
         
            +
            CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -13,7 +13,7 @@ This is the official [OmniAuth](http://www.omniauth.org/) strategy for authentic 
     | 
|
| 
       13 
13 
     | 
    
         
             
            Add a dependency to your `Gemfile` then `bundle install`.
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
15 
     | 
    
         
             
            ```ruby
         
     | 
| 
       16 
     | 
    
         
            -
            gem  
     | 
| 
      
 16 
     | 
    
         
            +
            gem "omniauth-createsend"
         
     | 
| 
       17 
17 
     | 
    
         
             
            ```
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
            ## Basic Usage
         
     | 
| 
         @@ -22,7 +22,7 @@ In Rack applications: 
     | 
|
| 
       22 
22 
     | 
    
         | 
| 
       23 
23 
     | 
    
         
             
            ```ruby
         
     | 
| 
       24 
24 
     | 
    
         
             
            use OmniAuth::Builder do
         
     | 
| 
       25 
     | 
    
         
            -
              provider "createsend", ENV[ 
     | 
| 
      
 25 
     | 
    
         
            +
              provider "createsend", ENV["CREATESEND_CLIENT_ID"], ENV["CREATESEND_CLIENT_SECRET"], :scope => "ViewReports,CreateCampaigns,SendCampaigns"
         
     | 
| 
       26 
26 
     | 
    
         
             
            end
         
     | 
| 
       27 
27 
     | 
    
         
             
            ```
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
         @@ -30,7 +30,7 @@ In Rails applications: 
     | 
|
| 
       30 
30 
     | 
    
         | 
| 
       31 
31 
     | 
    
         
             
            ```ruby
         
     | 
| 
       32 
32 
     | 
    
         
             
            Rails.application.config.middleware.use OmniAuth::Builder do
         
     | 
| 
       33 
     | 
    
         
            -
              provider "createsend", ENV[ 
     | 
| 
      
 33 
     | 
    
         
            +
              provider "createsend", ENV["CREATESEND_CLIENT_ID"], ENV["CREATESEND_CLIENT_SECRET"], :scope => "ViewReports,CreateCampaigns,SendCampaigns"
         
     | 
| 
       34 
34 
     | 
    
         
             
            end
         
     | 
| 
       35 
35 
     | 
    
         
             
            ```
         
     | 
| 
       36 
36 
     | 
    
         | 
| 
         @@ -39,8 +39,5 @@ This gem also includes an [example](https://github.com/jdennes/omniauth-createse 
     | 
|
| 
       39 
39 
     | 
    
         
             
            Once you've authenticated, you should use the [createsend](http://campaignmonitor.github.com/createsend-ruby/) gem to access Campaign Monitor resources.
         
     | 
| 
       40 
40 
     | 
    
         | 
| 
       41 
41 
     | 
    
         
             
            ## Contributing
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
            3. Ensure that the build passes, by running `bundle exec rake` (CI runs on: `2.0.0`, `1.9.3`, `1.9.2`, `1.8.7`, and `ree`)
         
     | 
| 
       45 
     | 
    
         
            -
            4. It should go without saying, but do not increment the version number in your commits.
         
     | 
| 
       46 
     | 
    
         
            -
            5. Submit a pull request.
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
      
 43 
     | 
    
         
            +
            Please check the [guidelines for contributing](https://github.com/jdennes/omniauth-createsend/blob/master/CONTRIBUTING.md) to this repository.
         
     | 
    
        data/Rakefile
    CHANGED
    
    
    
        data/example/Gemfile
    CHANGED
    
    
    
        data/example/config.ru
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require  
     | 
| 
       2 
     | 
    
         
            -
            require  
     | 
| 
       3 
     | 
    
         
            -
            require  
     | 
| 
      
 1 
     | 
    
         
            +
            require "bundler/setup"
         
     | 
| 
      
 2 
     | 
    
         
            +
            require "sinatra/base"
         
     | 
| 
      
 3 
     | 
    
         
            +
            require "omniauth-createsend"
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            class App < Sinatra::Base
         
     | 
| 
       6 
     | 
    
         
            -
              get  
     | 
| 
       7 
     | 
    
         
            -
                redirect  
     | 
| 
      
 6 
     | 
    
         
            +
              get "/" do
         
     | 
| 
      
 7 
     | 
    
         
            +
                redirect "/auth/createsend"
         
     | 
| 
       8 
8 
     | 
    
         
             
              end
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
              get  
     | 
| 
      
 10 
     | 
    
         
            +
              get "/auth/createsend/callback" do
         
     | 
| 
       11 
11 
     | 
    
         
             
                response = "Your user is successfully authenticated. Here are the details you need:<br/><br/>"
         
     | 
| 
       12 
12 
     | 
    
         
             
                response << "access token: #{request.env['omniauth.auth']['credentials']['token']}<br/>"
         
     | 
| 
       13 
13 
     | 
    
         
             
                response << "refresh token: #{request.env['omniauth.auth']['credentials']['refresh_token']}<br/>"
         
     | 
| 
         @@ -15,8 +15,8 @@ class App < Sinatra::Base 
     | 
|
| 
       15 
15 
     | 
    
         
             
                response
         
     | 
| 
       16 
16 
     | 
    
         
             
              end
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
              get  
     | 
| 
       19 
     | 
    
         
            -
                content_type  
     | 
| 
      
 18 
     | 
    
         
            +
              get "/auth/failure" do
         
     | 
| 
      
 19 
     | 
    
         
            +
                content_type "application/json"
         
     | 
| 
       20 
20 
     | 
    
         
             
                MultiJson.encode(request.env)
         
     | 
| 
       21 
21 
     | 
    
         
             
              end
         
     | 
| 
       22 
22 
     | 
    
         
             
            end
         
     | 
| 
         @@ -24,8 +24,8 @@ end 
     | 
|
| 
       24 
24 
     | 
    
         
             
            use Rack::Session::Cookie
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
       26 
26 
     | 
    
         
             
            use OmniAuth::Builder do
         
     | 
| 
       27 
     | 
    
         
            -
              provider :createsend, ENV[ 
     | 
| 
       28 
     | 
    
         
            -
                :scope =>  
     | 
| 
      
 27 
     | 
    
         
            +
              provider :createsend, ENV["CREATESEND_CLIENT_ID"], ENV["CREATESEND_CLIENT_SECRET"],
         
     | 
| 
      
 28 
     | 
    
         
            +
                :scope => "ViewReports,CreateCampaigns,SendCampaigns"
         
     | 
| 
       29 
29 
     | 
    
         
             
            end
         
     | 
| 
       30 
30 
     | 
    
         | 
| 
       31 
31 
     | 
    
         
             
            run App.new
         
     | 
    
        data/lib/omniauth-createsend.rb
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require  
     | 
| 
      
 1 
     | 
    
         
            +
            require "omniauth/createsend"
         
     | 
    
        data/lib/omniauth/createsend.rb
    CHANGED
    
    | 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require  
     | 
| 
       2 
     | 
    
         
            -
            require  
     | 
| 
      
 1 
     | 
    
         
            +
            require "omniauth/createsend/version"
         
     | 
| 
      
 2 
     | 
    
         
            +
            require "omniauth/strategies/createsend"
         
     | 
| 
         @@ -1,16 +1,16 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require  
     | 
| 
      
 1 
     | 
    
         
            +
            require "omniauth/strategies/oauth2"
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            module OmniAuth
         
     | 
| 
       4 
4 
     | 
    
         
             
              module Strategies
         
     | 
| 
       5 
5 
     | 
    
         
             
                class CreateSend < OmniAuth::Strategies::OAuth2
         
     | 
| 
       6 
6 
     | 
    
         
             
                  option :name, "createsend"
         
     | 
| 
       7 
7 
     | 
    
         
             
                  option :client_options, {
         
     | 
| 
       8 
     | 
    
         
            -
                    :site =>  
     | 
| 
       9 
     | 
    
         
            -
                    :authorize_url =>  
     | 
| 
       10 
     | 
    
         
            -
                    :token_url =>  
     | 
| 
      
 8 
     | 
    
         
            +
                    :site => "https://api.createsend.com",
         
     | 
| 
      
 9 
     | 
    
         
            +
                    :authorize_url => "/oauth",
         
     | 
| 
      
 10 
     | 
    
         
            +
                    :token_url => "/oauth/token"
         
     | 
| 
       11 
11 
     | 
    
         
             
                  }
         
     | 
| 
       12 
12 
     | 
    
         
             
                end
         
     | 
| 
       13 
13 
     | 
    
         
             
              end
         
     | 
| 
       14 
14 
     | 
    
         
             
            end
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
     | 
    
         
            -
            OmniAuth.config.add_camelization  
     | 
| 
      
 16 
     | 
    
         
            +
            OmniAuth.config.add_camelization "createsend", "CreateSend"
         
     | 
    
        data/omniauth-createsend.gemspec
    CHANGED
    
    | 
         @@ -1,27 +1,28 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # -*- encoding: utf-8 -*-
         
     | 
| 
       2 
     | 
    
         
            -
            $:.push File.expand_path( 
     | 
| 
       3 
     | 
    
         
            -
            require  
     | 
| 
      
 2 
     | 
    
         
            +
            $:.push File.expand_path("../lib", __FILE__)
         
     | 
| 
      
 3 
     | 
    
         
            +
            require "omniauth/createsend/version"
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            Gem::Specification.new do |s|
         
     | 
| 
       6 
     | 
    
         
            -
              s.name          =  
     | 
| 
      
 6 
     | 
    
         
            +
              s.name          = "omniauth-createsend"
         
     | 
| 
       7 
7 
     | 
    
         
             
              s.version       = OmniAuth::CreateSend::VERSION
         
     | 
| 
       8 
8 
     | 
    
         
             
              s.platform      = Gem::Platform::RUBY
         
     | 
| 
       9 
     | 
    
         
            -
              s.author        =  
     | 
| 
       10 
     | 
    
         
            -
              s.email         = [ 
     | 
| 
       11 
     | 
    
         
            -
              s.summary       =  
     | 
| 
       12 
     | 
    
         
            -
              s.description   =  
     | 
| 
       13 
     | 
    
         
            -
              s.homepage      =  
     | 
| 
      
 9 
     | 
    
         
            +
              s.author        = "James Dennes"
         
     | 
| 
      
 10 
     | 
    
         
            +
              s.email         = ["jdennes@gmail.com"]
         
     | 
| 
      
 11 
     | 
    
         
            +
              s.summary       = "Official OmniAuth strategy for the Campaign Monitor API."
         
     | 
| 
      
 12 
     | 
    
         
            +
              s.description   = "The official OmniAuth strategy for authenticating with the Campaign Monitor API."
         
     | 
| 
      
 13 
     | 
    
         
            +
              s.homepage      = "https://github.com/jdennes/omniauth-createsend/"
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
15 
     | 
    
         
             
              s.files         = `git ls-files`.split("\n")
         
     | 
| 
       16 
16 
     | 
    
         
             
              s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
         
     | 
| 
       17 
17 
     | 
    
         
             
              s.executables   = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
         
     | 
| 
       18 
     | 
    
         
            -
              s.require_paths = [ 
     | 
| 
      
 18 
     | 
    
         
            +
              s.require_paths = ["lib"]
         
     | 
| 
      
 19 
     | 
    
         
            +
              s.licenses      = ["MIT"]
         
     | 
| 
       19 
20 
     | 
    
         | 
| 
       20 
     | 
    
         
            -
              s.add_runtime_dependency  
     | 
| 
       21 
     | 
    
         
            -
              s.add_development_dependency  
     | 
| 
       22 
     | 
    
         
            -
              s.add_development_dependency  
     | 
| 
       23 
     | 
    
         
            -
              s.add_development_dependency  
     | 
| 
       24 
     | 
    
         
            -
              s.add_development_dependency  
     | 
| 
       25 
     | 
    
         
            -
              s.add_development_dependency  
     | 
| 
       26 
     | 
    
         
            -
              s.add_development_dependency  
     | 
| 
      
 21 
     | 
    
         
            +
              s.add_runtime_dependency "omniauth-oauth2", "~> 1.1"
         
     | 
| 
      
 22 
     | 
    
         
            +
              s.add_development_dependency "rspec", "~> 3.0"
         
     | 
| 
      
 23 
     | 
    
         
            +
              s.add_development_dependency "rack-test", "~> 0.6"
         
     | 
| 
      
 24 
     | 
    
         
            +
              s.add_development_dependency "webmock", "~> 1.0"
         
     | 
| 
      
 25 
     | 
    
         
            +
              s.add_development_dependency "rake", "~> 10.0"
         
     | 
| 
      
 26 
     | 
    
         
            +
              s.add_development_dependency "simplecov", "~> 0"
         
     | 
| 
      
 27 
     | 
    
         
            +
              s.add_development_dependency "coveralls", "~> 0"
         
     | 
| 
       27 
28 
     | 
    
         
             
            end
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require  
     | 
| 
      
 1 
     | 
    
         
            +
            require "spec_helper"
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            describe OmniAuth::Strategies::CreateSend do
         
     | 
| 
       4 
4 
     | 
    
         
             
              def app; lambda{|env| [200, {}, ["Hello."]]} end
         
     | 
| 
         @@ -12,45 +12,45 @@ describe OmniAuth::Strategies::CreateSend do 
     | 
|
| 
       12 
12 
     | 
    
         
             
                OmniAuth.config.test_mode = false
         
     | 
| 
       13 
13 
     | 
    
         
             
              end
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
     | 
    
         
            -
              describe  
     | 
| 
      
 15 
     | 
    
         
            +
              describe "#client" do
         
     | 
| 
       16 
16 
     | 
    
         
             
                subject{ fresh_strategy }
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
                it  
     | 
| 
      
 18 
     | 
    
         
            +
                it "should have the correct createsend site" do
         
     | 
| 
       19 
19 
     | 
    
         
             
                  instance = subject.new(app, {})
         
     | 
| 
       20 
     | 
    
         
            -
                  instance.client.site. 
     | 
| 
      
 20 
     | 
    
         
            +
                  expect(instance.client.site).to eq "https://api.createsend.com"
         
     | 
| 
       21 
21 
     | 
    
         
             
                end
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
       23 
     | 
    
         
            -
                it  
     | 
| 
      
 23 
     | 
    
         
            +
                it "should have the correct authorization url" do
         
     | 
| 
       24 
24 
     | 
    
         
             
                  instance = subject.new(app, {})
         
     | 
| 
       25 
     | 
    
         
            -
                  instance.client.options[:authorize_url]. 
     | 
| 
      
 25 
     | 
    
         
            +
                  expect(instance.client.options[:authorize_url]).to eq "/oauth"
         
     | 
| 
       26 
26 
     | 
    
         
             
                end
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
     | 
    
         
            -
                it  
     | 
| 
      
 28 
     | 
    
         
            +
                it "should have the correct token url" do
         
     | 
| 
       29 
29 
     | 
    
         
             
                  instance = subject.new(app, {})
         
     | 
| 
       30 
     | 
    
         
            -
                  instance.client.options[:token_url]. 
     | 
| 
      
 30 
     | 
    
         
            +
                  expect(instance.client.options[:token_url]).to eq "/oauth/token"
         
     | 
| 
       31 
31 
     | 
    
         
             
                end
         
     | 
| 
       32 
32 
     | 
    
         
             
              end
         
     | 
| 
       33 
33 
     | 
    
         | 
| 
       34 
     | 
    
         
            -
              describe  
     | 
| 
      
 34 
     | 
    
         
            +
              describe "#authorize_params" do
         
     | 
| 
       35 
35 
     | 
    
         
             
                subject { fresh_strategy }
         
     | 
| 
       36 
36 
     | 
    
         | 
| 
       37 
     | 
    
         
            -
                it  
     | 
| 
       38 
     | 
    
         
            -
                  instance = subject.new( 
     | 
| 
       39 
     | 
    
         
            -
                  instance.authorize_params[:scope]. 
     | 
| 
      
 37 
     | 
    
         
            +
                it "should include the appropriate authorize params passed in the :authorize_params option" do
         
     | 
| 
      
 38 
     | 
    
         
            +
                  instance = subject.new("abc", "def", :authorize_params => {:scope => "ViewReports,ImportSubscribers", :something => "else", :state => "4321"})
         
     | 
| 
      
 39 
     | 
    
         
            +
                  expect(instance.authorize_params[:scope]).to eq "ViewReports,ImportSubscribers"
         
     | 
| 
       40 
40 
     | 
    
         
             
                end
         
     | 
| 
       41 
41 
     | 
    
         | 
| 
       42 
     | 
    
         
            -
                it  
     | 
| 
       43 
     | 
    
         
            -
                  instance = subject.new( 
     | 
| 
       44 
     | 
    
         
            -
                  instance.authorize_params[:scope]. 
     | 
| 
      
 42 
     | 
    
         
            +
                it "should include appropriate top-level options that are marked as :authorize_options" do
         
     | 
| 
      
 43 
     | 
    
         
            +
                  instance = subject.new("abc", "def", :authorize_options => [:scope], :scope => "ViewReports,ImportSubscribers", :something => "else", :authorize_params => {:state => "4321"})
         
     | 
| 
      
 44 
     | 
    
         
            +
                  expect(instance.authorize_params[:scope]).to eq "ViewReports,ImportSubscribers"
         
     | 
| 
       45 
45 
     | 
    
         
             
                end
         
     | 
| 
       46 
46 
     | 
    
         
             
              end
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
              describe  
     | 
| 
      
 48 
     | 
    
         
            +
              describe "#callback_path" do
         
     | 
| 
       49 
49 
     | 
    
         
             
                subject{ fresh_strategy }
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
     | 
    
         
            -
                it  
     | 
| 
      
 51 
     | 
    
         
            +
                it "should have the correct callback path" do
         
     | 
| 
       52 
52 
     | 
    
         
             
                  instance = subject.new(app, {})
         
     | 
| 
       53 
     | 
    
         
            -
                  instance.callback_path. 
     | 
| 
      
 53 
     | 
    
         
            +
                  expect(instance.callback_path).to eq "/auth/createsend/callback"
         
     | 
| 
       54 
54 
     | 
    
         
             
                end
         
     | 
| 
       55 
55 
     | 
    
         
             
              end
         
     | 
| 
       56 
56 
     | 
    
         
             
            end
         
     | 
    
        data/spec/spec_helper.rb
    CHANGED
    
    | 
         @@ -1,8 +1,8 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            $:.unshift File.expand_path( 
     | 
| 
       2 
     | 
    
         
            -
            $:.unshift File.expand_path( 
     | 
| 
      
 1 
     | 
    
         
            +
            $:.unshift File.expand_path("..", __FILE__)
         
     | 
| 
      
 2 
     | 
    
         
            +
            $:.unshift File.expand_path("../../lib", __FILE__)
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
     | 
    
         
            -
            require  
     | 
| 
       5 
     | 
    
         
            -
            require  
     | 
| 
      
 4 
     | 
    
         
            +
            require "simplecov"
         
     | 
| 
      
 5 
     | 
    
         
            +
            require "coveralls"
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
         
     | 
| 
       8 
8 
     | 
    
         
             
              SimpleCov::Formatter::HTMLFormatter,
         
     | 
| 
         @@ -10,11 +10,11 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ 
     | 
|
| 
       10 
10 
     | 
    
         
             
            ]
         
     | 
| 
       11 
11 
     | 
    
         
             
            SimpleCov.start
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
     | 
    
         
            -
            require  
     | 
| 
       14 
     | 
    
         
            -
            require  
     | 
| 
       15 
     | 
    
         
            -
            require  
     | 
| 
       16 
     | 
    
         
            -
            require  
     | 
| 
       17 
     | 
    
         
            -
            require  
     | 
| 
      
 13 
     | 
    
         
            +
            require "rspec"
         
     | 
| 
      
 14 
     | 
    
         
            +
            require "rack/test"
         
     | 
| 
      
 15 
     | 
    
         
            +
            require "webmock/rspec"
         
     | 
| 
      
 16 
     | 
    
         
            +
            require "omniauth"
         
     | 
| 
      
 17 
     | 
    
         
            +
            require "omniauth-createsend"
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
            RSpec.configure do |config|
         
     | 
| 
       20 
20 
     | 
    
         
             
              config.include WebMock::API
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,126 +1,111 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: omniauth-createsend
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
       5 
     | 
    
         
            -
              prerelease: 
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.3
         
     | 
| 
       6 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       8 
7 
     | 
    
         
             
            - James Dennes
         
     | 
| 
       9 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2015-01-19 00:00:00.000000000 Z
         
     | 
| 
       13 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
14 
     | 
    
         
             
              name: omniauth-oauth2
         
     | 
| 
       16 
15 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       17 
     | 
    
         
            -
                none: false
         
     | 
| 
       18 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       19 
     | 
    
         
            -
                - - ~>
         
     | 
| 
      
 17 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       20 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       21 
19 
     | 
    
         
             
                    version: '1.1'
         
     | 
| 
       22 
20 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       23 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       24 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       25 
     | 
    
         
            -
                none: false
         
     | 
| 
       26 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       27 
     | 
    
         
            -
                - - ~>
         
     | 
| 
      
 24 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       28 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       29 
26 
     | 
    
         
             
                    version: '1.1'
         
     | 
| 
       30 
27 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       31 
28 
     | 
    
         
             
              name: rspec
         
     | 
| 
       32 
29 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       33 
     | 
    
         
            -
                none: false
         
     | 
| 
       34 
30 
     | 
    
         
             
                requirements:
         
     | 
| 
       35 
     | 
    
         
            -
                - - ~>
         
     | 
| 
      
 31 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       36 
32 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       37 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 33 
     | 
    
         
            +
                    version: '3.0'
         
     | 
| 
       38 
34 
     | 
    
         
             
              type: :development
         
     | 
| 
       39 
35 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       40 
36 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       41 
     | 
    
         
            -
                none: false
         
     | 
| 
       42 
37 
     | 
    
         
             
                requirements:
         
     | 
| 
       43 
     | 
    
         
            -
                - - ~>
         
     | 
| 
      
 38 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       44 
39 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       45 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 40 
     | 
    
         
            +
                    version: '3.0'
         
     | 
| 
       46 
41 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       47 
42 
     | 
    
         
             
              name: rack-test
         
     | 
| 
       48 
43 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       49 
     | 
    
         
            -
                none: false
         
     | 
| 
       50 
44 
     | 
    
         
             
                requirements:
         
     | 
| 
       51 
     | 
    
         
            -
                - -  
     | 
| 
      
 45 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       52 
46 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       53 
     | 
    
         
            -
                    version: '0'
         
     | 
| 
      
 47 
     | 
    
         
            +
                    version: '0.6'
         
     | 
| 
       54 
48 
     | 
    
         
             
              type: :development
         
     | 
| 
       55 
49 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       56 
50 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       57 
     | 
    
         
            -
                none: false
         
     | 
| 
       58 
51 
     | 
    
         
             
                requirements:
         
     | 
| 
       59 
     | 
    
         
            -
                - -  
     | 
| 
      
 52 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       60 
53 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       61 
     | 
    
         
            -
                    version: '0'
         
     | 
| 
      
 54 
     | 
    
         
            +
                    version: '0.6'
         
     | 
| 
       62 
55 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       63 
56 
     | 
    
         
             
              name: webmock
         
     | 
| 
       64 
57 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       65 
     | 
    
         
            -
                none: false
         
     | 
| 
       66 
58 
     | 
    
         
             
                requirements:
         
     | 
| 
       67 
     | 
    
         
            -
                - -  
     | 
| 
      
 59 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       68 
60 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       69 
     | 
    
         
            -
                    version: '0'
         
     | 
| 
      
 61 
     | 
    
         
            +
                    version: '1.0'
         
     | 
| 
       70 
62 
     | 
    
         
             
              type: :development
         
     | 
| 
       71 
63 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       72 
64 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       73 
     | 
    
         
            -
                none: false
         
     | 
| 
       74 
65 
     | 
    
         
             
                requirements:
         
     | 
| 
       75 
     | 
    
         
            -
                - -  
     | 
| 
      
 66 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       76 
67 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       77 
     | 
    
         
            -
                    version: '0'
         
     | 
| 
      
 68 
     | 
    
         
            +
                    version: '1.0'
         
     | 
| 
       78 
69 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       79 
70 
     | 
    
         
             
              name: rake
         
     | 
| 
       80 
71 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       81 
     | 
    
         
            -
                none: false
         
     | 
| 
       82 
72 
     | 
    
         
             
                requirements:
         
     | 
| 
       83 
     | 
    
         
            -
                - -  
     | 
| 
      
 73 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       84 
74 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       85 
     | 
    
         
            -
                    version: '0'
         
     | 
| 
      
 75 
     | 
    
         
            +
                    version: '10.0'
         
     | 
| 
       86 
76 
     | 
    
         
             
              type: :development
         
     | 
| 
       87 
77 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       88 
78 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       89 
     | 
    
         
            -
                none: false
         
     | 
| 
       90 
79 
     | 
    
         
             
                requirements:
         
     | 
| 
       91 
     | 
    
         
            -
                - -  
     | 
| 
      
 80 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       92 
81 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       93 
     | 
    
         
            -
                    version: '0'
         
     | 
| 
      
 82 
     | 
    
         
            +
                    version: '10.0'
         
     | 
| 
       94 
83 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       95 
84 
     | 
    
         
             
              name: simplecov
         
     | 
| 
       96 
85 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       97 
     | 
    
         
            -
                none: false
         
     | 
| 
       98 
86 
     | 
    
         
             
                requirements:
         
     | 
| 
       99 
     | 
    
         
            -
                - -  
     | 
| 
      
 87 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       100 
88 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       101 
89 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       102 
90 
     | 
    
         
             
              type: :development
         
     | 
| 
       103 
91 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       104 
92 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       105 
     | 
    
         
            -
                none: false
         
     | 
| 
       106 
93 
     | 
    
         
             
                requirements:
         
     | 
| 
       107 
     | 
    
         
            -
                - -  
     | 
| 
      
 94 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       108 
95 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       109 
96 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       110 
97 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       111 
98 
     | 
    
         
             
              name: coveralls
         
     | 
| 
       112 
99 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       113 
     | 
    
         
            -
                none: false
         
     | 
| 
       114 
100 
     | 
    
         
             
                requirements:
         
     | 
| 
       115 
     | 
    
         
            -
                - -  
     | 
| 
      
 101 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       116 
102 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       117 
103 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       118 
104 
     | 
    
         
             
              type: :development
         
     | 
| 
       119 
105 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       120 
106 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       121 
     | 
    
         
            -
                none: false
         
     | 
| 
       122 
107 
     | 
    
         
             
                requirements:
         
     | 
| 
       123 
     | 
    
         
            -
                - -  
     | 
| 
      
 108 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       124 
109 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       125 
110 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       126 
111 
     | 
    
         
             
            description: The official OmniAuth strategy for authenticating with the Campaign Monitor
         
     | 
| 
         @@ -131,11 +116,11 @@ executables: [] 
     | 
|
| 
       131 
116 
     | 
    
         
             
            extensions: []
         
     | 
| 
       132 
117 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       133 
118 
     | 
    
         
             
            files:
         
     | 
| 
       134 
     | 
    
         
            -
            - .gitignore
         
     | 
| 
       135 
     | 
    
         
            -
            - .rspec
         
     | 
| 
       136 
     | 
    
         
            -
            - .travis.yml
         
     | 
| 
      
 119 
     | 
    
         
            +
            - ".gitignore"
         
     | 
| 
      
 120 
     | 
    
         
            +
            - ".rspec"
         
     | 
| 
      
 121 
     | 
    
         
            +
            - ".travis.yml"
         
     | 
| 
      
 122 
     | 
    
         
            +
            - CONTRIBUTING.md
         
     | 
| 
       137 
123 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       138 
     | 
    
         
            -
            - Gemfile.lock
         
     | 
| 
       139 
124 
     | 
    
         
             
            - HISTORY.md
         
     | 
| 
       140 
125 
     | 
    
         
             
            - LICENSE
         
     | 
| 
       141 
126 
     | 
    
         
             
            - README.md
         
     | 
| 
         @@ -150,28 +135,28 @@ files: 
     | 
|
| 
       150 
135 
     | 
    
         
             
            - spec/omniauth/strategies/createsend_spec.rb
         
     | 
| 
       151 
136 
     | 
    
         
             
            - spec/spec_helper.rb
         
     | 
| 
       152 
137 
     | 
    
         
             
            homepage: https://github.com/jdennes/omniauth-createsend/
         
     | 
| 
       153 
     | 
    
         
            -
            licenses: 
     | 
| 
      
 138 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 139 
     | 
    
         
            +
            - MIT
         
     | 
| 
      
 140 
     | 
    
         
            +
            metadata: {}
         
     | 
| 
       154 
141 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       155 
142 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       156 
143 
     | 
    
         
             
            require_paths:
         
     | 
| 
       157 
144 
     | 
    
         
             
            - lib
         
     | 
| 
       158 
145 
     | 
    
         
             
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
       159 
     | 
    
         
            -
              none: false
         
     | 
| 
       160 
146 
     | 
    
         
             
              requirements:
         
     | 
| 
       161 
     | 
    
         
            -
              - -  
     | 
| 
      
 147 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       162 
148 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       163 
149 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       164 
150 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       165 
     | 
    
         
            -
              none: false
         
     | 
| 
       166 
151 
     | 
    
         
             
              requirements:
         
     | 
| 
       167 
     | 
    
         
            -
              - -  
     | 
| 
      
 152 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       168 
153 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       169 
154 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       170 
155 
     | 
    
         
             
            requirements: []
         
     | 
| 
       171 
156 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       172 
     | 
    
         
            -
            rubygems_version:  
     | 
| 
      
 157 
     | 
    
         
            +
            rubygems_version: 2.2.2
         
     | 
| 
       173 
158 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       174 
     | 
    
         
            -
            specification_version:  
     | 
| 
      
 159 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
       175 
160 
     | 
    
         
             
            summary: Official OmniAuth strategy for the Campaign Monitor API.
         
     | 
| 
       176 
161 
     | 
    
         
             
            test_files:
         
     | 
| 
       177 
162 
     | 
    
         
             
            - spec/omniauth/strategies/createsend_spec.rb
         
     | 
    
        data/Gemfile.lock
    DELETED
    
    | 
         @@ -1,74 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            PATH
         
     | 
| 
       2 
     | 
    
         
            -
              remote: .
         
     | 
| 
       3 
     | 
    
         
            -
              specs:
         
     | 
| 
       4 
     | 
    
         
            -
                omniauth-createsend (1.0.1)
         
     | 
| 
       5 
     | 
    
         
            -
                  omniauth-oauth2 (~> 1.1)
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            GEM
         
     | 
| 
       8 
     | 
    
         
            -
              remote: https://rubygems.org/
         
     | 
| 
       9 
     | 
    
         
            -
              specs:
         
     | 
| 
       10 
     | 
    
         
            -
                addressable (2.3.3)
         
     | 
| 
       11 
     | 
    
         
            -
                colorize (0.5.8)
         
     | 
| 
       12 
     | 
    
         
            -
                coveralls (0.6.3)
         
     | 
| 
       13 
     | 
    
         
            -
                  colorize
         
     | 
| 
       14 
     | 
    
         
            -
                  multi_json (~> 1.3)
         
     | 
| 
       15 
     | 
    
         
            -
                  rest-client
         
     | 
| 
       16 
     | 
    
         
            -
                  simplecov (>= 0.7)
         
     | 
| 
       17 
     | 
    
         
            -
                  thor
         
     | 
| 
       18 
     | 
    
         
            -
                crack (0.3.2)
         
     | 
| 
       19 
     | 
    
         
            -
                diff-lcs (1.1.3)
         
     | 
| 
       20 
     | 
    
         
            -
                faraday (0.8.5)
         
     | 
| 
       21 
     | 
    
         
            -
                  multipart-post (~> 1.1)
         
     | 
| 
       22 
     | 
    
         
            -
                hashie (1.2.0)
         
     | 
| 
       23 
     | 
    
         
            -
                httpauth (0.2.0)
         
     | 
| 
       24 
     | 
    
         
            -
                jwt (0.1.5)
         
     | 
| 
       25 
     | 
    
         
            -
                  multi_json (>= 1.0)
         
     | 
| 
       26 
     | 
    
         
            -
                mime-types (1.21)
         
     | 
| 
       27 
     | 
    
         
            -
                multi_json (1.6.0)
         
     | 
| 
       28 
     | 
    
         
            -
                multipart-post (1.1.5)
         
     | 
| 
       29 
     | 
    
         
            -
                oauth2 (0.8.0)
         
     | 
| 
       30 
     | 
    
         
            -
                  faraday (~> 0.8)
         
     | 
| 
       31 
     | 
    
         
            -
                  httpauth (~> 0.1)
         
     | 
| 
       32 
     | 
    
         
            -
                  jwt (~> 0.1.4)
         
     | 
| 
       33 
     | 
    
         
            -
                  multi_json (~> 1.0)
         
     | 
| 
       34 
     | 
    
         
            -
                  rack (~> 1.2)
         
     | 
| 
       35 
     | 
    
         
            -
                omniauth (1.1.2)
         
     | 
| 
       36 
     | 
    
         
            -
                  hashie (~> 1.2)
         
     | 
| 
       37 
     | 
    
         
            -
                  rack
         
     | 
| 
       38 
     | 
    
         
            -
                omniauth-oauth2 (1.1.1)
         
     | 
| 
       39 
     | 
    
         
            -
                  oauth2 (~> 0.8.0)
         
     | 
| 
       40 
     | 
    
         
            -
                  omniauth (~> 1.0)
         
     | 
| 
       41 
     | 
    
         
            -
                rack (1.5.2)
         
     | 
| 
       42 
     | 
    
         
            -
                rack-test (0.6.2)
         
     | 
| 
       43 
     | 
    
         
            -
                  rack (>= 1.0)
         
     | 
| 
       44 
     | 
    
         
            -
                rake (10.0.3)
         
     | 
| 
       45 
     | 
    
         
            -
                rest-client (1.6.7)
         
     | 
| 
       46 
     | 
    
         
            -
                  mime-types (>= 1.16)
         
     | 
| 
       47 
     | 
    
         
            -
                rspec (2.12.0)
         
     | 
| 
       48 
     | 
    
         
            -
                  rspec-core (~> 2.12.0)
         
     | 
| 
       49 
     | 
    
         
            -
                  rspec-expectations (~> 2.12.0)
         
     | 
| 
       50 
     | 
    
         
            -
                  rspec-mocks (~> 2.12.0)
         
     | 
| 
       51 
     | 
    
         
            -
                rspec-core (2.12.2)
         
     | 
| 
       52 
     | 
    
         
            -
                rspec-expectations (2.12.1)
         
     | 
| 
       53 
     | 
    
         
            -
                  diff-lcs (~> 1.1.3)
         
     | 
| 
       54 
     | 
    
         
            -
                rspec-mocks (2.12.2)
         
     | 
| 
       55 
     | 
    
         
            -
                simplecov (0.7.1)
         
     | 
| 
       56 
     | 
    
         
            -
                  multi_json (~> 1.0)
         
     | 
| 
       57 
     | 
    
         
            -
                  simplecov-html (~> 0.7.1)
         
     | 
| 
       58 
     | 
    
         
            -
                simplecov-html (0.7.1)
         
     | 
| 
       59 
     | 
    
         
            -
                thor (0.18.0)
         
     | 
| 
       60 
     | 
    
         
            -
                webmock (1.11.0)
         
     | 
| 
       61 
     | 
    
         
            -
                  addressable (>= 2.2.7)
         
     | 
| 
       62 
     | 
    
         
            -
                  crack (>= 0.3.2)
         
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
            PLATFORMS
         
     | 
| 
       65 
     | 
    
         
            -
              ruby
         
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
            DEPENDENCIES
         
     | 
| 
       68 
     | 
    
         
            -
              coveralls
         
     | 
| 
       69 
     | 
    
         
            -
              omniauth-createsend!
         
     | 
| 
       70 
     | 
    
         
            -
              rack-test
         
     | 
| 
       71 
     | 
    
         
            -
              rake
         
     | 
| 
       72 
     | 
    
         
            -
              rspec (~> 2.12)
         
     | 
| 
       73 
     | 
    
         
            -
              simplecov
         
     | 
| 
       74 
     | 
    
         
            -
              webmock
         
     |