bearcat 0.3 → 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.
@@ -40,7 +40,7 @@ module Bearcat
40
40
  end
41
41
 
42
42
  def pages?
43
- @link_hash[:next] || @link_hash[:prev]
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.request(:get, u, p)
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)
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '0.3' unless defined?(Bearcat::VERSION)
2
+ VERSION = '0.4' unless defined?(Bearcat::VERSION)
3
3
  end
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.3'
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-11-13 00:00:00.000000000 Z
12
+ date: 2013-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake