proxima 0.3.0 → 0.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e4e449fa262703df9c749f876ff6b529d5c3bf1
4
- data.tar.gz: '09ea541775f35a009a17b279c7a783cda0488745'
3
+ metadata.gz: 47ae0c0e27eda30ff6330bb3fbe9bc7b80e24657
4
+ data.tar.gz: ca4f807c5fe9e51e1d369b91a477a51397989903
5
5
  SHA512:
6
- metadata.gz: 242abad6382332c49949e81d3748be602e011acd86c0073762d6c65c445c26ca9b1dffe54fe22bec8a2026f48c172c72ae167f1058f3e8da518ff4042723461b
7
- data.tar.gz: b31124f05812c8baf9340da784f3fa348dad5d525e741a708f92a6790c1d8ddae7a5840c9234420cc1b4f2cbe8960f90b8f51a9babb1a36cc762f779ebc72d84
6
+ metadata.gz: 7623851cc48e493f9432dee836aca74fae7e5f9c7750623483a566f6c94eee9356b185d75fa13daf2928fd653be1b82a4d72756e707a9986c88f1101fa50a309
7
+ data.tar.gz: 20213077dbe0f46ad2bfb1d66d583e266c1227c0dbc38a0f065e02824b9b4faad1bf6b2778ab9c406818dfaf935183a7391d4b5d0f76f19f5a917d387eed426c
data/lib/proxima/model.rb CHANGED
@@ -101,14 +101,9 @@ module Proxima
101
101
  @response.headers[:x_total_count] || 0
102
102
  end
103
103
 
104
- def self.find_by_id(id, params = {}, opts = nil)
105
- if opts == nil
106
- opts = params
107
- params = {}
108
- end
109
-
104
+ def self.find_by_id(id, params = {}, opts = {})
110
105
  params[:id] = id
111
- @response = self.api.get self.find_by_id_path.call(params), opts
106
+ @response = self.api.get self.find_by_id_path.call(params), opts
112
107
 
113
108
  return nil unless @response.code == 200
114
109
 
@@ -1,5 +1,5 @@
1
1
 
2
2
 
3
3
  module Proxima
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proxima
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Hurst