summary_judgement 1.2.1 → 1.2.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
@@ -57,6 +57,7 @@ module SummaryJudgement
57
57
 
58
58
  verbosity = options.delete(:verbose)
59
59
  verbosity = self.class.summary.class.render verbosity, self
60
+ verbosity = canopy.length <= verbosity if verbosity.is_a? Fixnum
60
61
 
61
62
  if verbosity
62
63
  leaves = canopy
@@ -65,7 +65,7 @@ module SummaryJudgement
65
65
  class << self
66
66
  def render(obj, context)
67
67
  case obj
68
- when TrueClass, FalseClass, NilClass, String
68
+ when TrueClass, FalseClass, NilClass, String, Fixnum
69
69
  obj
70
70
  when Array
71
71
  if obj.empty?
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{summary_judgement}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andy Rossmeissl"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: summary_judgement
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Rossmeissl