stellar_base-rails 1.1.1 → 1.1.2

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: 27818079d5562f323c5c62d8c702d2af4b5703ccfaa453f0a52af5c4f9360685
4
- data.tar.gz: 1d6fe22f727fe4e3aea9322c073d14cd4ffa1744df3a04af98968009bbe63a54
3
+ metadata.gz: 3a319a99fc2f060ee9f0daad71147adee9690ccb924eed9188fbd96dbfecb4fa
4
+ data.tar.gz: a8028f862188d0211e071825534cd7e7ff7d3437dc7bbb011679ea66c4133ca5
5
5
  SHA512:
6
- metadata.gz: 72efd8d9b9a6f79c832f202b87e5fbea59f2c209c1ba229aa08ee7c83d27b2f8334995529db1abd9a58a3f673745f79baa8d13a0d6613fc369bb1b99d7dc9d6a
7
- data.tar.gz: ad78ce108acf09454553c3e04511f14c2a2afbc8278d39836d15b530e51b2ebefdd63787417217b15a46d4f6c3998603777526e5bd6a18045b2a80a2e14c47e2
6
+ metadata.gz: 9458ac072fb4656e2a4f28a761a93a4a4116f89afbed22143803b59c205aec589ac71ccad4869671f17005751c1cb707787fa71cbc67cc12e88ea95514868e06
7
+ data.tar.gz: b9d982cfbbaf1fb061c0d47b4eb48126c397d55e7148776c380161efad8f9004078a1e365c187476577c7eac4c39612c8812370b6564283db33b6fd9431ecc23
@@ -13,10 +13,11 @@ module StellarBase
13
13
 
14
14
  address = c.account_subscription.address
15
15
 
16
- c.cursor = c.stellar_sdk_client.horizon
17
- .account(account_id: address)
18
- .operations(order: "desc", limit: 1).records.first.id
16
+ c.cursor = c.stellar_sdk_client.horizon.
17
+ account(account_id: address).
18
+ operations(order: "desc", limit: 1).records.first.id
19
19
 
20
+ c.account_subscription.update_attributes!(cursor: c.cursor)
20
21
  rescue Faraday::ClientError => e
21
22
  c.fail_and_return! "Skipping fetching cursor of #{address} " \
22
23
  "due to #{e.inspect}"
@@ -9,7 +9,7 @@ module StellarBase
9
9
  executed do |c|
10
10
  hash = c.operation.transaction_hash
11
11
  tx_json = c.stellar_sdk_client.horizon.transaction(hash: hash)
12
- c.tx = StellarTransaction.new(tx_json)
12
+ c.tx = StellarTransaction.new(raw: tx_json)
13
13
  end
14
14
 
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module StellarBase
2
- VERSION = "1.1.1".freeze
2
+ VERSION = "1.1.2".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: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Subido