octopress-ink 1.0.0.alpha.44 → 1.0.0.alpha.45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -6
  3. data/assets/docs/_plugin-template.markdown +9 -21
  4. data/assets/docs/creating-a-plugin.markdown +90 -12
  5. data/lib/octopress-ink/assets/asset.rb +55 -26
  6. data/lib/octopress-ink/assets/coffeescript.rb +22 -0
  7. data/lib/octopress-ink/assets/config.rb +12 -8
  8. data/lib/octopress-ink/assets/doc_page.rb +21 -18
  9. data/lib/octopress-ink/assets/file.rb +9 -7
  10. data/lib/octopress-ink/assets/javascript.rb +7 -0
  11. data/lib/octopress-ink/assets/layout.rb +3 -1
  12. data/lib/octopress-ink/assets/page.rb +12 -10
  13. data/lib/octopress-ink/assets/sass.rb +24 -17
  14. data/lib/octopress-ink/assets/stylesheet.rb +12 -6
  15. data/lib/octopress-ink/assets.rb +1 -4
  16. data/lib/octopress-ink/commands/helpers.rb +7 -4
  17. data/lib/octopress-ink/commands/init.rb +48 -0
  18. data/lib/octopress-ink/commands/list.rb +1 -1
  19. data/lib/octopress-ink/commands/new.rb +126 -49
  20. data/lib/octopress-ink/commands.rb +2 -0
  21. data/lib/octopress-ink/configuration.rb +18 -10
  22. data/lib/octopress-ink/filters.rb +4 -4
  23. data/lib/octopress-ink/generators/plugin_assets.rb +3 -2
  24. data/lib/octopress-ink/helpers/path.rb +4 -4
  25. data/lib/octopress-ink/jekyll/hooks.rb +123 -7
  26. data/lib/octopress-ink/jekyll/page.rb +3 -1
  27. data/lib/octopress-ink/plugin.rb +198 -165
  28. data/lib/octopress-ink/plugin_asset_pipeline.rb +172 -0
  29. data/lib/octopress-ink/plugins.rb +44 -168
  30. data/lib/octopress-ink/tags/javascript.rb +1 -1
  31. data/lib/octopress-ink/tags/render.rb +4 -2
  32. data/lib/octopress-ink/tags/stylesheet.rb +1 -1
  33. data/lib/octopress-ink/utils.rb +42 -0
  34. data/lib/octopress-ink/version.rb +1 -1
  35. data/lib/octopress-ink.rb +70 -34
  36. data/octopress-ink.gemspec +2 -2
  37. data/test/_combine_false.yml +4 -0
  38. data/test/_config.yml +1 -1
  39. data/test/combine_css/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +15 -0
  40. data/test/{sass_expanded → combine_css}/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css +2 -4
  41. data/test/{concat_css_false → combine_css_false}/stylesheets/awesome-sauce/plugin-media-test.css +0 -0
  42. data/test/{concat_css_false → combine_css_false}/stylesheets/awesome-sauce/plugin-test.css +0 -0
  43. data/test/{concat_css_false → combine_css_false}/stylesheets/site.css +0 -0
  44. data/test/{concat_css_false → combine_css_false}/stylesheets/test.css +0 -0
  45. data/test/{concat_css_false → combine_css_false}/stylesheets/theme/theme-media-test.css +0 -0
  46. data/test/{concat_css_false → combine_css_false}/stylesheets/theme/theme-test.css +0 -0
  47. data/test/{concat_css_false → combine_css_false}/stylesheets/theme/theme-test2.css +0 -0
  48. data/test/combine_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js +7 -0
  49. data/test/{concat_js_false → combine_js_false}/javascripts/site.js +0 -0
  50. data/test/combine_js_false/javascripts/test.js +10 -0
  51. data/test/{concat_js_false → combine_js_false}/javascripts/theme/bar.js +0 -0
  52. data/test/{concat_js_false → combine_js_false}/javascripts/theme/foo.js +0 -0
  53. data/test/copy_layouts_pages/_copy/pages/two.md +0 -1
  54. data/test/copy_test/_copy/pages/two.md +0 -1
  55. data/test/copy_test/_copy/stylesheets/main.scss +4 -1
  56. data/test/expected/index.html +2 -2
  57. data/test/plugins/awesome-sauce/pages/b.html +0 -1
  58. data/test/plugins/awesome-sauce/plugin.rb +1 -1
  59. data/test/plugins/test-theme/javascripts/blah.coffee +1 -0
  60. data/test/plugins/test-theme/plugin.rb +1 -1
  61. data/test/plugins/test-theme/stylesheets/main.scss +4 -1
  62. data/test/source/_plugins/awesome-sauce/config.yml +1 -1
  63. data/test/source/_plugins/theme/config.yml +1 -1
  64. data/test/source/_posts/2014-02-01-test-post.md +1 -0
  65. data/test/source/index.md +2 -2
  66. data/test/test.rb +15 -27
  67. metadata +66 -84
  68. data/lib/octopress-ink/assets/local_asset.rb +0 -47
  69. data/lib/octopress-ink/assets/local_javascript.rb +0 -12
  70. data/lib/octopress-ink/assets/local_sass.rb +0 -30
  71. data/lib/octopress-ink/assets/local_stylesheet.rb +0 -33
  72. data/lib/octopress-ink/helpers/titlecase.rb +0 -37
  73. data/lib/octopress-ink/plugins/asset_pipeline.rb +0 -103
  74. data/test/_concat_false.yml +0 -2
  75. data/test/_sass_compact.yml +0 -4
  76. data/test/_sass_expanded.yml +0 -4
  77. data/test/concat_css/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +0 -1
  78. data/test/concat_css/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css +0 -1
  79. data/test/concat_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js +0 -3
  80. data/test/sass_compact/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +0 -18
  81. data/test/sass_compact/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css +0 -5
  82. data/test/sass_expanded/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +0 -36
  83. data/test/source/_javascripts/site.js +0 -1
  84. data/test/source/_stylesheets/_foo.scss +0 -1
  85. data/test/source/_stylesheets/site.sass +0 -7
  86. data/test/source/_stylesheets/test.css +0 -1
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  layout: theme:default
3
- permalink_config: page_two
4
3
  ---
5
4
 
6
5
  Testing pages. **strong** *emphasized* [a link](http://example.com)
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  layout: theme:default
3
- permalink: /test_pages/theme_page.html
4
3
  ---
5
4
 
6
5
  Testing pages. **strong** *emphasized* [a link](http://example.com)
@@ -1,2 +1,5 @@
1
- @import 'colors';
1
+ ---
2
+ import: colors
3
+ ---
4
+ @import '{{ page.import }}';
2
5
  body { background: $bg; }
@@ -23,8 +23,8 @@
23
23
  <ul>
24
24
  <li>sass compression</li>
25
25
  <li>sass line numbers</li>
26
- <li>concat_css</li>
27
- <li>concat_js</li>
26
+ <li>combine_css</li>
27
+ <li>combine_js</li>
28
28
  </ul>
29
29
  </div>
30
30
 
@@ -1,4 +1,3 @@
1
1
  ---
2
- permalink: /test_pages/plugin_page.html
3
2
  ---
4
3
  Page two from plugin
@@ -1,6 +1,6 @@
1
1
  require 'octopress-ink'
2
2
 
3
- Octopress::Ink.new_plugin({
3
+ Octopress::Ink.add_plugin({
4
4
  name: 'Awesome Sauce',
5
5
  slug: 'awesome-sauce',
6
6
  assets_path: File.expand_path(File.dirname(__FILE__)),
@@ -0,0 +1 @@
1
+ console.log 'dang'
@@ -1,6 +1,6 @@
1
1
  require 'octopress-ink'
2
2
 
3
- Octopress::Ink.new_plugin({
3
+ Octopress::Ink.add_plugin({
4
4
  name: "Classic Theme",
5
5
  type: "theme",
6
6
  description: "Test theme y'all",
@@ -1,2 +1,5 @@
1
- @import 'colors';
1
+ ---
2
+ import: colors
3
+ ---
4
+ @import '{{ page.import }}';
2
5
  body { background: $bg; }
@@ -1,4 +1,4 @@
1
1
  test_override: config from plugin override
2
- page_permalinks:
2
+ permalinks:
3
3
  a: test_pages/plugin_page_override.html
4
4
  b: test_pages/plugin_page.html
@@ -1,5 +1,5 @@
1
1
  test_override: config from theme override
2
- page_permalinks:
2
+ permalinks:
3
3
  two: test_pages/theme_page.html
4
4
  feed: test_pages/feed/
5
5
 
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: theme:test
3
+ external-url: http://timecube.com
3
4
  ---
4
5
 
5
6
  Test post **strong** *emphasized* [some link](http://example.com)
data/test/source/index.md CHANGED
@@ -16,8 +16,8 @@ Test configurations
16
16
 
17
17
  - sass compression
18
18
  - sass line numbers
19
- - concat_css
20
- - concat_js
19
+ - combine_css
20
+ - combine_js
21
21
 
22
22
  {% assign separator = ' <span class='separator'></b> ' %}
23
23
  {% capture foo | join_lines:separator %}
data/test/test.rb CHANGED
@@ -49,11 +49,11 @@ end
49
49
 
50
50
  def diff_file(file, target_dir='expected', source_dir='site')
51
51
  diff = `diff #{target_dir}/#{file} #{source_dir}/#{file}`
52
- if diff =~ /(<.+?\n)?(---\n)?(>.+)/
52
+ if diff.size > 0
53
53
  @failures << <<-DIFF
54
54
  Failure in #{file}
55
55
  ---------
56
- #{($1||'').red + $3.green}
56
+ #{diff.gsub(/\A.+?\n/,'').gsub(/^(<.+?)$/){|m| m.red}.gsub(/>.+/){|m| m.green}}
57
57
  ---------
58
58
  DIFF
59
59
  else
@@ -89,14 +89,11 @@ def test_configs(dir)
89
89
  configs.each { |file| test("test_config/#{file}.html", dir) }
90
90
  end
91
91
 
92
- def test_stylesheets(dir, concat=true)
93
- if concat
92
+ def test_stylesheets(dir, combine=true)
93
+ if combine
94
94
  stylesheets = %w{all-* print-*}
95
95
  stylesheets.each { |file| test("stylesheets/#{file}.css", dir) }
96
96
  else
97
- local_stylesheets = %w{site test}
98
- local_stylesheets.each { |file| test("stylesheets/#{file}.css", dir) }
99
-
100
97
  plugin_stylesheets = %w{plugin-media-test plugin-test}
101
98
  plugin_stylesheets.each { |file| test("stylesheets/awesome-sauce/#{file}.css", dir) }
102
99
 
@@ -105,14 +102,12 @@ def test_stylesheets(dir, concat=true)
105
102
  end
106
103
  end
107
104
 
108
- def test_javascripts(dir, concat=true)
109
- if concat
105
+ def test_javascripts(dir, combine=true)
106
+ if combine
110
107
  javascripts = %w{all-*}
111
108
  javascripts.each { |file| test("javascripts/#{file}.js", dir) }
112
109
  else
113
- javascripts = %w{bar foo}
114
- javascripts.each { |file| test("javascripts/theme/#{file}.js", dir) }
115
- test("javascripts/site.js", dir)
110
+ %w{bar foo}.each { |file| test("javascripts/theme/#{file}.js", dir) }
116
111
  end
117
112
  end
118
113
 
@@ -161,27 +156,20 @@ test_post('expected')
161
156
  test_tags('expected')
162
157
  test_pages('expected')
163
158
  test_layouts('expected')
164
- test_stylesheets('concat_css')
165
- test_javascripts('concat_js')
159
+ test_stylesheets('combine_css')
160
+ test_javascripts('combine_js')
166
161
  test_configs('expected')
167
162
  test_root_assets('expected')
163
+ test_disabled('site')
168
164
 
169
- Octopress::Ink.copy_plugin_assets('theme', {'path' => '_copy', 'force'=> true})
165
+ system "octopress ink copy theme --path _copy --force"
170
166
  test_copy_assets('copy_test')
171
167
 
172
- Octopress::Ink.copy_plugin_assets('theme', {'path' => '_copy', 'force'=> true, 'layouts' => true, 'pages' => true})
168
+ system "octopress ink copy theme --layouts --pages --path _copy --force"
173
169
  test_copy_assets('copy_layouts_pages')
174
170
 
175
- build octopress_config: '_concat_false.yml'
176
- test_stylesheets('concat_css_false', false)
177
- test_javascripts('concat_js_false', false)
178
- test_disabled('site')
179
-
180
- build config: '_sass_compact.yml'
181
- test_stylesheets('sass_compact')
182
-
183
- build config: '_sass_expanded.yml'
184
- test_stylesheets('sass_expanded')
171
+ build octopress_config: '_combine_false.yml'
172
+ test_stylesheets('combine_css_false', false)
173
+ test_javascripts('combine_js_false', false)
185
174
 
186
175
  print_failures
187
-
metadata CHANGED
@@ -1,103 +1,103 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-ink
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.44
4
+ version: 1.0.0.alpha.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-29 00:00:00.000000000 Z
11
+ date: 2014-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.5'
20
- - - '>='
21
- - !ruby/object:Gem::Version
22
- version: 1.5.0
19
+ version: '2.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '1.5'
30
- - - '>='
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: 1.5.0
26
+ version: '2.0'
33
27
  - !ruby/object:Gem::Dependency
34
- name: sass
28
+ name: autoprefixer-rails
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - ~>
31
+ - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: 3.3.0
33
+ version: '1.1'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 1.1.20140403
40
37
  type: :runtime
41
38
  prerelease: false
42
39
  version_requirements: !ruby/object:Gem::Requirement
43
40
  requirements:
44
- - - ~>
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '1.1'
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 3.3.0
46
+ version: 1.1.20140403
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: octopress
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - '>='
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - '>='
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: bundler
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ~>
65
+ - - "~>"
66
66
  - !ruby/object:Gem::Version
67
67
  version: '1.3'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ~>
72
+ - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '1.3'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rake
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - '>='
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: pry-debugger
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - '>='
93
+ - - ">="
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - '>='
100
+ - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  description: A starting point for creating gem-based Jekyll themes and plugins
@@ -107,8 +107,8 @@ executables: []
107
107
  extensions: []
108
108
  extra_rdoc_files: []
109
109
  files:
110
- - .gitignore
111
- - .travis.yml
110
+ - ".gitignore"
111
+ - ".travis.yml"
112
112
  - CHANGELOG.md
113
113
  - Gemfile
114
114
  - LICENSE.txt
@@ -122,21 +122,19 @@ files:
122
122
  - lib/octopress-ink.rb
123
123
  - lib/octopress-ink/assets.rb
124
124
  - lib/octopress-ink/assets/asset.rb
125
+ - lib/octopress-ink/assets/coffeescript.rb
125
126
  - lib/octopress-ink/assets/config.rb
126
127
  - lib/octopress-ink/assets/doc_page.rb
127
128
  - lib/octopress-ink/assets/file.rb
128
129
  - lib/octopress-ink/assets/javascript.rb
129
130
  - lib/octopress-ink/assets/layout.rb
130
- - lib/octopress-ink/assets/local_asset.rb
131
- - lib/octopress-ink/assets/local_javascript.rb
132
- - lib/octopress-ink/assets/local_sass.rb
133
- - lib/octopress-ink/assets/local_stylesheet.rb
134
131
  - lib/octopress-ink/assets/page.rb
135
132
  - lib/octopress-ink/assets/sass.rb
136
133
  - lib/octopress-ink/assets/stylesheet.rb
137
134
  - lib/octopress-ink/commands.rb
138
135
  - lib/octopress-ink/commands/copy.rb
139
136
  - lib/octopress-ink/commands/helpers.rb
137
+ - lib/octopress-ink/commands/init.rb
140
138
  - lib/octopress-ink/commands/list.rb
141
139
  - lib/octopress-ink/commands/new.rb
142
140
  - lib/octopress-ink/configuration.rb
@@ -146,15 +144,14 @@ files:
146
144
  - lib/octopress-ink/helpers/conditional.rb
147
145
  - lib/octopress-ink/helpers/content_for.rb
148
146
  - lib/octopress-ink/helpers/path.rb
149
- - lib/octopress-ink/helpers/titlecase.rb
150
147
  - lib/octopress-ink/helpers/var.rb
151
148
  - lib/octopress-ink/jekyll/hooks.rb
152
149
  - lib/octopress-ink/jekyll/page.rb
153
150
  - lib/octopress-ink/jekyll/static_file.rb
154
151
  - lib/octopress-ink/jekyll/static_file_content.rb
155
152
  - lib/octopress-ink/plugin.rb
153
+ - lib/octopress-ink/plugin_asset_pipeline.rb
156
154
  - lib/octopress-ink/plugins.rb
157
- - lib/octopress-ink/plugins/asset_pipeline.rb
158
155
  - lib/octopress-ink/plugins/ink.rb
159
156
  - lib/octopress-ink/tags.rb
160
157
  - lib/octopress-ink/tags/abort.rb
@@ -171,26 +168,26 @@ files:
171
168
  - lib/octopress-ink/tags/stylesheet.rb
172
169
  - lib/octopress-ink/tags/wrap.rb
173
170
  - lib/octopress-ink/tags/yield.rb
171
+ - lib/octopress-ink/utils.rb
174
172
  - lib/octopress-ink/version.rb
175
173
  - octopress-ink.gemspec
176
174
  - test/Gemfile
177
- - test/_concat_false.yml
175
+ - test/_combine_false.yml
178
176
  - test/_config.yml
179
- - test/_sass_compact.yml
180
- - test/_sass_expanded.yml
181
- - test/concat_css/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
182
- - test/concat_css/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
183
- - test/concat_css_false/stylesheets/awesome-sauce/plugin-media-test.css
184
- - test/concat_css_false/stylesheets/awesome-sauce/plugin-test.css
185
- - test/concat_css_false/stylesheets/site.css
186
- - test/concat_css_false/stylesheets/test.css
187
- - test/concat_css_false/stylesheets/theme/theme-media-test.css
188
- - test/concat_css_false/stylesheets/theme/theme-test.css
189
- - test/concat_css_false/stylesheets/theme/theme-test2.css
190
- - test/concat_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js
191
- - test/concat_js_false/javascripts/site.js
192
- - test/concat_js_false/javascripts/theme/bar.js
193
- - test/concat_js_false/javascripts/theme/foo.js
177
+ - test/combine_css/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
178
+ - test/combine_css/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
179
+ - test/combine_css_false/stylesheets/awesome-sauce/plugin-media-test.css
180
+ - test/combine_css_false/stylesheets/awesome-sauce/plugin-test.css
181
+ - test/combine_css_false/stylesheets/site.css
182
+ - test/combine_css_false/stylesheets/test.css
183
+ - test/combine_css_false/stylesheets/theme/theme-media-test.css
184
+ - test/combine_css_false/stylesheets/theme/theme-test.css
185
+ - test/combine_css_false/stylesheets/theme/theme-test2.css
186
+ - test/combine_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js
187
+ - test/combine_js_false/javascripts/site.js
188
+ - test/combine_js_false/javascripts/test.js
189
+ - test/combine_js_false/javascripts/theme/bar.js
190
+ - test/combine_js_false/javascripts/theme/foo.js
194
191
  - test/copy_layouts_pages/_copy/layouts/default.html
195
192
  - test/copy_layouts_pages/_copy/layouts/test.html
196
193
  - test/copy_layouts_pages/_copy/pages/disable-test.html
@@ -266,6 +263,7 @@ files:
266
263
  - test/plugins/test-theme/includes/bar.html
267
264
  - test/plugins/test-theme/includes/greet.html
268
265
  - test/plugins/test-theme/javascripts/bar.js
266
+ - test/plugins/test-theme/javascripts/blah.coffee
269
267
  - test/plugins/test-theme/javascripts/disable-this.js
270
268
  - test/plugins/test-theme/javascripts/foo.js
271
269
  - test/plugins/test-theme/layouts/default.html
@@ -283,13 +281,8 @@ files:
283
281
  - test/plugins/test-theme/stylesheets/theme-media-test@print.css
284
282
  - test/plugins/test-theme/stylesheets/theme-test.css
285
283
  - test/plugins/test-theme/stylesheets/theme-test2.css
286
- - test/sass_compact/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
287
- - test/sass_compact/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
288
- - test/sass_expanded/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
289
- - test/sass_expanded/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
290
284
  - test/source/.gitignore
291
285
  - test/source/_includes/foo.html
292
- - test/source/_javascripts/site.js
293
286
  - test/source/_layouts/head.html
294
287
  - test/source/_layouts/local.html
295
288
  - test/source/_plugins/awesome-sauce/config.yml
@@ -300,9 +293,6 @@ files:
300
293
  - test/source/_plugins/theme/stylesheets/_colors.sass
301
294
  - test/source/_plugins/theme/stylesheets/theme-test.css
302
295
  - test/source/_posts/2014-02-01-test-post.md
303
- - test/source/_stylesheets/_foo.scss
304
- - test/source/_stylesheets/site.sass
305
- - test/source/_stylesheets/test.css
306
296
  - test/source/favicon.png
307
297
  - test/source/index.md
308
298
  - test/source/test_config/plugin_config.html
@@ -338,39 +328,38 @@ require_paths:
338
328
  - lib
339
329
  required_ruby_version: !ruby/object:Gem::Requirement
340
330
  requirements:
341
- - - '>='
331
+ - - ">="
342
332
  - !ruby/object:Gem::Version
343
333
  version: '0'
344
334
  required_rubygems_version: !ruby/object:Gem::Requirement
345
335
  requirements:
346
- - - '>'
336
+ - - ">"
347
337
  - !ruby/object:Gem::Version
348
338
  version: 1.3.1
349
339
  requirements: []
350
340
  rubyforge_project:
351
- rubygems_version: 2.1.11
341
+ rubygems_version: 2.2.2
352
342
  signing_key:
353
343
  specification_version: 4
354
344
  summary: A starting point for creating gem-based Jekyll themes and plugins
355
345
  test_files:
356
346
  - test/Gemfile
357
- - test/_concat_false.yml
347
+ - test/_combine_false.yml
358
348
  - test/_config.yml
359
- - test/_sass_compact.yml
360
- - test/_sass_expanded.yml
361
- - test/concat_css/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
362
- - test/concat_css/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
363
- - test/concat_css_false/stylesheets/awesome-sauce/plugin-media-test.css
364
- - test/concat_css_false/stylesheets/awesome-sauce/plugin-test.css
365
- - test/concat_css_false/stylesheets/site.css
366
- - test/concat_css_false/stylesheets/test.css
367
- - test/concat_css_false/stylesheets/theme/theme-media-test.css
368
- - test/concat_css_false/stylesheets/theme/theme-test.css
369
- - test/concat_css_false/stylesheets/theme/theme-test2.css
370
- - test/concat_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js
371
- - test/concat_js_false/javascripts/site.js
372
- - test/concat_js_false/javascripts/theme/bar.js
373
- - test/concat_js_false/javascripts/theme/foo.js
349
+ - test/combine_css/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
350
+ - test/combine_css/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
351
+ - test/combine_css_false/stylesheets/awesome-sauce/plugin-media-test.css
352
+ - test/combine_css_false/stylesheets/awesome-sauce/plugin-test.css
353
+ - test/combine_css_false/stylesheets/site.css
354
+ - test/combine_css_false/stylesheets/test.css
355
+ - test/combine_css_false/stylesheets/theme/theme-media-test.css
356
+ - test/combine_css_false/stylesheets/theme/theme-test.css
357
+ - test/combine_css_false/stylesheets/theme/theme-test2.css
358
+ - test/combine_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js
359
+ - test/combine_js_false/javascripts/site.js
360
+ - test/combine_js_false/javascripts/test.js
361
+ - test/combine_js_false/javascripts/theme/bar.js
362
+ - test/combine_js_false/javascripts/theme/foo.js
374
363
  - test/copy_layouts_pages/_copy/layouts/default.html
375
364
  - test/copy_layouts_pages/_copy/layouts/test.html
376
365
  - test/copy_layouts_pages/_copy/pages/disable-test.html
@@ -446,6 +435,7 @@ test_files:
446
435
  - test/plugins/test-theme/includes/bar.html
447
436
  - test/plugins/test-theme/includes/greet.html
448
437
  - test/plugins/test-theme/javascripts/bar.js
438
+ - test/plugins/test-theme/javascripts/blah.coffee
449
439
  - test/plugins/test-theme/javascripts/disable-this.js
450
440
  - test/plugins/test-theme/javascripts/foo.js
451
441
  - test/plugins/test-theme/layouts/default.html
@@ -463,13 +453,8 @@ test_files:
463
453
  - test/plugins/test-theme/stylesheets/theme-media-test@print.css
464
454
  - test/plugins/test-theme/stylesheets/theme-test.css
465
455
  - test/plugins/test-theme/stylesheets/theme-test2.css
466
- - test/sass_compact/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
467
- - test/sass_compact/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
468
- - test/sass_expanded/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
469
- - test/sass_expanded/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
470
456
  - test/source/.gitignore
471
457
  - test/source/_includes/foo.html
472
- - test/source/_javascripts/site.js
473
458
  - test/source/_layouts/head.html
474
459
  - test/source/_layouts/local.html
475
460
  - test/source/_plugins/awesome-sauce/config.yml
@@ -480,9 +465,6 @@ test_files:
480
465
  - test/source/_plugins/theme/stylesheets/_colors.sass
481
466
  - test/source/_plugins/theme/stylesheets/theme-test.css
482
467
  - test/source/_posts/2014-02-01-test-post.md
483
- - test/source/_stylesheets/_foo.scss
484
- - test/source/_stylesheets/site.sass
485
- - test/source/_stylesheets/test.css
486
468
  - test/source/favicon.png
487
469
  - test/source/index.md
488
470
  - test/source/test_config/plugin_config.html
@@ -1,47 +0,0 @@
1
- module Octopress
2
- module Ink
3
- module Assets
4
- class LocalAsset < Asset
5
- def initialize(plugin, base, file)
6
- @plugin = plugin
7
- @file = file
8
- @base = base
9
- @dir = base.sub(/^_/,'')
10
- @root = Plugins.site.source
11
- end
12
-
13
- def info
14
- message = filename.ljust(35)
15
- message += "from: #{base}"
16
- end
17
-
18
- def path
19
- Pathname.new File.join(root, base, file)
20
- end
21
-
22
- def destination
23
- File.join(dir, file)
24
- end
25
-
26
- def add
27
- Plugins.site.static_files << StaticFile.new(path, destination)
28
- end
29
-
30
- # Copy is unncessary with local assets
31
- #
32
- def copy(target_dir); end
33
-
34
- # Remove files from Jekyll's static_files array so it doesn't end up in the
35
- # compiled site directory.
36
- #
37
- def remove_jekyll_asset
38
- Plugins.site.static_files.clone.each do |sf|
39
- if sf.kind_of?(Jekyll::StaticFile) && sf.path == path.to_s
40
- Plugins.site.static_files.delete(sf)
41
- end
42
- end
43
- end
44
- end
45
- end
46
- end
47
- end
@@ -1,12 +0,0 @@
1
- module Octopress
2
- module Ink
3
- module Assets
4
- class LocalJavascript < LocalAsset
5
- def tag
6
- "<script src='#{Filters.expand_url(File.join(dir, file))}'></script>"
7
- end
8
- end
9
- end
10
- end
11
- end
12
-
@@ -1,30 +0,0 @@
1
- module Octopress
2
- module Ink
3
- module Assets
4
- class LocalSass < LocalStylesheet
5
- def initialize(plugin, base, file, media=nil)
6
- @plugin = plugin
7
- @file = file
8
- @base = base
9
- @root = Plugins.site.source
10
- @dir = base.sub(/^_/,'')
11
- @media = media || 'all'
12
- end
13
-
14
- def destination
15
- File.join(dir, file.sub(/@(.+?)\./,'.').sub(/s.ss/, 'css'))
16
- end
17
-
18
- def compile
19
- options = Plugins.sass_options
20
- compiled = Plugins.compile_sass_file(path.to_s, options)
21
- end
22
-
23
- def add
24
- Plugins.site.static_files << StaticFileContent.new(compile, destination)
25
- end
26
- end
27
- end
28
- end
29
- end
30
-
@@ -1,33 +0,0 @@
1
- module Octopress
2
- module Ink
3
- module Assets
4
- class LocalStylesheet < LocalAsset
5
- def initialize(plugin, base, file, media=nil)
6
- @plugin = plugin
7
- @file = file
8
- @base = base
9
- @root = Plugins.site.source
10
- @dir = base.sub(/^_/,'')
11
- @media = media || 'all'
12
- end
13
-
14
- def media
15
- m = @media
16
- if file =~ /@(.+?)\./
17
- m = $1
18
- end
19
- m
20
- end
21
-
22
- def destination
23
- File.join(dir, file.sub(/@(.+?)\./,'.'))
24
- end
25
-
26
- def tag
27
- "<link href='#{Filters.expand_url(File.join(dir, file))}' media='#{media}' rel='stylesheet' type='text/css'>"
28
- end
29
- end
30
- end
31
- end
32
- end
33
-