tagz 9.9.1 → 9.9.2
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 +8 -8
- data/lib/tagz.rb +5 -1
- data/tagz.gemspec +1 -1
- data/test/tagz_test.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjYzNWRiYjRkMjIwNjdkYjkzNDUzZjgxMzVlZWFkZGI4MDc5ZGE3Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZThkMmJlNzY4MmQ5NzdhNGU1OWE2ZjA4NTEzY2UzOGY3NWZmM2Y2ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Yjg4ZDI4NTFiODRhZjMwZTFhMWIyNmZhZDliNjg2MDZmMGNlZGQ4NTY5N2I3
|
10
|
+
NGU1ODA0NDBhODljZWVmMDgxMjdmNThhOTVjYzgyZTFkMzhlYTkwYzc1MzE2
|
11
|
+
NzhiNGI2YmZmMGEwNDRjYjZhYThmZTVkZjNiYTdkZDBjZmJiYTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWRkNGM5Mjc4N2Q4MzhjODcwNzcwMDY2NzYwMjY5NTc1NTQ2OTJiNWU1ODIw
|
14
|
+
ZmQ4YjBmN2QwMmY5YTVjOTI3ZTlmYTE1MDEwMDY4MTRmYTI5NGVjNzMwYjcx
|
15
|
+
YjI1MGE2YTdkMGI2N2I4OTZhMDc0OTgwY2VmZjA1Yjk2ODYyNzY=
|
data/lib/tagz.rb
CHANGED
@@ -7,7 +7,7 @@ unless defined? Tagz
|
|
7
7
|
require 'cgi'
|
8
8
|
|
9
9
|
def Tagz.version()
|
10
|
-
'9.9.
|
10
|
+
'9.9.2'
|
11
11
|
end
|
12
12
|
|
13
13
|
def Tagz.description
|
@@ -236,6 +236,10 @@ unless defined? Tagz
|
|
236
236
|
def html_safe?
|
237
237
|
true
|
238
238
|
end
|
239
|
+
|
240
|
+
def to_s
|
241
|
+
self
|
242
|
+
end
|
239
243
|
end
|
240
244
|
|
241
245
|
class Document < HTMLSafe
|
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.9.
|
6
|
+
spec.version = "9.9.2"
|
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
@@ -746,4 +746,10 @@ class TagzTest < Test::Unit::TestCase
|
|
746
746
|
html_safe = Tagz.html_safe(value)
|
747
747
|
assert_equal value.object_id, html_safe.object_id
|
748
748
|
end
|
749
|
+
|
750
|
+
def test_620
|
751
|
+
expected = '<div>×</div>'
|
752
|
+
actual = Tagz{ div_{ Tagz.html_safe('×') } }
|
753
|
+
assert_equal expected, actual
|
754
|
+
end
|
749
755
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tagz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.9.
|
4
|
+
version: 9.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ara T. Howard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ! "\n tagz.rb is generates html, xml, or any sgml variant like
|
14
14
|
a small ninja\n running across the backs of a herd of giraffes swatting of
|