ar_http_wrapper 0.1.9 → 0.2.0

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.
@@ -47,7 +47,7 @@ class ActiveRecordHttpWrapper
47
47
 
48
48
  def self.count(params={})
49
49
  options = {:body => {:count => true}.merge(params)}
50
- get(to_path("/"),options)
50
+ get(to_path("/"),options).body.try(:to_i)
51
51
  end
52
52
  private
53
53
 
@@ -1,3 +1,3 @@
1
1
  module ArHttpWrapper
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_http_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: