sinatra-tag-helpers 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/sinatra/tag-helpers.rb +1 -1
- data/lib/sinatra/tag-helpers/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTRiOGVmNGI2ZGQwZDdkMDRiNjFmMzlkZWVhZTMyZDFlNzFmMDE2Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWQxMzU5YWZhNDgwOTlmNWI0MjExZWM0MjAxZjBkODA1MzBkMTkyMg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzhhM2U2OWU2MzE4ZTNiODQ4YWU3NjJlYTMxNjhhN2Y5NzNkNjVkODZmODNl
|
10
|
+
OWQ2YTJhNmZlMzQyMjc1MDBhOWFmY2JmYTM0NzYxNDhmMGJhYjQzYTRjOGY3
|
11
|
+
MTdhY2VmNjFmYzNkZWViMTU1YTNkYmI1MGYzMTBlNTgxMzNiMGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDhhNjM5YmNmOTFkYTEyODhhMzM2Nzc3MDYxZTRiYzk5MDUzMjEzYzhiOTdl
|
14
|
+
NTQzMThiMjVkOWMzMmVjOGQ1NjJiMzUwY2MxZWU3ZGYzNzA0NWU1MWFiNDY3
|
15
|
+
NTE2NTM3ODVkNTkyZmUwMGM0NTY1MDZmMzY2MDdjNWViZTllYTA=
|
data/lib/sinatra/tag-helpers.rb
CHANGED
@@ -168,7 +168,7 @@ module Sinatra
|
|
168
168
|
select.push "<optgroup label='#{ key }'>"
|
169
169
|
|
170
170
|
val.each do |group_key, group_val|
|
171
|
-
select.push option_for(param, :key => group_key, :value => group_val, :default => attributes[:default])
|
171
|
+
select.push option_for(param, :key => group_key, :value => group_val, :default => attributes[:default] || param_value(param))
|
172
172
|
end
|
173
173
|
|
174
174
|
select.push "</optgroup>"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-tag-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Lecklider
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.0.
|
104
|
+
rubygems_version: 2.0.6
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Tag helpers (links and input tags) for Sinatra
|