omniauth-instagram 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e9bf0c06d40769ec45532ee39c410951683c1fad
|
4
|
+
data.tar.gz: 5c179d33d74d2c739db55cb2002cc73e35a20b48
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9615c813649177d15d1abe5547bcc69c5fe25ce0497d915f76ffe0d99fedec09be2b2d758b25767affa4c9b4e529dff9ba6fe076b88af8e496914e013b216555
|
7
|
+
data.tar.gz: bd2d9819e0a00efadb09feeef76100e8a9cb6bb150f89ac0cf153812df8873490f6af7968dde4809f5cb29f295bb59e191fe8597158ee9e959d6b12861b7d347
|
@@ -29,6 +29,12 @@ module OmniAuth
|
|
29
29
|
|
30
30
|
def raw_info
|
31
31
|
@data ||= access_token.params["user"]
|
32
|
+
unless @data
|
33
|
+
access_token.options[:mode] = :query
|
34
|
+
access_token.options[:param_name] = "access_token"
|
35
|
+
@data ||= access_token.get('/v1/users/self').parsed['data'] || {}
|
36
|
+
end
|
37
|
+
@data
|
32
38
|
end
|
33
39
|
end
|
34
40
|
end
|
data/omniauth-instagram.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
|
18
18
|
gem.add_dependency 'omniauth', '~> 1.0'
|
19
19
|
gem.add_dependency 'omniauth-oauth2', '~> 1.0'
|
20
|
-
gem.add_development_dependency 'rspec', '~> 2.
|
20
|
+
gem.add_development_dependency 'rspec', '~> 2.12'
|
21
21
|
gem.add_development_dependency 'rack-test'
|
22
22
|
gem.add_development_dependency 'simplecov'
|
23
23
|
gem.add_development_dependency 'webmock'
|
@@ -1,7 +1,21 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe OmniAuth::Strategies::Instagram do
|
4
|
-
|
5
|
-
|
4
|
+
context "client options" do
|
5
|
+
subject do
|
6
|
+
OmniAuth::Strategies::Instagram.new({})
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should have the correct site" do
|
10
|
+
expect(subject.options.client_options.site).to eq('https://api.instagram.com')
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should have the correct authorize url" do
|
14
|
+
expect(subject.options.client_options.authorize_url).to eq('https://api.instagram.com/oauth/authorize')
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should have the correct token url" do
|
18
|
+
expect(subject.options.client_options.token_url).to eq('https://api.instagram.com/oauth/access_token')
|
19
|
+
end
|
6
20
|
end
|
7
21
|
end
|
metadata
CHANGED
@@ -1,82 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-instagram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Mihai Anca
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-04-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: omniauth
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: omniauth-oauth2
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '1.0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rspec
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ~>
|
42
46
|
- !ruby/object:Gem::Version
|
43
|
-
version: '2.
|
47
|
+
version: '2.12'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.12'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: rack-test
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: simplecov
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
|
-
- -
|
73
|
+
- - '>='
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: '0'
|
66
76
|
type: :development
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: webmock
|
71
|
-
requirement:
|
72
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
|
-
- -
|
87
|
+
- - '>='
|
75
88
|
- !ruby/object:Gem::Version
|
76
89
|
version: '0'
|
77
90
|
type: :development
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
80
97
|
description: OmniAuth strategy for Instagram.
|
81
98
|
email:
|
82
99
|
- mihai@mihaia.com
|
@@ -96,27 +113,26 @@ files:
|
|
96
113
|
- spec/spec_helper.rb
|
97
114
|
homepage: https://github.com/ropiku/omniauth-instagram
|
98
115
|
licenses: []
|
116
|
+
metadata: {}
|
99
117
|
post_install_message:
|
100
118
|
rdoc_options: []
|
101
119
|
require_paths:
|
102
120
|
- lib
|
103
121
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
122
|
requirements:
|
106
|
-
- -
|
123
|
+
- - '>='
|
107
124
|
- !ruby/object:Gem::Version
|
108
125
|
version: '0'
|
109
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
127
|
requirements:
|
112
|
-
- -
|
128
|
+
- - '>='
|
113
129
|
- !ruby/object:Gem::Version
|
114
130
|
version: '0'
|
115
131
|
requirements: []
|
116
132
|
rubyforge_project:
|
117
|
-
rubygems_version:
|
133
|
+
rubygems_version: 2.0.2
|
118
134
|
signing_key:
|
119
|
-
specification_version:
|
135
|
+
specification_version: 4
|
120
136
|
summary: OmniAuth strategy for Instagram.
|
121
137
|
test_files:
|
122
138
|
- spec/omniauth/strategies/instagram_spec.rb
|