malt 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. data/.ruby +156 -0
  2. data/Assembly +28 -0
  3. data/COPYING.rdoc +33 -0
  4. data/Gemfile +10 -0
  5. data/HISTORY.rdoc +102 -0
  6. data/README.rdoc +16 -10
  7. data/Reapfile +4 -0
  8. data/lib/malt.rb +36 -8
  9. data/lib/malt.yml +156 -0
  10. data/lib/malt/conversions.rb +42 -0
  11. data/lib/malt/core_ext.rb +81 -3
  12. data/lib/malt/engines/abstract.rb +259 -50
  13. data/lib/malt/engines/bluecloth.rb +19 -9
  14. data/lib/malt/engines/builder.rb +93 -32
  15. data/lib/malt/engines/coffee.rb +46 -0
  16. data/lib/malt/engines/creole.rb +60 -0
  17. data/lib/malt/engines/erb.rb +69 -44
  18. data/lib/malt/engines/erector.rb +61 -30
  19. data/lib/malt/engines/erubis.rb +41 -31
  20. data/lib/malt/engines/haml.rb +13 -37
  21. data/lib/malt/engines/kramdown.rb +40 -15
  22. data/lib/malt/engines/less.rb +15 -14
  23. data/lib/malt/engines/liquid.rb +24 -14
  24. data/lib/malt/engines/markaby.rb +44 -22
  25. data/lib/malt/engines/maruku.rb +89 -0
  26. data/lib/malt/engines/mustache.rb +20 -14
  27. data/lib/malt/engines/nokogiri.rb +89 -0
  28. data/lib/malt/engines/radius.rb +72 -34
  29. data/lib/malt/engines/ragtag.rb +26 -18
  30. data/lib/malt/engines/rdiscount.rb +18 -11
  31. data/lib/malt/engines/rdoc.rb +21 -15
  32. data/lib/malt/engines/redcarpet.rb +137 -0
  33. data/lib/malt/engines/redcloth.rb +15 -7
  34. data/lib/malt/engines/ruby.rb +13 -12
  35. data/lib/malt/engines/sass.rb +30 -17
  36. data/lib/malt/engines/string.rb +36 -0
  37. data/lib/malt/engines/tenjin.rb +70 -27
  38. data/lib/malt/engines/wikicloth.rb +48 -0
  39. data/lib/malt/formats/abstract.rb +90 -29
  40. data/lib/malt/formats/abstract_template.rb +10 -8
  41. data/lib/malt/formats/builder.rb +39 -13
  42. data/lib/malt/formats/coffee.rb +54 -0
  43. data/lib/malt/formats/css.rb +3 -3
  44. data/lib/malt/formats/erb.rb +31 -66
  45. data/lib/malt/formats/haml.rb +8 -8
  46. data/lib/malt/formats/html.rb +1 -7
  47. data/lib/malt/formats/javascript.rb +27 -0
  48. data/lib/malt/formats/latex.rb +1 -1
  49. data/lib/malt/formats/less.rb +13 -11
  50. data/lib/malt/formats/liquid.rb +7 -7
  51. data/lib/malt/formats/markdown.rb +43 -44
  52. data/lib/malt/formats/mediawiki.rb +70 -0
  53. data/lib/malt/formats/mustache.rb +5 -5
  54. data/lib/malt/formats/pdf.rb +1 -7
  55. data/lib/malt/formats/radius.rb +5 -4
  56. data/lib/malt/formats/ragtag.rb +14 -13
  57. data/lib/malt/formats/rbhtml.rb +28 -20
  58. data/lib/malt/formats/rdoc.rb +5 -4
  59. data/lib/malt/formats/rhtml.rb +19 -43
  60. data/lib/malt/formats/ruby.rb +11 -45
  61. data/lib/malt/formats/sass.rb +16 -24
  62. data/lib/malt/formats/scss.rb +13 -30
  63. data/lib/malt/formats/string.rb +61 -0
  64. data/lib/malt/formats/tenjin.rb +4 -4
  65. data/lib/malt/formats/text.rb +1 -1
  66. data/lib/malt/formats/textile.rb +7 -19
  67. data/lib/malt/kernel.rb +1 -2
  68. data/lib/malt/machine.rb +83 -13
  69. data/lib/malt/tilted.rb +216 -0
  70. data/lib/malt/version.rb +21 -0
  71. data/test/helper.rb +15 -0
  72. data/test/unit/engines/case_engine_bluecloth.rb +40 -0
  73. data/test/unit/engines/case_engine_builder.rb +30 -0
  74. data/test/unit/engines/case_engine_coffee.rb +30 -0
  75. data/test/unit/engines/case_engine_creole.rb +35 -0
  76. data/test/unit/engines/case_engine_erb.rb +28 -0
  77. data/test/unit/engines/case_engine_erector.rb +36 -0
  78. data/test/unit/engines/case_engine_erubis.rb +28 -0
  79. data/test/unit/engines/case_engine_haml.rb +30 -0
  80. data/test/unit/engines/case_engine_kramdown.rb +30 -0
  81. data/test/unit/engines/case_engine_less.rb +40 -0
  82. data/test/unit/engines/case_engine_liquid.rb +28 -0
  83. data/test/unit/engines/case_engine_markaby.rb +20 -0
  84. data/test/unit/engines/case_engine_maruku.rb +30 -0
  85. data/test/unit/engines/case_engine_mustache.rb +28 -0
  86. data/test/unit/engines/case_engine_nokogiri.rb +30 -0
  87. data/test/unit/engines/case_engine_radius.rb +30 -0
  88. data/test/unit/engines/case_engine_ragtag.rb +40 -0
  89. data/test/unit/engines/case_engine_rdiscount.rb +30 -0
  90. data/test/unit/engines/case_engine_rdoc.rb +31 -0
  91. data/test/unit/engines/case_engine_redcarpet.rb +30 -0
  92. data/test/unit/engines/case_engine_redcloth.rb +31 -0
  93. data/test/unit/engines/case_engine_ruby.rb +28 -0
  94. data/test/unit/engines/case_engine_sass.rb +36 -0
  95. data/test/unit/engines/case_engine_string.rb +28 -0
  96. data/test/unit/engines/case_engine_tenjin.rb +28 -0
  97. data/test/unit/engines/case_engine_wikicloth.rb +25 -0
  98. data/test/unit/machine.rb +27 -0
  99. data/test/unit/malt.rb +12 -0
  100. metadata +364 -266
  101. data/History.rdoc +0 -64
  102. data/License.txt +0 -205
  103. data/Syckfile +0 -80
  104. data/features/consistent_rendering.feature +0 -36
  105. data/features/samples/sample.erb +0 -1
  106. data/features/samples/sample.erubis +0 -1
  107. data/features/samples/sample.liquid +0 -1
  108. data/features/samples/sample.mustache +0 -1
  109. data/features/samples/sample.radius +0 -1
  110. data/features/step_definitions/engine_steps.rb +0 -49
  111. data/features/support/loadpath.rb +0 -1
  112. data/features/support/sample_class.rb +0 -8
  113. data/lib/malt/formats/erector.rb +0 -53
  114. data/lib/malt/formats/markaby.rb +0 -53
  115. data/lib/malt/meta/data.rb +0 -26
  116. data/lib/malt/meta/package +0 -21
  117. data/lib/malt/meta/profile +0 -21
  118. data/meta/data.rb +0 -26
  119. data/meta/package +0 -21
  120. data/meta/profile +0 -21
  121. data/qed/01_overview.rdoc +0 -8
  122. data/qed/02_formats.rdoc +0 -39
  123. data/qed/03_formats/01_overview.rdoc +0 -7
  124. data/qed/03_formats/02_rdoc.rdoc +0 -83
  125. data/qed/03_formats/03_textile.rdoc +0 -48
  126. data/qed/03_formats/04_markdown.rdoc +0 -66
  127. data/qed/03_formats/05_erb.rdoc +0 -65
  128. data/qed/03_formats/06_liquid.rdoc +0 -54
  129. data/qed/03_formats/07_haml.rdoc +0 -44
  130. data/qed/03_formats/08_ragtag.rdoc +0 -19
  131. data/qed/03_formats/09_radius.rdoc +0 -43
  132. data/qed/03_formats/11_tenjin.rdoc +0 -47
  133. data/qed/03_formats/12_rbhtml.rdoc +0 -55
  134. data/qed/03_formats/13_sass.rdoc +0 -55
  135. data/qed/03_formats/14_scss.rdoc +0 -58
  136. data/qed/03_formats/15_less.rdoc +0 -46
  137. data/qed/03_formats/16_ruby.rdoc +0 -48
  138. data/qed/03_formats/17_markaby.rdoc +0 -50
  139. data/qed/03_formats/18_builder.rb +0 -50
  140. data/qed/03_formats/19_erector.rb +0 -50
  141. data/qed/03_formats/20_mustache.rdoc +0 -54
  142. data/qed/05_machine/01_limited_formats.rdoc +0 -29
  143. data/qed/05_machine/02_prioritized_engines.rdoc +0 -34
  144. data/qed/applique/malt.rb +0 -13
  145. data/qed/samples/data.yml +0 -4
  146. data/qed/samples/output-erb.txt +0 -1
  147. data/qed/samples/output-liquid.txt +0 -1
  148. data/qed/samples/output-mustache.txt +0 -1
  149. data/qed/samples/output-radius.txt +0 -1
  150. data/qed/samples/sample.erb +0 -1
  151. data/qed/samples/sample.liquid +0 -1
  152. data/qed/samples/sample.markdown +0 -308
  153. data/qed/samples/sample.mustache +0 -1
  154. data/qed/samples/sample.radius +0 -1
  155. data/qed/samples/sample.rdoc +0 -8
