extendi-instagram 2.0.3 → 2.0.4
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/lib/instagram/connection.rb +1 -1
- data/lib/instagram/version.rb +1 -1
- data/spec/instagram/api_spec.rb +7 -4
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e4ae309d7e9da03d00f404799e14ce572108730
|
4
|
+
data.tar.gz: fa515bc512ce8688871d6a0b23567ef2f45a8465
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ce8513dfd65acf7bd614c7e79875d6163aeb5fa6609f850161d09093190aadd765a95b7563a75bbd4be76ca65f4648d485183e9f1d91a8e0f9689ef2d0aab47
|
7
|
+
data.tar.gz: 99f92d7180fbc840a677d1c4fc91662c01e1c6ff28c95f48e3675777fc545d7b6a767ca6d71e9b4d6d4c53ce50aba2be60249c8939588f5e57d73c329371013c
|
data/lib/instagram/connection.rb
CHANGED
@@ -8,7 +8,7 @@ module Instagram
|
|
8
8
|
|
9
9
|
def connection(raw=false)
|
10
10
|
options = {
|
11
|
-
:headers => {'Accept' => "application/#{format}; charset=utf-8", 'User-Agent' => user_agent},
|
11
|
+
:headers => { 'Accept-Encoding' => 'none', 'Accept' => "application/#{format}; charset=utf-8", 'User-Agent' => user_agent},
|
12
12
|
:proxy => proxy,
|
13
13
|
:url => endpoint,
|
14
14
|
}.merge(connection_options)
|
data/lib/instagram/version.rb
CHANGED
data/spec/instagram/api_spec.rb
CHANGED
@@ -230,12 +230,13 @@ describe Instagram::API do
|
|
230
230
|
|
231
231
|
it "should return the body error message" do
|
232
232
|
output = capture_output do
|
233
|
-
@client.user_media_feed
|
233
|
+
@client.user_media_feed
|
234
234
|
end
|
235
|
-
|
236
235
|
expect(output).to include 'INFO -- : Started GET request to: https://api.instagram.com/v1/users/self/feed.json'
|
237
236
|
expect(output).to include 'DEBUG -- : Response Headers:'
|
238
|
-
expect(output).to include "
|
237
|
+
expect(output).to include "Accept-Encoding : none"
|
238
|
+
expect(output).to include "Accept : application/json; charset=utf-8"
|
239
|
+
expect(output).to include "User-Agent : #{Instagram::Configuration::DEFAULT_USER_AGENT}"
|
239
240
|
expect(output).to include 'http://distillery.s3.amazonaws.com/media/2011/01/31/0f8e832c3dc6420bb6ddf0bd09f032f6_6.jpg'
|
240
241
|
end
|
241
242
|
end
|
@@ -254,7 +255,9 @@ describe Instagram::API do
|
|
254
255
|
|
255
256
|
expect(output).to include 'INFO -- : Started GET request to: https://api.instagram.com/v1/users/self/feed.json'
|
256
257
|
expect(output).to include 'DEBUG -- : Response Headers:'
|
257
|
-
expect(output).to include "
|
258
|
+
expect(output).to include "Accept-Encoding : none"
|
259
|
+
expect(output).to include "Accept : application/json; charset=utf-8"
|
260
|
+
expect(output).to include "User-Agent : #{Instagram::Configuration::DEFAULT_USER_AGENT}"
|
258
261
|
expect(output).to include '{"meta":{"error_message": "Bad words are bad."}}'
|
259
262
|
end
|
260
263
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extendi-instagram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shayne Sweeney
|
@@ -345,3 +345,4 @@ test_files:
|
|
345
345
|
- spec/instagram/request_spec.rb
|
346
346
|
- spec/instagram_spec.rb
|
347
347
|
- spec/spec_helper.rb
|
348
|
+
has_rdoc:
|