html-native-rails 0.2.0 → 0.2.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 +4 -4
- data/lib/html-native-rails.rb +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 129d1b1c6c82ed500bd84ca310c31046ad2434eabab3f4f3d8dee97d31070c89
|
4
|
+
data.tar.gz: 1988879fbfe4f9cf5986a102a621f39c30ace438e76ca3e777d0b8fe987a3f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd3041fbe43cdc0b13afb8e408a023106489b0fccf9cce89413865d789e7390c4cdb20e57bf8a0a634a83e755261ccf3f1dda7e2805ae8e3afdc2842f4feafaa
|
7
|
+
data.tar.gz: fd22ccd48d2336aee12309355e5b2c3f6bec13ee41a1f786c1c5328e5cfc732160a11c81ae9eaed85fc99127f5cc027acb881b65e5a93f3898d361758da887e0
|
data/lib/html-native-rails.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
require "html-native"
|
2
2
|
require "rails"
|
3
3
|
|
4
|
-
# There is no need to alias methods into components or handle existing helper
|
5
|
-
# functions as Builders. This is handled by Builder implicitly converting to a string
|
6
|
-
|
7
4
|
class ActiveSupport::SafeBuffer
|
8
5
|
alias_method :html_component_old_plus, :+
|
9
6
|
alias_method :html_component_old_insert, :<<
|
@@ -56,6 +53,7 @@ class HTMLComponent::Builder
|
|
56
53
|
@cache.html_safe
|
57
54
|
end
|
58
55
|
|
56
|
+
# Allows for implicit conversion to html_safe strings
|
59
57
|
alias_method :to_str, :to_s
|
60
58
|
end
|
61
59
|
|