kiss 1.8.4 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.4
1
+ 1.8.5
Binary file
@@ -489,10 +489,14 @@ class Kiss
489
489
  end
490
490
 
491
491
  # Return string result from rendering specified string or template options.
492
- def render_to_string(options)
493
- if options.is_a?(String)
494
- options = {:template => options}
495
- elsif options[:text]
492
+ def render_to_string(*args)
493
+ args = args.clone
494
+ options = args.pop
495
+ if args.first.is_a?(String)
496
+ options = {:template => args.first}.merge(options)
497
+ end
498
+
499
+ if options[:text]
496
500
  return options[:text].to_s
497
501
  end
498
502
 
@@ -156,7 +156,7 @@ class Kiss
156
156
  if @_match
157
157
  match_field = @_form.fields[@_match.to_s]
158
158
  if value != match_field.value
159
- return add_error("#{match_field.label.pluralize} don't match.")
159
+ return add_error("#{match_field.label.downcase.capitalize.pluralize} did not match.")
160
160
  end
161
161
  end
162
162
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 8
8
- - 4
9
- version: 1.8.4
8
+ - 5
9
+ version: 1.8.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Shawn Van Ittersum
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-02-14 00:00:00 -08:00
17
+ date: 2012-03-08 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency