octopress-ink 1.0.0.rc.11 → 1.0.0.rc.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -1
  4. data/CHANGELOG.md +12 -3
  5. data/assets/docs/creating-a-plugin.markdown +85 -23
  6. data/assets/docs/plugin-reference.markdown +1 -1
  7. data/assets/docs/working-with-plugins.markdown +188 -0
  8. data/lib/octopress-ink.rb +40 -93
  9. data/lib/octopress-ink/assets/asset.rb +8 -10
  10. data/lib/octopress-ink/assets/doc_page.rb +3 -6
  11. data/lib/octopress-ink/assets/file.rb +2 -2
  12. data/lib/octopress-ink/assets/layout.rb +1 -1
  13. data/lib/octopress-ink/assets/page.rb +17 -4
  14. data/lib/octopress-ink/assets/sass.rb +1 -1
  15. data/lib/octopress-ink/commands/helpers.rb +1 -1
  16. data/lib/octopress-ink/commands/list.rb +1 -1
  17. data/lib/octopress-ink/commands/new.rb +1 -4
  18. data/lib/octopress-ink/configuration.rb +10 -27
  19. data/lib/octopress-ink/jekyll/hooks.rb +23 -149
  20. data/lib/octopress-ink/jekyll/page.rb +12 -0
  21. data/lib/octopress-ink/plugin.rb +1 -1
  22. data/lib/octopress-ink/plugin_asset_pipeline.rb +4 -5
  23. data/lib/octopress-ink/plugins.rb +5 -5
  24. data/lib/octopress-ink/tags.rb +0 -11
  25. data/lib/octopress-ink/version.rb +1 -1
  26. data/octopress-ink.gemspec +7 -5
  27. data/test/.clash.yml +46 -0
  28. data/test/Gemfile +1 -3
  29. data/test/_config.yml +7 -6
  30. data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/awesome-sauce/plugin-media-test.css +0 -0
  31. data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/awesome-sauce/plugin-test.css +0 -0
  32. data/test/_expected/combine_css_false/theme/main.css +2 -0
  33. data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/theme/theme-media-test.css +0 -0
  34. data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/theme/theme-test.css +0 -0
  35. data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/theme/theme-test2.css +0 -0
  36. data/test/{combine_js_false/javascripts → _expected/combine_js_false}/theme/bar.js +0 -0
  37. data/test/{combine_js_false/javascripts → _expected/combine_js_false}/theme/blah.js +0 -0
  38. data/test/{combine_js_false/javascripts → _expected/combine_js_false}/theme/foo.js +0 -0
  39. data/test/{compress_false → _expected/compress_false}/javascripts/all-.js +0 -0
  40. data/test/{compress_false → _expected/compress_false}/stylesheets/all-.css +1 -1
  41. data/test/{compress_false → _expected/compress_false}/stylesheets/print-.css +0 -0
  42. data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/layouts/default.html +0 -0
  43. data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/layouts/test.html +0 -0
  44. data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/pages/disable-test.html +0 -0
  45. data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/pages/four.xml +0 -0
  46. data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/pages/one.xml +0 -0
  47. data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/pages/three.md +1 -1
  48. data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/pages/two.md +0 -0
  49. data/test/{plugins/test-theme → _expected/copy_test}/config.yml +3 -0
  50. data/test/{copy_test/_copy → _expected/copy_test}/files/disabled-file.txt +0 -0
  51. data/test/{copy_test/_copy → _expected/copy_test}/files/favicon.ico +0 -0
  52. data/test/{copy_test/_copy → _expected/copy_test}/files/favicon.png +0 -0
  53. data/test/{copy_test/_copy → _expected/copy_test}/files/test.html +0 -0
  54. data/test/{copy_test/_copy → _expected/copy_test}/fonts/font-one.otf +0 -0
  55. data/test/{copy_test/_copy → _expected/copy_test}/fonts/font-two.ttf +0 -0
  56. data/test/{copy_test/_copy → _expected/copy_test}/includes/bar.html +0 -0
  57. data/test/{copy_test/_copy → _expected/copy_test}/includes/greet.html +0 -0
  58. data/test/{copy_test/_copy → _expected/copy_test}/javascripts/bar.js +0 -0
  59. data/test/{copy_test/_copy → _expected/copy_test}/javascripts/blah.coffee +0 -0
  60. data/test/{copy_test/_copy → _expected/copy_test}/javascripts/disable-this.js +0 -0
  61. data/test/{copy_test/_copy → _expected/copy_test}/javascripts/foo.js +0 -0
  62. data/test/{copy_test/_copy → _expected/copy_test}/layouts/default.html +0 -0
  63. data/test/{copy_test/_copy → _expected/copy_test}/layouts/test.html +0 -0
  64. data/test/{copy_test/_copy → _expected/copy_test}/pages/disable-test.html +0 -0
  65. data/test/{copy_test/_copy → _expected/copy_test}/pages/four.xml +0 -0
  66. data/test/{copy_test/_copy → _expected/copy_test}/pages/one.xml +0 -0
  67. data/test/{copy_test/_copy → _expected/copy_test}/pages/three.md +1 -1
  68. data/test/{copy_test/_copy → _expected/copy_test}/pages/two.md +0 -0
  69. data/test/{copy_test/_copy → _expected/copy_test}/stylesheets/_colors.scss +0 -0
  70. data/test/_expected/copy_test/stylesheets/disable-this.css +1 -0
  71. data/test/{copy_test/_copy → _expected/copy_test}/stylesheets/disable.sass +0 -0
  72. data/test/_expected/copy_test/stylesheets/main.scss +5 -0
  73. data/test/{copy_test/_copy → _expected/copy_test}/stylesheets/theme-media-test@print.css +0 -0
  74. data/test/{copy_test/_copy → _expected/copy_test}/stylesheets/theme-test.css +0 -0
  75. data/test/{copy_test/_copy → _expected/copy_test}/stylesheets/theme-test2.css +0 -0
  76. data/test/{expected → _expected/site}/2014/02/01/test-post.html +0 -0
  77. data/test/{expected → _expected/site}/2014/02/02/test-post-2.html +0 -0
  78. data/test/{expected → _expected/site}/favicon.ico +0 -0
  79. data/test/{expected → _expected/site}/favicon.png +0 -0
  80. data/test/{expected → _expected/site}/four/index.xml +0 -0
  81. data/test/_expected/site/index.html +15 -0
  82. data/test/{expected → _expected/site}/javascripts/all-.js +0 -0
  83. data/test/{expected → _expected/site}/robots.txt +0 -0
  84. data/test/_expected/site/stylesheets/all-.css +1 -0
  85. data/test/{expected → _expected/site}/stylesheets/print-.css +0 -0
  86. data/test/{expected → _expected/site}/test.html +0 -0
  87. data/test/{expected → _expected/site}/test_config/plugin_config.html +0 -0
  88. data/test/{expected → _expected/site}/test_config/theme_config.html +0 -0
  89. data/test/{expected → _expected/site}/test_layouts/local.html +0 -0
  90. data/test/{expected → _expected/site}/test_layouts/plugin_layout.html +0 -0
  91. data/test/{expected → _expected/site}/test_layouts/test_markdown.html +0 -0
  92. data/test/{expected → _expected/site}/test_layouts/theme.html +0 -0
  93. data/test/{expected → _expected/site}/test_layouts/theme_override.html +0 -0
  94. data/test/{expected → _expected/site}/test_pages/feed/index.xml +0 -0
  95. data/test/{expected → _expected/site}/test_pages/plugin_page.html +0 -0
  96. data/test/{expected → _expected/site}/test_pages/plugin_page_override.html +0 -0
  97. data/test/{expected → _expected/site}/test_pages/theme_page.html +0 -0
  98. data/test/_expected/site/test_pages/three.html +13 -0
  99. data/test/{test-plugin-expected → _expected/test-plugin-expected}/.gitignore +0 -0
  100. data/test/{test-plugin-expected → _expected/test-plugin-expected}/Gemfile +0 -0
  101. data/test/{test-plugin-expected → _expected/test-plugin-expected}/LICENSE.txt +0 -0
  102. data/test/{test-plugin-expected → _expected/test-plugin-expected}/README.md +0 -0
  103. data/test/{test-plugin-expected → _expected/test-plugin-expected}/Rakefile +0 -0
  104. data/test/{test-plugin-expected → _expected/test-plugin-expected}/assets/config.yml +0 -0
  105. data/test/_expected/test-plugin-expected/demo/Gemfile +3 -0
  106. data/test/{test-plugin-expected → _expected/test-plugin-expected}/demo/_config.yml +0 -0
  107. data/test/{plugins/awesome-sauce/docs → _expected/test-plugin-expected/demo}/index.html +0 -0
  108. data/test/{test-plugin-expected → _expected/test-plugin-expected}/lib/test-plugin.rb +0 -0
  109. data/test/{test-plugin-expected → _expected/test-plugin-expected}/lib/test-plugin/version.rb +0 -0
  110. data/test/{test-plugin-expected → _expected/test-plugin-expected}/test-plugin.gemspec +0 -0
  111. data/test/{test-theme-expected → _expected/test-theme-expected}/.gitignore +0 -0
  112. data/test/{test-theme-expected → _expected/test-theme-expected}/Gemfile +0 -0
  113. data/test/{test-theme-expected → _expected/test-theme-expected}/LICENSE.txt +0 -0
  114. data/test/{test-theme-expected → _expected/test-theme-expected}/README.md +0 -0
  115. data/test/{test-theme-expected → _expected/test-theme-expected}/Rakefile +0 -0
  116. data/test/{test-theme-expected → _expected/test-theme-expected}/assets/config.yml +0 -0
  117. data/test/_expected/test-theme-expected/demo/Gemfile +3 -0
  118. data/test/{test-theme-expected → _expected/test-theme-expected}/demo/_config.yml +0 -0
  119. data/test/{test-plugin-expected → _expected/test-theme-expected}/demo/index.html +0 -0
  120. data/test/{test-theme-expected → _expected/test-theme-expected}/lib/test-theme.rb +0 -0
  121. data/test/{test-theme-expected → _expected/test-theme-expected}/lib/test-theme/version.rb +0 -0
  122. data/test/{test-theme-expected → _expected/test-theme-expected}/test-theme.gemspec +0 -0
  123. data/test/{uglify_js_false/javascripts → _expected/uglify_js_false}/all-.js +0 -0
  124. data/test/{plugins → _ink_plugins}/awesome-sauce/config.yml +0 -0
  125. data/test/{test-theme-expected/demo → _ink_plugins/awesome-sauce/docs}/index.html +0 -0
  126. data/test/{plugins → _ink_plugins}/awesome-sauce/files/robots.txt +0 -0
  127. data/test/{plugins → _ink_plugins}/awesome-sauce/includes/some-include.html +0 -0
  128. data/test/{plugins → _ink_plugins}/awesome-sauce/layouts/test-layout.html +0 -0
  129. data/test/{plugins → _ink_plugins}/awesome-sauce/pages/a.html +0 -0
  130. data/test/{plugins → _ink_plugins}/awesome-sauce/pages/b.html +0 -0
  131. data/test/{plugins → _ink_plugins}/awesome-sauce/plugin.rb +0 -0
  132. data/test/{plugins → _ink_plugins}/awesome-sauce/stylesheets/plugin-media-test@print.css +0 -0
  133. data/test/{plugins → _ink_plugins}/awesome-sauce/stylesheets/plugin-test.css +0 -0
  134. data/test/{copy_test/_copy → _ink_plugins/test-theme}/config.yml +3 -0
  135. data/test/{plugins → _ink_plugins}/test-theme/files/disabled-file.txt +0 -0
  136. data/test/{plugins → _ink_plugins}/test-theme/files/favicon.ico +0 -0
  137. data/test/{plugins → _ink_plugins}/test-theme/files/favicon.png +0 -0
  138. data/test/{plugins → _ink_plugins}/test-theme/files/test.html +0 -0
  139. data/test/{plugins → _ink_plugins}/test-theme/fonts/font-one.otf +0 -0
  140. data/test/{plugins → _ink_plugins}/test-theme/fonts/font-two.ttf +0 -0
  141. data/test/{plugins → _ink_plugins}/test-theme/includes/bar.html +0 -0
  142. data/test/{plugins → _ink_plugins}/test-theme/includes/greet.html +0 -0
  143. data/test/{plugins → _ink_plugins}/test-theme/javascripts/bar.js +0 -0
  144. data/test/{plugins → _ink_plugins}/test-theme/javascripts/blah.coffee +0 -0
  145. data/test/{plugins → _ink_plugins}/test-theme/javascripts/disable-this.js +0 -0
  146. data/test/{plugins → _ink_plugins}/test-theme/javascripts/foo.js +0 -0
  147. data/test/{plugins → _ink_plugins}/test-theme/layouts/default.html +0 -0
  148. data/test/{plugins → _ink_plugins}/test-theme/layouts/test.html +0 -0
  149. data/test/{plugins → _ink_plugins}/test-theme/pages/disable-test.html +0 -0
  150. data/test/{plugins → _ink_plugins}/test-theme/pages/four.xml +0 -0
  151. data/test/{plugins → _ink_plugins}/test-theme/pages/one.xml +0 -0
  152. data/test/{plugins → _ink_plugins}/test-theme/pages/three.md +1 -1
  153. data/test/{plugins → _ink_plugins}/test-theme/pages/two.md +0 -0
  154. data/test/{plugins → _ink_plugins}/test-theme/plugin.rb +0 -0
  155. data/test/{plugins → _ink_plugins}/test-theme/stylesheets/_colors.scss +0 -0
  156. data/test/_ink_plugins/test-theme/stylesheets/disable-this.css +1 -0
  157. data/test/{plugins → _ink_plugins}/test-theme/stylesheets/disable.sass +0 -0
  158. data/test/_ink_plugins/test-theme/stylesheets/main.scss +5 -0
  159. data/test/{plugins → _ink_plugins}/test-theme/stylesheets/theme-media-test@print.css +0 -0
  160. data/test/{plugins → _ink_plugins}/test-theme/stylesheets/theme-test.css +0 -0
  161. data/test/{plugins → _ink_plugins}/test-theme/stylesheets/theme-test2.css +0 -0
  162. data/test/_templates/page +4 -0
  163. data/test/_templates/post +5 -0
  164. data/test/source/_layouts/local.html +2 -0
  165. data/test/source/_plugins/loader.rb +2 -2
  166. data/test/source/_plugins/theme/stylesheets/_colors.sass +1 -1
  167. data/test/source/index.html +3 -15
  168. metadata +309 -351
  169. data/lib/octopress-ink/filters.rb +0 -111
  170. data/lib/octopress-ink/generators/plugin_assets.rb +0 -13
  171. data/lib/octopress-ink/helpers.rb +0 -10
  172. data/lib/octopress-ink/helpers/conditional.rb +0 -24
  173. data/lib/octopress-ink/helpers/content_for.rb +0 -32
  174. data/lib/octopress-ink/helpers/path.rb +0 -74
  175. data/lib/octopress-ink/helpers/var.rb +0 -105
  176. data/lib/octopress-ink/tags/abort.rb +0 -22
  177. data/lib/octopress-ink/tags/assign.rb +0 -33
  178. data/lib/octopress-ink/tags/capture.rb +0 -38
  179. data/lib/octopress-ink/tags/content_for.rb +0 -24
  180. data/lib/octopress-ink/tags/filter.rb +0 -24
  181. data/lib/octopress-ink/tags/include.rb +0 -53
  182. data/lib/octopress-ink/tags/line_comment.rb +0 -10
  183. data/lib/octopress-ink/tags/render.rb +0 -85
  184. data/lib/octopress-ink/tags/return.rb +0 -19
  185. data/lib/octopress-ink/tags/wrap.rb +0 -81
  186. data/lib/octopress-ink/tags/yield.rb +0 -36
  187. data/lib/octopress-ink/utils.rb +0 -42
  188. data/test/combine_css_false/stylesheets/theme/main.css +0 -2
  189. data/test/copy_test/_copy/stylesheets/disable-this.css +0 -1
  190. data/test/copy_test/_copy/stylesheets/main.scss +0 -5
  191. data/test/expected/index.html +0 -71
  192. data/test/expected/stylesheets/all-.css +0 -1
  193. data/test/expected/test_pages/three.html +0 -1
  194. data/test/expected/test_tags/abort_false.html +0 -1
  195. data/test/expected/test_tags/assign.html +0 -23
  196. data/test/expected/test_tags/capture.html +0 -21
  197. data/test/expected/test_tags/content_for.html +0 -1
  198. data/test/expected/test_tags/filter.html +0 -4
  199. data/test/expected/test_tags/include.html +0 -33
  200. data/test/expected/test_tags/render.html +0 -34
  201. data/test/expected/test_tags/return.html +0 -23
  202. data/test/expected/test_tags/wrap.html +0 -29
  203. data/test/plugins/test-theme/stylesheets/disable-this.css +0 -1
  204. data/test/plugins/test-theme/stylesheets/main.scss +0 -5
  205. data/test/source/.gitignore +0 -1
  206. data/test/source/test_render/_f.html +0 -1
  207. data/test/source/test_render/_var.html +0 -1
  208. data/test/source/test_tags/_test_render.md +0 -4
  209. data/test/source/test_tags/abort_false.html +0 -5
  210. data/test/source/test_tags/abort_posts.html +0 -5
  211. data/test/source/test_tags/abort_true.html +0 -5
  212. data/test/source/test_tags/assign.html +0 -26
  213. data/test/source/test_tags/capture.html +0 -31
  214. data/test/source/test_tags/content_for.html +0 -7
  215. data/test/source/test_tags/filter.html +0 -6
  216. data/test/source/test_tags/include.html +0 -36
  217. data/test/source/test_tags/render.html +0 -36
  218. data/test/source/test_tags/return.html +0 -30
  219. data/test/source/test_tags/wrap.html +0 -32
  220. data/test/test-plugin-expected/demo/Gemfile +0 -6
  221. data/test/test-theme-expected/demo/Gemfile +0 -6
  222. data/test/test.rb +0 -110
  223. data/test/test_suite.rb +0 -161
