weaver 0.3.5 → 0.3.6

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: 0bbee7c107a2c4938c07cfcf0e0f8a7357589667
4
- data.tar.gz: e574b0658c639c772fb42a3c48a16d8f85c46e53
3
+ metadata.gz: 43bba74e32188757bb01c7b24490e86ae202b3dc
4
+ data.tar.gz: 29dbd16d9a58d5180776862817d17f4f303de689
5
5
  SHA512:
6
- metadata.gz: 3d941ce753c4d92d3ebda8a3536f56b83e238fb55e64a810ad1f998d80e823de0c6b35cb5806ac56ec2ecec8dffdcc9df97a5147b7e2effcbe8cb9611c1ed480
7
- data.tar.gz: eeb5d8d0182dffadd3eac2ba86951c439a753e0563a94337874f025a459d303bdee243698e87157eebefb706d28ad873d6fb14c196a144ebd3caf902be3ef270
6
+ metadata.gz: 645ac320a9d20f7fbc2ab7dbcb44f7c7a8029a4e17dbf43402244af8525acbe643b08119d9ab8d5fcb1ef2b92f0443a0808d237b866466069b67d52abc00c01b
7
+ data.tar.gz: 363425e3d67ca51740d895d3026a18e8f35c70939a06171bde8d46d61158da74e3bc469e4f154d4a806080d633334a1ad7e8a5bd5ec7b65e0c5ed1093e4fda68
@@ -1,3 +1,3 @@
1
1
  module Weaver
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
data/lib/weaver.rb CHANGED
@@ -1080,6 +1080,7 @@ $("##{@id}").keyup(function()
1080
1080
  input_options[:rows] = options[:rows]
1081
1081
  input_options[:class] = "form-control"
1082
1082
  input_options[:value] = options[:value]
1083
+ input_options[:style] = options[:style]
1083
1084
 
1084
1085
  input_options[:autocomplete] = options[:autocomplete] || "on"
1085
1086
  input_options[:autocorrect] = options[:autocorrect] || "on"
@@ -1183,8 +1184,13 @@ $("##{@id}").keyup(function()
1183
1184
  div :class => "input-group", style: "width: 100%" do
1184
1185
 
1185
1186
  method_missing :select, form_options do
1187
+
1186
1188
  choice_array.each do |choice|
1187
- option choice
1189
+ if options[:value] == choice
1190
+ option choice, selected: selected
1191
+ else
1192
+ option choice
1193
+ end
1188
1194
  end
1189
1195
  end
1190
1196
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weaver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Siaw