rmtools 1.2.2c → 1.2.2d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/rmtools/dev/logging.rb +4 -4
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rake'
2
2
  require 'lib/rmtools/install'
3
3
  compile_manifest
4
4
 
5
- RMTOOLS_VERSION = '1.2.2c'
5
+ RMTOOLS_VERSION = '1.2.2d'
6
6
  begin
7
7
  require 'hoe'
8
8
  config = Hoe.spec 'rmtools' do
@@ -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].is(Hash) ? args[0] : "\b\b ", nil], :mute => 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].is(Hash) ? args[0] : "\b\b ", nil], :mute => 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].is(Hash) ? args[0] : "\b\b ", nil], :mute => 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].is(Hash) ? args[0] : "\b\b ", nil], :mute => 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: 32
4
+ hash: 33
5
5
  prerelease: 5
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
9
  - 2
10
- - c
11
- version: 1.2.2c
10
+ - d
11
+ version: 1.2.2d
12
12
  platform: ruby
13
13
  authors:
14
14
  - Shinku