nanoc 4.0.0b2 → 4.0.0b3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (255) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +11 -22
  3. data/NEWS.md +20 -0
  4. data/Rakefile +0 -2
  5. data/bin/nanoc +0 -2
  6. data/lib/nanoc.rb +0 -2
  7. data/lib/nanoc/base.rb +1 -2
  8. data/lib/nanoc/base/checksummer.rb +0 -2
  9. data/lib/nanoc/base/compilation/checksum_store.rb +0 -2
  10. data/lib/nanoc/base/compilation/compiled_content_cache.rb +0 -2
  11. data/lib/nanoc/base/compilation/compiler.rb +0 -2
  12. data/lib/nanoc/base/compilation/compiler_dsl.rb +0 -2
  13. data/lib/nanoc/base/compilation/dependency_tracker.rb +0 -2
  14. data/lib/nanoc/base/compilation/filter.rb +0 -2
  15. data/lib/nanoc/base/compilation/item_rep_proxy.rb +0 -2
  16. data/lib/nanoc/base/compilation/item_rep_recorder_proxy.rb +0 -2
  17. data/lib/nanoc/base/compilation/outdatedness_checker.rb +0 -2
  18. data/lib/nanoc/base/compilation/outdatedness_reasons.rb +0 -2
  19. data/lib/nanoc/base/compilation/rule.rb +0 -2
  20. data/lib/nanoc/base/compilation/rule_context.rb +0 -2
  21. data/lib/nanoc/base/compilation/rule_memory_calculator.rb +0 -2
  22. data/lib/nanoc/base/compilation/rule_memory_store.rb +0 -2
  23. data/lib/nanoc/base/compilation/rules_collection.rb +0 -2
  24. data/lib/nanoc/base/context.rb +0 -2
  25. data/lib/nanoc/base/core_ext.rb +0 -2
  26. data/lib/nanoc/base/core_ext/array.rb +0 -2
  27. data/lib/nanoc/base/core_ext/hash.rb +0 -2
  28. data/lib/nanoc/base/core_ext/pathname.rb +0 -2
  29. data/lib/nanoc/base/core_ext/string.rb +0 -2
  30. data/lib/nanoc/base/directed_graph.rb +0 -2
  31. data/lib/nanoc/base/error.rb +0 -2
  32. data/lib/nanoc/base/errors.rb +0 -2
  33. data/lib/nanoc/base/identifiable_collection.rb +0 -2
  34. data/lib/nanoc/base/memoization.rb +0 -2
  35. data/lib/nanoc/base/notification_center.rb +0 -2
  36. data/lib/nanoc/base/pattern.rb +0 -2
  37. data/lib/nanoc/base/plugin_registry.rb +0 -2
  38. data/lib/nanoc/base/result_data/item_rep.rb +0 -2
  39. data/lib/nanoc/base/source_data/code_snippet.rb +0 -2
  40. data/lib/nanoc/base/source_data/configuration.rb +0 -2
  41. data/lib/nanoc/base/source_data/data_source.rb +0 -2
  42. data/lib/nanoc/base/source_data/identifier.rb +0 -2
  43. data/lib/nanoc/base/source_data/item.rb +0 -2
  44. data/lib/nanoc/base/source_data/layout.rb +0 -2
  45. data/lib/nanoc/base/source_data/site.rb +1 -3
  46. data/lib/nanoc/base/store.rb +0 -2
  47. data/lib/nanoc/base/temp_filename_factory.rb +0 -2
  48. data/lib/nanoc/base/views/config.rb +0 -2
  49. data/lib/nanoc/base/views/identifiable_collection.rb +0 -2
  50. data/lib/nanoc/base/views/item.rb +3 -5
  51. data/lib/nanoc/base/views/item_collection.rb +0 -2
  52. data/lib/nanoc/base/views/item_rep.rb +0 -2
  53. data/lib/nanoc/base/views/item_rep_collection.rb +48 -0
  54. data/lib/nanoc/base/views/layout.rb +0 -2
  55. data/lib/nanoc/base/views/layout_collection.rb +0 -2
  56. data/lib/nanoc/base/views/mutable_config.rb +0 -2
  57. data/lib/nanoc/base/views/mutable_identifiable_collection.rb +0 -2
  58. data/lib/nanoc/base/views/mutable_item.rb +0 -2
  59. data/lib/nanoc/base/views/mutable_item_collection.rb +0 -2
  60. data/lib/nanoc/base/views/mutable_layout.rb +0 -2
  61. data/lib/nanoc/base/views/mutable_layout_collection.rb +0 -2
  62. data/lib/nanoc/base/views/site.rb +0 -2
  63. data/lib/nanoc/cli.rb +0 -2
  64. data/lib/nanoc/cli/ansi_string_colorizer.rb +0 -2
  65. data/lib/nanoc/cli/cleaning_stream.rb +0 -2
  66. data/lib/nanoc/cli/command_runner.rb +0 -2
  67. data/lib/nanoc/cli/commands/check.rb +0 -2
  68. data/lib/nanoc/cli/commands/compile.rb +0 -2
  69. data/lib/nanoc/cli/commands/create-site.rb +7 -25
  70. data/lib/nanoc/cli/commands/deploy.rb +0 -2
  71. data/lib/nanoc/cli/commands/nanoc.rb +0 -2
  72. data/lib/nanoc/cli/commands/prune.rb +0 -2
  73. data/lib/nanoc/cli/commands/shell.rb +0 -2
  74. data/lib/nanoc/cli/commands/show-data.rb +0 -2
  75. data/lib/nanoc/cli/commands/show-plugins.rb +0 -2
  76. data/lib/nanoc/cli/commands/show-rules.rb +0 -2
  77. data/lib/nanoc/cli/commands/view.rb +0 -2
  78. data/lib/nanoc/cli/error_handler.rb +0 -2
  79. data/lib/nanoc/cli/logger.rb +0 -2
  80. data/lib/nanoc/cli/stream_cleaners.rb +0 -2
  81. data/lib/nanoc/cli/stream_cleaners/abstract.rb +0 -2
  82. data/lib/nanoc/cli/stream_cleaners/ansi_colors.rb +0 -2
  83. data/lib/nanoc/cli/stream_cleaners/utf8.rb +0 -2
  84. data/lib/nanoc/data_sources.rb +1 -5
  85. data/lib/nanoc/data_sources/filesystem.rb +2 -2
  86. data/lib/nanoc/data_sources/filesystem_unified.rb +0 -2
  87. data/lib/nanoc/extra.rb +0 -2
  88. data/lib/nanoc/extra/checking.rb +0 -2
  89. data/lib/nanoc/extra/checking/check.rb +23 -15
  90. data/lib/nanoc/extra/checking/checks.rb +0 -2
  91. data/lib/nanoc/extra/checking/checks/css.rb +1 -3
  92. data/lib/nanoc/extra/checking/checks/external_links.rb +0 -2
  93. data/lib/nanoc/extra/checking/checks/html.rb +1 -3
  94. data/lib/nanoc/extra/checking/checks/internal_links.rb +3 -5
  95. data/lib/nanoc/extra/checking/checks/mixed_content.rb +0 -2
  96. data/lib/nanoc/extra/checking/checks/stale.rb +2 -4
  97. data/lib/nanoc/extra/checking/dsl.rb +0 -2
  98. data/lib/nanoc/extra/checking/issue.rb +0 -2
  99. data/lib/nanoc/extra/checking/runner.rb +1 -3
  100. data/lib/nanoc/extra/core_ext.rb +0 -2
  101. data/lib/nanoc/extra/core_ext/pathname.rb +0 -2
  102. data/lib/nanoc/extra/core_ext/time.rb +0 -2
  103. data/lib/nanoc/extra/deployer.rb +0 -2
  104. data/lib/nanoc/extra/deployers.rb +0 -2
  105. data/lib/nanoc/extra/deployers/fog.rb +40 -8
  106. data/lib/nanoc/extra/deployers/rsync.rb +0 -2
  107. data/lib/nanoc/extra/filesystem_tools.rb +0 -2
  108. data/lib/nanoc/extra/jruby_nokogiri_warner.rb +0 -2
  109. data/lib/nanoc/extra/link_collector.rb +0 -2
  110. data/lib/nanoc/extra/piper.rb +0 -2
  111. data/lib/nanoc/extra/pruner.rb +0 -2
  112. data/lib/nanoc/filters.rb +0 -2
  113. data/lib/nanoc/filters/asciidoc.rb +0 -2
  114. data/lib/nanoc/filters/bluecloth.rb +0 -2
  115. data/lib/nanoc/filters/coffeescript.rb +0 -2
  116. data/lib/nanoc/filters/colorize_syntax.rb +0 -2
  117. data/lib/nanoc/filters/erb.rb +0 -2
  118. data/lib/nanoc/filters/erubis.rb +0 -2
  119. data/lib/nanoc/filters/haml.rb +0 -2
  120. data/lib/nanoc/filters/handlebars.rb +0 -2
  121. data/lib/nanoc/filters/kramdown.rb +0 -2
  122. data/lib/nanoc/filters/less.rb +0 -2
  123. data/lib/nanoc/filters/markaby.rb +0 -2
  124. data/lib/nanoc/filters/maruku.rb +0 -2
  125. data/lib/nanoc/filters/mustache.rb +0 -2
  126. data/lib/nanoc/filters/pandoc.rb +0 -2
  127. data/lib/nanoc/filters/rainpress.rb +0 -2
  128. data/lib/nanoc/filters/rdiscount.rb +0 -2
  129. data/lib/nanoc/filters/rdoc.rb +0 -2
  130. data/lib/nanoc/filters/redcarpet.rb +0 -2
  131. data/lib/nanoc/filters/redcloth.rb +0 -2
  132. data/lib/nanoc/filters/relativize_paths.rb +0 -2
  133. data/lib/nanoc/filters/rubypants.rb +0 -2
  134. data/lib/nanoc/filters/sass.rb +0 -2
  135. data/lib/nanoc/filters/sass/sass_filesystem_importer.rb +0 -2
  136. data/lib/nanoc/filters/slim.rb +0 -2
  137. data/lib/nanoc/filters/typogruby.rb +0 -2
  138. data/lib/nanoc/filters/uglify_js.rb +0 -2
  139. data/lib/nanoc/filters/xsl.rb +0 -2
  140. data/lib/nanoc/filters/yui_compressor.rb +0 -2
  141. data/lib/nanoc/helpers.rb +0 -2
  142. data/lib/nanoc/helpers/blogging.rb +0 -2
  143. data/lib/nanoc/helpers/breadcrumbs.rb +0 -2
  144. data/lib/nanoc/helpers/capturing.rb +0 -2
  145. data/lib/nanoc/helpers/filtering.rb +0 -2
  146. data/lib/nanoc/helpers/html_escape.rb +0 -2
  147. data/lib/nanoc/helpers/link_to.rb +0 -2
  148. data/lib/nanoc/helpers/rendering.rb +0 -2
  149. data/lib/nanoc/helpers/tagging.rb +0 -2
  150. data/lib/nanoc/helpers/text.rb +0 -2
  151. data/lib/nanoc/helpers/xml_sitemap.rb +0 -2
  152. data/lib/nanoc/version.rb +1 -3
  153. data/nanoc.gemspec +1 -3
  154. data/tasks/doc.rake +0 -2
  155. data/tasks/test.rake +0 -2
  156. data/test/base/checksummer_spec.rb +0 -2
  157. data/test/base/core_ext/array_spec.rb +0 -2
  158. data/test/base/core_ext/hash_spec.rb +0 -2
  159. data/test/base/core_ext/pathname_spec.rb +0 -2
  160. data/test/base/core_ext/string_spec.rb +0 -2
  161. data/test/base/temp_filename_factory_spec.rb +0 -2
  162. data/test/base/test_checksum_store.rb +0 -2
  163. data/test/base/test_code_snippet.rb +0 -2
  164. data/test/base/test_compiler.rb +0 -2
  165. data/test/base/test_compiler_dsl.rb +1 -3
  166. data/test/base/test_context.rb +0 -2
  167. data/test/base/test_data_source.rb +0 -2
  168. data/test/base/test_dependency_tracker.rb +0 -2
  169. data/test/base/test_directed_graph.rb +0 -2
  170. data/test/base/test_filter.rb +0 -2
  171. data/test/base/test_item.rb +0 -2
  172. data/test/base/test_item_array.rb +0 -2
  173. data/test/base/test_item_rep.rb +0 -2
  174. data/test/base/test_item_rep_recorder_proxy.rb +0 -2
  175. data/test/base/test_layout.rb +0 -2
  176. data/test/base/test_memoization.rb +0 -2
  177. data/test/base/test_notification_center.rb +0 -2
  178. data/test/base/test_outdatedness_checker.rb +1 -3
  179. data/test/base/test_plugin.rb +0 -2
  180. data/test/base/test_rule.rb +0 -2
  181. data/test/base/test_rule_context.rb +0 -2
  182. data/test/base/test_site.rb +1 -3
  183. data/test/base/test_store.rb +0 -2
  184. data/test/cli/commands/test_check.rb +0 -2
  185. data/test/cli/commands/test_compile.rb +0 -2
  186. data/test/cli/commands/test_create_site.rb +1 -3
  187. data/test/cli/commands/test_deploy.rb +0 -2
  188. data/test/cli/commands/test_help.rb +0 -2
  189. data/test/cli/commands/test_info.rb +0 -2
  190. data/test/cli/commands/test_prune.rb +2 -4
  191. data/test/cli/test_cleaning_stream.rb +0 -2
  192. data/test/cli/test_cli.rb +0 -6
  193. data/test/cli/test_error_handler.rb +0 -2
  194. data/test/cli/test_logger.rb +0 -2
  195. data/test/data_sources/test_filesystem.rb +0 -2
  196. data/test/data_sources/test_filesystem_unified.rb +15 -2
  197. data/test/extra/checking/checks/test_css.rb +3 -5
  198. data/test/extra/checking/checks/test_external_links.rb +5 -7
  199. data/test/extra/checking/checks/test_html.rb +2 -4
  200. data/test/extra/checking/checks/test_internal_links.rb +5 -7
  201. data/test/extra/checking/checks/test_mixed_content.rb +8 -10
  202. data/test/extra/checking/checks/test_stale.rb +1 -3
  203. data/test/extra/checking/test_check.rb +2 -6
  204. data/test/extra/checking/test_dsl.rb +0 -2
  205. data/test/extra/checking/test_runner.rb +0 -2
  206. data/test/extra/core_ext/test_pathname.rb +0 -2
  207. data/test/extra/core_ext/test_time.rb +0 -2
  208. data/test/extra/deployers/test_fog.rb +147 -2
  209. data/test/extra/deployers/test_rsync.rb +0 -2
  210. data/test/extra/test_filesystem_tools.rb +0 -2
  211. data/test/extra/test_link_collector.rb +0 -2
  212. data/test/extra/test_piper.rb +0 -2
  213. data/test/filters/test_asciidoc.rb +0 -2
  214. data/test/filters/test_bluecloth.rb +0 -2
  215. data/test/filters/test_coffeescript.rb +0 -2
  216. data/test/filters/test_colorize_syntax.rb +0 -2
  217. data/test/filters/test_erb.rb +0 -2
  218. data/test/filters/test_erubis.rb +0 -2
  219. data/test/filters/test_haml.rb +0 -2
  220. data/test/filters/test_handlebars.rb +0 -2
  221. data/test/filters/test_kramdown.rb +0 -2
  222. data/test/filters/test_less.rb +0 -2
  223. data/test/filters/test_markaby.rb +0 -2
  224. data/test/filters/test_maruku.rb +0 -2
  225. data/test/filters/test_mustache.rb +0 -2
  226. data/test/filters/test_pandoc.rb +0 -2
  227. data/test/filters/test_rainpress.rb +0 -2
  228. data/test/filters/test_rdiscount.rb +0 -2
  229. data/test/filters/test_rdoc.rb +0 -2
  230. data/test/filters/test_redcarpet.rb +0 -2
  231. data/test/filters/test_redcloth.rb +0 -2
  232. data/test/filters/test_relativize_paths.rb +0 -2
  233. data/test/filters/test_rubypants.rb +0 -2
  234. data/test/filters/test_sass.rb +0 -2
  235. data/test/filters/test_slim.rb +0 -2
  236. data/test/filters/test_typogruby.rb +0 -2
  237. data/test/filters/test_uglify_js.rb +0 -2
  238. data/test/filters/test_xsl.rb +0 -2
  239. data/test/filters/test_yui_compressor.rb +0 -2
  240. data/test/gem_loader.rb +0 -2
  241. data/test/helper.rb +1 -3
  242. data/test/helpers/test_blogging.rb +0 -2
  243. data/test/helpers/test_breadcrumbs.rb +0 -2
  244. data/test/helpers/test_capturing.rb +0 -2
  245. data/test/helpers/test_filtering.rb +0 -2
  246. data/test/helpers/test_html_escape.rb +0 -2
  247. data/test/helpers/test_link_to.rb +0 -2
  248. data/test/helpers/test_rendering.rb +0 -2
  249. data/test/helpers/test_tagging.rb +0 -2
  250. data/test/helpers/test_text.rb +0 -2
  251. data/test/helpers/test_xml_sitemap.rb +0 -2
  252. data/test/test_gem.rb +0 -5
  253. metadata +5 -6
  254. data/lib/nanoc/data_sources/filesystem_verbose.rb +0 -71
  255. data/test/data_sources/test_filesystem_verbose.rb +0 -308
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Extra::Deployers::FogTest < Nanoc::TestCase
4
2
  def test_run
5
3
  if_have 'fog' do
@@ -128,4 +126,151 @@ class Nanoc::Extra::Deployers::FogTest < Nanoc::TestCase
128
126
  assert_equal 'I am a dog!', File.read('mylocalcloud/mybucket/bark')
129
127
  end
130
128
  end
129
+
130
+ def test_upload
131
+ if_have 'fog' do
132
+ fog = Nanoc::Extra::Deployers::Fog.new(
133
+ 'output/', provider: 'aws')
134
+
135
+ key_old = '__old'
136
+ key_same = '__same'
137
+ key_new = '__new'
138
+
139
+ File.write(key_same, 'hallo')
140
+ File.write(key_new, 'hallo new')
141
+
142
+ etags = {
143
+ key_same => '598d4c200461b81522a3328565c25f7c',
144
+ key_new => '598d4c200461b81522a3328565c25f7c',
145
+ }
146
+
147
+ keys_to_destroy = [key_old, key_same, key_new]
148
+ keys_to_invalidate = []
149
+
150
+ s3_files = mock
151
+ s3_files.stubs(:create)
152
+ s3_directory = mock
153
+ s3_directory.stubs(:files).returns(s3_files)
154
+
155
+ # key_same
156
+ refute fog.send(:needs_upload?, key_same, key_same, etags)
157
+ fog.send(
158
+ :upload, key_same, key_same, etags, keys_to_destroy, keys_to_invalidate, s3_directory)
159
+
160
+ assert_equal([key_old, key_new], keys_to_destroy)
161
+ assert_equal([], keys_to_invalidate)
162
+
163
+ # key_new
164
+ assert fog.send(:needs_upload?, key_new, key_new, etags)
165
+ fog.send(
166
+ :upload, key_new, key_new, etags, keys_to_destroy, keys_to_invalidate, s3_directory)
167
+
168
+ assert_equal([key_old], keys_to_destroy)
169
+ assert_equal([key_new], keys_to_invalidate)
170
+ end
171
+ end
172
+
173
+ def test_read_etags_with_local_provider
174
+ if_have 'fog' do
175
+ fog = Nanoc::Extra::Deployers::Fog.new(
176
+ 'output/', provider: 'local')
177
+
178
+ files = [
179
+ mock('file_a'),
180
+ mock('file_b'),
181
+ ]
182
+
183
+ assert_equal({}, fog.send(:read_etags, files))
184
+ end
185
+ end
186
+
187
+ def test_read_etags_with_aws_provider
188
+ if_have 'fog' do
189
+ fog = Nanoc::Extra::Deployers::Fog.new(
190
+ 'output/', provider: 'aws')
191
+
192
+ files = [
193
+ mock('file_a', key: 'key_a', etag: 'etag_a'),
194
+ mock('file_b', key: 'key_b', etag: 'etag_b'),
195
+ ]
196
+
197
+ expected = {
198
+ 'key_a' => 'etag_a',
199
+ 'key_b' => 'etag_b',
200
+ }
201
+
202
+ assert_equal(expected, fog.send(:read_etags, files))
203
+ end
204
+ end
205
+
206
+ def test_calc_local_etag_with_local_provider
207
+ if_have 'fog' do
208
+ fog = Nanoc::Extra::Deployers::Fog.new(
209
+ 'output/', provider: 'local')
210
+
211
+ file_path = 'blah.tmp'
212
+ File.write(file_path, 'hallo')
213
+
214
+ assert_nil fog.send(:calc_local_etag, file_path)
215
+ end
216
+ end
217
+
218
+ def test_calc_local_etag_with_aws_provider
219
+ if_have 'fog' do
220
+ fog = Nanoc::Extra::Deployers::Fog.new(
221
+ 'output/', provider: 'aws')
222
+
223
+ file_path = 'blah.tmp'
224
+ File.write(file_path, 'hallo')
225
+
226
+ assert_equal(
227
+ '598d4c200461b81522a3328565c25f7c',
228
+ fog.send(:calc_local_etag, file_path))
229
+ end
230
+ end
231
+
232
+ def test_needs_upload_with_missing_remote_etag
233
+ if_have 'fog' do
234
+ fog = Nanoc::Extra::Deployers::Fog.new(
235
+ 'output/', provider: 'aws')
236
+
237
+ file_path = 'blah.tmp'
238
+ File.write(file_path, 'hallo')
239
+
240
+ key = 'some_key'
241
+ etags = {}
242
+
243
+ assert fog.send(:needs_upload?, key, file_path, etags)
244
+ end
245
+ end
246
+
247
+ def test_needs_upload_with_different_etags
248
+ if_have 'fog' do
249
+ fog = Nanoc::Extra::Deployers::Fog.new(
250
+ 'output/', provider: 'aws')
251
+
252
+ file_path = 'blah.tmp'
253
+ File.write(file_path, 'hallo')
254
+
255
+ key = 'some_key'
256
+ etags = { key => 'some_etag' }
257
+
258
+ assert fog.send(:needs_upload?, key, file_path, etags)
259
+ end
260
+ end
261
+
262
+ def test_needs_upload_with_identical_etags
263
+ if_have 'fog' do
264
+ fog = Nanoc::Extra::Deployers::Fog.new(
265
+ 'output/', provider: 'aws')
266
+
267
+ file_path = 'blah.tmp'
268
+ File.write(file_path, 'hallo')
269
+
270
+ key = 'some_key'
271
+ etags = { key => '598d4c200461b81522a3328565c25f7c' }
272
+
273
+ refute fog.send(:needs_upload?, key, file_path, etags)
274
+ end
275
+ end
131
276
  end
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Extra::Deployers::RsyncTest < Nanoc::TestCase
4
2
  def test_run_without_dst
