sep6_client 1.0.0 → 2.0.0
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 +4 -4
- data/lib/sep6_client/client.rb +6 -6
- data/lib/sep6_client/config.rb +2 -2
- data/sep6_client.gemspec +4 -4
- metadata +23 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0530555cf6d9484fd9f553a3d295c92586f4a174c5e5caf5461c8e2a713ea88
|
|
4
|
+
data.tar.gz: 6a873002becf2fd10d73524242cd3b7e39cf7ed741e47a48e6fc6e3bc7dbcab8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 716e39b542aa52c2ce9063f6b40b5559feb8911bb17e2fd213244e565073b199609f244115bbac3d0482b91a4863cdfe6fb4fe928021e79c686916825558bf3e
|
|
7
|
+
data.tar.gz: f8649aec3e025cd8d4cd84c46bcf4b24aca55c452961ed6e34b4e194f9d25ef76c84c87145db0dd64a6a87763430490900812362058e13071cbc1f881b9488c5
|
data/lib/sep6_client/client.rb
CHANGED
|
@@ -5,8 +5,8 @@ require 'sep6_client/config'
|
|
|
5
5
|
require 'uri'
|
|
6
6
|
require 'openssl'
|
|
7
7
|
|
|
8
|
-
# Ruby implementation of a REST client for the
|
|
9
|
-
# see https://www.
|
|
8
|
+
# Ruby implementation of a REST client for the Whalestack Merchant API
|
|
9
|
+
# see https://www.whalestack.com/en/api-docs
|
|
10
10
|
module Sep6Client
|
|
11
11
|
|
|
12
12
|
class Client
|
|
@@ -23,7 +23,7 @@ module Sep6Client
|
|
|
23
23
|
# @string The current version of this SDK, used in the HTTP user agent (leave it as is)
|
|
24
24
|
@client_version = Sep6Client::CLIENT_VERSION
|
|
25
25
|
|
|
26
|
-
# @string
|
|
26
|
+
# @string Whalestack connect url
|
|
27
27
|
@transfer_server = transfer_server ? transfer_server : Sep6Client::TRANSFER_SERVER
|
|
28
28
|
|
|
29
29
|
# @string|nil Specifies the log file to which to write, if any.
|
|
@@ -131,7 +131,7 @@ module Sep6Client
|
|
|
131
131
|
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
-
# private class to generate connect url on
|
|
134
|
+
# private class to generate connect url on Whalestack servers
|
|
135
135
|
private
|
|
136
136
|
def build_connect_url(endpoint)
|
|
137
137
|
"https://" + @transfer_server + endpoint
|
|
@@ -153,8 +153,8 @@ module Sep6Client
|
|
|
153
153
|
return
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
-
File.open(@log_file, 'a') { |f| f.write(Time.now.utc.rfc822 + " [
|
|
157
|
-
# print Time.now.utc.rfc822 + " [
|
|
156
|
+
File.open(@log_file, 'a') { |f| f.write(Time.now.utc.rfc822 + " [Whalestack] " + text + "\n") }
|
|
157
|
+
# print Time.now.utc.rfc822 + " [Whalestack] " + text + "\n"
|
|
158
158
|
|
|
159
159
|
end
|
|
160
160
|
|
data/lib/sep6_client/config.rb
CHANGED
data/sep6_client.gemspec
CHANGED
|
@@ -6,10 +6,10 @@ Gem::Specification.new do |s|
|
|
|
6
6
|
s.name = 'sep6_client'
|
|
7
7
|
s.version = Sep6Client::CLIENT_VERSION
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
|
9
|
-
s.authors = ['
|
|
10
|
-
s.email = ['service@
|
|
11
|
-
s.homepage = 'https://www.
|
|
12
|
-
s.summary = %q{Ruby based Stellar SEP-6 Client by
|
|
9
|
+
s.authors = ['Whalestack LLC']
|
|
10
|
+
s.email = ['service@whalestack.com']
|
|
11
|
+
s.homepage = 'https://www.whalestack.com'
|
|
12
|
+
s.summary = %q{Ruby based Stellar SEP-6 Client by Whalestack}
|
|
13
13
|
s.licenses = ['Apache-2.0']
|
|
14
14
|
s.required_ruby_version = '>= 2.0.0'
|
|
15
15
|
|
metadata
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sep6_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
8
|
-
autorequire:
|
|
7
|
+
- Whalestack LLC
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-10-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '2.1'
|
|
20
17
|
- - ">="
|
|
21
18
|
- !ruby/object:Gem::Version
|
|
22
19
|
version: 2.1.0
|
|
20
|
+
- - "~>"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '2.1'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
|
-
- - "~>"
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: '2.1'
|
|
30
27
|
- - ">="
|
|
31
28
|
- !ruby/object:Gem::Version
|
|
32
29
|
version: 2.1.0
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '2.1'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: json
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
|
-
- - "~>"
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: '2.3'
|
|
40
37
|
- - ">="
|
|
41
38
|
- !ruby/object:Gem::Version
|
|
42
39
|
version: 2.3.0
|
|
40
|
+
- - "~>"
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '2.3'
|
|
43
43
|
type: :runtime
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
|
-
- - "~>"
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: '2.3'
|
|
50
47
|
- - ">="
|
|
51
48
|
- !ruby/object:Gem::Version
|
|
52
49
|
version: 2.3.0
|
|
53
|
-
|
|
50
|
+
- - "~>"
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '2.3'
|
|
53
|
+
description:
|
|
54
54
|
email:
|
|
55
|
-
- service@
|
|
55
|
+
- service@whalestack.com
|
|
56
56
|
executables: []
|
|
57
57
|
extensions: []
|
|
58
58
|
extra_rdoc_files: []
|
|
@@ -63,11 +63,11 @@ files:
|
|
|
63
63
|
- lib/sep6_client/client.rb
|
|
64
64
|
- lib/sep6_client/config.rb
|
|
65
65
|
- sep6_client.gemspec
|
|
66
|
-
homepage: https://www.
|
|
66
|
+
homepage: https://www.whalestack.com
|
|
67
67
|
licenses:
|
|
68
68
|
- Apache-2.0
|
|
69
69
|
metadata: {}
|
|
70
|
-
post_install_message:
|
|
70
|
+
post_install_message:
|
|
71
71
|
rdoc_options: []
|
|
72
72
|
require_paths:
|
|
73
73
|
- lib
|
|
@@ -82,8 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
82
82
|
- !ruby/object:Gem::Version
|
|
83
83
|
version: '0'
|
|
84
84
|
requirements: []
|
|
85
|
-
rubygems_version: 3.3.
|
|
86
|
-
signing_key:
|
|
85
|
+
rubygems_version: 3.0.3.1
|
|
86
|
+
signing_key:
|
|
87
87
|
specification_version: 4
|
|
88
|
-
summary: Ruby based Stellar SEP-6 Client by
|
|
88
|
+
summary: Ruby based Stellar SEP-6 Client by Whalestack
|
|
89
89
|
test_files: []
|