turrialba 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd79e71af2c36f26195ce9a852a43f9cc0d817cb
4
- data.tar.gz: 10b85dc6bb008e4fcc560da3f89ba6085443df8e
3
+ metadata.gz: c023a266f92b103ca957b4fc20df70f0e418f369
4
+ data.tar.gz: e2069584b1b9fe75c3704deb63097b914d6ce10e
5
5
  SHA512:
6
- metadata.gz: dd135baf76b253ad23cf661a56776d0a80918ac52c66d378c3eb8956295f742e9df62c34e073e68705c533b83934bf5e8fc744e5323486630211c8834276cf94
7
- data.tar.gz: 5d37db8d17547351fd714a9e1269e172db7ba38424fe1dc1ce995a45ef6addc66971f51054ed45d9a551cc9f61ad3e64f230a64e9641f19ad7b7aa19913eb899
6
+ metadata.gz: 755b868d289fefcec0bfcc8251b51758de2a0e4351954a93bdccbfffcfdf6aef216a4b5ae91b835082d1b523147a57a13fe37dad675bef74f86d4629b75e2610
7
+ data.tar.gz: 830ace7dce1b8ab25894e7f1862c8ae911778c0bdf87f23604c489811b317df791f5c82baf08e04fbfed4f7898a66a94486e591a736e4b4e26c0aa80bc9ca2a4
@@ -3,10 +3,10 @@ require 'httparty'
3
3
  module Turrialba
4
4
  class Client
5
5
  include HTTParty
6
- base_uri ENV['TURRIALBA_URL'] || 'http://localhost:3000'
7
6
 
8
- def initialize(auth_token = 'hashlol')
9
- @auth_header = { 'X-AUTH-TOKEN': auth_token }
7
+ def initialize(options={})
8
+ self.class.base_uri options[:turrialba_url] || "http://localhost:3000"
9
+ @auth_header = { 'X-AUTH-TOKEN': options[:auth_token] || 'hashlol' }
10
10
  end
11
11
 
12
12
  def user(uid)
@@ -1,3 +1,3 @@
1
1
  module Turrialba
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turrialba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Valverde Arredondo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-22 00:00:00.000000000 Z
11
+ date: 2017-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty