moco 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -0
  3. data/README.txt +67 -0
  4. data/Rakefile +15 -0
  5. data/bin/moco +6 -0
  6. data/lib/moco/ansi_escape.rb +37 -0
  7. data/lib/moco/application.rb +109 -0
  8. data/lib/moco/browser.rb +64 -0
  9. data/lib/moco/browser_error.rb +105 -0
  10. data/lib/moco/compile_error.rb +66 -0
  11. data/lib/moco/compiler.rb +151 -0
  12. data/lib/moco/compiler_option.rb +60 -0
  13. data/lib/moco/compiler_register.rb +29 -0
  14. data/lib/moco/compilers/coffee_compiler.rb +70 -0
  15. data/lib/moco/compilers/haml_compiler.rb +21 -0
  16. data/lib/moco/compilers/less_compiler.rb +15 -0
  17. data/lib/moco/compilers/markdown_compiler.rb +139 -0
  18. data/lib/moco/compilers/sass_compiler.rb +25 -0
  19. data/lib/moco/file_util.rb +54 -0
  20. data/lib/moco/log.rb +108 -0
  21. data/lib/moco/monitor.rb +83 -0
  22. data/lib/moco/options.rb +336 -0
  23. data/lib/moco/source_map.rb +22 -0
  24. data/lib/moco/support/error/error.css +22 -0
  25. data/lib/moco/support/error/error.html +7 -0
  26. data/lib/moco/support/error/error.js +58 -0
  27. data/lib/moco/support/reload.scpt +0 -0
  28. data/lib/moco.rb +44 -0
  29. data/moco.gemspec +35 -0
  30. data/moco.rb +35 -0
  31. data/src/error/error.coffee +49 -0
  32. data/src/reload.applescript +135 -0
  33. data/test/ansi_escape_test.rb +52 -0
  34. data/test/application_test.rb +40 -0
  35. data/test/browser_error_test.rb +101 -0
  36. data/test/browser_test.rb +29 -0
  37. data/test/compile_error_test.rb +82 -0
  38. data/test/compiler_option_test.rb +121 -0
  39. data/test/compiler_register_test.rb +41 -0
  40. data/test/compiler_test.rb +243 -0
  41. data/test/compilers/coffee_compiler_test.rb +117 -0
  42. data/test/compilers/haml_compiler_test.rb +86 -0
  43. data/test/compilers/less_compiler_test.rb +72 -0
  44. data/test/compilers/markdown_compiler_test.rb +211 -0
  45. data/test/compilers/sass_compiler_test.rb +84 -0
  46. data/test/file_util_test.rb +37 -0
  47. data/test/fixtures/_color.scss +1 -0
  48. data/test/fixtures/color.less +1 -0
  49. data/test/fixtures/css_lib.rb +2 -0
  50. data/test/fixtures/html_lib.rb +2 -0
  51. data/test/fixtures/js_lib.rb +2 -0
  52. data/test/fixtures/layout.html +13 -0
  53. data/test/fixtures/moco.rb +8 -0
  54. data/test/fixtures/options_lib.rb +2 -0
  55. data/test/fixtures/source.txt +1 -0
  56. data/test/monitor_test.rb +68 -0
  57. data/test/options_test.rb +177 -0
  58. data/test/test_helper.rb +57 -0
  59. metadata +270 -0
metadata ADDED
@@ -0,0 +1,270 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: moco
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - AS Harbitz
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-11-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rb-fsevent
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '0.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '4.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: coffee-script-source
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: 1.6.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: 1.6.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: runjs
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: haml
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: less
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: therubyracer
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: redcarpet
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pygments.rb
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sass
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: MoCo monitors web templates. On updates the templates are compiled and
154
+ the browser reloaded. MoCo currently supports CoffeeScript, Sass, LESS, Markdown
155
+ and Haml. Mac OS X only.
156
+ email: asharbitz@gmail.com
157
+ executables:
158
+ - moco
159
+ extensions: []
160
+ extra_rdoc_files: []
161
+ files:
162
+ - LICENSE
163
+ - moco.gemspec
164
+ - moco.rb
165
+ - Rakefile
166
+ - README.txt
167
+ - lib/moco/ansi_escape.rb
168
+ - lib/moco/application.rb
169
+ - lib/moco/browser.rb
170
+ - lib/moco/browser_error.rb
171
+ - lib/moco/compile_error.rb
172
+ - lib/moco/compiler.rb
173
+ - lib/moco/compiler_option.rb
174
+ - lib/moco/compiler_register.rb
175
+ - lib/moco/compilers/coffee_compiler.rb
176
+ - lib/moco/compilers/haml_compiler.rb
177
+ - lib/moco/compilers/less_compiler.rb
178
+ - lib/moco/compilers/markdown_compiler.rb
179
+ - lib/moco/compilers/sass_compiler.rb
180
+ - lib/moco/file_util.rb
181
+ - lib/moco/log.rb
182
+ - lib/moco/monitor.rb
183
+ - lib/moco/options.rb
184
+ - lib/moco/source_map.rb
185
+ - lib/moco/support/error/error.css
186
+ - lib/moco/support/error/error.html
187
+ - lib/moco/support/error/error.js
188
+ - lib/moco/support/reload.scpt
189
+ - lib/moco.rb
190
+ - src/error/error.coffee
191
+ - src/reload.applescript
192
+ - test/ansi_escape_test.rb
193
+ - test/application_test.rb
194
+ - test/browser_error_test.rb
195
+ - test/browser_test.rb
196
+ - test/compile_error_test.rb
197
+ - test/compiler_option_test.rb
198
+ - test/compiler_register_test.rb
199
+ - test/compiler_test.rb
200
+ - test/compilers/coffee_compiler_test.rb
201
+ - test/compilers/haml_compiler_test.rb
202
+ - test/compilers/less_compiler_test.rb
203
+ - test/compilers/markdown_compiler_test.rb
204
+ - test/compilers/sass_compiler_test.rb
205
+ - test/file_util_test.rb
206
+ - test/fixtures/_color.scss
207
+ - test/fixtures/color.less
208
+ - test/fixtures/css_lib.rb
209
+ - test/fixtures/html_lib.rb
210
+ - test/fixtures/js_lib.rb
211
+ - test/fixtures/layout.html
212
+ - test/fixtures/moco.rb
213
+ - test/fixtures/options_lib.rb
214
+ - test/fixtures/source.txt
215
+ - test/monitor_test.rb
216
+ - test/options_test.rb
217
+ - test/test_helper.rb
218
+ - bin/moco
219
+ homepage: https://github.com/asharbitz/moco
220
+ licenses:
221
+ - MIT
222
+ metadata: {}
223
+ post_install_message:
224
+ rdoc_options: []
225
+ require_paths:
226
+ - lib
227
+ required_ruby_version: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - '>='
230
+ - !ruby/object:Gem::Version
231
+ version: 1.8.7
232
+ required_rubygems_version: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - '>='
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ requirements:
238
+ - Mac OS X
239
+ rubyforge_project:
240
+ rubygems_version: 2.0.3
241
+ signing_key:
242
+ specification_version: 4
243
+ summary: Monitors and compiles web templates. Reloads the browser.
244
+ test_files:
245
+ - test/ansi_escape_test.rb
246
+ - test/application_test.rb
247
+ - test/browser_error_test.rb
248
+ - test/browser_test.rb
249
+ - test/compile_error_test.rb
250
+ - test/compiler_option_test.rb
251
+ - test/compiler_register_test.rb
252
+ - test/compiler_test.rb
253
+ - test/compilers/coffee_compiler_test.rb
254
+ - test/compilers/haml_compiler_test.rb
255
+ - test/compilers/less_compiler_test.rb
256
+ - test/compilers/markdown_compiler_test.rb
257
+ - test/compilers/sass_compiler_test.rb
258
+ - test/file_util_test.rb
259
+ - test/fixtures/_color.scss
260
+ - test/fixtures/color.less
261
+ - test/fixtures/css_lib.rb
262
+ - test/fixtures/html_lib.rb
263
+ - test/fixtures/js_lib.rb
264
+ - test/fixtures/layout.html
265
+ - test/fixtures/moco.rb
266
+ - test/fixtures/options_lib.rb
267
+ - test/fixtures/source.txt
268
+ - test/monitor_test.rb
269
+ - test/options_test.rb
270
+ - test/test_helper.rb