w2tags 0.9.3 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/COPYING +340 -340
  2. data/LICENSE +6 -6
  3. data/MIT-LICENSE +18 -18
  4. data/Manifest.txt +28 -25
  5. data/README.rdoc +27 -21
  6. data/Rakefile +1 -1
  7. data/VERSION +1 -1
  8. data/bin/w2tags +173 -143
  9. data/doc/History.rdoc +88 -0
  10. data/hot/erb.hot +18 -156
  11. data/hot/erb_base.hot +164 -0
  12. data/hot/html.hot +30 -31
  13. data/hot/rails/scaffold.hot +15 -15
  14. data/hot/vm.hot +8 -8
  15. data/hot/vm2.hot +34 -34
  16. data/hot/vm_crud.hot +34 -34
  17. data/hot/vm_popup.hot +74 -74
  18. data/lib/tags2w.rb +263 -0
  19. data/lib/w2tags/block/block_hot.rb +37 -0
  20. data/lib/w2tags/block/plain_text.rb +57 -57
  21. data/lib/w2tags/block/remark.rb +37 -37
  22. data/lib/w2tags/block/sass.rb +68 -66
  23. data/lib/w2tags/merb_hook.rb +15 -15
  24. data/lib/w2tags/parser.rb +17 -8
  25. data/lib/w2tags/rails_hook.rb +15 -15
  26. data/lib/w2tags/sinatra_hook.rb +74 -50
  27. data/lib/w2tags.rb +100 -100
  28. data/plugins/{/w2tags/ → w2tags}/README +2 -2
  29. data/plugins/{/w2tags//generators//w2scaffold/ → w2tags/generators/w2scaffold}/USAGE +29 -29
  30. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/controller.rb +85 -85
  31. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/functional_test.rb +45 -45
  32. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/helper.rb +2 -2
  33. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/helper_test.rb +4 -4
  34. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/layout.html.erb +17 -17
  35. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/style.css +54 -54
  36. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_edit.html.erb +17 -17
  37. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_edit.html.w2erb +16 -16
  38. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_index.html.erb +23 -23
  39. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_index.html.w2erb +13 -13
  40. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_new.html.erb +16 -16
  41. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_new.html.w2erb +15 -15
  42. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_show.html.erb +9 -9
  43. data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_show.html.w2erb +8 -8
  44. data/plugins/{/w2tags//generators//w2scaffold/ → w2tags/generators/w2scaffold}/w2scaffold_generator.rb +106 -106
  45. data/plugins/{/w2tags/ → w2tags}/install.rb +0 -0
  46. data/tasks/ann.rake +81 -81
  47. data/tasks/bones.rake +21 -21
  48. data/tasks/gem.rake +126 -126
  49. data/tasks/git.rake +41 -41
  50. data/tasks/manifest.rake +49 -49
  51. data/tasks/notes.rake +28 -28
  52. data/tasks/post_load.rake +39 -39
  53. data/tasks/rdoc.rake +51 -51
  54. data/tasks/rubyforge.rake +57 -57
  55. data/tasks/setup.rb +268 -268
  56. data/tasks/spec.rake +55 -55
  57. data/tasks/svn.rake +48 -48
  58. data/tasks/test.rake +38 -38
  59. data/test/vars.hot +30 -30
  60. data/test/w2tags_basic_usability.rb +187 -187
  61. data/test/w2tags_enlightning.rb +42 -42
  62. data/test/w2tags_hot.rb +85 -85
  63. data/test/w2tags_hot_var.rb +115 -115
  64. metadata +28 -30
@@ -1,115 +1,115 @@
1
- module W2tagsHotVar
2
- def test_hot_var_01
3
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
4
- -# this will not translate
5
- &var1=#this value
6
- &var1!
7
- W2TAGS____________
8
- &var1!
9
- EXPECTED__________
10
- end
11
- def test_hot_var_02
12
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
13
- ~^ $0
14
- ^ #this value;%span what!;:
15
- W2TAGS____________
16
- <div id="this">value</div>
17
- <span>what!</span>
18
- <input />
19
- EXPECTED__________
20
- end
21
- def test_hot_var_03
22
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
23
- &var=#this value;%span what!;:
24
- ~^ $0
25
- ^ &var!
26
- W2TAGS____________
27
- <div id="this">value</div>
28
- <span>what!</span>
29
- <input />
30
- EXPECTED__________
31
- end
32
- def test_hot_var_04
33
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
34
- @var=#this value;%span what!;:
35
- @var=#this value;%li liii
36
- ~^ $0
37
- ^ @var!
38
- W2TAGS____________
39
- <div id="this">value</div>
40
- <span>what!</span>
41
- <input />
42
- <li>liii</li>
43
- EXPECTED__________
44
- end
45
- def test_hot_var_05
46
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
47
- !hot!vars
48
- -vars:nms#ids.class{cus="tom"}
49
- W2TAGS____________
50
- :nms#ids.class{cus="tom"}
51
- nm=:nms
52
- id=#ids
53
- cl=.class
54
- at={cus="tom"}
55
- EXPECTED__________
56
- end
57
- def test_hot_var_06
58
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
59
- !hot!vars
60
- -var2:nms#ids.class{cus="tom"}
61
- W2TAGS____________
62
- :nms#ids.class{cus="tom"}
63
- nm=nms
64
- id=ids
65
- cl=class
66
- at=cus="tom"
67
- EXPECTED__________
68
- end
69
- def test_hot_var_07
70
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
71
- !hot!vars
72
- -var3:nms#ids.class{cus="tom"}
73
- W2TAGS____________
74
- name="nms" id="ids" class="class" cus="tom"
75
- name="nms"
76
- id="ids"
77
- class="class"
78
- cus="tom"
79
- EXPECTED__________
80
- end
81
- def test_hot_var_08
82
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
83
- !hot!vars
84
- -var4= "info"
85
- W2TAGS____________
86
- wharsojo
87
- <%= "info" %>
88
- EXPECTED__________
89
- end
90
- def test_hot_var_09
91
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
92
- !hot!vars
93
- -var4== info
94
- W2TAGS____________
95
- wharsojo
96
- <%= "info" %>
97
- EXPECTED__________
98
- end
99
- def test_hot_var_10
100
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
101
- !hot!vars
102
- -var5
103
- W2TAGS____________
104
- _var5
105
- EXPECTED__________
106
- end
107
- def test_hot_var_99
108
- easy_test(<<W2TAGS____________,<<EXPECTED__________)
109
- !hot!feature
110
- -code#item1{options="rain"}= manstabs
111
- W2TAGS____________
112
- <span id="item1" options="rain"><%= manstabs %></span>
113
- EXPECTED__________
114
- end
115
- end
1
+ module W2tagsHotVar
2
+ def test_hot_var_01
3
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
4
+ -# this will not translate
5
+ &var1=#this value
6
+ &var1!
7
+ W2TAGS____________
8
+ &var1!
9
+ EXPECTED__________
10
+ end
11
+ def test_hot_var_02
12
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
13
+ ~^ $0
14
+ ^ #this value;%span what!;:
15
+ W2TAGS____________
16
+ <div id="this">value</div>
17
+ <span>what!</span>
18
+ <input />
19
+ EXPECTED__________
20
+ end
21
+ def test_hot_var_03
22
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
23
+ &var=#this value;%span what!;:
24
+ ~^ $0
25
+ ^ &var!
26
+ W2TAGS____________
27
+ <div id="this">value</div>
28
+ <span>what!</span>
29
+ <input />
30
+ EXPECTED__________
31
+ end
32
+ def test_hot_var_04
33
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
34
+ @var=#this value;%span what!;:
35
+ @var=#this value;%li liii
36
+ ~^ $0
37
+ ^ @var!
38
+ W2TAGS____________
39
+ <div id="this">value</div>
40
+ <span>what!</span>
41
+ <input />
42
+ <li>liii</li>
43
+ EXPECTED__________
44
+ end
45
+ def test_hot_var_05
46
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
47
+ !hot!vars
48
+ -vars:nms#ids.class{cus="tom"}
49
+ W2TAGS____________
50
+ :nms#ids.class{cus="tom"}
51
+ nm=:nms
52
+ id=#ids
53
+ cl=.class
54
+ at={cus="tom"}
55
+ EXPECTED__________
56
+ end
57
+ def test_hot_var_06
58
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
59
+ !hot!vars
60
+ -var2:nms#ids.class{cus="tom"}
61
+ W2TAGS____________
62
+ :nms#ids.class{cus="tom"}
63
+ nm=nms
64
+ id=ids
65
+ cl=class
66
+ at=cus="tom"
67
+ EXPECTED__________
68
+ end
69
+ def test_hot_var_07
70
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
71
+ !hot!vars
72
+ -var3:nms#ids.class{cus="tom"}
73
+ W2TAGS____________
74
+ name="nms" id="ids" class="class" cus="tom"
75
+ name="nms"
76
+ id="ids"
77
+ class="class"
78
+ cus="tom"
79
+ EXPECTED__________
80
+ end
81
+ def test_hot_var_08
82
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
83
+ !hot!vars
84
+ -var4= "info"
85
+ W2TAGS____________
86
+ wharsojo
87
+ <%= "info" %>
88
+ EXPECTED__________
89
+ end
90
+ def test_hot_var_09
91
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
92
+ !hot!vars
93
+ -var4== info
94
+ W2TAGS____________
95
+ wharsojo
96
+ <%= "info" %>
97
+ EXPECTED__________
98
+ end
99
+ def test_hot_var_10
100
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
101
+ !hot!vars
102
+ -var5
103
+ W2TAGS____________
104
+ _var5
105
+ EXPECTED__________
106
+ end
107
+ def test_hot_var_99
108
+ easy_test(<<W2TAGS____________,<<EXPECTED__________)
109
+ !hot!feature
110
+ -code#item1{options="rain"}= manstabs
111
+ W2TAGS____________
112
+ <span id="item1" options="rain"><%= manstabs %></span>
113
+ EXPECTED__________
114
+ end
115
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: w2tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - widi harsojo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-13 00:00:00 +07:00
12
+ date: 2009-08-26 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -45,15 +45,18 @@ files:
45
45
  - doc/History.rdoc
46
46
  - doc/HOT.rdoc
47
47
  - bin/w2tags
48
+ - lib/tags2w.rb
48
49
  - lib/w2tags.rb
49
50
  - lib/w2tags/parser.rb
50
51
  - lib/w2tags/merb_hook.rb
51
52
  - lib/w2tags/rails_hook.rb
52
53
  - lib/w2tags/sinatra_hook.rb
54
+ - lib/w2tags/block/block_hot.rb
53
55
  - lib/w2tags/block/plain_text.rb
54
56
  - lib/w2tags/block/remark.rb
55
57
  - lib/w2tags/block/sass.rb
56
58
  - hot/erb.hot
59
+ - hot/erb_base.hot
57
60
  - hot/erb_form.hot
58
61
  - hot/erb_head.hot
59
62
  - hot/erb_jquery.hot
@@ -84,14 +87,12 @@ files:
84
87
  - tasks/spec.rake
85
88
  - tasks/svn.rake
86
89
  - tasks/test.rake
87
- - example
88
90
  - example/common.hot
89
91
  - example/rails_basic.hot
90
92
  - example/from_readme.erb
91
93
  - example/from_readme.w2erb
92
94
  - example/from_w2tags.erb
93
95
  - example/from_w2tags.w2erb
94
- - test
95
96
  - test/parser_test.rb
96
97
  - test/w2tags_form.rb
97
98
  - test/w2tags_hot.rb
@@ -103,31 +104,28 @@ files:
103
104
  - test/feature.hot
104
105
  - test/tricky.hot
105
106
  - test/vars.hot
106
- - plugins
107
- - plugins\w2tags
108
- - plugins\w2tags\generators
109
- - plugins\w2tags\install.rb
110
- - plugins\w2tags\README
111
- - plugins\w2tags\generators\w2scaffold
112
- - plugins\w2tags\generators\w2scaffold\templates
113
- - plugins\w2tags\generators\w2scaffold\USAGE
114
- - plugins\w2tags\generators\w2scaffold\w2scaffold_generator.rb
115
- - plugins\w2tags\generators\w2scaffold\templates\controller.rb
116
- - plugins\w2tags\generators\w2scaffold\templates\functional_test.rb
117
- - plugins\w2tags\generators\w2scaffold\templates\helper.rb
118
- - plugins\w2tags\generators\w2scaffold\templates\helper_test.rb
119
- - plugins\w2tags\generators\w2scaffold\templates\layout.html.erb
120
- - plugins\w2tags\generators\w2scaffold\templates\style.css
121
- - plugins\w2tags\generators\w2scaffold\templates\view_edit.html.erb
122
- - plugins\w2tags\generators\w2scaffold\templates\view_edit.html.w2erb
123
- - plugins\w2tags\generators\w2scaffold\templates\view_index.html.erb
124
- - plugins\w2tags\generators\w2scaffold\templates\view_index.html.w2erb
125
- - plugins\w2tags\generators\w2scaffold\templates\view_new.html.erb
126
- - plugins\w2tags\generators\w2scaffold\templates\view_new.html.w2erb
127
- - plugins\w2tags\generators\w2scaffold\templates\view_show.html.erb
128
- - plugins\w2tags\generators\w2scaffold\templates\view_show.html.w2erb
107
+ - plugins/w2tags/install.rb
108
+ - plugins/w2tags/README
109
+ - plugins/w2tags/generators/w2scaffold/USAGE
110
+ - plugins/w2tags/generators/w2scaffold/w2scaffold_generator.rb
111
+ - plugins/w2tags/generators/w2scaffold/templates/controller.rb
112
+ - plugins/w2tags/generators/w2scaffold/templates/functional_test.rb
113
+ - plugins/w2tags/generators/w2scaffold/templates/helper.rb
114
+ - plugins/w2tags/generators/w2scaffold/templates/helper_test.rb
115
+ - plugins/w2tags/generators/w2scaffold/templates/layout.html.erb
116
+ - plugins/w2tags/generators/w2scaffold/templates/style.css
117
+ - plugins/w2tags/generators/w2scaffold/templates/view_edit.html.erb
118
+ - plugins/w2tags/generators/w2scaffold/templates/view_edit.html.w2erb
119
+ - plugins/w2tags/generators/w2scaffold/templates/view_index.html.erb
120
+ - plugins/w2tags/generators/w2scaffold/templates/view_index.html.w2erb
121
+ - plugins/w2tags/generators/w2scaffold/templates/view_new.html.erb
122
+ - plugins/w2tags/generators/w2scaffold/templates/view_new.html.w2erb
123
+ - plugins/w2tags/generators/w2scaffold/templates/view_show.html.erb
124
+ - plugins/w2tags/generators/w2scaffold/templates/view_show.html.w2erb
129
125
  has_rdoc: true
130
- homepage: w2tags.rubyforge.org
126
+ homepage: http://w2tags.rubyforge.org
127
+ licenses: []
128
+
131
129
  post_install_message:
132
130
  rdoc_options:
133
131
  - --line-numbers
@@ -155,9 +153,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
153
  requirements: []
156
154
 
157
155
  rubyforge_project: w2tags
158
- rubygems_version: 1.3.1
156
+ rubygems_version: 1.3.4
159
157
  signing_key:
160
- specification_version: 2
158
+ specification_version: 3
161
159
  summary: Its Way to Tags
162
160
  test_files: []
163
161