@@ -0,0 +1,28 @@
1
+ testcase Malt::Engine::Ruby do
2
+
3
+ method :render do
4
+
5
+ test "convert Ruby Ruby text" do
6
+ e = Malt::Engine::Ruby.new(:text=>%q{"Hello " + title})
7
+ h = e.render(:locals=>{:title=>'World!'})
8
+ h.assert.index "Hello World!"
9
+ end
10
+
11
+ test "Ruby is converstion format agnostic" do
12
+ e = Malt::Engine::Ruby.new
13
+ e.render(:to=>:DNE, :text=>%q{"Hello " + title}, :locals=>{:title=>'World!'})
14
+ end
15
+
16
+ end
17
+
18
+ #method :prepare_engine do
19
+ #
20
+ # test "returns an ::Ruby instance" do
21
+ # e = Malt::Engine::Ruby.new
22
+ # r = e.prepare_engine(:text=>%q{"Hello #{title}")
23
+ # r.assert.is_a? ::Ruby
24
+ # end
25
+ #
26
+ #end
27
+
28
+ end
@@ -0,0 +1,36 @@
1
+ testcase Malt::Engine::Sass do
2
+
3
+ method :render do
4
+
5
+ test "convert SASS to CSS by default" do
6
+ e = Malt::Engine::Sass.new(:text=>"#menu\n :margin 0")
7
+ h = e.render
8
+ h.assert.index "#menu {\n margin: 0; }\n"
9
+ end
10
+
11
+ test "convert SCSS to CSS" do
12
+ e = Malt::Engine::Sass.new
13
+ h = e.render(:text=>"#menu{ margin: 0 }", :type=>:scss)
14
+ h.assert.index "#menu {\n margin: 0; }\n"
15
+ end
16
+
17
+ test "raises NotImplementedError if converstion format not supported" do
18
+ e = Malt::Engine::Sass.new
19
+ expect NotImplementedError do
20
+ e.render(:to=>:DNE, :text=>"#menu\n :margin 0")
21
+ end
22
+ end
23
+
24
+ end
25
+
26
+ method :prepare_engine do
27
+
28
+ test "returns an ::Sass instance" do
29
+ e = Malt::Engine::Sass.new
30
+ r = e.prepare_engine(:text=>"#menu\n :margin 0")
31
+ r.assert.is_a? ::Sass::Engine
32
+ end
33
+
34
+ end
35
+
36
+ end
@@ -0,0 +1,28 @@
1
+ testcase Malt::Engine::String do
2
+
3
+ method :render do
4
+
5
+ test "render text" do
6
+ e = Malt::Engine::String.new(:text=>%q{"Hello #{title}"})
7
+ h = e.render(:locals=>{:title=>'World!'})
8
+ h.assert.index "Hello World!"
9
+ end
10
+
11
+ test "String is converstion format agnostic" do
12
+ e = Malt::Engine::String.new
13
+ e.render(:to=>:DNE, :text=>%q{"Hello #{title}"}, :locals=>{:title=>'World!'})
14
+ end
15
+
16
+ end
17
+
18
+ #method :prepare_engine do
19
+ #
20
+ # test "returns an ::String instance" do
21
+ # e = Malt::Engine::String.new
22
+ # r = e.prepare_engine(:text=>%q{"Hello #{title}")
23
+ # r.assert.is_a? ::String
24
+ # end
25
+ #
26
+ #end
27
+
28
+ end
@@ -0,0 +1,28 @@
1
+ testcase Malt::Engine::Tenjin do
2
+
3
+ method :render do
4
+
5
+ test "render text" do
6
+ e = Malt::Engine::Tenjin.new(:text=>'<h1>#{title}</h1>')
7
+ h = e.render(:locals=>{:title=>'Testing'})
8
+ h.assert.index "<h1>Testing</h1>"
9
+ end
10
+
11
+ test "Tenjin is converstion format agnostic" do
12
+ e = Malt::Engine::Tenjin.new
13
+ e.render(:to=>:DNE, :text=>'<h1>#{@title}</h1>')
14
+ end
15
+
16
+ end
17
+
18
+ method :prepare_engine do
19
+
20
+ test "returns a Tenjin instance" do
21
+ e = Malt::Engine::Tenjin.new
22
+ r = e.prepare_engine(:text=>'<h1>#{@title}</h1>')
23
+ #r.assert.is_a? ::Tenjin::Template
24
+ end
25
+
26
+ end
27
+
28
+ end
@@ -0,0 +1,25 @@
1
+ testcase Malt::Engine::WikiCloth do
2
+
3
+ method :render do
4
+
5
+ test "render media wiki text to HTML by default" do
6
+ e = Malt::Engine::WikiCloth.new(:text=>"== Testing ==")
7
+ h = e.render
8
+ h.assert.index "<h2>" # so complicated that we're lucky to find it ;)
9
+ h.assert.index "Testing"
10
+ end
11
+
12
+ end
13
+
14
+ method :prepare_engine do
15
+
16
+ test "returns a WikiCloth instance" do
17
+ e = Malt::Engine::WikiCloth.new
18
+ r = e.prepare_engine(:text=>"== Testing ==")
19
+ r.assert.is_a? ::WikiCloth::WikiCloth
20
+ end
21
+
22
+ end
23
+
24
+ end
25
+
@@ -0,0 +1,27 @@
1
+ testcase Malt::Machine do
2
+
3
+ method :engine do
4
+
5
+ test "corrent engine is used when specified" do
6
+ machine = Malt::Machine.new
7
+ engine = machine.pry.engine(:erb,:erubis)
8
+ engine.assert == Malt::Engine::Erubis
9
+ #machine.render(:text=>"<%= title %>", :type=>:erb, :engine=>:erubis, :data=>{:title=>'Testing'})
10
+ #RR.verify
11
+ end
12
+
13
+ end
14
+
15
+ method :render do
16
+
17
+ test "corrent engine is used when specified" do
18
+ machine = Malt::Machine.new
19
+ #mock(machine).engine(:erb,:erubis){ Malt::Engine::Erubis }
20
+ machine.render(:text=>"<%= title %>", :type=>:erb, :engine=>:erubis, :data=>{:title=>'Testing'})
21
+ #RR.verify
22
+ end
23
+
24
+ end
25
+
26
+
27
+ end
@@ -0,0 +1,12 @@
1
+ testcase Malt do
2
+
3
+ class_method :render do
4
+
5
+ test "corrent engine is used when specified" do
6
+ Malt.render(:text=>"<%= title %>", :type=>:erb, :engine=>:erubis, :data=>{:title=>'Testing'})
7
+ end
8
+
9
+ end
10
+
11
+
12
+ end
metadata CHANGED
@@ -1,256 +1,367 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: malt
3
- version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 3
9
- - 0
10
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
13
- - Thomas Sawyer
7
+ authors:
8
+ - trans
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2010-11-04 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: syckle
12
+ date: 2011-11-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: blankslate
16
+ requirement: &69871670561480 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
23
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ version_requirements: *69871670561480
25
+ - !ruby/object:Gem::Dependency
26
+ name: detroit
27
+ requirement: &69871670560940 !ruby/object:Gem::Requirement
25
28
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
33
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
34
+ prerelease: false
35
+ version_requirements: *69871670560940
36
+ - !ruby/object:Gem::Dependency
36
37
  name: qed
38
+ requirement: &69871670560440 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
37
45
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
46
+ version_requirements: *69871670560440
47
+ - !ruby/object:Gem::Dependency
48
+ name: test
49
+ requirement: &69871670576320 !ruby/object:Gem::Requirement
39
50
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: rdoc
51
56
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
57
+ version_requirements: *69871670576320
58
+ - !ruby/object:Gem::Dependency
59
+ name: lemon
60
+ requirement: &69871670575820 !ruby/object:Gem::Requirement
53
61
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
61
66
  type: :development
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
64
- name: redcloth
65
67
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
68
+ version_requirements: *69871670575820
69
+ - !ruby/object:Gem::Dependency
70
+ name: ae
71
+ requirement: &69871670575320 !ruby/object:Gem::Requirement
67
72
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *69871670575320
80
+ - !ruby/object:Gem::Dependency
81
+ name: rdoc
82
+ requirement: &69871670574680 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '3'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *69871670574680
91
+ - !ruby/object:Gem::Dependency
92
+ name: RedCloth
93
+ requirement: &69871670574180 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
75
99
  type: :development
76
- version_requirements: *id004
77
- - !ruby/object:Gem::Dependency
78
- name: bluecloth
79
100
  prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
101
+ version_requirements: *69871670574180
102
+ - !ruby/object:Gem::Dependency
103
+ name: bluecloth
104
+ requirement: &69871670573640 !ruby/object:Gem::Requirement
81
105
  none: false
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
- version: "0"
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
89
110
  type: :development
90
- version_requirements: *id005
91
- - !ruby/object:Gem::Dependency
111
+ prerelease: false
112
+ version_requirements: *69871670573640
113
+ - !ruby/object:Gem::Dependency
92
114
  name: kramdown
115
+ requirement: &69871670573140 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
93
122
  prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
123
+ version_requirements: *69871670573140
124
+ - !ruby/object:Gem::Dependency
125
+ name: rdiscount
126
+ requirement: &69871670572640 !ruby/object:Gem::Requirement
95
127
  none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- hash: 3
100
- segments:
101
- - 0
102
- version: "0"
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
103
132
  type: :development
104
- version_requirements: *id006
105
- - !ruby/object:Gem::Dependency
133
+ prerelease: false
134
+ version_requirements: *69871670572640
135
+ - !ruby/object:Gem::Dependency
106
136
  name: haml
137
+ requirement: &69871670572140 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ type: :development
107
144
  prerelease: false
108
- requirement: &id007 !ruby/object:Gem::Requirement
145
+ version_requirements: *69871670572140
146
+ - !ruby/object:Gem::Dependency
147
+ name: sass
148
+ requirement: &69871670571640 !ruby/object:Gem::Requirement
109
149
  none: false
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- hash: 3
114
- segments:
115
- - 0
116
- version: "0"
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
117
154
  type: :development
118
- version_requirements: *id007
119
- - !ruby/object:Gem::Dependency
120
- name: tenjin
121
155
  prerelease: false
122
- requirement: &id008 !ruby/object:Gem::Requirement
156
+ version_requirements: *69871670571640
157
+ - !ruby/object:Gem::Dependency
158
+ name: less
159
+ requirement: &69871670571140 !ruby/object:Gem::Requirement
123
160
  none: false
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- hash: 3
128
- segments:
129
- - 0
130
- version: "0"
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
131
165
  type: :development
132
- version_requirements: *id008
133
- - !ruby/object:Gem::Dependency
134
- name: rtals
135
166
  prerelease: false
136
- requirement: &id009 !ruby/object:Gem::Requirement
167
+ version_requirements: *69871670571140
168
+ - !ruby/object:Gem::Dependency
169
+ name: tenjin
170
+ requirement: &69871670570640 !ruby/object:Gem::Requirement
137
171
  none: false
138
- requirements:
139
- - - ">="
140
- - !ruby/object:Gem::Version
141
- hash: 3
142
- segments:
143
- - 0
144
- version: "0"
172
+ requirements:
173
+ - - ! '>='
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
145
176
  type: :development
146
- version_requirements: *id009
147
- - !ruby/object:Gem::Dependency
148
- name: liquid
149
177
  prerelease: false
150
- requirement: &id010 !ruby/object:Gem::Requirement
178
+ version_requirements: *69871670570640
179
+ - !ruby/object:Gem::Dependency
180
+ name: rtals
181
+ requirement: &69871670570140 !ruby/object:Gem::Requirement
151
182
  none: false
152
- requirements:
153
- - - ">="
154
- - !ruby/object:Gem::Version
155
- hash: 3
156
- segments:
157
- - 0
158
- version: "0"
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
159
187
  type: :development
160
- version_requirements: *id010
161
- - !ruby/object:Gem::Dependency
162
- name: erubis
163
188
  prerelease: false
164
- requirement: &id011 !ruby/object:Gem::Requirement
189
+ version_requirements: *69871670570140
190
+ - !ruby/object:Gem::Dependency
191
+ name: liquid
192
+ requirement: &69871670569640 !ruby/object:Gem::Requirement
165
193
  none: false
166
- requirements:
167
- - - ">="
168
- - !ruby/object:Gem::Version
169
- hash: 3
170
- segments:
171
- - 0
172
- version: "0"
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
173
198
  type: :development
174
- version_requirements: *id011
175
- - !ruby/object:Gem::Dependency
176
- name: mustache
177
199
  prerelease: false
178
- requirement: &id012 !ruby/object:Gem::Requirement
200
+ version_requirements: *69871670569640
201
+ - !ruby/object:Gem::Dependency
202
+ name: erubis
203
+ requirement: &69871670569140 !ruby/object:Gem::Requirement
179
204
  none: false
180
- requirements:
181
- - - ">="
182
- - !ruby/object:Gem::Version
183
- hash: 3
184
- segments:
185
- - 0
186
- version: "0"
205
+ requirements:
206
+ - - ! '>='
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
187
209
  type: :development
188
- version_requirements: *id012
189
- - !ruby/object:Gem::Dependency
190
- name: erector
191
210
  prerelease: false
192
- requirement: &id013 !ruby/object:Gem::Requirement
211
+ version_requirements: *69871670569140
212
+ - !ruby/object:Gem::Dependency
213
+ name: mustache
214
+ requirement: &69871670568640 !ruby/object:Gem::Requirement
193
215
  none: false
194
- requirements:
195
- - - ">="
196
- - !ruby/object:Gem::Version
197
- hash: 3
198
- segments:
199
- - 0
200
- version: "0"
216
+ requirements:
217
+ - - ! '>='
218
+ - !ruby/object:Gem::Version
219
+ version: '0'
201
220
  type: :development
202
- version_requirements: *id013
203
- - !ruby/object:Gem::Dependency
204
- name: markaby
205
221
  prerelease: false
206
- requirement: &id014 !ruby/object:Gem::Requirement
222
+ version_requirements: *69871670568640
223
+ - !ruby/object:Gem::Dependency
224
+ name: markaby
225
+ requirement: &69871670584520 !ruby/object:Gem::Requirement
207
226
  none: false
208
- requirements:
209
- - - ">="
210
- - !ruby/object:Gem::Version
211
- hash: 3
212
- segments:
213
- - 0
214
- version: "0"
227
+ requirements:
228
+ - - ! '>='
229
+ - !ruby/object:Gem::Version
230
+ version: '0'
215
231
  type: :development
216
- version_requirements: *id014
217
- - !ruby/object:Gem::Dependency
232
+ prerelease: false
233
+ version_requirements: *69871670584520
234
+ - !ruby/object:Gem::Dependency
218
235
  name: builder
236
+ requirement: &69871670584020 !ruby/object:Gem::Requirement
237
+ none: false
238
+ requirements:
239
+ - - ! '>='
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ type: :development
243
+ prerelease: false
244
+ version_requirements: *69871670584020
245
+ - !ruby/object:Gem::Dependency
246
+ name: radius
247
+ requirement: &69871670583520 !ruby/object:Gem::Requirement
248
+ none: false
249
+ requirements:
250
+ - - ! '>='
251
+ - !ruby/object:Gem::Version
252
+ version: '0'
253
+ type: :development
254
+ prerelease: false
255
+ version_requirements: *69871670583520
256
+ - !ruby/object:Gem::Dependency
257
+ name: ragtag
258
+ requirement: &69871670583020 !ruby/object:Gem::Requirement
259
+ none: false
260
+ requirements:
261
+ - - ! '>='
262
+ - !ruby/object:Gem::Version
263
+ version: '0'
264
+ type: :development
265
+ prerelease: false
266
+ version_requirements: *69871670583020
267
+ - !ruby/object:Gem::Dependency
268
+ name: redcarpet
269
+ requirement: &69871670582520 !ruby/object:Gem::Requirement
270
+ none: false
271
+ requirements:
272
+ - - ! '>='
273
+ - !ruby/object:Gem::Version
274
+ version: '0'
275
+ type: :development
276
+ prerelease: false
277
+ version_requirements: *69871670582520
278
+ - !ruby/object:Gem::Dependency
279
+ name: wikicloth
280
+ requirement: &69871670582020 !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ! '>='
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ type: :development
287
+ prerelease: false
288
+ version_requirements: *69871670582020
289
+ - !ruby/object:Gem::Dependency
290
+ name: maruku
291
+ requirement: &69871670581520 !ruby/object:Gem::Requirement
292
+ none: false
293
+ requirements:
294
+ - - ! '>='
295
+ - !ruby/object:Gem::Version
296
+ version: '0'
297
+ type: :development
298
+ prerelease: false
299
+ version_requirements: *69871670581520
300
+ - !ruby/object:Gem::Dependency
301
+ name: creole
302
+ requirement: &69871670581020 !ruby/object:Gem::Requirement
303
+ none: false
304
+ requirements:
305
+ - - ! '>='
306
+ - !ruby/object:Gem::Version
307
+ version: '0'
308
+ type: :development
309
+ prerelease: false
310
+ version_requirements: *69871670581020
311
+ - !ruby/object:Gem::Dependency
312
+ name: erector
313
+ requirement: &69871670580520 !ruby/object:Gem::Requirement
314
+ none: false
315
+ requirements:
316
+ - - ! '>='
317
+ - !ruby/object:Gem::Version
318
+ version: '0'
319
+ type: :development
320
+ prerelease: false
321
+ version_requirements: *69871670580520
322
+ - !ruby/object:Gem::Dependency
323
+ name: active_support
324
+ requirement: &69871670580020 !ruby/object:Gem::Requirement
325
+ none: false
326
+ requirements:
327
+ - - ! '>='
328
+ - !ruby/object:Gem::Version
329
+ version: '0'
330
+ type: :development
219
331
  prerelease: false
220
- requirement: &id015 !ruby/object:Gem::Requirement
332
+ version_requirements: *69871670580020
333
+ - !ruby/object:Gem::Dependency
334
+ name: coffee-script
335
+ requirement: &69871670579520 !ruby/object:Gem::Requirement
221
336
  none: false
222
- requirements:
223
- - - ">="
224
- - !ruby/object:Gem::Version
225
- hash: 3
226
- segments:
227
- - 0
228
- version: "0"
337
+ requirements:
338
+ - - ! '>='
339
+ - !ruby/object:Gem::Version
340
+ version: '0'
229
341
  type: :development
230
- version_requirements: *id015
231
- description: Malt provides a factory framework for rendering a variety of template and markup document formats.
232
- email: transfire@gmail.com
233
- executables:
342
+ prerelease: false
343
+ version_requirements: *69871670579520
344
+ description: Malt provides a factory framework for rendering a variety of template
345
+ and markup document formats.
346
+ email:
347
+ - transfire@gmail.com
348
+ executables:
234
349
  - malt
235
350
  extensions: []
