foundation_form_builder 0.3.1 → 0.3.2

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: 51e1b678cf9389ebdd4be33ea71ddef5a9060b66
4
- data.tar.gz: f6707a233e7a6c7e74f12b0f270e56078c03d5d9
3
+ metadata.gz: bb2a100f1cdfd5ea6fad5b891347f6b4dbf9655f
4
+ data.tar.gz: 9f9a5c480bfd8f255b54f5eb8725bf3702375037
5
5
  SHA512:
6
- metadata.gz: 565073d1aef0d0142078b520b70327cb2dcede9f529f90f1c17c4b3b5abe24592bcc5b33c82fa4443873a1156ec73c48a07fbc0768e02caae2d5abd1431c9485
7
- data.tar.gz: 22bb845a176c546359a60adf955bc46981306263bf5c852fd9d0fae44135414a0710cc5af5624f026682aa2d3d709a13446f353a389beeedb84bd0840ae052b9
6
+ metadata.gz: 2b5bbc2a9f4de1c7ca91b51b5e4e6805d1e0c63d1aa79f91d8e8287f927e35589125962a7050da183c4fff84eb78d37ca9e81bf15503c9a2bbeb5380fc5902c1
7
+ data.tar.gz: 985e7ef17fdbdaab6486487a0dd3ca575a7970504c80d9353eb3c8ecd40d937039ca6d52000ba5df714a4759911591dc3b920c4c7db6d8e9a08f31f5e28edf2d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # FoundationFormBuilder changelog
2
2
 
3
+ # 0.3.2
4
+
5
+ 27 Feb 2015
6
+
7
+ Fix some syntax issues in the docstrings. [#2]
8
+
3
9
  # 0.3.1
4
10
 
5
11
  27 Feb 2015
@@ -8,11 +8,11 @@ module FoundationFormBuilder
8
8
  # Renders a form field with label wrapped in an appropriate +<div>+, with another +<div>+ for errors if necessary.
9
9
  #
10
10
  # @param field_name [String, Symbol] Name of the field to render
11
- # @option options [Hash] :field Options to pass through to the underlying Rails form helper. For +type: :time_zone+, +:priority_zones+ is also understood.
12
- # @option options [String, Symbol] :label (human-readable version of +field_name+) Text for the +<label>+ element
13
- # @option options [Symbol] :type (type inferred by #infer_type) Type of field to render.
11
+ # @param label [String, Symbol] Override text for the +<label>+ element
12
+ # @param type [Symbol] Override type of field to render.
14
13
  # Known values are +:date+, +:email+, +:password+, +:select+, +:textarea+, and +:time_zone+. Anything else is rendered as a text field.
15
- # @option options [Array] :values Name-value pairs for +<option>+ elements. Only meaningful with +type: :select+.
14
+ # @param values [Array] Name-value pairs for +<option>+ elements. Only meaningful with +type:+ +:select+.
15
+ # @param field [Hash] Options to pass through to the underlying Rails form helper. For +type:+ +:time_zone+, +:priority_zones+ is also understood.
16
16
  # @return [SafeBuffer] The rendered HTML
17
17
  def input_div(field_name, label: nil, type: nil, values: nil, field: {})
18
18
  raise ArgumentError, ':values is only meaningful with type: :select' if values && type != :select
@@ -1,3 +1,3 @@
1
1
  module FoundationFormBuilder
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foundation_form_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marnen Laibow-Koser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-02-27 00:00:00.000000000 Z
11
+ date: 2015-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview