omniauth-odnoklassniki 0.0.5 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c03baffda00e9a43c706b01d2f38975b2bdea08
4
- data.tar.gz: 55a7879fdb6bfc6402dd16cdb216ee6ff2bdb20a
3
+ metadata.gz: 709ad727f5fa0033dc51441a309e0ed10fc8711f
4
+ data.tar.gz: 80c4f38fd045e680dcf8a1a21bbbb3dc548cdd71
5
5
  SHA512:
6
- metadata.gz: edd2f6bbf6fa94d3c3841d367f01fee2d103d3b38fb659e281c5a60b88fbfe2e3cbc7a5829a0a2c31a11369ba7f0d536747badedd3a54a12507096999a0e5a5d
7
- data.tar.gz: df2e0357de395f9b89485ab6007fe1d3ff70dab7685f28ed9d114b78297166d8a5c9c52b096e85d1f23137d44540008ad0102542afb5a3f0ef301814180ef6c2
6
+ metadata.gz: f041c9e2da38102d4d3b384ef06ae1c20dc48448f4f7577b9587975010c00d464cd8c968c6ecc11ed66baed71f56162612fb9f65ac58adbae37e2cb40511cef3
7
+ data.tar.gz: e1b859e75f05565372f673e8c1704de91f1eed7c260ae25d254a3c3d1149e8d512a0672fa49fc0c37d4e27a266e8e51b1c7242e9b042a6ba16d1a4526f06100d
@@ -7,8 +7,8 @@ module OmniAuth
7
7
  option :name, 'odnoklassniki'
8
8
 
9
9
  option :client_options, {
10
- :site => 'http://www.odnoklassniki.ru/',
11
- :token_url => 'https://api.odnoklassniki.ru/oauth/token.do',
10
+ :site => 'https://connect.ok.ru',
11
+ :token_url => 'https://api.ok.ru/oauth/token.do',
12
12
  :authorize_url => '/oauth/authorize'
13
13
  }
14
14
 
@@ -30,7 +30,7 @@ module OmniAuth
30
30
  :last_name => raw_info['last_name'],
31
31
  :image => raw_info['pic_1'],
32
32
  :urls => {
33
- 'Odnoklassniki' => "http://www.odnoklassniki.ru/profile/#{uid}",
33
+ 'Odnoklassniki' => "https://ok.ru/profile/#{uid}",
34
34
  }
35
35
  }
36
36
  end
@@ -40,11 +40,7 @@ module OmniAuth
40
40
  end
41
41
 
42
42
  def callback_url
43
- if options.authorize_options.respond_to? :callback_url
44
- options.authorize_options.callback_url
45
- else
46
- super
47
- end
43
+ options.redirect_url || (full_host + script_name + callback_path)
48
44
  end
49
45
 
50
46
  def build_access_token
@@ -68,7 +64,7 @@ module OmniAuth
68
64
  }
69
65
  params['fields'] = options[:info_fields] if options.key?(:info_fields)
70
66
  params['sig'] = calculate_signature(params)
71
- result = access_token.get('http://api.odnoklassniki.ru/fb.do', :params => params).parsed
67
+ result = access_token.get('http://api.ok.ru/fb.do', :params => params).parsed
72
68
  raise CallbackError.new(nil, :invalid_response) if result['error_code'] || result['error_msg']
73
69
  result
74
70
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Odnoklassniki
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-odnoklassniki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Logvinov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-07 00:00:00.000000000 Z
11
+ date: 2017-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -72,9 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  version: '0'
73
73
  requirements: []
74
74
  rubyforge_project: omniauth-odnoklassniki
75
- rubygems_version: 2.4.8
75
+ rubygems_version: 2.6.8
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: OmniAuth strategy for Odnoklassniki.ru
79
79
  test_files: []
80
- has_rdoc: