extendi-instagram 2.0.4 → 2.0.5
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 +2 -2
- 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: bb4b31a72858e40ffa7996ecbacdc859f4541ffc
|
|
4
|
+
data.tar.gz: d49a7ce9d419dc3fd622ec1e11b6a7a4772783c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05693cdd15b97f76cdc12df1a3977ba26167de91681ead785fc5b4b5fa0d155fdeea27dabf0a40747136ea818b343415a49cf0355be55354fc5b6730d9d5d384
|
|
7
|
+
data.tar.gz: a3f451a1360d50871647b7c324b5d959d10c8670eacd7ab1d2d9c3d1208b0c58fbb0fadbca80bab844aee84bfa235caadc3d0371e86d6e2617a3d9b19e81440b
|
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-Encoding' => '
|
|
11
|
+
:headers => { 'Accept-Encoding' => 'identity', '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
|
@@ -234,7 +234,7 @@ describe Instagram::API do
|
|
|
234
234
|
end
|
|
235
235
|
expect(output).to include 'INFO -- : Started GET request to: https://api.instagram.com/v1/users/self/feed.json'
|
|
236
236
|
expect(output).to include 'DEBUG -- : Response Headers:'
|
|
237
|
-
expect(output).to include "Accept-Encoding :
|
|
237
|
+
expect(output).to include "Accept-Encoding : identity"
|
|
238
238
|
expect(output).to include "Accept : application/json; charset=utf-8"
|
|
239
239
|
expect(output).to include "User-Agent : #{Instagram::Configuration::DEFAULT_USER_AGENT}"
|
|
240
240
|
expect(output).to include 'http://distillery.s3.amazonaws.com/media/2011/01/31/0f8e832c3dc6420bb6ddf0bd09f032f6_6.jpg'
|
|
@@ -255,7 +255,7 @@ describe Instagram::API do
|
|
|
255
255
|
|
|
256
256
|
expect(output).to include 'INFO -- : Started GET request to: https://api.instagram.com/v1/users/self/feed.json'
|
|
257
257
|
expect(output).to include 'DEBUG -- : Response Headers:'
|
|
258
|
-
expect(output).to include "Accept-Encoding :
|
|
258
|
+
expect(output).to include "Accept-Encoding : identity"
|
|
259
259
|
expect(output).to include "Accept : application/json; charset=utf-8"
|
|
260
260
|
expect(output).to include "User-Agent : #{Instagram::Configuration::DEFAULT_USER_AGENT}"
|
|
261
261
|
expect(output).to include '{"meta":{"error_message": "Bad words are bad."}}'
|