bitsy-bitcoin 0.8.2 → 0.8.3
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 +4 -4
- data/app/models/bitsy/payment_depot.rb +5 -1
- data/config/initializers/bitsy.rb +5 -0
- data/lib/bitsy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9be03d0a14fdb953a72f0215e5ee65b8f8d435de
|
|
4
|
+
data.tar.gz: a175c8ec280080ea1e657488859bbbca38a088bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4e54af5dcf3793cb6f8d0840efccfcad7c9f2358ba51bed227168589236523b95c1fa0bc3bbbf64b04fbd6231e10fc6b801094ef1a002f0848b3916bdd0fb04
|
|
7
|
+
data.tar.gz: a37f8ea8403106a563c2c7d2d721106f9bfc97110f835ab987d57e0961e5c341f32cd083868a8991ca02f01b4356a2db47286f6ff5d9b175c48535910b70643b
|
|
@@ -17,8 +17,12 @@ module Bitsy
|
|
|
17
17
|
total_received_amount_cache = arel_table[:total_received_amount_cache]
|
|
18
18
|
where(min_payment.lteq(total_received_amount_cache))
|
|
19
19
|
end
|
|
20
|
+
scope :within_check_count_threshold, -> do
|
|
21
|
+
where(arel_table[:check_count].lt(Bitsy.config.check_limit))
|
|
22
|
+
end
|
|
20
23
|
scope :for_manual_checking, -> do
|
|
21
|
-
checked_at_is_past_or_nil.received_at_least_minimum
|
|
24
|
+
checked_at_is_past_or_nil.received_at_least_minimum.
|
|
25
|
+
within_check_count_threshold
|
|
22
26
|
end
|
|
23
27
|
validates(
|
|
24
28
|
:initial_tax_rate,
|
|
@@ -21,6 +21,11 @@ Bitsy.configure do |c|
|
|
|
21
21
|
# WHen debug is true, no money will be forwarded. This is for testing
|
|
22
22
|
# purposes.
|
|
23
23
|
c.debug = false
|
|
24
|
+
|
|
25
|
+
# Bitsy will check the transactions of the payment depot manually if it hasn't
|
|
26
|
+
# been paid for yet. It will check 40 times, in approximately check count ** 2
|
|
27
|
+
# power intervals. Ex: check_count = 3, then it will check again in 9 seconds.
|
|
28
|
+
c.check_limit = 40
|
|
24
29
|
end
|
|
25
30
|
|
|
26
31
|
Sidekiq.configure_server do |config|
|
data/lib/bitsy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bitsy-bitcoin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ramon Tayag
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|