stellar_spectrum 0.1.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 572c2a17c34bf9b430da4906b24ffc6d734876a1fd59b557a6b7cf081ea0f177
4
- data.tar.gz: 2828ed570fafb2f6e7c708b8aaf22f8ef7f50d8d5d1dc4460d9b5ea19e55b8b4
3
+ metadata.gz: 701c1e76ded1075a0b6db252cdf9016bde2226d64710e31bae2a12ee1fae1c6d
4
+ data.tar.gz: 3190b3aa4fb5861c22b87354eab7588ae64f3e0bde57cab6f92fe9409445a907
5
5
  SHA512:
6
- metadata.gz: 83b828802a2c63dfe94bb8f76fbd7be2fc5050bf4ec25f96e8fce6da67e4e4255fc73de0efa8718f4bf03e9a810cb5cd542758bdc448bd399b0ace584697fa5d
7
- data.tar.gz: '0658c887c5257915a22282c38a41dba16e5d4fa93c20e8dd5f9a27ff1d2aa32b10b1fadd04803d21592f52d977c5a50eed3513c28dc3c8436d3022198c066e73'
6
+ metadata.gz: b5f80b73de36695e9c3281d517431c938abeceac4b69c21d823225bb40704af9f27057bd8be601d98ef9dadd374a0a5f27b15047f143e731c495d92c211f354f
7
+ data.tar.gz: 228e90ed34798b8e427bcf23ff5083d9b74f1be366c0ca3255d0c200c7081865dbefe094e69b85126a59a21282db2d95a7ce41238e968d3f23b14dc7650a39cd
@@ -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
@@ -14,7 +14,7 @@ GIT
14
14
  PATH
15
15
  remote: .
16
16
  specs:
17
- stellar_spectrum (0.1.0)
17
+ stellar_spectrum (0.2.0)
18
18
  activesupport
19
19
  gem_config
20
20
  redis
@@ -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:, destination:, amount:, memo: nil, tries: 0)
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
- destination: destination,
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
- destination: destination,
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: destination,
73
+ to: to,
74
74
  amount: amount,
75
75
  memo: memo,
76
76
  channel_account: channel_account,
@@ -1,3 +1,3 @@
1
1
  module StellarSpectrum
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellar_spectrum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag