demeler 1.0.8 → 1.0.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef4357c82b08487951eec0f5c784885eb425e0da
4
- data.tar.gz: 4f51bd65caa234146842676a2ce883266fe96f15
3
+ metadata.gz: 78ba7b6bfdda638f607939e76629196ca4e65b94
4
+ data.tar.gz: 085c93b898362e447f095f89eca635e8bbc34424
5
5
  SHA512:
6
- metadata.gz: 8d4a5df3288b889147fbff90fbe988a5afa0e31f21ea0bac0051f204a6546ce4fe242431751e2058bce2daefa0534f8674551356d6d0cc0c8db7e5f9c3579cc4
7
- data.tar.gz: 6c7d3f2c7e59c96d5f3536d656790414768d41f49516d63958b2c8ab9f72c8006422b51fd94f98ab63c435f193453d889f0927e6deab1ab3cbe0393fe2070296
6
+ metadata.gz: a1c7b23b050b02a7fcea12917e53d13f263e63e6d07f833c2e58c8d402db4b86e94fdfb4f52823f6598c6e0338e1fc4d43b5308f03b5f5b276c837b25499e8a9
7
+ data.tar.gz: 43950fd11a2c6ec04fd56eda154bd6e4b719ff2c198eda54ab897aebb408d5b968f683fc2f4cae84c7f0728ddc0a3f83835efdb492102ba2bace779f5e5f854a
@@ -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.
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Version
2
- VERSION = "1.0.8"
3
- MODIFIED = "2017-08-19"
2
+ VERSION = "1.0.9"
3
+ MODIFIED = "2017-09-11"
4
4
  end
data/notes CHANGED
@@ -37,7 +37,7 @@ git push -u origin master
37
37
  #----------------------------------------
38
38
 
39
39
  # To upload the gem to rubygems.org
40
- gem push demeler-1.0.7.gem
40
+ gem push demeler-1.0.8.gem
41
41
 
42
42
  sudo gem install demeler
43
43
 
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.8
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-08-19 00:00:00.000000000 Z
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