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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98bfe08249fe08e004217a16f9c482fd0a860e00
4
- data.tar.gz: fa5e44106f529bcdaa22f866f5d31e555ea0610e
3
+ metadata.gz: 2e4ae309d7e9da03d00f404799e14ce572108730
4
+ data.tar.gz: fa515bc512ce8688871d6a0b23567ef2f45a8465
5
5
  SHA512:
6
- metadata.gz: 0f7d4388142d7ac9cf452b3bcc7a6536d841d6095aac6990719d092eb72224c156e0efb8ec8163c1ed38b744c23d3d3fc91bb10e2331cfe2f07d68bcd1436e15
7
- data.tar.gz: ef42f6772b4d4024b8de5ab3bfc58b803a268ce546487648af62ed717ef86471f5232847078a604c3161a58c2a2e5b3d13f6a1068a909566997293055b799bad
6
+ metadata.gz: 4ce8513dfd65acf7bd614c7e79875d6163aeb5fa6609f850161d09093190aadd765a95b7563a75bbd4be76ca65f4648d485183e9f1d91a8e0f9689ef2d0aab47
7
+ data.tar.gz: 99f92d7180fbc840a677d1c4fc91662c01e1c6ff28c95f48e3675777fc545d7b6a767ca6d71e9b4d6d4c53ce50aba2be60249c8939588f5e57d73c329371013c
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Instagram
2
- VERSION = '2.0.3'.freeze unless defined?(::Instagram::VERSION)
2
+ VERSION = '2.0.4'.freeze unless defined?(::Instagram::VERSION)
3
3
  end
@@ -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 "User-Agent : #{Instagram::Configuration::DEFAULT_USER_AGENT}"
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 "User-Agent : #{Instagram::Configuration::DEFAULT_USER_AGENT}"
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.3
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: