wait 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,9 +24,5 @@ class Wait
24
24
  "#{severity.ljust(5)} #{"[#{caller}]".ljust(9)} #{message}\n"
25
25
  end
26
26
  end
27
-
28
- def indent(lines, spaces = 25)
29
- lines.map { |line| (" " * spaces) + line }.join("\n")
30
- end
31
27
  end # Logger
32
28
  end # Wait
@@ -15,9 +15,14 @@ class Wait
15
15
  # We can omit the message if it's identical to the class name.
16
16
  message = exception.message unless exception.message == klass
17
17
  # Indent the exception so it stands apart from the rest of the messages.
18
- backtrace = @logger.indent(exception.backtrace)
18
+ backtrace = indent(exception.backtrace)
19
19
 
20
20
  @logger.debug("Rescuer") { "rescued: #{klass}#{": #{message}" if message}\n#{backtrace}" }
21
21
  end
22
+
23
+ # Indents text a given number of spaces.
24
+ def indent(lines, spaces = 25)
25
+ lines.map { |line| (" " * spaces) + line }.join("\n")
26
+ end
22
27
  end # BaseRescuer
23
28
  end # Wait
@@ -2,7 +2,7 @@ class Wait
2
2
  class BaseTester
3
3
  attr_accessor :logger
4
4
 
5
- # Returns +true+ if a result if valid.
5
+ # Returns +true+ if a result is valid.
6
6
  def valid?(result)
7
7
  log(result)
8
8
 
@@ -1,3 +1,3 @@
1
1
  class Wait
2
- VERSION = "0.5"
2
+ VERSION = "0.5.1"
3
3
  end # Wait
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wait
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: