sila-ruby 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/lib/sila-ruby/api_helpers.rb +3 -3
- data/lib/sila-ruby/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb8e3ffdac668631af94122a009fea06c7d8bec50530e82d935837b245eeabd9
|
4
|
+
data.tar.gz: 8461312d0710fc4af76a0ce46aab12bff0275f5e7668d12fa9bba97c6d365a7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70cf6202bb63ec041d30963340dc0f87b901c23eae3f9598d7244b4d218e05fc4b2c739b5588edf21b512ad9549a11d56b99ffcb7544f5d084aa3a2e609932ed
|
7
|
+
data.tar.gz: 400587a7ecfed053f694139153ffdc0c3a1354a7a90d571fe4cc9f91a003fc3357d55889b06c0e110afe57af1044e3422cfca66f35099f35a0f5c3148482339c
|
data/.DS_Store
ADDED
Binary file
|
@@ -27,9 +27,9 @@ module ApiHelpers
|
|
27
27
|
module ClassMethods
|
28
28
|
|
29
29
|
# --------------------------------------------
|
30
|
-
#
|
30
|
+
# SILA-URI -----------------------------------
|
31
31
|
# --------------------------------------------
|
32
|
-
def
|
32
|
+
def sila_uri
|
33
33
|
ENV['environment'] == 'production' ? 'https://api.silamoney.com' : 'https://sandbox.silamoney.com'
|
34
34
|
end
|
35
35
|
|
@@ -38,7 +38,7 @@ module ApiHelpers
|
|
38
38
|
# --------------------------------------------
|
39
39
|
def post_signed(api_group, header={}, message={}, params={}, user_key)
|
40
40
|
# Set the post URL
|
41
|
-
url = "#{
|
41
|
+
url = "#{sila_uri}/0.2/#{api_group}"
|
42
42
|
# Create the header
|
43
43
|
header = header.merge({reference: SecureRandom.uuid, created: Time.now.to_i, auth_handle: SilaRuby.configuration.handle, version: '0.2', crypto: 'ETH'})
|
44
44
|
# Put together the body in JSON
|
data/lib/sila-ruby/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.5
|
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-
|
11
|
+
date: 2019-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -157,6 +157,7 @@ executables: []
|
|
157
157
|
extensions: []
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
|
+
- ".DS_Store"
|
160
161
|
- ".gitignore"
|
161
162
|
- ".rspec"
|
162
163
|
- Gemfile
|