omniauth-yahoo_auth 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5e125eca3d64d95d72823a151562846622645f4
4
- data.tar.gz: 4d5d29ec9d5fa62f44d84782010b4fa586cf6233
3
+ metadata.gz: eb611f88e196fb2ba3c9248121d7a18b1dc58699
4
+ data.tar.gz: eaf3939a55d6b52412d351f760d1dbedbb8fdd8a
5
5
  SHA512:
6
- metadata.gz: 62c8543dc77539c152a7d269b5442c813fecfa803877258bd6dcb5c300c73d8fcf19c724dcad09fb54b2da0459782853a3956de00b37f5865f82a0c8ce366caf
7
- data.tar.gz: ec13f37df678478f612b5382831e04981a8c9302926a44beb8a715ccaf45402cb69f670de98efa3e761f2edd92c7661f92318a54804411cedaa645e7b3c70e34
6
+ metadata.gz: '01883fe521693f2c9a0e56739117755c635a2a06e5ae95cad585ad5f29e954604b2a6da648cc1c8bb869f0983d5af48bbbc11a351c1b323a026aaaaf6d500a39'
7
+ data.tar.gz: 69c42f9531ea42e01cfb37ff09f3c52a7c77bf2234b532b95410ecbf0f9bd8845b78bd41e00dc8fa7bada81f2156d09db7277758ef1cead91b5dd4d96bfeebce
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # OmniAuth Yahoo OAuth2 Strategy
2
+ [![Gem Version](https://badge.fury.io/rb/omniauth-yahoo_auth.svg)](https://badge.fury.io/rb/omniauth-yahoo_auth)
3
+ [![Build Status](https://travis-ci.org/creative-karan/omniauth-yahoo_auth.svg?branch=master)](https://travis-ci.org/creative-karan/omniauth-yahoo_auth)
2
4
 
3
5
  Yahoo OAuth2 Strategy for OmniAuth. <br>
4
6
  Supports OAuth 2.0 client-side flow. Read about it at: https://developer.yahoo.com/oauth2/guide/
@@ -5,14 +5,14 @@ module OmniAuth
5
5
  module Strategies
6
6
  # Main class for Yahoo Auth Startegy
7
7
  class YahooAuth < OmniAuth::Strategies::OAuth2
8
- SOCIAL_API_URL = "https://social.yahooapis.com/v1/user/"
8
+ SOCIAL_API_URL = 'https://social.yahooapis.com/v1/user/'
9
9
 
10
- option :name, "yahoo_auth"
10
+ option :name, 'yahoo_auth'
11
11
 
12
12
  option :client_options, {
13
- site: "https://api.login.yahoo.com",
14
- authorize_url: "https://api.login.yahoo.com/oauth2/request_auth",
15
- token_url: "https://api.login.yahoo.com/oauth2/get_token"
13
+ site: 'https://api.login.yahoo.com',
14
+ authorize_url: 'https://api.login.yahoo.com/oauth2/request_auth',
15
+ token_url: 'https://api.login.yahoo.com/oauth2/get_token'
16
16
  }
17
17
 
18
18
  uid { access_token.params['xoauth_yahoo_guid'] }
@@ -79,7 +79,6 @@ module OmniAuth
79
79
  end
80
80
 
81
81
  def get_user_image
82
- debugger
83
82
  image_size = options[:image_size]
84
83
  if image_size
85
84
  image_url = "#{SOCIAL_API_URL}#{uid}/profile/image/#{image_size}?format=json"
@@ -1,4 +1,4 @@
1
- require "omniauth/yahoo_auth/version"
1
+ require 'omniauth/yahoo_auth/version'
2
2
  require 'omniauth/strategies/yahoo_auth'
3
3
 
4
4
  # module Omniauth
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module YahooAuth
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["karan150394@gmail.com"]
11
11
 
12
12
  spec.summary = "Yahoo OAuth2 Strategy for OmniAuth."
13
- spec.description = "Yahoo OAuth2 Strategy. It lets you sign-in a rails app using yahoo login. Supports OAuth 2.0 client-side flow"
13
+ spec.description = "Yahoo OAuth2 Strategy. Supports OAuth 2.0 client-side flow. It lets you sign-in a rails app using yahoo login."
14
14
  spec.homepage = "https://github.com/creative-karan/omniauth-yahoo_auth"
15
15
  spec.license = "MIT"
16
16
 
@@ -19,7 +19,11 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
+ spec.add_runtime_dependency 'omniauth', '>= 1.1.1'
23
+ spec.add_runtime_dependency 'omniauth-oauth2', '>= 1.5'
24
+
22
25
  spec.add_development_dependency "bundler", "~> 1.11"
23
26
  spec.add_development_dependency "rake", "~> 10.0"
24
27
  spec.add_development_dependency "rspec", "~> 3.0"
28
+ spec.add_development_dependency 'byebug'
25
29
  end
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-yahoo_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karan Pathak
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-20 00:00:00.000000000 Z
11
+ date: 2018-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: omniauth
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.1.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: omniauth-oauth2
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '1.5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '1.5'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: bundler
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,8 +80,22 @@ dependencies:
52
80
  - - "~>"
53
81
  - !ruby/object:Gem::Version
54
82
  version: '3.0'
55
- description: Yahoo OAuth2 Strategy. It lets you sign-in a rails app using yahoo login.
56
- Supports OAuth 2.0 client-side flow
83
+ - !ruby/object:Gem::Dependency
84
+ name: byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Yahoo OAuth2 Strategy. Supports OAuth 2.0 client-side flow. It lets you
98
+ sign-in a rails app using yahoo login.
57
99
  email:
58
100
  - karan150394@gmail.com
59
101
  executables: []
@@ -94,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
136
  version: '0'
95
137
  requirements: []
96
138
  rubyforge_project:
97
- rubygems_version: 2.6.12
139
+ rubygems_version: 2.5.2
98
140
  signing_key:
99
141
  specification_version: 4
100
142
  summary: Yahoo OAuth2 Strategy for OmniAuth.