@@ -131,7 +131,7 @@ module Octopress
131
131
  assets.each { |a| copied << a.copy(path) }
132
132
  end
133
133
 
134
- copied
134
+ copied.compact
135
135
  end
136
136
 
137
137
  # stylesheets should include Sass and CSS
@@ -7,7 +7,7 @@ module Octopress
7
7
  def self.compile_css(content)
8
8
  configs = sass_converter.sass_configs
9
9
  configs[:syntax] = :scss
10
- configs[:style] = :compressed if Ink.config['compress_css']
10
+ configs[:style] = :compressed if Octopress.config['compress_css']
11
11
 
12
12
  Sass.compile(content, configs)
13
13
  end
@@ -36,7 +36,7 @@ module Octopress
36
36
  if @sass_converter
37
37
  @sass_converter
38
38
  else
39
- Ink.site.converters.each do |c|
39
+ Octopress.site.converters.each do |c|
40
40
  @sass_converter = c if c.kind_of?(Jekyll::Converters::Sass)
41
41
  end
42
42
  @sass_converter
@@ -89,7 +89,6 @@ module Octopress
89
89
  css = combine_stylesheets
90
90
  css.keys.each do |media|
91
91
  contents = compile_css(css[media])
92
- contents = AutoprefixerRails.process(contents)
93
92
  write_files(contents, combined_stylesheet_path(media))
