access 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/access/request.rb +1 -1
- data/lib/access/response.rb +0 -2
- data/lib/access/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fca45024b5c19bd1d481ff42db919034c44a2936
|
4
|
+
data.tar.gz: d1a2d5314c20662a89f6753e970b6b30535d2073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6405926474de11687d8afa688ad60f0ebbede57c581be1380baaccb2204c66e483400d7953fe710bb8addd5e3b63e9dd5bb13af836afbc3934cd4e0b890379f9
|
7
|
+
data.tar.gz: e9df5dfb75965e55751b18066036cba5a552c03701eeee16e3379853d8688f66d687c8e99519b0eb340b6cdb3115df3288bcca70e262fd6d34d017aebf68eb94
|
data/lib/access/request.rb
CHANGED
@@ -17,7 +17,7 @@ module Access
|
|
17
17
|
|
18
18
|
def get_for_filter(path, api_type, filter, options={}, &block)
|
19
19
|
url = set_base(api_type, path)
|
20
|
-
results = self.class.get(url, headers: headers(options[:access_token]), body: filter)
|
20
|
+
results = self.class.get(url, headers: headers(options[:access_token]), body: filter, timeout: (options[:access_timeout] || 3))
|
21
21
|
if should_return_json?(options[:return_json])
|
22
22
|
hashify_results?(options[:hashify]) ? results.hashify : results
|
23
23
|
else
|
data/lib/access/response.rb
CHANGED
@@ -4,9 +4,7 @@ module Access
|
|
4
4
|
attr_accessor :info, :offers, :stores, :locations, :categories, :suggestions, :oauth_applications, :access_tokens, :oauth_tokens, :oauth_token, :verify, :reports, :members, :filters, :links, :dev_node, :message, :status, :success, :error, :response_status, :content_type, :redemption_method, :details, :oauth_access_token, :api_calls_over_time, :total_api_calls, :time_period, :interval, :report_env
|
5
5
|
|
6
6
|
def initialize(response)
|
7
|
-
# puts response
|
8
7
|
response.each { |key, value| instance_variable_set("@#{key}", value) if self.class.instance_methods.include? key.to_sym }
|
9
|
-
# puts response.message
|
10
8
|
@response_status = response.message
|
11
9
|
@status ||= response.code
|
12
10
|
check_success(response)
|
data/lib/access/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: access
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eggett
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|