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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99e4aaec6941f2f625f57a6f416a14caa6ebadb2
4
- data.tar.gz: 5655af47128349a7db07089e73d17a0a79b748d7
3
+ metadata.gz: d59cc16bf5e45f94d7e985ae349c9df72c0a07c3
4
+ data.tar.gz: 4c38a0be61645875a0103e421d6ca6b5119368c1
5
5
  SHA512:
6
- metadata.gz: 9b908cdb4da6b8ae54d72991d6bf3be00cef5841927fb2baff92be9920f7d416b3dacef8bd34970012d52567175f9d9b9bd5b06f0d559939c91b94c9823a9ba1
7
- data.tar.gz: b23f6c941010887ac1faffc814b23b698357b590838c5c6293d8ee71f791cba8c4459f6b7c1a89db9b3807d6e464a8328e0e50ca56438b7f28404df4b467935c
6
+ metadata.gz: ace16685e76eca3039acf6b4b91e1f625a431e05a5ea2c07cf5a2dfd11072843a8e027668d2accc25ea776e893d616200003408a5db5552eba49b426368fffea
7
+ data.tar.gz: 228a20993a98902b88ce773e2efa25d7442214ccc6f9bfb68ac804e9f3732eefd4e4e96b9629ddd4aceeeb3de220617ce681d688f1787e52b7b0aab4cc62a539
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.78
1
+ 0.1.79
@@ -50,10 +50,12 @@ module TxCatcher
50
50
  end
51
51
 
52
52
  def clean_transactions(n)
53
- transactions = Transaction.order("id ASC")
53
+ transactions = Transaction.order(Sequel.asc(:created_at))
54
54
  transactions.where(Sequel.~(protected: true)) if Config.protected_transactions
55
55
 
56
- (n/100+1).times do
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.78 ruby lib
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.78"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: txcatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.78
4
+ version: 0.1.79
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko