instagram-continued 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba03c517f7508e579dd2e3dba29ae2f9681ad588
4
- data.tar.gz: 41aaa2d46f113359c404aa2af88092ae4c02ea3e
3
+ metadata.gz: dec6a0474c1d5e4be829dedcf3e360e305a5904b
4
+ data.tar.gz: 600808cda43bb48767b4602b1909c81172076a4e
5
5
  SHA512:
6
- metadata.gz: 989d4af7a557f1243b06350a647ee8d91ef5821d131b24a0ca8f4f275afdf58ec32212c95779e650f7a5de81fb143f9aada7b1155331e63db26d743a762642a6
7
- data.tar.gz: 423e3276701d349da7c8a42d3f90978486a7f7d1c0afadf0036e264fa3269662a3dacda83aace6018a81298dab9f8d6870c042242370189559fb4c78fa09aa97
6
+ metadata.gz: e8870926321af08fa2eba8d06e649f52afa5a355675e7a7407419bef3a7c4ae76a1800f48156f39b5a4f7a3843891abc0a4e21fd084436383fd6cf060e598faa
7
+ data.tar.gz: adeb73f79bfdc8e8f23243cc107b741a138a87310f0a0e5254d00a47477a50ddd49108ea957bb0960edc8bbba00b19da2996a6ff3f0ae12d5d4f769dd1570323
@@ -3,9 +3,8 @@ Style/StringLiterals:
3
3
  Style/StringLiteralsInInterpolation:
4
4
  EnforcedStyle: double_quotes
5
5
  Metrics/LineLength:
6
+ Max: 120
7
+ Metrics/BlockLength:
6
8
  Max: 100
7
9
  Style/TrailingCommaInLiteral:
8
10
  EnforcedStyleForMultiline: comma
9
- SupportedStyles:
10
- - comma
11
- - no_comma
@@ -7,6 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.add_development_dependency("webmock", "~> 1.22")
8
8
  s.add_development_dependency("bluecloth", "~> 2.2")
9
9
  s.add_development_dependency("rubocop")
10
+ s.add_development_dependency("yard", "~> 0.9")
10
11
 
11
12
  s.add_runtime_dependency("faraday", "~> 0.11")
12
13
  s.add_runtime_dependency("faraday_middleware")
@@ -4,6 +4,10 @@ require File.expand_path("../instagram/api", __FILE__)
4
4
  require File.expand_path("../instagram/client", __FILE__)
5
5
  require File.expand_path("../instagram/response", __FILE__)
6
6
 
7
+ require "hashie"
8
+ require "hashie/logger"
9
+ Hashie.logger = Logger.new(nil)
10
+
7
11
  module Instagram
8
12
  extend Configuration
9
13
 
@@ -5,22 +5,22 @@ module Instagram
5
5
  # Defines HTTP request methods
6
6
  module Request
7
7
  # Perform an HTTP GET request
8
- def get(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = no_response_wrapper, signed = sign_requests)
8
+ def get(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = self.no_response_wrapper, signed = sign_requests)
9
9
  request(:get, path, options, signature, raw, unformatted, no_response_wrapper, signed)
10
10
  end
11
11
 
12
12
  # Perform an HTTP POST request
13
- def post(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = no_response_wrapper, signed = sign_requests)
13
+ def post(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = self.no_response_wrapper, signed = sign_requests)
14
14
  request(:post, path, options, signature, raw, unformatted, no_response_wrapper, signed)
15
15
  end
16
16
 
17
17
  # Perform an HTTP PUT request
18
- def put(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = no_response_wrapper, signed = sign_requests)
18
+ def put(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = self.no_response_wrapper, signed = sign_requests)
19
19
  request(:put, path, options, signature, raw, unformatted, no_response_wrapper, signed)
20
20
  end
21
21
 
22
22
  # Perform an HTTP DELETE request
23
- def delete(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = no_response_wrapper, signed = sign_requests)
23
+ def delete(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = self.no_response_wrapper, signed = sign_requests)
24
24
  request(:delete, path, options, signature, raw, unformatted, no_response_wrapper, signed)
25
25
  end
26
26
 
@@ -1,3 +1,3 @@
1
1
  module Instagram
2
- VERSION = "1.3.2".freeze unless defined?(::Instagram::VERSION)
2
+ VERSION = "1.3.3".freeze unless defined?(::Instagram::VERSION)
3
3
  end
@@ -254,28 +254,6 @@ describe Instagram::API do
254
254
  expect(output).to include '{"meta":{"error_message": "Bad words are bad."}}'
255
255
  end
256
256
  end
257
-
258
- context "will redact API keys if INSTAGRAM_GEM_REDACT=true" do
259
- before do
260
- stub_get("users/self/feed.json")
261
- .to_return(body: fixture("user_media_feed.json"), headers: { content_type: "application/json; charset=utf-8" })
262
- end
263
-
264
- it "should redact API keys" do
265
- allow(ENV).to receive(:[]).with("http_proxy").and_return(nil)
266
- allow(ENV).to receive(:[]).with("INSTAGRAM_GEM_REDACT").and_return("true")
267
-
268
- output = capture_output do
269
- @client.user_media_feed
270
- end
271
-
272
- expect(output).to include "INFO -- : Started GET request to: https://api.instagram.com/v1/users/self/feed.json"
273
- expect(output).to include "DEBUG -- : Response Headers:"
274
- expect(output).to include "User-Agent : Instagram Ruby Gem #{Instagram::VERSION}"
275
- expect(output).to include "http://distillery.s3.amazonaws.com/media/2011/01/31/0f8e832c3dc6420bb6ddf0bd09f032f6_6.jpg"
276
- expect(output).to include "access_token=[ACCESS-TOKEN]"
277
- end
278
- end
279
257
  end
280
258
  end
281
259
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instagram-continued
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shayne Sweeney
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-06 00:00:00.000000000 Z
12
+ date: 2017-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -81,6 +81,20 @@ dependencies:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: yard
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '0.9'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '0.9'
84
98
  - !ruby/object:Gem::Dependency
85
99
  name: faraday
86
100
  requirement: !ruby/object:Gem::Requirement