bearcat 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bearcat/api_array.rb +4 -2
- data/lib/bearcat/version.rb +1 -1
- metadata +2 -2
data/lib/bearcat/api_array.rb
CHANGED
@@ -40,7 +40,7 @@ module Bearcat
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def pages?
|
43
|
-
@link_hash[
|
43
|
+
@link_hash['next'] || @link_hash['prev']
|
44
44
|
end
|
45
45
|
|
46
46
|
def next_page
|
@@ -104,7 +104,9 @@ module Bearcat
|
|
104
104
|
p = CGI.parse(query).merge(params)
|
105
105
|
u = url.gsub("?#{query}", '')
|
106
106
|
p.each { |k, v| p[k] = v.first if v.is_a?(Array) }
|
107
|
-
@api_client.
|
107
|
+
@api_client.connection.send(:get) do |r|
|
108
|
+
r.url(u, p)
|
109
|
+
end
|
108
110
|
end
|
109
111
|
|
110
112
|
def load_page(rel)
|
data/lib/bearcat/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bearcat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.4'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|