berbix 0.0.5 → 0.0.6

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. checksums.yaml +4 -4
  2. data/lib/berbix.rb +5 -9
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a623bd8b3c467b7821497d7fae7b39423e5c0d7e115895c96af431903f16eb5a
4
- data.tar.gz: 9ad98f9ce7c872cba73dcde207beef4ea4e010656981427c1d86c0e44968c8bd
3
+ metadata.gz: 98b6319a50dfd32695ad42cc0052df8c7804c4b002c65764ba77ee4db4dc3096
4
+ data.tar.gz: ac7ccb91f56cd327f1feee441e029e7cf8d340a1f38d16218ea53f104e4eb0db
5
5
  SHA512:
6
- metadata.gz: 8ab58b14a285077d3b1d0016061ec418c14701008b690a84aa0076d63308f07d4a2e4e5dfb44bb1af09098db4df33cec27670cbe004129d1e941cfde1eb8ff59
7
- data.tar.gz: 260e5f5f407cc89d2f10c7b8955f810c983bea7e1bf990369d1e6cd1565f5b2310fb9716bd5c107b14c01e036a4fd0dfda05eef459f5a73107ffa648e46c34fd
6
+ metadata.gz: 1372ae1a4809b4dc43b537f214cbe2e0caabbfc4bbaa0e1c0e12edb83dbfa927807199b33be2e98bd5b77a7d5fbfa0061a46beeba64b8c2382dd4bda6390e9df
7
+ data.tar.gz: 95b9ac13c41f8b2335562858875beb65f49b1571f19abe363e5ac9cea0a98d6ea57eed512e319c79585a7be979b5966a46cc01b548082faba3e44b0f9f9f8b77
@@ -3,7 +3,7 @@ require 'json'
3
3
 
4
4
  module Berbix
5
5
 
6
- SDK_VERSION = '0.0.5'
6
+ SDK_VERSION = '0.0.6'
7
7
  CLOCK_DRIFT = 300
8
8
 
9
9
  class HTTPClient
@@ -70,16 +70,12 @@ module Berbix
70
70
 
71
71
  class Client
72
72
  def initialize(opts={})
73
- @client_id = opts[:client_id]
74
- @client_secret = opts[:client_secret]
73
+ @api_secret = opts[:api_secret] || opts[:client_secret]
75
74
  @api_host = api_host(opts)
76
75
  @http_client = opts[:http_client] || NetHTTPClient.new
77
76
 
78
- if @client_id.nil?
79
- raise ':client_id must be provided when instantiating Berbix client'
80
- end
81
- if @client_secret.nil?
82
- raise ':client_secret must be provided when instantiating Berbix client'
77
+ if @api_secret.nil?
78
+ raise ':api_secret must be provided when instantiating Berbix client'
83
79
  end
84
80
  end
85
81
 
@@ -182,7 +178,7 @@ module Berbix
182
178
  end
183
179
 
184
180
  def auth
185
- { user: @client_id, pass: @client_secret }
181
+ { user: @api_secret, pass: '' }
186
182
  end
187
183
 
188
184
  def api_host(opts)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berbix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Levine