rimac 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. data/lib/rimac/version.rb +1 -1
  2. data/lib/rimac.rb +4 -2
  3. metadata +1 -1
data/lib/rimac/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rimac
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/rimac.rb CHANGED
@@ -20,12 +20,14 @@ module Rimac
20
20
  options[:page] ||= 0
21
21
  options[:output] = "json_array"
22
22
 
23
+ options[:limit] += 1
24
+
23
25
  url = url_for('invoke', resource, options)
24
26
 
25
27
  response = JSON.parse(Net::HTTP.get_response(URI.parse(url)).body)
26
28
 
27
- original_result = response["result"]
28
- headers = original_result.shift
29
+ original_result = response["result"].to_a
30
+ headers = original_result.shift.to_a
29
31
 
30
32
  results = []
31
33
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rimac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: