summary_judgement 1.2.0 → 1.2.1
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 +1 -1
- data/lib/summary_judgement/instance_methods.rb +1 -1
- data/lib/summary_judgement/summary.rb +2 -2
- data/summary_judgement.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.1
|
@@ -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
|
data/summary_judgement.gemspec
CHANGED