tagz 9.4.0 → 9.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/tagz.rb +5 -3
  2. data/tagz.gemspec +1 -1
  3. data/test/tagz_test.rb +3 -3
  4. metadata +1 -1
data/lib/tagz.rb CHANGED
@@ -5,7 +5,7 @@ unless defined? Tagz
5
5
  #
6
6
  module Tagz
7
7
  def Tagz.version()
8
- '9.4.0'
8
+ '9.5.0'
9
9
  end
10
10
 
11
11
  def Tagz.description
@@ -421,12 +421,14 @@ unless defined? Tagz
421
421
 
422
422
  NoEscapeKeyProc = lambda{|*values| values.join}
423
423
  Tagz.singleton_class{ define_method(:no_escape_key_proc){ Tagz.namespace(:NoEscapeKeyProc) } }
424
- EscapeKeyProc = lambda{|*values| Tagz.xchar.escape(values.join).sub(/\Adata_/imox, 'data-') }
424
+ #EscapeKeyProc = lambda{|*values| Tagz.xchar.escape(values.join).sub(/\Adata_/imox, 'data-') }
425
+ EscapeKeyProc = lambda{|*values| values.join.sub(/\Adata_/imox, 'data-') }
425
426
  Tagz.singleton_class{ define_method(:escape_key_proc){ Tagz.namespace(:EscapeKeyProc) } }
426
427
 
427
428
  NoEscapeValueProc = lambda{|*values| values.join}
428
429
  Tagz.singleton_class{ define_method(:no_escape_value_proc){ Tagz.namespace(:NoEscapeValueProc) } }
429
- EscapeValueProc = lambda{|*values| Tagz.xchar.escape(values.join)}
430
+ #EscapeValueProc = lambda{|*values| Tagz.xchar.escape(values.join)}
431
+ EscapeValueProc = lambda{|*values| values.join}
430
432
  Tagz.singleton_class{ define_method(:escape_value_proc){ Tagz.namespace(:EscapeValueProc) } }
431
433
 
432
434
  module Globally; include Tagz; end
data/tagz.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "tagz"
6
- spec.version = "9.4.0"
6
+ spec.version = "9.5.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "tagz"
9
9
  spec.description = "\n tagz.rb is generates html, xml, or any sgml variant like a small ninja\n running across the backs of a herd of giraffes swatting of heads like\n a mark-up weedwacker. weighing in at less than 300 lines of code\n tagz.rb adds an html/xml/sgml syntax to ruby that is both unobtrusive,\n safe, and available globally to objects without the need for any\n builder or superfluous objects. tagz.rb is designed for applications\n that generate html to be able to do so easily in any context without\n heavyweight syntax or scoping issues, like a ninja sword through\n butter.\n\n"
data/test/tagz_test.rb CHANGED
@@ -475,11 +475,11 @@ class TagzTest < Test::Unit::TestCase
475
475
  end
476
476
 
477
477
  def test_390
478
- expected = '<div class="bar&amp;foo&gt;">foo&amp;bar&gt;</div>'
478
+ expected = '<div class="bar&foo>">foo&amp;bar&gt;</div>'
479
479
  actual = tagz{ div_(:class => 'bar&foo>'){ 'foo&bar>' } }
480
480
  assert_equal expected, actual
481
481
 
482
- expected = %|<div class="bar&amp;foo&gt;">#{ expected }</div>|
482
+ expected = %|<div class="bar&foo>">#{ expected }</div>|
483
483
  actual = tagz{ div_(:class => 'bar&foo>'){ actual } }
484
484
  assert_equal expected, actual
485
485
  end
@@ -561,7 +561,7 @@ class TagzTest < Test::Unit::TestCase
561
561
 
562
562
  actual = nil
563
563
  assert_nothing_raised{ actual=c.a}
564
- expected = %(<div a&gt;b="a&gt;b">content</div>)
564
+ expected = %(<div a>b="a>b">content</div>)
565
565
  assert_equal expected, actual
566
566
 
567
567
  Tagz.escape_keys!(false) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tagz
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.4.0
4
+ version: 9.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: