sinatra-formhelpers-ng 1.8.0 → 1.9.0

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.8.0
1
+ 1.9.0
@@ -101,7 +101,7 @@ module Sinatra
101
101
  id, text = id_and_text_from_value(val)
102
102
  single_tag(:input, options.merge(:type => "checkbox", :id => css_id(obj, field, id),
103
103
  :name => "#{obj}[#{field}]#{ary}", :value => id,
104
- :checked => vals.include?(val) ? 'checked' : nil)) +
104
+ :checked => vals.include?(id) ? 'checked' : nil)) +
105
105
  (labs.nil? || labs == true ? label(obj, "#{field}_#{id.to_s.downcase}", text) : '')
106
106
  end.join(join)
107
107
  end
@@ -117,7 +117,7 @@ module Sinatra
117
117
  id, text = id_and_text_from_value(val)
118
118
  single_tag(:input, options.merge(:type => "radio", :id => css_id(obj, field, id),
119
119
  :name => "#{obj}[#{field}]", :value => id,
120
- :checked => vals.include?(val) ? 'checked' : nil)) +
120
+ :checked => vals.include?(id) ? 'checked' : nil)) +
121
121
  (labs.nil? || labs == true ? label(obj, "#{field}_#{id.to_s.downcase}", text) : '')
122
122
  end.join(join)
123
123
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sinatra-formhelpers-ng"
8
- s.version = "1.8.0"
8
+ s.version = "1.9.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["twilson63", "Nate Wiger", "Cymen Vig"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-formhelpers-ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: