omniauth-twitter 0.0.2 → 0.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.
- data/lib/omniauth-twitter/version.rb +1 -1
 - data/lib/omniauth/strategies/twitter.rb +6 -8
 - data/omniauth-twitter.gemspec +1 -2
 - metadata +12 -24
 
| 
         @@ -1,10 +1,13 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'omniauth- 
     | 
| 
      
 1 
     | 
    
         
            +
            require 'omniauth-oauth'
         
     | 
| 
       2 
2 
     | 
    
         
             
            require 'multi_json'
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            module OmniAuth
         
     | 
| 
       5 
5 
     | 
    
         
             
              module Strategies
         
     | 
| 
       6 
     | 
    
         
            -
                class Twitter < OmniAuth::Strategies:: 
     | 
| 
      
 6 
     | 
    
         
            +
                class Twitter < OmniAuth::Strategies::OAuth
         
     | 
| 
      
 7 
     | 
    
         
            +
                  option :name, 'twitter'
         
     | 
| 
       7 
8 
     | 
    
         
             
                  option :client_options, {:site => 'https://api.twitter.com'}
         
     | 
| 
      
 9 
     | 
    
         
            +
                  option :sign_in, true
         
     | 
| 
      
 10 
     | 
    
         
            +
                  option :force_sign_in, false
         
     | 
| 
       8 
11 
     | 
    
         | 
| 
       9 
12 
     | 
    
         
             
                  def initialize(*args)
         
     | 
| 
       10 
13 
     | 
    
         
             
                    super
         
     | 
| 
         @@ -12,10 +15,6 @@ module OmniAuth 
     | 
|
| 
       12 
15 
     | 
    
         
             
                    options.authorize_params[:force_sign_in] = 'true' if options.force_sign_in?
         
     | 
| 
       13 
16 
     | 
    
         
             
                  end
         
     | 
| 
       14 
17 
     | 
    
         | 
| 
       15 
     | 
    
         
            -
                  def request_phase
         
     | 
| 
       16 
     | 
    
         
            -
                    super
         
     | 
| 
       17 
     | 
    
         
            -
                  end
         
     | 
| 
       18 
     | 
    
         
            -
                  
         
     | 
| 
       19 
18 
     | 
    
         
             
                  uid { access_token.params[:user_id] }
         
     | 
| 
       20 
19 
     | 
    
         | 
| 
       21 
20 
     | 
    
         
             
                  info do
         
     | 
| 
         @@ -43,5 +42,4 @@ module OmniAuth 
     | 
|
| 
       43 
42 
     | 
    
         
             
                  end
         
     | 
| 
       44 
43 
     | 
    
         
             
                end
         
     | 
| 
       45 
44 
     | 
    
         
             
              end
         
     | 
| 
       46 
     | 
    
         
            -
            end
         
     | 
| 
       47 
     | 
    
         
            -
            OmniAuth.config.add_camelization 'twitter', 'Twitter'
         
     | 
| 
      
 45 
     | 
    
         
            +
            end
         
     | 
    
        data/omniauth-twitter.gemspec
    CHANGED
    
    | 
         @@ -18,7 +18,6 @@ Gem::Specification.new do |s| 
     | 
|
| 
       18 
18 
     | 
    
         
             
              s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
         
     | 
| 
       19 
19 
     | 
    
         
             
              s.require_paths = ["lib"]
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
     | 
    
         
            -
              s. 
     | 
| 
       22 
     | 
    
         
            -
              s.add_dependency 'omniauth-oauth2', '~> 1.0'
         
     | 
| 
      
 21 
     | 
    
         
            +
              s.add_runtime_dependency 'omniauth-oauth', '~> 1.0.0.rc2'
         
     | 
| 
       23 
22 
     | 
    
         
             
              s.add_development_dependency 'rspec', '~> 2.7'
         
     | 
| 
       24 
23 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: omniauth-twitter
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              hash:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 25
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 0
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 0
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 3
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.0.3
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - Arun Agrawal
         
     | 
| 
         @@ -15,7 +15,7 @@ autorequire: 
     | 
|
| 
       15 
15 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       16 
16 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            date: 2011-11- 
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2011-11-04 00:00:00 Z
         
     | 
| 
       19 
19 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       20 
20 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       21 
21 
     | 
    
         
             
              type: :runtime
         
     | 
| 
         @@ -24,32 +24,20 @@ dependencies: 
     | 
|
| 
       24 
24 
     | 
    
         
             
                requirements: 
         
     | 
| 
       25 
25 
     | 
    
         
             
                - - ~>
         
     | 
| 
       26 
26 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       27 
     | 
    
         
            -
                    hash:  
     | 
| 
      
 27 
     | 
    
         
            +
                    hash: 15424049
         
     | 
| 
       28 
28 
     | 
    
         
             
                    segments: 
         
     | 
| 
       29 
29 
     | 
    
         
             
                    - 1
         
     | 
| 
       30 
30 
     | 
    
         
             
                    - 0
         
     | 
| 
       31 
     | 
    
         
            -
                    version: "1.0"
         
     | 
| 
       32 
     | 
    
         
            -
              version_requirements: *id001
         
     | 
| 
       33 
     | 
    
         
            -
              name: omniauth
         
     | 
| 
       34 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       35 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       36 
     | 
    
         
            -
              type: :runtime
         
     | 
| 
       37 
     | 
    
         
            -
              requirement: &id002 !ruby/object:Gem::Requirement 
         
     | 
| 
       38 
     | 
    
         
            -
                none: false
         
     | 
| 
       39 
     | 
    
         
            -
                requirements: 
         
     | 
| 
       40 
     | 
    
         
            -
                - - ~>
         
     | 
| 
       41 
     | 
    
         
            -
                  - !ruby/object:Gem::Version 
         
     | 
| 
       42 
     | 
    
         
            -
                    hash: 15
         
     | 
| 
       43 
     | 
    
         
            -
                    segments: 
         
     | 
| 
       44 
     | 
    
         
            -
                    - 1
         
     | 
| 
       45 
31 
     | 
    
         
             
                    - 0
         
     | 
| 
       46 
     | 
    
         
            -
                     
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
      
 32 
     | 
    
         
            +
                    - rc
         
     | 
| 
      
 33 
     | 
    
         
            +
                    - 2
         
     | 
| 
      
 34 
     | 
    
         
            +
                    version: 1.0.0.rc2
         
     | 
| 
      
 35 
     | 
    
         
            +
              version_requirements: *id001
         
     | 
| 
      
 36 
     | 
    
         
            +
              name: omniauth-oauth
         
     | 
| 
       49 
37 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       50 
38 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       51 
39 
     | 
    
         
             
              type: :development
         
     | 
| 
       52 
     | 
    
         
            -
              requirement: & 
     | 
| 
      
 40 
     | 
    
         
            +
              requirement: &id002 !ruby/object:Gem::Requirement 
         
     | 
| 
       53 
41 
     | 
    
         
             
                none: false
         
     | 
| 
       54 
42 
     | 
    
         
             
                requirements: 
         
     | 
| 
       55 
43 
     | 
    
         
             
                - - ~>
         
     | 
| 
         @@ -59,7 +47,7 @@ dependencies: 
     | 
|
| 
       59 
47 
     | 
    
         
             
                    - 2
         
     | 
| 
       60 
48 
     | 
    
         
             
                    - 7
         
     | 
| 
       61 
49 
     | 
    
         
             
                    version: "2.7"
         
     | 
| 
       62 
     | 
    
         
            -
              version_requirements: * 
     | 
| 
      
 50 
     | 
    
         
            +
              version_requirements: *id002
         
     | 
| 
       63 
51 
     | 
    
         
             
              name: rspec
         
     | 
| 
       64 
52 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       65 
53 
     | 
    
         
             
            description: OmniAuth strategy for Twitter
         
     |