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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/html-native-rails.rb +1 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7980d0dfbc077078e0a3784074f03f22db9662cba13d146bbb7ffe5d8a8c7a8
4
- data.tar.gz: '093c5290bc66f9ab7a5a4e087aecd3ada80c0648f73fdb8d94ee422025f6b2a9'
3
+ metadata.gz: 129d1b1c6c82ed500bd84ca310c31046ad2434eabab3f4f3d8dee97d31070c89
4
+ data.tar.gz: 1988879fbfe4f9cf5986a102a621f39c30ace438e76ca3e777d0b8fe987a3f14
5
5
  SHA512:
6
- metadata.gz: 4bb297a62eb7170fd5a8b34e2152c942dac1b47c5f9369c7f2e6dfb698462fb3be66e6b490b00d8a716b2c04b832ddd337daf82781adfb7589efe224e4906232
7
- data.tar.gz: 92b47ac7e93256a7c302c490ebe21545a3f07d88277d49d6848abd1d0c720c8fd1d9852d606618e33d87beb2bad3f1d6ab8cd6471a5580a01b264e90ac79ab03
6
+ metadata.gz: cd3041fbe43cdc0b13afb8e408a023106489b0fccf9cce89413865d789e7390c4cdb20e57bf8a0a634a83e755261ccf3f1dda7e2805ae8e3afdc2842f4feafaa
7
+ data.tar.gz: fd22ccd48d2336aee12309355e5b2c3f6bec13ee41a1f786c1c5328e5cfc732160a11c81ae9eaed85fc99127f5cc027acb881b65e5a93f3898d361758da887e0
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-native-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kellen Watt