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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d2ec242dcffc29ac886983fba7ab7059465a9c4
4
- data.tar.gz: f6846d3b51cfbd75e255349869aea3f0025b8162
3
+ metadata.gz: ba0724551c4f8d3836b485648d54acec7a3bf905
4
+ data.tar.gz: 82463f8a241aa6d7951361505097e68ac76f61e1
5
5
  SHA512:
6
- metadata.gz: '0832cce4418a861b4953ac158c346608f5d8e72ae5cd89a7a08ae89216321c1f0f2770140e3e561e95277da3c3629606b8d3e12f5569e586711ca802d3933d79'
7
- data.tar.gz: 5a1105b971ec62a6598781eee994e90993cd780fab2cf495dcb05c305dd34766ae9944624390af047fce31340967c1b8d9a29868800ffcbb9795821d67244e1b
6
+ metadata.gz: 9fa929c94695686489893d7eb253e898376edae269b5ce5f7704114601521ea6ede702e6ad0ed917d8642584964a0c1aec82861ffe93b6c51203782e31beec57
7
+ data.tar.gz: b9b83ceff2b9853784a8096e927b05ec03edad363802f483173db2b6926e5fa7ccb7501e646924a0cab41b0a3e60d403618c80dc36c0f245f88381f5a08b0d3c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.80
1
+ 0.1.81
@@ -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 "[#{log_level.to_s.upcase} #{Time.now.to_s}] #{prepare_message(message, timestamp: timestamp)}\n"
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.80 ruby lib
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.80"
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"]
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.80
4
+ version: 0.1.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko