rmtools 1.2.2c → 1.2.2d
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/rmtools/dev/logging.rb +4 -4
- metadata +3 -3
data/Rakefile
CHANGED
data/lib/rmtools/dev/logging.rb
CHANGED
@@ -117,7 +117,7 @@ module RMTools
|
|
117
117
|
def warn *args
|
118
118
|
cfg = get_config!
|
119
119
|
if (cfg.out or cfg.print) && !@mute_warn
|
120
|
-
text, bind, opts = args.get_opts [!block_given? && args[0].
|
120
|
+
text, bind, opts = args.get_opts [!block_given? && args[0].kinda(Hash) ? args[0] : "\b\b ", nil], :mute => 0
|
121
121
|
opts[:mute] |= NOLOG if !cfg.out
|
122
122
|
opts[:mute] |= NOPRINT if !cfg.print
|
123
123
|
return if block_given? && (text = yield).nil?
|
@@ -128,7 +128,7 @@ module RMTools
|
|
128
128
|
def log *args
|
129
129
|
cfg = get_config!
|
130
130
|
if (cfg.out or cfg.print && !$quiet && $verbose) && !@mute_log
|
131
|
-
text, bind, opts = args.get_opts [!block_given? && args[0].
|
131
|
+
text, bind, opts = args.get_opts [!block_given? && args[0].kinda(Hash) ? args[0] : "\b\b ", nil], :mute => 0
|
132
132
|
opts[:mute] |= NOLOG if !cfg.out
|
133
133
|
opts[:mute] |= NOPRINT if !(cfg.print && !$quiet && $verbose)
|
134
134
|
return if block_given? && (text = yield).nil?
|
@@ -139,7 +139,7 @@ module RMTools
|
|
139
139
|
def info *args
|
140
140
|
cfg = get_config!
|
141
141
|
if (cfg.print && !$quiet or cfg.out && cfg.out_all) && !@mute_info
|
142
|
-
text, bind, opts = args.get_opts [!block_given? && args[0].
|
142
|
+
text, bind, opts = args.get_opts [!block_given? && args[0].kinda(Hash) ? args[0] : "\b\b ", nil], :mute => 0
|
143
143
|
opts[:mute] |= NOLOG if !(cfg.out && cfg.out_all)
|
144
144
|
opts[:mute] |= NOPRINT if !(cfg.print && !$quiet)
|
145
145
|
return if block_given? && (text = yield).nil?
|
@@ -150,7 +150,7 @@ module RMTools
|
|
150
150
|
def debug *args
|
151
151
|
cfg = get_config!
|
152
152
|
if (cfg.print && $panic && !$quiet or cfg.out && cfg.out_all) && !@mute_debug
|
153
|
-
text, bind, opts = args.get_opts [!block_given? && args[0].
|
153
|
+
text, bind, opts = args.get_opts [!block_given? && args[0].kinda(Hash) ? args[0] : "\b\b ", nil], :mute => 0
|
154
154
|
opts[:mute] |= NOLOG if !(cfg.out && cfg.out_all)
|
155
155
|
opts[:mute] |= NOPRINT if !(cfg.print && $panic && !$quiet)
|
156
156
|
return if block_given? && (text = yield).nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmtools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 33
|
5
5
|
prerelease: 5
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
9
|
- 2
|
10
|
-
-
|
11
|
-
version: 1.2.
|
10
|
+
- d
|
11
|
+
version: 1.2.2d
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Shinku
|