94
93
  end
95
94
  end
@@ -157,8 +156,8 @@ module Octopress
157
156
  def self.write_combined_javascript
158
157
  js = combine_javascripts
159
158
  unless js == ''
160
- if Ink.config['compress_js']
161
- settings = Jekyll::Utils.symbolize_hash_keys(Ink.config['uglifier'])
159
+ if Octopress.config['compress_js']
160
+ settings = Jekyll::Utils.symbolize_hash_keys(Octopress.config['uglifier'])
162
161
  js = Uglifier.new(settings).compile(js)
163
162
  end
164
163
  write_files(js, combined_javascript_path)
@@ -128,13 +128,13 @@ module Octopress
128
128
  # Read plugin dir from site configs
129
129
  #
130
130
  def self.custom_dir
131
- Ink.site.config['plugins']
131
+ Octopress.site.config['plugins']
132
132
  end
133
133
 
134
134
  # Copy/Generate Stylesheets
135
135
  #
136
136
  def self.add_stylesheets
137
- if Ink.config['combine_css']
137
+ if Octopress.config['combine_css']
138
138
  PluginAssetPipeline.write_combined_stylesheet
139
139
  else
140
140
  add_assets(%w{css sass})
@@ -144,7 +144,7 @@ module Octopress
144
144
  # Copy/Generate Javascripts
