summary_judgement 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -56,7 +56,7 @@ module SummaryJudgement
56
56
  end
57
57
 
58
58
  verbosity = options.delete(:verbose)
59
- verbosity = send(verbosity) if verbosity.is_a?(Symbol)
59
+ verbosity = self.class.summary.class.render verbosity, self
60
60
 
61
61
  if verbosity
62
62
  leaves = canopy
@@ -65,6 +65,8 @@ module SummaryJudgement
65
65
  class << self
66
66
  def render(obj, context)
67
67
  case obj
68
+ when TrueClass, FalseClass, NilClass, String
69
+ obj
68
70
  when Array
69
71
  if obj.empty?
70
72
  nil
@@ -73,8 +75,6 @@ module SummaryJudgement
73
75
  else
74
76
  obj.empty? ? nil : obj.map {|o| render o, context}
75
77
  end
76
- when String
77
- obj
78
78
  when Symbol
79
79
  context.send obj
80
80
  when Proc
@@ -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.0"
8
+ s.version = "1.2.1"
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.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Rossmeissl