5
3
  # Create deployer
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Extra::FilesystemToolsTest < Nanoc::TestCase
4
2
  def setup
5
3
  super
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Extra::LinkCollectorTest < Nanoc::TestCase
4
2
  def test_all
5
3
  # Create dummy data
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Extra::PiperTest < Nanoc::TestCase
4
2
  def test_basic
5
3
  stdout = StringIO.new
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::AsciiDocTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  skip_unless_have_command 'asciidoc'
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::BlueClothTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'bluecloth' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::CoffeeScriptTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'coffee-script' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::ColorizeSyntaxTest < Nanoc::TestCase
4
2
  CODERAY_PRE = '<div class="CodeRay"><div class="code">'
5
3
  CODERAY_POST = '</div></div>'
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::ERBTest < Nanoc::TestCase
4
2
  def test_filter_with_instance_variable
5
3
  # Create filter
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::ErubisTest < Nanoc::TestCase
4
2
  def test_filter_with_instance_variable
5
3
  if_have 'erubis' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::HamlTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'haml' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::HandlebarsTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'handlebars' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::KramdownTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'kramdown' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::LessTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'less' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::MarkabyTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'markaby' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::MarukuTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'maruku' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::MustacheTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'mustache' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::PandocTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'pandoc-ruby' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::RainpressTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'rainpress' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::RDiscountTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'rdiscount' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::RDocTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  # Get filter
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::RedcarpetTest < Nanoc::TestCase
4
2
  def test_find