145
145
  #
146
146
  def self.add_javascripts
147
- if Ink.config['combine_js']
147
+ if Octopress.config['combine_js']
148
148
  PluginAssetPipeline.write_combined_javascript
149
149
  else
150
150
  add_assets(%w{js coffee})
@@ -152,7 +152,7 @@ module Octopress
152
152
  end
153
153
 
154
154
  def self.css_tags
155
- if Ink.config['combine_css']
155
+ if Octopress.config['combine_css']
156
156
  PluginAssetPipeline.combined_stylesheet_tag
157
157
  else
158
158
  @css_tags.join('')
@@ -160,7 +160,7 @@ module Octopress
160
160
  end
161
161
 
162
162
  def self.js_tags
163
- if Ink.config['combine_js']
163
+ if Octopress.config['combine_js']
164
164
  PluginAssetPipeline.combined_javascript_tag
165
165
  else
166
166
  @js_tags.join('')
@@ -1,19 +1,8 @@
1
1
  module Octopress
2
2
  module Ink
3
3
  module Tags
4
- autoload :IncludeTag, 'octopress-ink/tags/include'
5
- autoload :AssignTag, 'octopress-ink/tags/assign'
6
- autoload :ReturnTag, 'octopress-ink/tags/return'
7
- autoload :FilterTag, 'octopress-ink/tags/filter'
8
- autoload :RenderTag, 'octopress-ink/tags/render'
9
- autoload :CaptureTag, 'octopress-ink/tags/capture'
10
4
  autoload :JavascriptTag, 'octopress-ink/tags/javascript'
11
5
  autoload :StylesheetTag, 'octopress-ink/tags/stylesheet'
12
- autoload :ContentForTag, 'octopress-ink/tags/content_for'
13
- autoload :YieldTag, 'octopress-ink/tags/yield'
14
- autoload :WrapTag, 'octopress-ink/tags/wrap'
15
- autoload :AbortTag, 'octopress-ink/tags/abort'
16
- autoload :LineCommentTag, 'octopress-ink/tags/line_comment'
17
6
  autoload :DocUrlTag, 'octopress-ink/tags/doc_url'
18
7
  end
19
8
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.11"
3
+ VERSION = "1.0.0.rc.13"
4
4
  end
5
5
  end
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Octopress::Ink::VERSION
9
9
  spec.authors = ["Brandon Mathis"]
10
10
  spec.email = ["brandon@imathis.com"]
11
- spec.description = %q{A starting point for creating gem-based Jekyll themes and plugins}
12
- spec.summary = %q{A starting point for creating gem-based Jekyll themes and plugins}
11
+ spec.description = %q{A framework creating Jekyll/Octopress themes and plugins}
12
+ spec.summary = %q{A framework creating Jekyll/Octopress themes and plugins}
13
13
  spec.homepage = "https://github.com/octopress/ink"
14
14
  spec.license = "MIT"
