trenni-formatters 0.4.3 → 0.4.4

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: 1d07510393a4aecacebc320982d9382532413cce
4
- data.tar.gz: b6a714803a220c15b55bd7b231fb2b62c60b1b14
3
+ metadata.gz: 749d380e0e9875a42caae08bbd4d102445df3e8a
4
+ data.tar.gz: 08f2f3379333c2a9f20152d130b10db74e69f4bd
5
5
  SHA512:
6
- metadata.gz: 828c3ea8d67b34e7d1f5d3ab04aa5666d6b47028e45f2e63585bbff812a4baeced3ef6b6d7550b5b28b23c6b311c3e0a304ea763ad04ac260cfccc1fafe7ae52
7
- data.tar.gz: 2add9c98f3c1af745192bf3acadc3c6112b3a67406fa0c31df25c85af48072956599ee3dbf486e3c75e0f8056207074ac9621e60789d5993c2f8d298a30dcb05
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
 
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Trenni
22
22
  module Formatters
23
- VERSION = "0.4.3"
23
+ VERSION = "0.4.4"
24
24
  end
25
25
  end
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.3
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-08-14 00:00:00.000000000 Z
11
+ date: 2014-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trenni