sila-ruby 0.0.5 → 0.0.6

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
  SHA256:
3
- metadata.gz: bb8e3ffdac668631af94122a009fea06c7d8bec50530e82d935837b245eeabd9
4
- data.tar.gz: 8461312d0710fc4af76a0ce46aab12bff0275f5e7668d12fa9bba97c6d365a7a
3
+ metadata.gz: 52a54d0dbaf22ff6879eda9d06ba0ebd17ecc8b4fab8ae5dad8a1c95190cc130
4
+ data.tar.gz: 2c51710977f3b081f3752adf3c1214b69236ed2b278338cfc2e4918e7b371ee4
5
5
  SHA512:
6
- metadata.gz: 70cf6202bb63ec041d30963340dc0f87b901c23eae3f9598d7244b4d218e05fc4b2c739b5588edf21b512ad9549a11d56b99ffcb7544f5d084aa3a2e609932ed
7
- data.tar.gz: 400587a7ecfed053f694139153ffdc0c3a1354a7a90d571fe4cc9f91a003fc3357d55889b06c0e110afe57af1044e3422cfca66f35099f35a0f5c3148482339c
6
+ metadata.gz: 1ed7190b477f397d4b8342434c9d39baf94d52159250529705e05462e340b1e7295f8a7b5bee828cd571303295119a4f356cdd7703ae68970a5a16062d662dcb
7
+ data.tar.gz: 6d49e5f78ae0528dbe024da74e7da52ec4b782a11b7da3e328a0458c932ade400a9c195d0692efccb5a82a568643d2ec59180952782160803a99649ac3f59be3
data/README.md CHANGED
@@ -29,6 +29,7 @@ require 'sila-ruby'
29
29
 
30
30
  ```
31
31
  SilaRuby.setup do |config|
32
+ config.env = 'SILA_ENV'
32
33
  config.handle = 'SILA_HANDLE'
33
34
  config.address = 'SILA_ADDRESS'
34
35
  config.private_key = "SILA_PRIVATE_KEY"
data/bin/console CHANGED
@@ -12,6 +12,7 @@ require 'sila-ruby'
12
12
  # Pry.start
13
13
 
14
14
  SilaRuby.setup do |config|
15
+ config.env = ENV['SILA_ENV']
15
16
  config.address = ENV['SILA_ADDRESS']
16
17
  config.handle = ENV['SILA_HANDLE']
17
18
  config.private_key = ENV['SILA_PRIVATE_KEY']
@@ -30,7 +30,7 @@ module ApiHelpers
30
30
  # SILA-URI -----------------------------------
31
31
  # --------------------------------------------
32
32
  def sila_uri
33
- ENV['environment'] == 'production' ? 'https://api.silamoney.com' : 'https://sandbox.silamoney.com'
33
+ SilaRuby.configuration.handle == 'production' ? 'https://api.silamoney.com' : 'https://sandbox.silamoney.com'
34
34
  end
35
35
 
36
36
  # --------------------------------------------
@@ -1,3 +1,3 @@
1
1
  module SilaRuby
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sila-ruby
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
  - Vertbase
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-27 00:00:00.000000000 Z
11
+ date: 2019-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable