HTML-AutoTag 1.0.6 → 1.0.7

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: 4e62c12acd8d530e8e9d7fb5a8bd3ad917b0b13f
4
- data.tar.gz: 654a095d32d9e1c1c592163cb56c93814bf0d835
3
+ metadata.gz: c23f1810a4965b252d7dde28f612a270e9d2a90f
4
+ data.tar.gz: 924030eee39489ae196fcfa23fde6492d3e11301
5
5
  SHA512:
6
- metadata.gz: 8f4cf5d79e775ea646d56a4fdca1f9be040829033bbe66454ca7a9173ce8ba4d7ea74824f046034dfc4c92777d2b9f9fbd4424a4c97abba5c6daf2384e443b10
7
- data.tar.gz: 393be2a6b9ecd0a34233599312525285fa642d974c013e4f8cbdaf1f8b9d0b30f54c33c374e1b02449229dc00f402fa05fac46fba090fe54491b08b5b755ce12
6
+ metadata.gz: 365ff86f0636c08fcc44f32ad61a2682ba68c61c4dfe8bd0875fd6af69ef7f9deeaaf6e34d75f4803d7b7a1dd03896a6313d5430c3d2aba7dd0e480e269bfc47
7
+ data.tar.gz: 4cafe9122b51ad4041e4b2a9e2789b2d90b96a029665012827a05e9960c413ff5c7e89582caad43434088e8d3a204c8cd2f3fb23c5c7f852380ebcb53b459602
data/Changes CHANGED
@@ -1,5 +1,8 @@
1
1
  Revision history for html-autotag-ruby
2
2
 
3
+ 1.0.7
4
+ - explicit cast of attr values to string
5
+
3
6
  1.0.6
4
7
  - more true implementation of Perl's HTML::Entities
5
8
  - removed dependency from docs
data/lib/HTML/AutoAttr.rb CHANGED
@@ -48,8 +48,8 @@ module HTML
48
48
 
49
49
  # expects one argument: the value to scrub
50
50
  def val( val )
51
- return '' if val.match( /^\s+$/ )
52
- val = val.gsub( /"/, '' )
51
+ return '' if val.to_s.match( /^\s+$/ )
52
+ val = val.to_s.gsub( /"/, '' )
53
53
  return val
54
54
  end
55
55
 
@@ -1,5 +1,5 @@
1
1
  module HTML
2
2
  class AutoTag
3
- VERSION = "1.0.6"
3
+ VERSION = "1.0.7"
4
4
  end
5
5
  end
data/t/04-tag-attrs.rb CHANGED
@@ -18,6 +18,11 @@ class TestTagAttrs < Test::Unit::TestCase
18
18
  'paragraph tag correct'
19
19
  )
20
20
 
21
+ assert_equal(
22
+ '<colgroup span="3">0</colgroup>',
23
+ auto.tag( 'tag' => 'colgroup', 'attr' => { 'span' => 3 }, 'cdata' => 0 ),
24
+ 'paragraph tag correct'
25
+ )
21
26
  end
22
27
 
23
28
  def test_one_nested
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HTML-AutoTag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeffa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-17 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler