omniauth-kakao 0.1.0 → 0.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -14
- data/Rakefile +2 -0
- data/example/Gemfile.lock +1 -1
- data/lib/omniauth-kakao/version.rb +1 -1
- data/lib/omniauth/strategies/kakao.rb +5 -0
- data/omniauth-kakao.gemspec +3 -3
- data/spec/omniauth/strategies/kakao_spec.rb +48 -0
- metadata +22 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 5843bce85550aa42c87b0b3839b5eccf8e1284d2
         | 
| 4 | 
            +
              data.tar.gz: f0ce72b76b8166e592698c428f0237d06a591498
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 01217d804f966f95b641204c085f4c6f9df42ef4fa113b47c1a502c0ad347e57bf1e4aa6be90931cd3a3ad6e5695da1f96ed53a6bc3766767feb4362f9877521
         | 
| 7 | 
            +
              data.tar.gz: 8bf8ef15df823fa594b9950be673a58e9b8bf513ef722e814201c49cbc6785d17888e119999490f9babcbcc8958209d332a4f61401922413af6e3a4895ff4ba3
         | 
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            PATH
         | 
| 2 2 | 
             
              remote: .
         | 
| 3 3 | 
             
              specs:
         | 
| 4 | 
            -
                omniauth-kakao (0. | 
| 4 | 
            +
                omniauth-kakao (0.1.1)
         | 
| 5 5 | 
             
                  omniauth (~> 1.0)
         | 
| 6 6 | 
             
                  omniauth-oauth2 (~> 1.1)
         | 
| 7 7 |  | 
| @@ -29,9 +29,8 @@ GEM | |
| 29 29 | 
             
                guard-rspec (4.2.8)
         | 
| 30 30 | 
             
                  guard (~> 2.1)
         | 
| 31 31 | 
             
                  rspec (>= 2.14, < 4.0)
         | 
| 32 | 
            -
                hashie ( | 
| 33 | 
            -
                jwt (0. | 
| 34 | 
            -
                  multi_json (>= 1.5)
         | 
| 32 | 
            +
                hashie (3.3.1)
         | 
| 33 | 
            +
                jwt (1.0.0)
         | 
| 35 34 | 
             
                listen (2.7.4)
         | 
| 36 35 | 
             
                  celluloid (>= 0.15.2)
         | 
| 37 36 | 
             
                  celluloid-io (>= 0.15.0)
         | 
| @@ -39,23 +38,23 @@ GEM | |
| 39 38 | 
             
                  rb-inotify (>= 0.9)
         | 
| 40 39 | 
             
                lumberjack (1.0.5)
         | 
| 41 40 | 
             
                method_source (0.8.2)
         | 
| 42 | 
            -
                multi_json (1. | 
| 41 | 
            +
                multi_json (1.10.1)
         | 
| 43 42 | 
             
                multi_xml (0.5.5)
         | 
| 44 43 | 
             
                multipart-post (2.0.0)
         | 
| 45 44 | 
             
                nio4r (1.0.0)
         | 
| 46 | 
            -
                oauth2 (0. | 
| 45 | 
            +
                oauth2 (1.0.0)
         | 
| 47 46 | 
             
                  faraday (>= 0.8, < 0.10)
         | 
| 48 | 
            -
                  jwt (~>  | 
| 47 | 
            +
                  jwt (~> 1.0)
         | 
| 49 48 | 
             
                  multi_json (~> 1.3)
         | 
| 50 49 | 
             
                  multi_xml (~> 0.5)
         | 
| 51 50 | 
             
                  rack (~> 1.2)
         | 
| 52 | 
            -
                omniauth (1.2. | 
| 53 | 
            -
                  hashie (>= 1.2, <  | 
| 51 | 
            +
                omniauth (1.2.2)
         | 
| 52 | 
            +
                  hashie (>= 1.2, < 4)
         | 
| 54 53 | 
             
                  rack (~> 1.0)
         | 
| 55 | 
            -
                omniauth-oauth2 (1. | 
| 54 | 
            +
                omniauth-oauth2 (1.2.0)
         | 
| 56 55 | 
             
                  faraday (>= 0.8, < 0.10)
         | 
| 57 56 | 
             
                  multi_json (~> 1.3)
         | 
| 58 | 
            -
                  oauth2 (~> 0 | 
| 57 | 
            +
                  oauth2 (~> 1.0)
         | 
| 59 58 | 
             
                  omniauth (~> 1.2)
         | 
| 60 59 | 
             
                pry (0.9.12.6)
         | 
| 61 60 | 
             
                  coderay (~> 1.0)
         | 
| @@ -81,7 +80,7 @@ PLATFORMS | |
| 81 80 | 
             
              ruby
         | 
| 82 81 |  | 
| 83 82 | 
             
            DEPENDENCIES
         | 
| 84 | 
            -
              fakeweb (~> 1.3.0)
         | 
| 85 | 
            -
              guard-rspec (~> 4.2.8)
         | 
| 83 | 
            +
              fakeweb (~> 1.3, >= 1.3.0)
         | 
| 84 | 
            +
              guard-rspec (~> 4.2, >= 4.2.8)
         | 
| 86 85 | 
             
              omniauth-kakao!
         | 
| 87 | 
            -
              rspec (~> 2.14.1)
         | 
| 86 | 
            +
              rspec (~> 2.14, >= 2.14.1)
         | 
    
        data/Rakefile
    ADDED
    
    
    
        data/example/Gemfile.lock
    CHANGED
    
    
    
        data/omniauth-kakao.gemspec
    CHANGED
    
    | @@ -23,7 +23,7 @@ Gem::Specification.new do |s| | |
| 23 23 | 
             
              s.add_dependency 'omniauth', '~> 1.0'
         | 
| 24 24 | 
             
              s.add_dependency 'omniauth-oauth2', '~> 1.1'
         | 
| 25 25 |  | 
| 26 | 
            -
              s.add_development_dependency 'rspec', '~> 2.14.1'
         | 
| 27 | 
            -
              s.add_development_dependency 'guard-rspec', '~> 4.2.8'
         | 
| 28 | 
            -
              s.add_development_dependency 'fakeweb', '~> 1.3.0'
         | 
| 26 | 
            +
              s.add_development_dependency 'rspec', '~> 2.14', '>= 2.14.1'
         | 
| 27 | 
            +
              s.add_development_dependency 'guard-rspec', '~> 4.2', '>= 4.2.8'
         | 
| 28 | 
            +
              s.add_development_dependency 'fakeweb', '~> 1.3', '>= 1.3.0'
         | 
| 29 29 | 
             
            end
         | 
| @@ -116,4 +116,52 @@ describe OmniAuth::Strategies::Kakao do | |
| 116 116 | 
             
                  properties.profile_image.should == "http://xxx.kakao.com/.../bbb.jpg"
         | 
| 117 117 | 
             
                end
         | 
| 118 118 | 
             
              end
         | 
| 119 | 
            +
             | 
| 120 | 
            +
              context "test environment" do
         | 
| 121 | 
            +
                before do
         | 
| 122 | 
            +
                  OmniAuth.config.test_mode = true
         | 
| 123 | 
            +
                  OmniAuth.config.add_mock(:kakao, {
         | 
| 124 | 
            +
                    provider: "kakao",
         | 
| 125 | 
            +
                    uid: "123456789",
         | 
| 126 | 
            +
                    info: {
         | 
| 127 | 
            +
                      name: "John Doe",
         | 
| 128 | 
            +
                      image: "http://xxx.kakao.com/.../aaa.jpg"
         | 
| 129 | 
            +
                    }
         | 
| 130 | 
            +
                  })
         | 
| 131 | 
            +
                end
         | 
| 132 | 
            +
             | 
| 133 | 
            +
                describe "GET /auth/kakao" do
         | 
| 134 | 
            +
                  it "should redirect to callback url (/auth/kakao/callback)" do
         | 
| 135 | 
            +
                    request = make_request("/auth/kakao")
         | 
| 136 | 
            +
                    code, env = middleware.call(request)
         | 
| 137 | 
            +
             | 
| 138 | 
            +
                    code.should == 302
         | 
| 139 | 
            +
             | 
| 140 | 
            +
                    actual_path = URI(env["Location"]).path
         | 
| 141 | 
            +
                    actual_path.should == "/auth/kakao/callback"
         | 
| 142 | 
            +
                  end
         | 
| 143 | 
            +
                end
         | 
| 144 | 
            +
             | 
| 145 | 
            +
                describe "GET /auth/kakao/callback" do
         | 
| 146 | 
            +
                  it "should request registered mock" do
         | 
| 147 | 
            +
                    request = make_request("/auth/kakao/callback")
         | 
| 148 | 
            +
                    code, env = middleware.call(request)
         | 
| 149 | 
            +
             | 
| 150 | 
            +
                    code.should == 200
         | 
| 151 | 
            +
             | 
| 152 | 
            +
                    response = env["omniauth.auth"]
         | 
| 153 | 
            +
             | 
| 154 | 
            +
                    response.provider.should == "kakao"
         | 
| 155 | 
            +
                    response.uid.should == "123456789"
         | 
| 156 | 
            +
             | 
| 157 | 
            +
                    information = response.info
         | 
| 158 | 
            +
                    information.name.should == "John Doe"
         | 
| 159 | 
            +
                    information.image.should == "http://xxx.kakao.com/.../aaa.jpg"
         | 
| 160 | 
            +
                  end
         | 
| 161 | 
            +
                end
         | 
| 162 | 
            +
             | 
| 163 | 
            +
                after do
         | 
| 164 | 
            +
                  OmniAuth.config.test_mode = false
         | 
| 165 | 
            +
                end
         | 
| 166 | 
            +
              end
         | 
| 119 167 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: omniauth-kakao
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Shayne Sung-Hee Kang
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014- | 
| 11 | 
            +
            date: 2014-10-09 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: omniauth
         | 
| @@ -43,6 +43,9 @@ dependencies: | |
| 43 43 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 44 | 
             
                requirements:
         | 
| 45 45 | 
             
                - - ~>
         | 
| 46 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            +
                    version: '2.14'
         | 
| 48 | 
            +
                - - '>='
         | 
| 46 49 | 
             
                  - !ruby/object:Gem::Version
         | 
| 47 50 | 
             
                    version: 2.14.1
         | 
| 48 51 | 
             
              type: :development
         | 
| @@ -50,6 +53,9 @@ dependencies: | |
| 50 53 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 54 | 
             
                requirements:
         | 
| 52 55 | 
             
                - - ~>
         | 
| 56 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 57 | 
            +
                    version: '2.14'
         | 
| 58 | 
            +
                - - '>='
         | 
| 53 59 | 
             
                  - !ruby/object:Gem::Version
         | 
| 54 60 | 
             
                    version: 2.14.1
         | 
| 55 61 | 
             
            - !ruby/object:Gem::Dependency
         | 
| @@ -57,6 +63,9 @@ dependencies: | |
| 57 63 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 58 64 | 
             
                requirements:
         | 
| 59 65 | 
             
                - - ~>
         | 
| 66 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 67 | 
            +
                    version: '4.2'
         | 
| 68 | 
            +
                - - '>='
         | 
| 60 69 | 
             
                  - !ruby/object:Gem::Version
         | 
| 61 70 | 
             
                    version: 4.2.8
         | 
| 62 71 | 
             
              type: :development
         | 
| @@ -64,6 +73,9 @@ dependencies: | |
| 64 73 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 65 74 | 
             
                requirements:
         | 
| 66 75 | 
             
                - - ~>
         | 
| 76 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 77 | 
            +
                    version: '4.2'
         | 
| 78 | 
            +
                - - '>='
         | 
| 67 79 | 
             
                  - !ruby/object:Gem::Version
         | 
| 68 80 | 
             
                    version: 4.2.8
         | 
| 69 81 | 
             
            - !ruby/object:Gem::Dependency
         | 
| @@ -71,6 +83,9 @@ dependencies: | |
| 71 83 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 72 84 | 
             
                requirements:
         | 
| 73 85 | 
             
                - - ~>
         | 
| 86 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 87 | 
            +
                    version: '1.3'
         | 
| 88 | 
            +
                - - '>='
         | 
| 74 89 | 
             
                  - !ruby/object:Gem::Version
         | 
| 75 90 | 
             
                    version: 1.3.0
         | 
| 76 91 | 
             
              type: :development
         | 
| @@ -78,6 +93,9 @@ dependencies: | |
| 78 93 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 79 94 | 
             
                requirements:
         | 
| 80 95 | 
             
                - - ~>
         | 
| 96 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 97 | 
            +
                    version: '1.3'
         | 
| 98 | 
            +
                - - '>='
         | 
| 81 99 | 
             
                  - !ruby/object:Gem::Version
         | 
| 82 100 | 
             
                    version: 1.3.0
         | 
| 83 101 | 
             
            description: OmniAuth strategy for Kakao(http://developers.kakao.com/)
         | 
| @@ -94,6 +112,7 @@ files: | |
| 94 112 | 
             
            - Gemfile.lock
         | 
| 95 113 | 
             
            - Guardfile
         | 
| 96 114 | 
             
            - README.md
         | 
| 115 | 
            +
            - Rakefile
         | 
| 97 116 | 
             
            - example/Gemfile
         | 
| 98 117 | 
             
            - example/Gemfile.lock
         | 
| 99 118 | 
             
            - example/app.rb
         | 
| @@ -123,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 123 142 | 
             
                  version: '0'
         | 
| 124 143 | 
             
            requirements: []
         | 
| 125 144 | 
             
            rubyforge_project: omniauth-kakao
         | 
| 126 | 
            -
            rubygems_version: 2.0 | 
| 145 | 
            +
            rubygems_version: 2.3.0
         | 
| 127 146 | 
             
            signing_key: 
         | 
| 128 147 | 
             
            specification_version: 4
         | 
| 129 148 | 
             
            summary: OmniAuth strategy for Kakao
         |