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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjhkNDNjMTczZjU0ZWU5YmE0Y2FkNTU5YWU0MTI5MWYyNTI5OTdiNA==
4
+ NTRiOGVmNGI2ZGQwZDdkMDRiNjFmMzlkZWVhZTMyZDFlNzFmMDE2Ng==
5
5
  data.tar.gz: !binary |-
6
- MzNkM2NhNjdkMTZhZmRiMWNkNDNlNTRhN2Y3NDM1ZDVkZDA2M2VjYQ==
6
+ OWQxMzU5YWZhNDgwOTlmNWI0MjExZWM0MjAxZjBkODA1MzBkMTkyMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjMzMDVlZGIyYWZmMTZhMmEwNjgzYjZkODc5MzI1ODM5ZWNkNDdkMTM5M2Vh
10
- NTI0NjAwNDI4ZDVkMjcwZTA4ZGY4Y2RlN2JkMTRiYTE0YjA3Njk4NjlkYWM5
11
- MjdjOTUxZGU4YzM0MmVmMDA2YmE5Y2YyMjg4MDE1YTIwMmE5Yjg=
9
+ YzhhM2U2OWU2MzE4ZTNiODQ4YWU3NjJlYTMxNjhhN2Y5NzNkNjVkODZmODNl
10
+ OWQ2YTJhNmZlMzQyMjc1MDBhOWFmY2JmYTM0NzYxNDhmMGJhYjQzYTRjOGY3
11
+ MTdhY2VmNjFmYzNkZWViMTU1YTNkYmI1MGYzMTBlNTgxMzNiMGQ=
12
12
  data.tar.gz: !binary |-
13
- NzQwMzY0M2I3Njc4Yjc4MGY5MWMxZGVmN2ExMjVjZDlkODg4ZmYyZGVjZmY1
14
- YmFhOWMzMTQ5ZWY4ZDQ4YTdiZDYxZTg3Y2Y1ZmRlYzU2ZGVhMjIyMjRjNDYw
15
- MGI4Y2ZkMmI2MzIxYjdmMjhjMDU2MWY3MmQzY2Q0YzdhZjgyNjA=
13
+ ZDhhNjM5YmNmOTFkYTEyODhhMzM2Nzc3MDYxZTRiYzk5MDUzMjEzYzhiOTdl
14
+ NTQzMThiMjVkOWMzMmVjOGQ1NjJiMzUwY2MxZWU3ZGYzNzA0NWU1MWFiNDY3
15
+ NTE2NTM3ODVkNTkyZmUwMGM0NTY1MDZmMzY2MDdjNWViZTllYTA=
@@ -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>"
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module TagHelpers
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
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.3
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-07-01 00:00:00.000000000 Z
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.3
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