5
3
  if_have 'redcarpet' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::RedClothTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'redcloth' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::RelativizePathsTest < Nanoc::TestCase
4
2
  def test_filter_html_with_double_quotes
5
3
  # Create filter with mock item
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::RubyPantsTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'rubypants' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::SassTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'sass' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::SlimTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'slim' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::TypogrubyTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'typogruby' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::UglifyJSTest < Nanoc::TestCase
4
2
  def test_filter
5
3
  if_have 'uglifier' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'tempfile'
4
2
 
5
3
  class Nanoc::Filters::XSLTest < Nanoc::TestCase
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Filters::YUICompressorTest < Nanoc::TestCase
4
2
  def test_filter_javascript
5
3
  if_have 'yuicompressor' do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  begin
4
2
  require 'rubygems'
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  # Set up gem loading (necessary for cri dependency)
4
2
  require File.dirname(__FILE__) + '/gem_loader.rb'
5
3
 
@@ -107,7 +105,7 @@ EOS
107
105
  io << 'string_pattern_type: legacy' << "\n"
108
106
  io << 'data_sources:' << "\n"
109
107
  io << ' -' << "\n"
110
- io << ' type: filesystem_unified' << "\n"
108
+ io << ' type: filesystem' << "\n"
111
109
  io << ' identifier_type: legacy' << "\n"
112
110
  end
113
111
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Helpers::BloggingTest < Nanoc::TestCase
4
2
  include Nanoc::Helpers::Blogging
5
3
  include Nanoc::Helpers::Text
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Helpers::BreadcrumbsTest < Nanoc::TestCase
4
2
  include Nanoc::Helpers::Breadcrumbs
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Helpers::CapturingTest < Nanoc::TestCase
4
2
  include Nanoc::Helpers::Capturing
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Helpers::FilteringTest < Nanoc::TestCase
4
2
  include Nanoc::Helpers::Filtering
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Helpers::HTMLEscapeTest < Nanoc::TestCase
4
2
  include Nanoc::Helpers::HTMLEscape
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Helpers::LinkToTest < Nanoc::TestCase
4
2
  include Nanoc::Helpers::LinkTo
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Helpers::RenderingTest < Nanoc::TestCase
4
2
  include Nanoc::Helpers::Rendering
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  class Nanoc::Helpers::TaggingTest < Nanoc::TestCase
4
2
  include Nanoc::Helpers::Tagging
5
3