stellar_base-rails 3.0.0 → 3.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd04e0a80166c2240b0758ebaa6eae6cefab1304a57062ea349613e0698339f4
|
4
|
+
data.tar.gz: 45b0f0c8323a6229b421b5baba5fab3d44cbf034396263f4ef56458ff7f9db6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29006920d37951497ce155702bef8c6f0537a69ccf105a7a0ada4beafcc585fb090d06b5dbfbafd012c56e7c9ff32a350bf8667b9015b6fe94800ab882d457f1
|
7
|
+
data.tar.gz: ddb54313dad9a7fa4299f4a062edd5042f234e9673d51872f7b7bad64dc494b86294918ab03b636df0ace59884400dcc3974ca02696d5cd98cd45e2f2f6a85d0
|
@@ -13,9 +13,15 @@ module StellarBase
|
|
13
13
|
|
14
14
|
address = c.account_subscription.address
|
15
15
|
|
16
|
-
|
16
|
+
operation_records = c.stellar_sdk_client.horizon.
|
17
17
|
account(account_id: address).
|
18
|
-
operations(order: "desc", limit: 1).records
|
18
|
+
operations(order: "desc", limit: 1).records
|
19
|
+
|
20
|
+
if operation_records.empty?
|
21
|
+
c.fail_and_return!("No operations available")
|
22
|
+
end
|
23
|
+
|
24
|
+
c.cursor = operation_records.first.id
|
19
25
|
|
20
26
|
c.account_subscription.update_attributes!(cursor: c.cursor)
|
21
27
|
rescue Faraday::ClientError => e
|
data/lib/stellar_base/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stellar_base-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ace Subido
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: disposable
|