demeler 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/demeler.rb +1 -1
- data/lib/demeler/version.rb +2 -2
- data/notes +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78ba7b6bfdda638f607939e76629196ca4e65b94
|
4
|
+
data.tar.gz: 085c93b898362e447f095f89eca635e8bbc34424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1c7b23b050b02a7fcea12917e53d13f263e63e6d07f833c2e58c8d402db4b86e94fdfb4f52823f6598c6e0338e1fc4d43b5308f03b5f5b276c837b25499e8a9
|
7
|
+
data.tar.gz: 43950fd11a2c6ec04fd56eda154bd6e4b719ff2c198eda54ab897aebb408d5b968f683fc2f4cae84c7f0728ddc0a3f83835efdb492102ba2bace779f5e5f854a
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# 1.0.9
|
2
|
+
|
3
|
+
* Fixed the `selected` test in the `select` statement generator to convert both parts to string, then compare. As it was, a FixNum in the data obj failed to compare with a string in the options list.
|
4
|
+
|
5
|
+
# 1.0.8
|
6
|
+
|
7
|
+
* Changed the _:default_ added in 1.0.7 so that the _:default_ parameter itself doesn't show up in the output code.
|
8
|
+
|
1
9
|
# 1.0.7
|
2
10
|
|
3
11
|
* Added a _:default_ parameter to the opts in _checkbox_, _radio_, and _select_ controls to allow choosing a default without setting up a _obj_ parameter.
|
data/lib/demeler.rb
CHANGED
@@ -282,7 +282,7 @@ class Demeler
|
|
282
282
|
tag_generator(:select, opts) do
|
283
283
|
values.each do |value,nomenclature|
|
284
284
|
sets = {:value=>value}
|
285
|
-
sets[:selected] = 'true' if data==value.to_s
|
285
|
+
sets[:selected] = 'true' if data.to_s==value.to_s
|
286
286
|
sets[:text] = nomenclature
|
287
287
|
tag_generator(:option, [sets])
|
288
288
|
end
|
data/lib/demeler/version.rb
CHANGED
data/notes
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: demeler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael J. Welch, Ph.D.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This gem takes your ruby input, plus an object such as a Sequel::Model
|
14
14
|
object, and generates HTML code. If the object has values, they're inserted into
|