volt-fields 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3000ef89135d19d93015f9676b2258d30366b99b
4
- data.tar.gz: ef005d240671aaa5bcff49626c372442f68c1492
3
+ metadata.gz: 1bf47f9b03f71b26914cb065f61eaef1cabe0447
4
+ data.tar.gz: 0e83d7f39236eb816e75c291cf38661bf4876844
5
5
  SHA512:
6
- metadata.gz: fca8794895003c6e88f9eb1b0d16459e7bbb78365709544a75f8a029d12d7bd4df6b1e3ede8e7ea166bcc4ab5bc9ba15bdff7633d87420181786f185e1dd1f20
7
- data.tar.gz: e8fb9b8e169dff61c0ccb063854baf68fab4c89ad27672c6b547794db13ded147d652d514d8ac4a327ee975b0896f40b56706154e4ca5f83d0eb66d1da3f5d77
6
+ metadata.gz: 87535199646ff853aae5f1f0eceacb93e614ae13fd1f1fb333cbe2ba95e865d28136e8f08dd784f0ac4df4a8e63510833b1209ec5f77ace9c02fcd2a0081345a
7
+ data.tar.gz: fbedcb315db432ff8bf717c56e3d53324118af87be3f93372798863d6f54277dd732d821f487b693427afdc807a6aa8a0ab9fe99e18755ddb1e178268bb41c24
data/README.md CHANGED
@@ -5,3 +5,5 @@ Provides controls for text and textarea fields (at the moment) with the followin
5
5
  1. the necessary html for bootstrap
6
6
  2. mark the fields when the blur event happens
7
7
  3. display any marked errors below the field
8
+
9
+ ### Note: there's some duplication in here that needs to be removed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
@@ -18,13 +18,7 @@ module Fields
18
18
  end
19
19
 
20
20
  def label
21
- label = (attrs.respond_to?(:label) && attrs.label)
22
-
23
- unless @label
24
- label = @field_name.titleize
25
- end
26
-
27
- return label
21
+ return attrs.label || @field_name.titleize
28
22
  end
29
23
 
30
24
  # Find the errors for this field
@@ -1,5 +1,5 @@
1
1
  <:Body>
2
- <p class="form-group {{ if errors }}has-error{{ elsif marked }}has-success{{ end }} has-feedback">
2
+ <div class="form-group {{ if errors }}has-error{{ elsif marked }}has-success{{ end }} has-feedback">
3
3
  {{ if label }}
4
4
  <label class="control-label">{{ label }}</label>
5
5
  {{ end }}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-07 00:00:00.000000000 Z
11
+ date: 2014-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: volt