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 +4 -4
- data/lib/rgot/common.rb +6 -1
- data/lib/rgot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bce3ec1270ed39b7672e08e67e8e57ba2773f06
|
4
|
+
data.tar.gz: bb07a870578429545d7a6dcd8044324779ab7be7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ca9981af23300f52001ff466fe94ce7300f9ee354f2be96a65d4adaabdf67281140106e8af62ffb7786263be602e2988bd5fe59f22e768f3e758df5534706f2
|
7
|
+
data.tar.gz: 5779b758221bf40f3f4788f5bd25ec0da11633405b1e08e3c878ce7c7163205ec04842a64aa629934c0267afc41841d5d589a4e1784a542cf74033fc4a9cb5b3
|
data/lib/rgot/common.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/rgot/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|