attributes_for 0.1.0 → 0.1.1

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: ba21a3d6f9fdfae33f7285348ec6fe789b47adb8
4
- data.tar.gz: 58feec59cf6705591a301f545915f4c18320035b
3
+ metadata.gz: 633bf6456c48d8b75050959f4f0786b85ac02bd9
4
+ data.tar.gz: 76ff6f4065a1b89f808d4e2addd44ae100c3b9ee
5
5
  SHA512:
6
- metadata.gz: a38805d55b0e4abd35a9c132775a4d8c5369100305d139fdc58cebdcfe9a658137521bfaca3c760f20e85d6f70a6b1860f4e763d18dc8851f65673de1c836b73
7
- data.tar.gz: bb419edd3fcd61faa7818dbdd0cf3e8d689ae902240f1169030a46641fb3b38fb74625c7d07b3ebdd9c184868e519b2f4f93f91ef1b5c171d838598b6e50d67e
6
+ metadata.gz: 713784bbaecc27c3e47ce57d5cbf5572e87e26b595ff1c6f64a9255000349ca98cb2bc7e83240bcf1c93de30b8f8ec4dbaec7e6dee2ef8013d9513ce20c0f1d4
7
+ data.tar.gz: bf7757d513774c5ba0d826f59d71ab96ebd1a36af84bb9676c7c12ca80bfc5f2453912e7ccb71580fec43752d56e9aa0f064d573d65769cc7ecacb615be23db7
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## [0.1.1] - 2015-08-04
4
+ ### Fixed
5
+ - Disabeling label with format helpers shows unescaped HTML.
data/README.md CHANGED
@@ -42,6 +42,14 @@ strings can also be presented using the `string` method.
42
42
  </ul>
43
43
  ```
44
44
 
45
+ ## Options
46
+
47
+ Available options:
48
+
49
+ * __:label__ - Disables label if set to false
50
+ * __:css__ - Override element's CSS
51
+ * __:id__ - Set element's ID
52
+
45
53
  ## Development
46
54
 
47
55
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -89,7 +89,7 @@ module AttributesFor
89
89
  end
90
90
 
91
91
  def label(attribute, options)
92
- return " " if options[:label] === false
92
+ return " ".html_safe if options[:label] === false
93
93
  " #{human_name(attribute)}: ".html_safe
94
94
  end
95
95
 
@@ -1,3 +1,3 @@
1
1
  module AttributesFor
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attributes_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ole J. Rosendahl
@@ -90,6 +90,7 @@ files:
90
90
  - ".gitignore"
91
91
  - ".rspec"
92
92
  - ".travis.yml"
93
+ - CHANGELOG.md
93
94
  - CODE_OF_CONDUCT.md
94
95
  - Gemfile
95
96
  - LICENSE.txt