trenni-formatters 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trenni/formatters/html/option_select.rb +8 -2
- data/lib/trenni/formatters/version.rb +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: 749d380e0e9875a42caae08bbd4d102445df3e8a
|
4
|
+
data.tar.gz: 08f2f3379333c2a9f20152d130b10db74e69f4bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5551c0559a274573900a68dd2d25f954c2080570ce30bade8c36c52cf23c2d68b5216c260df6497f95fb29e646d71b12637f747d0f0a431aae150598bde477a8
|
7
|
+
data.tar.gz: 87b1fdd2aff66f941d66c0ae4801ab89bd6d48075bea88e618362a33e0cec65a61e4f085218f8e7e02c6b6f4bde94a73d9628a803335d7ea22e61389a8569016
|
@@ -57,6 +57,8 @@ module Trenni
|
|
57
57
|
return {
|
58
58
|
:value => value_for(options),
|
59
59
|
:selected => options.fetch(:selected){ value_for(@options) == value_for(options) },
|
60
|
+
:id => options[:id],
|
61
|
+
:class => options[:class],
|
60
62
|
}
|
61
63
|
end
|
62
64
|
|
@@ -70,7 +72,9 @@ module Trenni
|
|
70
72
|
|
71
73
|
def group_attributes_for(options)
|
72
74
|
return {
|
73
|
-
:label => title_for(options)
|
75
|
+
:label => title_for(options),
|
76
|
+
:id => options[:id],
|
77
|
+
:class => options[:class],
|
74
78
|
}
|
75
79
|
end
|
76
80
|
|
@@ -88,7 +92,9 @@ module Trenni
|
|
88
92
|
|
89
93
|
def select_attributes_for(options)
|
90
94
|
return {
|
91
|
-
:name => name_for(options)
|
95
|
+
:name => name_for(options),
|
96
|
+
:id => options[:id],
|
97
|
+
:class => options[:class],
|
92
98
|
}
|
93
99
|
end
|
94
100
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trenni-formatters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trenni
|