rgot 0.1.2 → 0.1.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: 70e991aebeaf9349cfa0d6d8f052b30ece8b17cf
4
- data.tar.gz: f23eb531910aa92e204cc0e2b4df6ddc9c1bdb8f
3
+ metadata.gz: 9bce3ec1270ed39b7672e08e67e8e57ba2773f06
4
+ data.tar.gz: bb07a870578429545d7a6dcd8044324779ab7be7
5
5
  SHA512:
6
- metadata.gz: d6760bdc5eb435f824716b81e5620452541acd0e10ed68f4aea89c1d5585e8611f87d3b9bf32d1c16c1ab9125ec63bd61c28271d81415b8074405a1bf98ba6d3
7
- data.tar.gz: 7f8c01641b88d1e040eb9e0671ca92b883cc836b0e404b1df5e4c1ad18c1cd968f52086685d160fb27d3d4788707324eb3f5cd7d21e12d4ce88f087180527ff9
6
+ metadata.gz: 5ca9981af23300f52001ff466fe94ce7300f9ee354f2be96a65d4adaabdf67281140106e8af62ffb7786263be602e2988bd5fe59f22e768f3e758df5534706f2
7
+ data.tar.gz: 5779b758221bf40f3f4788f5bd25ec0da11633405b1e08e3c878ce7c7163205ec04842a64aa629934c0267afc41841d5d589a4e1784a542cf74033fc4a9cb5b3
@@ -39,20 +39,24 @@ module Rgot
39
39
 
40
40
  def log(*args)
41
41
  internal_log(args.map(&:to_s).join(' '))
42
+ nil
42
43
  end
43
44
 
44
45
  def logf(*args)
45
46
  internal_log(sprintf(*args))
47
+ nil
46
48
  end
47
49
 
48
50
  def error(*args)
49
51
  internal_log(args.map(&:to_s).join(' '))
50
52
  fail!
53
+ nil
51
54
  end
52
55
 
53
56
  def errorf(*args)
54
57
  internal_log(sprintf(*args))
55
58
  fail!
59
+ nil
56
60
  end
57
61
 
58
62
  def fatal(*args)
@@ -90,7 +94,8 @@ module Rgot
90
94
  private
91
95
 
92
96
  def decorate(str)
93
- c = caller[2] # internal_log -> other log -> running method
97
+ # internal_log -> synchronize -> internal_log -> other log -> running method
98
+ c = caller[4]
94
99
  path = c.sub(/:.*/, '')
95
100
  line = c.match(/:(\d+?):/)[1]
96
101
  relative_path = Pathname.new(path).relative_path_from(Pathname.new(Dir.pwd)).to_s
@@ -1,3 +1,3 @@
1
1
  module Rgot
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ksss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-03 00:00:00.000000000 Z
11
+ date: 2015-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler