bitsy-bitcoin 0.8.2 → 0.8.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
  SHA1:
3
- metadata.gz: 441024d8ae68b5f28787b246bab970420559b808
4
- data.tar.gz: 115651f4f1afb6fe179a6918f5214a81307db083
3
+ metadata.gz: 9be03d0a14fdb953a72f0215e5ee65b8f8d435de
4
+ data.tar.gz: a175c8ec280080ea1e657488859bbbca38a088bd
5
5
  SHA512:
6
- metadata.gz: 8797d20b89c602cc2566807d55d86ef512b4b6a344a469903895e46b613012c8a29a0ede3d68527a20ea97ce95dcca3d6b33379011f1ce5358ac07759806204d
7
- data.tar.gz: ca59670411574d578c6c7815fd9b1b5b071a1d985882e3b0af4a101507ffb0d1bbafe738a3a7d43bda87c3b6dea44d9950213bf305e0dba39f693c39830b38c8
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|
@@ -1,3 +1,3 @@
1
1
  module Bitsy
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
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.2
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-15 00:00:00.000000000 Z
11
+ date: 2014-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails