extendi-instagram 2.0.5 → 2.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 +4 -4
- data/instagram.gemspec +1 -1
- data/lib/instagram/client/tags.rb +2 -2
- data/lib/instagram/version.rb +1 -1
- data/spec/instagram/client/tags_spec.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 570289dbb0f77ff4b31a0d8f3ad794e43a836122
|
4
|
+
data.tar.gz: 44e4c9430138d55666589b42c921bf6f86607f22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b0c4d6f0af46d482c6bfbebb88201e97241c2d486c4ef361c19393b598aa60cefe6774ea11859d60db4ebad32324d8ed6e858b532d2e2cadd2e274ff05f5471
|
7
|
+
data.tar.gz: bc86b72e268c8d41d252713872f27f2bac4c7216c7ffca61d179d34b5aeb6ab89eb52c07490d900b139b063b83212ae4296fcd6cebec381269ae94c40a9ab240
|
data/instagram.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.add_runtime_dependency('faraday_middleware', '~> 0')
|
11
11
|
s.add_runtime_dependency('multi_json', '~> 1')
|
12
12
|
s.add_runtime_dependency('hashie', '~> 3')
|
13
|
-
s.authors = [
|
13
|
+
s.authors = ['Shayne Sweeney', 'extendi']
|
14
14
|
s.licenses = ['MIT']
|
15
15
|
s.description = %q{A Ruby wrapper for the Instagram REST and Search APIs}
|
16
16
|
s.post_install_message =<<eos
|
@@ -40,8 +40,8 @@ module Instagram
|
|
40
40
|
|
41
41
|
def tag_recent_media_page(id, *args)
|
42
42
|
options = args.last.is_a?(Hash) ? args.pop : {}
|
43
|
-
response = get("tags/#{id}/media/recent", options, false,
|
44
|
-
|
43
|
+
response = get("tags/#{id}/media/recent", options, false, false, false)
|
44
|
+
response
|
45
45
|
end
|
46
46
|
|
47
47
|
# Returns a list of tags starting with the given search query
|
data/lib/instagram/version.rb
CHANGED
@@ -67,11 +67,10 @@ describe Instagram::Client do
|
|
67
67
|
end
|
68
68
|
|
69
69
|
it "should return the raw of media" do
|
70
|
-
|
71
|
-
media = raw['data']
|
72
|
-
expect(raw['pagination']).to_not be nil
|
70
|
+
media = @client.tag_recent_media_page('cat')
|
73
71
|
expect(media).to be_a Array
|
74
|
-
expect(media.first['user']['username']).to eq(
|
72
|
+
expect(media.first['user']['username']).to eq('amandavan')
|
73
|
+
expect(media.pagination).to_not be nil
|
75
74
|
end
|
76
75
|
|
77
76
|
end
|