instagram_basic_display 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/instagram_basic_display.gemspec +1 -1
- data/lib/instagram_basic_display/auth.rb +1 -9
- data/lib/instagram_basic_display/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f98319c54eac9e05bb246a7d067848427a0936b83a9d88a94874030fecab20a7
|
4
|
+
data.tar.gz: da9c623816fbf34b2e0b6f636e596e96665f42c06a388886bef5bf7c9ebc5718
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f18e2916e83e96149aae3bc9d11b3a8c3bfc162467ba6387655314e27255bfc8390561a36fe961ead43ef35a5f5c288f220364499d4b4bfbc02776cb104aabc7
|
7
|
+
data.tar.gz: 8c3afd7737fd09170c3f52bbfdb91c1b807abaa797eae71185af3d278ff483a5af0d58fd90dc5737b4e9375deef187c57b6651aa820d4332c910bada4cf928e7
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
instagram_basic_display (0.2.
|
4
|
+
instagram_basic_display (0.2.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -31,7 +31,7 @@ GEM
|
|
31
31
|
public_suffix (6.0.1)
|
32
32
|
racc (1.8.1)
|
33
33
|
rainbow (3.1.1)
|
34
|
-
rake (13.
|
34
|
+
rake (13.0.6)
|
35
35
|
regexp_parser (2.9.2)
|
36
36
|
rexml (3.3.9)
|
37
37
|
rspec (3.13.0)
|
@@ -77,7 +77,7 @@ DEPENDENCIES
|
|
77
77
|
dotenv
|
78
78
|
instagram_basic_display!
|
79
79
|
pry
|
80
|
-
rake (~> 13.
|
80
|
+
rake (~> 13.0.6)
|
81
81
|
rspec (~> 3.13.0)
|
82
82
|
rubocop (~> 1.68)
|
83
83
|
vcr
|
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 2.5.23'
|
25
|
-
spec.add_development_dependency 'rake', '~> 13.
|
25
|
+
spec.add_development_dependency 'rake', '~> 13.0.6'
|
26
26
|
spec.add_development_dependency 'rspec', '~> 3.13.0'
|
27
27
|
end
|
@@ -46,7 +46,7 @@ module InstagramBasicDisplay
|
|
46
46
|
# @return [InstagramBasicDisplay::Response] a response object containing either the token or an error
|
47
47
|
def short_lived_token(access_code:)
|
48
48
|
response = Net::HTTP.post_form(
|
49
|
-
URI(
|
49
|
+
URI('https://api.instagram.com/oauth/access_token'),
|
50
50
|
client_id: configuration.client_id,
|
51
51
|
client_secret: configuration.client_secret,
|
52
52
|
grant_type: 'authorization_code',
|
@@ -97,13 +97,5 @@ module InstagramBasicDisplay
|
|
97
97
|
private
|
98
98
|
|
99
99
|
attr_reader :configuration
|
100
|
-
|
101
|
-
def auth_url
|
102
|
-
if configuration.version == 1
|
103
|
-
'https://api.instagram.com/oauth/access_token'
|
104
|
-
else
|
105
|
-
'https://graph.instagram.com/oauth/access_token'
|
106
|
-
end
|
107
|
-
end
|
108
100
|
end
|
109
101
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instagram_basic_display
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kit, LLC
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 13.0.6
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 13.0.6
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|