15
15
 
@@ -20,11 +20,13 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_runtime_dependency "jekyll", "~> 2.0"
22
22
  spec.add_runtime_dependency "uglifier", "~> 2.5"
23
- spec.add_runtime_dependency "autoprefixer-rails", "~> 1.1", ">= 1.1.20140403"
24
- spec.add_runtime_dependency "jekyll-page-hooks", "~> 1.3"
23
+ spec.add_runtime_dependency "octopress-hooks", "~> 2.2"
24
+ spec.add_runtime_dependency "octopress-include-tag", "~> 1.0"
25
+ spec.add_runtime_dependency "octopress-filters", "~> 1.1"
26
+ spec.add_runtime_dependency "octopress"
25
27
 
26
- spec.add_development_dependency "octopress"
27
28
  spec.add_development_dependency "bundler", "~> 1.3"
28
29
  spec.add_development_dependency "rake"
29
30
  spec.add_development_dependency "pry-debugger"
31
+ spec.add_development_dependency "clash"
30
32
  end
data/test/.clash.yml ADDED
@@ -0,0 +1,46 @@
1
+ -
2
+ name: Simple build
3
+ build: true
4
+ -
5
+ name: Compare build
6
+ compare: _expected/site _site
7
+ -
8
+ name: Should build with separate javascript and stylesheet files
9
+ build: true
10
+ config:
11
+ octopress: _combine_false.yml
12
+ compare:
13
+ - _expected/combine_css_false _site/stylesheets
14
+ - _expected/combine_js_false _site/javascripts
15
+ -
16
+ name: Should compress stylesheets and javascripts
17
+ build: true
18
+ config:
19
+ octopress: _compress_false.yml
20
+ compare:
21
+ - _expected/compress_false/stylesheets _site/stylesheets
22
+ - _expected/compress_false/javascripts _site/javascripts
23
+ -
24
+ name: Should copy all theme assets
25
+ before: octopress ink copy theme --path _copy --force
26
+ compare: _expected/copy_test _copy
27
+ after: rm -rf _copy
28
+ -
29
+ name: Should copy only pages and layouts
30
+ before: octopress ink copy theme --layouts --pages --path _copy --force
31
+ compare: _expected/copy_layouts_pages _copy
32
+ after: rm -rf _copy
33
+ -
34
+ name: Should create a plugins scaffold
35
+ before:
36
+ - 'git config user.name > .git-config-user-name'
37
+ - 'git config user.email > .git-config-user-email'
38
+ - 'git config user.name ""'
39
+ - 'git config user.email ""'
40
+ - 'octopress ink new test-theme --theme'
41
+ - 'rm -rf test-theme/.git'
42
+ compare: _expected/test-theme-expected test-theme
43
+ after:
44
+ - 'cat .git-config-user-name | tr -d "\n" | xargs -0 git config user.name'
45
+ - 'cat .git-config-user-email | tr -d "\n" | xargs -0 git config user.email'
46
+ - 'rm -rf test-theme .git-config-user-name .git-config-user-email'
data/test/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "octopress-ink", path: "../"
4
- gem "pry-debugger"
5
- gem "octopress", path: "../../cli"
3
+ gemspec path: "../"
data/test/_config.yml CHANGED
@@ -1,8 +1,9 @@
1
- name: Your New Jekyll Site
2
- markdown: redcarpet
3
- highlighter: pygments
4
- source: source
5
- destination: site
6
1
  include_test: foo.html
