attributes_for 0.7.0 → 0.7.1

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: 3341f8ea5c6de31880faa96f8566ae49c79b770d
4
- data.tar.gz: 9e0d2c45a2be18135fcd985cae66f50cc4e7827f
3
+ metadata.gz: 8de962bff191662ff09602277dce37fc68ecfaa9
4
+ data.tar.gz: 708150babbd7d135f1f577b05668b11adcc318ca
5
5
  SHA512:
6
- metadata.gz: d84163fccde09263dad397d39c36eb7d4d9c3fb3ec2dce7771af6f8c54a81f8968cf952af767149cf2070ff4447f9fbce0924d65f265396c640b8cf719f89b54
7
- data.tar.gz: 09b735c044487a75e06ab3d6b3fde5b3d436cff6672adb7d445de37d7cef7b4413db0a83d2372194d89e6eaa826762790f93042917994e415b31a0ac54dbe771
6
+ metadata.gz: 258e9a8bc20297e713c76ce33a20b4e6fd1231d06c96e7f6127e7eebd7868e812ed8be0ca42cc421a369b79a5823f880431e685ac3cfb18068325c88163610d9
7
+ data.tar.gz: c010404dec6ad5b1e0e0c9b51850e3e6de74a9cb6b9e67a45bdc90f443bbbb90a9071f08d59441fb64bbec527cc905118fce7fa74424b6ec33407647e839663a
data/CHANGELOG.md CHANGED
@@ -1,11 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.1] - 2015-11-12
4
+ ### Fixed
5
+ - Fix regression. Support `:id` option.
6
+
3
7
  ## [0.7.0] - 2015-11-09
4
8
  ### Added
5
9
  - Wrap label and value in tags.
6
10
  - `:defaults` options. Apply same options to all elements.
7
11
  - `:wrapper` options (change default wrappers).
8
12
  - `:label_html` and `:value_html` to set attributes on tags.
13
+
9
14
  ### Changed
10
15
  - Improved implementation slightly.
11
16
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- attributes_for (0.7.0)
4
+ attributes_for (0.7.1)
5
5
  chronic_duration (~> 0.10)
6
6
  font-awesome-rails (~> 4.0)
7
7
  phony (~> 2.0)
data/README.md CHANGED
@@ -131,7 +131,12 @@ Passing `:empty` to `attributes_for` overrides the default empty value.
131
131
 
132
132
  ## Options
133
133
 
134
- Available options:
134
+ `#attributes_for` options:
135
+
136
+ * __:defaults__ - Use these options on all `#attribute` calls.
137
+ * __:wrappers__ - Change default wrapper tags.
138
+
139
+ `#attribute` options:
135
140
 
136
141
  * __:label__ - Disables label if set to false
137
142
  * __:css__ - Override element's CSS
@@ -89,6 +89,7 @@ module AttributesFor
89
89
  def wrap_content(label, value, options)
90
90
  label_html_options = {}
91
91
  label_html_options = options.delete(:label_html) if options.key?(:label_html)
92
+ label_html_options[:id] = options.delete(:id) if options.key?(:id)
92
93
 
93
94
  value_html_options = {}
94
95
  value_html_options = options.delete(:value_html) if options.key?(:value_html)
@@ -1,3 +1,3 @@
1
1
  module AttributesFor
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attributes_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ole J. Rosendahl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails