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.
@@ -20,3 +20,7 @@
20
20
 
21
21
  require 'trenni/builder'
22
22
  require 'trenni/template'
23
+
24
+ if RUBY_VERSION < "1.9.0"
25
+ require 'trenni/extensions/symbol-1.8.7'
26
+ end
@@ -0,0 +1,8 @@
1
+
2
+ class Symbol
3
+ def <=>(with)
4
+ if with.is_a? Symbol
5
+ to_s <=> with.to_s
6
+ end
7
+ end
8
+ end
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Trenni
22
- VERSION = "1.0.3"
22
+ VERSION = "1.0.4"
23
23
  end
@@ -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
- version: 1.0.3
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
- date: 2012-10-25 00:00:00.000000000 Z
17
+
18
+ date: 2012-10-25 00:00:00 Z
13
19
  dependencies: []
14
- description: ! "\tTrenni is a templating system that evaluates textual strings containing
15
- Ruby\n\tcode. It compiles templates directly into native code which means that you\n\tgenerally
16
- get the best possible performance.\n\n\tIn addition, Trenni includes an SGML/XML
17
- builder to assist with the generation\n\tof pleasantly formatted markup.\n"
18
- email:
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
- files:
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
- require_paths:
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
- version: '0'
50
- segments:
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ hash: 3
64
+ segments:
51
65
  - 0
52
- hash: 1757948733365991998
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
- version: '0'
59
- segments:
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
60
74
  - 0
61
- hash: 1757948733365991998
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