stellar_base-rails 0.5.2 → 0.5.3

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: afe1bcbef83824eb0a82e5efe787a4f2bf892771f56227513dc8e1b4c2941c86
4
- data.tar.gz: 92568bb19d87d9278a0908041b4d8e6513bc0466b95ff59f0101622c80ae5b82
3
+ metadata.gz: db80e94f2cb2b1838188d9b338e12ea4daf31b55d75e6b2f1f6d0f81f9f257d6
4
+ data.tar.gz: e7dc597982222fe7058cb417009ecf95888c2fd664f676cf7da4d184398ac33f
5
5
  SHA512:
6
- metadata.gz: a9c604bcda118b243fabe40e213a09f35151e8e81d95aa70c894f7cb115a998925f530f1a539d14cd3024198427f3e21a3e240a230081fb0bf4423297dc71292
7
- data.tar.gz: c291ce9c7ea5e99eb25ac6b0da70fa3845ac5b06474250788ca23b2f59805ee157f492519e3d393a2230df6ad878cfef0f8ffb089119ffc240381a3c41bfd0ee
6
+ metadata.gz: 1ee7499d5b7b69d4b3807b2139128b489ea662eff30f3cf4e4ac164725adaef39e7410db2f603539629feed89e7a22ec97808b9a5b4fa1fc8dcc996c971b90d0
7
+ data.tar.gz: 7eff21ed67730189d87b757502048c80f38781ddfadd93eafdefd207a3bdb778d589e3f29d23fe36d11abea10e6c78d0ce287ba87e4e830b01e8fe4ffc64257e
data/README.md CHANGED
@@ -65,7 +65,7 @@ c.stellar_toml = {
65
65
  - Default:
66
66
  ```
67
67
  c.stellar_toml = {
68
- TRANSFER_SERVER: # if withdraw module is set, this is automatically set to the withdraw_endpoint unless overridden
68
+ TRANSFER_SERVER: ...,
69
69
  }
70
70
  ```
71
71
 
@@ -9,7 +9,7 @@ module StellarBase
9
9
 
10
10
  respond_to do |f|
11
11
  f.toml do
12
- render plain: TomlRB.dump(stellar_toml.to_hash)
12
+ render plain: ::TomlRB.dump(stellar_toml.to_hash)
13
13
  end
14
14
  end
15
15
  end
@@ -3,14 +3,7 @@ module StellarBase
3
3
 
4
4
  include Virtus.model
5
5
 
6
- attribute(:TRANSFER_SERVER, String, {
7
- lazy: true, default: :default_transfer_server
8
- })
9
-
10
- def default_transfer_server
11
- return "" unless StellarBase.included_module?(:withdraw)
12
- StellarBase::Engine.routes.url_helpers.withdraw_url
13
- end
6
+ attribute :TRANSFER_SERVER, String, default: ""
14
7
 
15
8
  end
16
9
  end
data/lib/stellar_base.rb CHANGED
@@ -9,6 +9,7 @@ require "multi_json"
9
9
  require "reform"
10
10
  require "reform/form/coercion"
11
11
  require "representable"
12
+ require "toml-rb"
12
13
 
13
14
  require "stellar_base/engine"
14
15
 
@@ -29,7 +30,7 @@ module StellarBase
29
30
  has :withdrawable_assets, classes: [NilClass, Array, String, Pathname]
30
31
  has :on_withdraw
31
32
 
32
- has :stellar_toml, classes: Hash
33
+ has :stellar_toml, classes: Hash, default: {}
33
34
  end
34
35
 
35
36
  after_configuration_change do
@@ -1,3 +1,3 @@
1
1
  module StellarBase
2
- VERSION = "0.5.2".freeze
2
+ VERSION = "0.5.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellar_base-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Subido
@@ -11,7 +11,21 @@ cert_chain: []
11
11
  date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: virtus
14
+ name: disposable
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dry-types
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - ">="
@@ -38,6 +52,20 @@ dependencies:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: httparty
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: light-service
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +80,20 @@ dependencies:
52
80
  - - ">="
53
81
  - !ruby/object:Gem::Version
54
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: multi_json
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
55
97
  - !ruby/object:Gem::Dependency
56
98
  name: rails
57
99
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +109,7 @@ dependencies:
67
109
  - !ruby/object:Gem::Version
68
110
  version: '5.1'
69
111
  - !ruby/object:Gem::Dependency
70
- name: dry-types
112
+ name: representable
71
113
  requirement: !ruby/object:Gem::Requirement
72
114
  requirements:
73
115
  - - ">="
@@ -95,7 +137,7 @@ dependencies:
95
137
  - !ruby/object:Gem::Version
96
138
  version: 0.14.0
97
139
  - !ruby/object:Gem::Dependency
98
- name: tomlrb
140
+ name: toml-rb
99
141
  requirement: !ruby/object:Gem::Requirement
100
142
  requirements:
101
143
  - - "~>"
@@ -137,21 +179,7 @@ dependencies:
137
179
  - !ruby/object:Gem::Version
138
180
  version: '0'
139
181
  - !ruby/object:Gem::Dependency
140
- name: httparty
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: disposable
182
+ name: virtus
155
183
  requirement: !ruby/object:Gem::Requirement
156
184
  requirements:
157
185
  - - ">="
@@ -165,13 +193,13 @@ dependencies:
165
193
  - !ruby/object:Gem::Version
166
194
  version: '0'
167
195
  - !ruby/object:Gem::Dependency
168
- name: representable
196
+ name: rspec-rails
169
197
  requirement: !ruby/object:Gem::Requirement
170
198
  requirements:
171
199
  - - ">="
172
200
  - !ruby/object:Gem::Version
173
201
  version: '0'
174
- type: :runtime
202
+ type: :development
175
203
  prerelease: false
176
204
  version_requirements: !ruby/object:Gem::Requirement
177
205
  requirements:
@@ -179,13 +207,13 @@ dependencies:
179
207
  - !ruby/object:Gem::Version
180
208
  version: '0'
181
209
  - !ruby/object:Gem::Dependency
182
- name: multi_json
210
+ name: sqlite3
183
211
  requirement: !ruby/object:Gem::Requirement
184
212
  requirements:
185
213
  - - ">="
186
214
  - !ruby/object:Gem::Version
187
215
  version: '0'
188
- type: :runtime
216
+ type: :development
189
217
  prerelease: false
190
218
  version_requirements: !ruby/object:Gem::Requirement
191
219
  requirements:
@@ -193,7 +221,7 @@ dependencies:
193
221
  - !ruby/object:Gem::Version
194
222
  version: '0'
195
223
  - !ruby/object:Gem::Dependency
196
- name: sqlite3
224
+ name: stellar-sdk
197
225
  requirement: !ruby/object:Gem::Requirement
198
226
  requirements:
199
227
  - - ">="
@@ -207,7 +235,7 @@ dependencies:
207
235
  - !ruby/object:Gem::Version
208
236
  version: '0'
209
237
  - !ruby/object:Gem::Dependency
210
- name: rspec-rails
238
+ name: factory_bot_rails
211
239
  requirement: !ruby/object:Gem::Requirement
212
240
  requirements:
213
241
  - - ">="
@@ -248,34 +276,6 @@ dependencies:
248
276
  - - ">="
249
277
  - !ruby/object:Gem::Version
250
278
  version: '0'
251
- - !ruby/object:Gem::Dependency
252
- name: factory_bot_rails
253
- requirement: !ruby/object:Gem::Requirement
254
- requirements:
255
- - - ">="
256
- - !ruby/object:Gem::Version
257
- version: '0'
258
- type: :development
259
- prerelease: false
260
- version_requirements: !ruby/object:Gem::Requirement
261
- requirements:
262
- - - ">="
263
- - !ruby/object:Gem::Version
264
- version: '0'
265
- - !ruby/object:Gem::Dependency
266
- name: stellar-sdk
267
- requirement: !ruby/object:Gem::Requirement
268
- requirements:
269
- - - ">="
270
- - !ruby/object:Gem::Version
271
- version: '0'
272
- type: :development
273
- prerelease: false
274
- version_requirements: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - ">="
277
- - !ruby/object:Gem::Version
278
- version: '0'
279
279
  description: API Endpoints for the Stellar Protocol
280
280
  email:
281
281
  - ace.subido@gmail.com