trenni 1.0.3 → 1.0.4
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.
- data/lib/trenni.rb +4 -0
- data/lib/trenni/extensions/symbol-1.8.7.rb +8 -0
- data/lib/trenni/version.rb +1 -1
- data/test/test_builder.rb +4 -0
- metadata +42 -27
data/lib/trenni.rb
CHANGED
data/lib/trenni/version.rb
CHANGED
data/test/test_builder.rb
CHANGED
@@ -101,5 +101,9 @@ class TestBuilder < Test::Unit::TestCase
|
|
101
101
|
builder = Trenni::Builder.new(:strict => true)
|
102
102
|
builder.tag :t, [[:a, 10], [:b, 20]]
|
103
103
|
assert_equal %Q{<t a="10" b="20"/>}, builder.output.string
|
104
|
+
|
105
|
+
builder = Trenni::Builder.new(:strict => true)
|
106
|
+
builder.tag :t, :b => 20, :a => 10
|
107
|
+
assert_equal %Q{<t a="10" b="20"/>}, builder.output.string
|
104
108
|
end
|
105
109
|
end
|
metadata
CHANGED
@@ -1,26 +1,37 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: trenni
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Samuel Williams
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2012-10-25 00:00:00 Z
|
13
19
|
dependencies: []
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
20
|
+
|
21
|
+
description: "\tTrenni is a templating system that evaluates textual strings containing Ruby\n\
|
22
|
+
\tcode. It compiles templates directly into native code which means that you\n\
|
23
|
+
\tgenerally get the best possible performance.\n\n\
|
24
|
+
\tIn addition, Trenni includes an SGML/XML builder to assist with the generation\n\
|
25
|
+
\tof pleasantly formatted markup.\n"
|
26
|
+
email:
|
19
27
|
- samuel.williams@oriontransfer.co.nz
|
20
28
|
executables: []
|
29
|
+
|
21
30
|
extensions: []
|
31
|
+
|
22
32
|
extra_rdoc_files: []
|
23
|
-
|
33
|
+
|
34
|
+
files:
|
24
35
|
- .gitignore
|
25
36
|
- .travis.yml
|
26
37
|
- Gemfile
|
@@ -28,6 +39,7 @@ files:
|
|
28
39
|
- Rakefile
|
29
40
|
- lib/trenni.rb
|
30
41
|
- lib/trenni/builder.rb
|
42
|
+
- lib/trenni/extensions/symbol-1.8.7.rb
|
31
43
|
- lib/trenni/strings.rb
|
32
44
|
- lib/trenni/template.rb
|
33
45
|
- lib/trenni/version.rb
|
@@ -37,35 +49,38 @@ files:
|
|
37
49
|
- trenni.gemspec
|
38
50
|
homepage: https://github.com/ioquatix/trenni
|
39
51
|
licenses: []
|
52
|
+
|
40
53
|
post_install_message:
|
41
54
|
rdoc_options: []
|
42
|
-
|
55
|
+
|
56
|
+
require_paths:
|
43
57
|
- lib
|
44
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
59
|
none: false
|
46
|
-
requirements:
|
47
|
-
- -
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
|
50
|
-
segments:
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
hash: 3
|
64
|
+
segments:
|
51
65
|
- 0
|
52
|
-
|
53
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
version: "0"
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
68
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
segments:
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
60
74
|
- 0
|
61
|
-
|
75
|
+
version: "0"
|
62
76
|
requirements: []
|
77
|
+
|
63
78
|
rubyforge_project:
|
64
79
|
rubygems_version: 1.8.24
|
65
80
|
signing_key:
|
66
81
|
specification_version: 3
|
67
82
|
summary: A fast native templating system that compiles directly to Ruby code.
|
68
|
-
test_files:
|
83
|
+
test_files:
|
69
84
|
- test/test_builder.rb
|
70
85
|
- test/test_strings.rb
|
71
86
|
- test/test_template.rb
|