stellar_base-rails 2.0.0.pre.alpha.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/jobs/stellar_base/subscribe_account_job.rb +1 -6
- data/lib/stellar_base.rb +0 -10
- data/lib/stellar_base/version.rb +1 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad5e6deb9ec8fd94347c8e26bfff097df0d952e5b7a141147821df9d67c4585b
|
4
|
+
data.tar.gz: 643f567b8acfef28cf47839bd85720df4e09bff961db4644ac3f68e22a9df4cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 576d430e3a1726827226c9f1c4c8097e74224bbbc0dd9f63a0ed69909276837d66eb13eed6301260f69a74a24db6b82c5e46cf259b225670ec650774e2091136
|
7
|
+
data.tar.gz: d9671a83c5183e938f6538f8e52c3cc1c4f57317b76d96bcf8269a5a0a885214b2568e895d80280d3f850ec3d53b79a7ad40a9daeb6928583ba08245428269ef
|
@@ -1,12 +1,7 @@
|
|
1
1
|
module StellarBase
|
2
2
|
class SubscribeAccountJob < ApplicationJob
|
3
3
|
|
4
|
-
sidekiq_options
|
5
|
-
retry: 0,
|
6
|
-
lock: :until_executed,
|
7
|
-
unique_args: :unique_args,
|
8
|
-
on_conflict: :log,
|
9
|
-
)
|
4
|
+
sidekiq_options retry: 0
|
10
5
|
|
11
6
|
def perform(account_subscription_id)
|
12
7
|
account_subscription = AccountSubscription.find(account_subscription_id)
|
data/lib/stellar_base.rb
CHANGED
@@ -12,7 +12,6 @@ require "reform/form/coercion"
|
|
12
12
|
require "representable"
|
13
13
|
require "toml-rb"
|
14
14
|
require "sidekiq"
|
15
|
-
require "sidekiq-unique-jobs"
|
16
15
|
require "storext"
|
17
16
|
|
18
17
|
require "stellar_base/engine"
|
@@ -42,7 +41,6 @@ module StellarBase
|
|
42
41
|
convert_config_withdraw!
|
43
42
|
convert_config_deposit!
|
44
43
|
set_stellar_network!
|
45
|
-
configure_sidekiq_death_handler!
|
46
44
|
configure_sending_strategy!
|
47
45
|
end
|
48
46
|
|
@@ -112,14 +110,6 @@ module StellarBase
|
|
112
110
|
end
|
113
111
|
private_class_method :try_from_yaml_file_path
|
114
112
|
|
115
|
-
def self.configure_sidekiq_death_handler!
|
116
|
-
Sidekiq.configure_server do |config|
|
117
|
-
config.death_handlers << ->(job, _ex) do
|
118
|
-
return unless job['unique_digest']
|
119
|
-
SidekiqUniqueJobs::Digests.del(digest: job['unique_digest'])
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
123
113
|
end
|
124
114
|
|
125
115
|
require "stellar_base/horizon_client"
|
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: 2.0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ace Subido
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: disposable
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '5.1'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: sidekiq-unique-jobs
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: rails
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -558,9 +544,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
558
544
|
version: '0'
|
559
545
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
560
546
|
requirements:
|
561
|
-
- - "
|
547
|
+
- - ">="
|
562
548
|
- !ruby/object:Gem::Version
|
563
|
-
version:
|
549
|
+
version: '0'
|
564
550
|
requirements: []
|
565
551
|
rubyforge_project:
|
566
552
|
rubygems_version: 2.7.7
|