txcatcher 0.1.78 → 0.1.79
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/txcatcher/cleaner.rb +4 -2
- data/txcatcher.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d59cc16bf5e45f94d7e985ae349c9df72c0a07c3
|
4
|
+
data.tar.gz: 4c38a0be61645875a0103e421d6ca6b5119368c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ace16685e76eca3039acf6b4b91e1f625a431e05a5ea2c07cf5a2dfd11072843a8e027668d2accc25ea776e893d616200003408a5db5552eba49b426368fffea
|
7
|
+
data.tar.gz: 228a20993a98902b88ce773e2efa25d7442214ccc6f9bfb68ac804e9f3732eefd4e4e96b9629ddd4aceeeb3de220617ce681d688f1787e52b7b0aab4cc62a539
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.79
|
data/lib/txcatcher/cleaner.rb
CHANGED
@@ -50,10 +50,12 @@ module TxCatcher
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def clean_transactions(n)
|
53
|
-
transactions = Transaction.order(
|
53
|
+
transactions = Transaction.order(Sequel.asc(:created_at))
|
54
54
|
transactions.where(Sequel.~(protected: true)) if Config.protected_transactions
|
55
55
|
|
56
|
-
|
56
|
+
t = n/100
|
57
|
+
t = 1 if t == 0
|
58
|
+
t.times do
|
57
59
|
limit = n <= 100 ? n : 100
|
58
60
|
transactions.limit(limit).each do |t|
|
59
61
|
$stdout.puts "- Removing tx #{t.txid}"
|
data/txcatcher.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: txcatcher 0.1.
|
5
|
+
# stub: txcatcher 0.1.79 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "txcatcher"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.79"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|