236
-
237
- extra_rdoc_files:
351
+ extra_rdoc_files:
352
+ - HISTORY.rdoc
238
353
  - README.rdoc
239
- files:
354
+ - COPYING.rdoc
355
+ files:
356
+ - .ruby
240
357
  - bin/malt
241
- - features/consistent_rendering.feature
242
- - features/samples/sample.erb
243
- - features/samples/sample.erubis
244
- - features/samples/sample.liquid
245
- - features/samples/sample.mustache
246
- - features/samples/sample.radius
247
- - features/step_definitions/engine_steps.rb
248
- - features/support/loadpath.rb
249
- - features/support/sample_class.rb
358
+ - lib/malt/conversions.rb
250
359
  - lib/malt/core_ext.rb
251
360
  - lib/malt/engines/abstract.rb
252
361
  - lib/malt/engines/bluecloth.rb
253
362
  - lib/malt/engines/builder.rb
363
+ - lib/malt/engines/coffee.rb
364
+ - lib/malt/engines/creole.rb
254
365
  - lib/malt/engines/erb.rb
255
366
  - lib/malt/engines/erector.rb
256
367
  - lib/malt/engines/erubis.rb
@@ -259,29 +370,35 @@ files:
259
370
  - lib/malt/engines/less.rb
260
371
  - lib/malt/engines/liquid.rb
261
372
  - lib/malt/engines/markaby.rb
373
+ - lib/malt/engines/maruku.rb
262
374
  - lib/malt/engines/mustache.rb
375
+ - lib/malt/engines/nokogiri.rb
263
376
  - lib/malt/engines/radius.rb
264
377
  - lib/malt/engines/ragtag.rb
265
378
  - lib/malt/engines/rdiscount.rb
266
379
  - lib/malt/engines/rdoc.rb
380
+ - lib/malt/engines/redcarpet.rb
267
381
  - lib/malt/engines/redcloth.rb
268
382
  - lib/malt/engines/ruby.rb
269
383
  - lib/malt/engines/sass.rb
384
+ - lib/malt/engines/string.rb
270
385
  - lib/malt/engines/tenjin.rb
386
+ - lib/malt/engines/wikicloth.rb
271
387
  - lib/malt/engines.rb
272
388
  - lib/malt/formats/abstract.rb
273
389
  - lib/malt/formats/abstract_template.rb
274
390
  - lib/malt/formats/builder.rb
391
+ - lib/malt/formats/coffee.rb
275
392
  - lib/malt/formats/css.rb
276
393
  - lib/malt/formats/erb.rb
277
- - lib/malt/formats/erector.rb
278
394
  - lib/malt/formats/haml.rb
279
395
  - lib/malt/formats/html.rb
396
+ - lib/malt/formats/javascript.rb
280
397
  - lib/malt/formats/latex.rb
281
398
  - lib/malt/formats/less.rb
282
399
  - lib/malt/formats/liquid.rb
283
- - lib/malt/formats/markaby.rb
284
400
  - lib/malt/formats/markdown.rb
401
+ - lib/malt/formats/mediawiki.rb
285
402
  - lib/malt/formats/mustache.rb
286
403
  - lib/malt/formats/pdf.rb
287
404
  - lib/malt/formats/radius.rb
@@ -292,6 +409,7 @@ files:
292
409
  - lib/malt/formats/ruby.rb
293
410
  - lib/malt/formats/sass.rb
294
411
  - lib/malt/formats/scss.rb
412
+ - lib/malt/formats/string.rb
295
413
  - lib/malt/formats/tenjin.rb
296
414
  - lib/malt/formats/text.rb
297
415
  - lib/malt/formats/textile.rb
@@ -301,89 +419,69 @@ files:
301
419
  - lib/malt/kernel.rb
302
420
  - lib/malt/machine.rb
303
421
  - lib/malt/markup.rb
304
- - lib/malt/meta/data.rb
305
- - lib/malt/meta/package
306
- - lib/malt/meta/profile
307
422
  - lib/malt/template.rb
423
+ - lib/malt/tilted.rb
424
+ - lib/malt/version.rb
308
425
  - lib/malt.rb
309
- - meta/data.rb
310
- - meta/package
311
- - meta/profile
312
- - qed/01_overview.rdoc
313
- - qed/02_formats.rdoc
314
- - qed/03_formats/01_overview.rdoc
315
- - qed/03_formats/02_rdoc.rdoc
316
- - qed/03_formats/03_textile.rdoc
317
- - qed/03_formats/04_markdown.rdoc
318
- - qed/03_formats/05_erb.rdoc
319
- - qed/03_formats/06_liquid.rdoc
320
- - qed/03_formats/07_haml.rdoc
321
- - qed/03_formats/08_ragtag.rdoc
322
- - qed/03_formats/09_radius.rdoc
323
- - qed/03_formats/11_tenjin.rdoc
324
- - qed/03_formats/12_rbhtml.rdoc
325
- - qed/03_formats/13_sass.rdoc
326
- - qed/03_formats/14_scss.rdoc
327
- - qed/03_formats/15_less.rdoc
328
- - qed/03_formats/16_ruby.rdoc
329
- - qed/03_formats/17_markaby.rdoc
330
- - qed/03_formats/18_builder.rb
331
- - qed/03_formats/19_erector.rb
332
- - qed/03_formats/20_mustache.rdoc
333
- - qed/05_machine/01_limited_formats.rdoc
334
- - qed/05_machine/02_prioritized_engines.rdoc
335
- - qed/applique/malt.rb
336
- - qed/samples/data.yml
337
- - qed/samples/output-erb.txt
338
- - qed/samples/output-liquid.txt
339
- - qed/samples/output-mustache.txt
340
- - qed/samples/output-radius.txt
341
- - qed/samples/sample.erb
342
- - qed/samples/sample.liquid
343
- - qed/samples/sample.markdown
344
- - qed/samples/sample.mustache
345
- - qed/samples/sample.radius
346
- - qed/samples/sample.rdoc
426
+ - lib/malt.yml
427
+ - test/helper.rb
428
+ - test/unit/engines/case_engine_bluecloth.rb
429
+ - test/unit/engines/case_engine_builder.rb
430
+ - test/unit/engines/case_engine_coffee.rb
431
+ - test/unit/engines/case_engine_creole.rb
432
+ - test/unit/engines/case_engine_erb.rb
433
+ - test/unit/engines/case_engine_erector.rb
434
+ - test/unit/engines/case_engine_erubis.rb
435
+ - test/unit/engines/case_engine_haml.rb
436
+ - test/unit/engines/case_engine_kramdown.rb
437
+ - test/unit/engines/case_engine_less.rb
438
+ - test/unit/engines/case_engine_liquid.rb
439
+ - test/unit/engines/case_engine_markaby.rb
440
+ - test/unit/engines/case_engine_maruku.rb
441
+ - test/unit/engines/case_engine_mustache.rb
442
+ - test/unit/engines/case_engine_nokogiri.rb
443
+ - test/unit/engines/case_engine_radius.rb
444
+ - test/unit/engines/case_engine_ragtag.rb
445
+ - test/unit/engines/case_engine_rdiscount.rb
446
+ - test/unit/engines/case_engine_rdoc.rb
447
+ - test/unit/engines/case_engine_redcarpet.rb
448
+ - test/unit/engines/case_engine_redcloth.rb
449
+ - test/unit/engines/case_engine_ruby.rb
450
+ - test/unit/engines/case_engine_sass.rb
451
+ - test/unit/engines/case_engine_string.rb
452
+ - test/unit/engines/case_engine_tenjin.rb
453
+ - test/unit/engines/case_engine_wikicloth.rb
454
+ - test/unit/machine.rb
455
+ - test/unit/malt.rb
456
+ - Reapfile
457
+ - HISTORY.rdoc
347
458
  - README.rdoc
348
- - Syckfile
349
- - History.rdoc
350
- - License.txt
351
- has_rdoc: true
459
+ - Gemfile
460
+ - Assembly
461
+ - COPYING.rdoc
352
462
  homepage: http://rubyworks.github.com/malt
353
- licenses:
354
- - ""
463
+ licenses:
464
+ - BSD-2-Clause
355
465
  post_install_message:
356
- rdoc_options:
357
- - --title
358
- - Malt API
359
- - --main
360
- - README.rdoc
361
- require_paths:
466
+ rdoc_options: []
467
+ require_paths:
362
468
  - lib
363
- required_ruby_version: !ruby/object:Gem::Requirement
469
+ required_ruby_version: !ruby/object:Gem::Requirement
364
470
  none: false
365
- requirements:
366
- - - ">="
367
- - !ruby/object:Gem::Version
368
- hash: 3
369
- segments:
370
- - 0
371
- version: "0"
372
- required_rubygems_version: !ruby/object:Gem::Requirement
471
+ requirements:
472
+ - - ! '>='
473
+ - !ruby/object:Gem::Version
474
+ version: '0'
475
+ required_rubygems_version: !ruby/object:Gem::Requirement
373
476
  none: false
374
- requirements:
375
- - - ">="
376
- - !ruby/object:Gem::Version
377
- hash: 3
378
- segments:
379
- - 0
380
- version: "0"
477
+ requirements:
478
+ - - ! '>='
479
+ - !ruby/object:Gem::Version
480
+ version: '0'
381
481
  requirements: []
382
-
383
- rubyforge_project: malt
384
- rubygems_version: 1.3.7
482
+ rubyforge_project:
483
+ rubygems_version: 1.8.10
385
484
  signing_key:
386
485
  specification_version: 3
387
486
  summary: Multi-template/multi-markup rendering engine
388
487
  test_files: []
389
-