7
- render_test: kittens
2
+ exclude:
3
+ - Gemfile*
4
+
5
+ url: http://octopress.org
8
6
  timezone: America/Chicago
7
+ markdown: redcarpet
8
+ name: Your New Jekyll Site
9
+ source: source
@@ -0,0 +1,2 @@
1
+ body {
2
+ background: #bcbcbc; }
@@ -7,7 +7,7 @@ body {
7
7
  color: #444; }
8
8
 
9
9
  body {
10
- background: black; }
10
+ background: #bcbcbc; }
11
11
 
12
12
  /* Plugin: Awesome Sauce */
13
13
  .plugin-widget {
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: default
2
+ layout: theme:default
3
3
  permalink: /test_pages/three.html
4
4
  ---
5
5
 
@@ -1,2 +1,5 @@
1
1
  test: config from theme
2
2
  test_override: also config from theme
3
+
4
+ sass:
5
+ import: colors
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: default
2
+ layout: theme:default
3
3
  permalink: /test_pages/three.html
4
4
  ---
5
5
 
@@ -0,0 +1 @@
1
+ .do-not-exist { background: #bcbcbc; }
@@ -0,0 +1,5 @@
1
+ ---
2
+ property: background
3
+ ---
4
+ @import '{{ theme.sass.import }}';
5
+ body { {{ page.property }}: $bg; }
File without changes
File without changes
File without changes
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
+ <title>Your New Jekyll Site</title>
7
+ <meta name="viewport" content="width=device-width">
8
+ </head>
9
+ <body class=" ">
10
+ <div class='local-override'>
11
+ one <span class='separator'></b> two <span class='separator'></b> three <span class='separator'></b> four five
12
+ </div>
13
+
14
+ </body>
15
+ </html>
File without changes
@@ -0,0 +1 @@
1
+ body{margin:2px;padding:2px}.main{color:#444}body{background:#bcbcbc}.plugin-widget{background:red;color:#fff}
File without changes
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
+ <title></title>
7
+ <meta name="viewport" content="width=device-width">
8
+ </head>
9
+ <body class=" ">
10
+ <p>SUB BABY</p>
11
+
12
+ </body>
13
+ </html>