stellar_spectrum 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/stellar_spectrum.rb +3 -3
- data/lib/stellar_spectrum/client.rb +4 -4
- data/lib/stellar_spectrum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 701c1e76ded1075a0b6db252cdf9016bde2226d64710e31bae2a12ee1fae1c6d
|
4
|
+
data.tar.gz: 3190b3aa4fb5861c22b87354eab7588ae64f3e0bde57cab6f92fe9409445a907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5f80b73de36695e9c3281d517431c938abeceac4b69c21d823225bb40704af9f27057bd8be601d98ef9dadd374a0a5f27b15047f143e731c495d92c211f354f
|
7
|
+
data.tar.gz: 228e90ed34798b8e427bcf23ff5083d9b74f1be366c0ca3255d0c200c7081865dbefe094e69b85126a59a21282db2d95a7ce41238e968d3f23b14dc7650a39cd
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [0.2.0]
|
8
|
+
### Fixed
|
9
|
+
- Do not require `redis_url`, `seeds`, `horizon_url` to be set in the gem's global config
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- Use the `to` keyword instead of `destination`
|
13
|
+
|
7
14
|
## [0.1.0] - 2018-10-19
|
8
15
|
### Added
|
9
16
|
- Initial release
|
data/Gemfile.lock
CHANGED
data/lib/stellar_spectrum.rb
CHANGED
@@ -16,9 +16,9 @@ module StellarSpectrum
|
|
16
16
|
include GemConfig::Base
|
17
17
|
|
18
18
|
with_configuration do
|
19
|
-
has :redis_url, classes: String
|
20
|
-
has :seeds, classes: Array
|
21
|
-
has :horizon_url, classes: String
|
19
|
+
has :redis_url, classes: [NilClass, String]
|
20
|
+
has :seeds, classes: [NilClass, Array]
|
21
|
+
has :horizon_url, classes: [NilClass, String]
|
22
22
|
has :logger
|
23
23
|
end
|
24
24
|
|
@@ -21,7 +21,7 @@ module StellarSpectrum
|
|
21
21
|
self.logger = logger
|
22
22
|
end
|
23
23
|
|
24
|
-
def send_payment(from:,
|
24
|
+
def send_payment(from:, to:, amount:, memo: nil, tries: 0)
|
25
25
|
tries += 1
|
26
26
|
available_channels = GetAvailableChannels.execute(
|
27
27
|
redis: redis,
|
@@ -35,7 +35,7 @@ module StellarSpectrum
|
|
35
35
|
|
36
36
|
return send_payment(
|
37
37
|
from: from,
|
38
|
-
|
38
|
+
to: to,
|
39
39
|
amount: amount,
|
40
40
|
memo: memo,
|
41
41
|
tries: tries,
|
@@ -61,7 +61,7 @@ module StellarSpectrum
|
|
61
61
|
|
62
62
|
return send_payment(
|
63
63
|
from: from,
|
64
|
-
|
64
|
+
to: to,
|
65
65
|
amount: amount,
|
66
66
|
memo: memo,
|
67
67
|
tries: tries,
|
@@ -70,7 +70,7 @@ module StellarSpectrum
|
|
70
70
|
|
71
71
|
stellar_client.send_payment(
|
72
72
|
from: from,
|
73
|
-
to:
|
73
|
+
to: to,
|
74
74
|
amount: amount,
|
75
75
|
memo: memo,
|
76
76
|
channel_account: channel_account,
|