txcatcher 0.1.80 → 0.1.81
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/logger.rb +2 -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: ba0724551c4f8d3836b485648d54acec7a3bf905
|
4
|
+
data.tar.gz: 82463f8a241aa6d7951361505097e68ac76f61e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fa929c94695686489893d7eb253e898376edae269b5ce5f7704114601521ea6ede702e6ad0ed917d8642584964a0c1aec82861ffe93b6c51203782e31beec57
|
7
|
+
data.tar.gz: b9b83ceff2b9853784a8096e927b05ec03edad363802f483173db2b6926e5fa7ccb7501e646924a0cab41b0a3e60d403618c80dc36c0f245f88381f5a08b0d3c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.81
|
data/lib/txcatcher/logger.rb
CHANGED
@@ -28,12 +28,12 @@ module TxCatcher
|
|
28
28
|
$stdout.print("\n\n") if LOG_LEVELS[log_level] >= LOG_LEVELS[:error]
|
29
29
|
end
|
30
30
|
|
31
|
-
def report_to_logfile(message, log_level, data: nil, timestamp: timestamp
|
31
|
+
def report_to_logfile(message, log_level, data: nil, timestamp: true) # always gonna be forcing timestamp to be true here
|
32
32
|
fn = LOG_LEVELS[log_level] >= LOG_LEVELS[:error] ? "error.log" : "txcatcher.log"
|
33
33
|
fn = TxCatcher::Config.config_dir + "/#{fn}"
|
34
34
|
|
35
35
|
File.open(fn, "a") do |f|
|
36
|
-
f.print "
|
36
|
+
f.print "#{prepare_message(message, timestamp: true)}\n"
|
37
37
|
f.print " additional data: #{data.to_s}" if data
|
38
38
|
f.print("\n\n") if LOG_LEVELS[log_level] >= LOG_LEVELS[:error]
|
39
39
|
end
|
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.81 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.81"
|
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"]
|