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 +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