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.
- checksums.yaml +4 -4
- data/README.md +1 -6
- data/assets/docs/_plugin-template.markdown +9 -21
- data/assets/docs/creating-a-plugin.markdown +90 -12
- data/lib/octopress-ink/assets/asset.rb +55 -26
- data/lib/octopress-ink/assets/coffeescript.rb +22 -0
- data/lib/octopress-ink/assets/config.rb +12 -8
- data/lib/octopress-ink/assets/doc_page.rb +21 -18
- data/lib/octopress-ink/assets/file.rb +9 -7
- data/lib/octopress-ink/assets/javascript.rb +7 -0
- data/lib/octopress-ink/assets/layout.rb +3 -1
- data/lib/octopress-ink/assets/page.rb +12 -10
- data/lib/octopress-ink/assets/sass.rb +24 -17
- data/lib/octopress-ink/assets/stylesheet.rb +12 -6
- data/lib/octopress-ink/assets.rb +1 -4
- data/lib/octopress-ink/commands/helpers.rb +7 -4
- data/lib/octopress-ink/commands/init.rb +48 -0
- data/lib/octopress-ink/commands/list.rb +1 -1
- data/lib/octopress-ink/commands/new.rb +126 -49
- data/lib/octopress-ink/commands.rb +2 -0
- data/lib/octopress-ink/configuration.rb +18 -10
- data/lib/octopress-ink/filters.rb +4 -4
- data/lib/octopress-ink/generators/plugin_assets.rb +3 -2
- data/lib/octopress-ink/helpers/path.rb +4 -4
- data/lib/octopress-ink/jekyll/hooks.rb +123 -7
- data/lib/octopress-ink/jekyll/page.rb +3 -1
- data/lib/octopress-ink/plugin.rb +198 -165
- data/lib/octopress-ink/plugin_asset_pipeline.rb +172 -0
- data/lib/octopress-ink/plugins.rb +44 -168
- data/lib/octopress-ink/tags/javascript.rb +1 -1
- data/lib/octopress-ink/tags/render.rb +4 -2
- data/lib/octopress-ink/tags/stylesheet.rb +1 -1
- data/lib/octopress-ink/utils.rb +42 -0
- data/lib/octopress-ink/version.rb +1 -1
- data/lib/octopress-ink.rb +70 -34
- data/octopress-ink.gemspec +2 -2
- data/test/_combine_false.yml +4 -0
- data/test/_config.yml +1 -1
- data/test/combine_css/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +15 -0
- data/test/{sass_expanded → combine_css}/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css +2 -4
- data/test/{concat_css_false → combine_css_false}/stylesheets/awesome-sauce/plugin-media-test.css +0 -0
- data/test/{concat_css_false → combine_css_false}/stylesheets/awesome-sauce/plugin-test.css +0 -0
- data/test/{concat_css_false → combine_css_false}/stylesheets/site.css +0 -0
- data/test/{concat_css_false → combine_css_false}/stylesheets/test.css +0 -0
- data/test/{concat_css_false → combine_css_false}/stylesheets/theme/theme-media-test.css +0 -0
- data/test/{concat_css_false → combine_css_false}/stylesheets/theme/theme-test.css +0 -0
- data/test/{concat_css_false → combine_css_false}/stylesheets/theme/theme-test2.css +0 -0
- data/test/combine_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js +7 -0
- data/test/{concat_js_false → combine_js_false}/javascripts/site.js +0 -0
- data/test/combine_js_false/javascripts/test.js +10 -0
- data/test/{concat_js_false → combine_js_false}/javascripts/theme/bar.js +0 -0
- data/test/{concat_js_false → combine_js_false}/javascripts/theme/foo.js +0 -0
- data/test/copy_layouts_pages/_copy/pages/two.md +0 -1
- data/test/copy_test/_copy/pages/two.md +0 -1
- data/test/copy_test/_copy/stylesheets/main.scss +4 -1
- data/test/expected/index.html +2 -2
- data/test/plugins/awesome-sauce/pages/b.html +0 -1
- data/test/plugins/awesome-sauce/plugin.rb +1 -1
- data/test/plugins/test-theme/javascripts/blah.coffee +1 -0
- data/test/plugins/test-theme/plugin.rb +1 -1
- data/test/plugins/test-theme/stylesheets/main.scss +4 -1
- data/test/source/_plugins/awesome-sauce/config.yml +1 -1
- data/test/source/_plugins/theme/config.yml +1 -1
- data/test/source/_posts/2014-02-01-test-post.md +1 -0
- data/test/source/index.md +2 -2
- data/test/test.rb +15 -27
- metadata +66 -84
- data/lib/octopress-ink/assets/local_asset.rb +0 -47
- data/lib/octopress-ink/assets/local_javascript.rb +0 -12
- data/lib/octopress-ink/assets/local_sass.rb +0 -30
- data/lib/octopress-ink/assets/local_stylesheet.rb +0 -33
- data/lib/octopress-ink/helpers/titlecase.rb +0 -37
- data/lib/octopress-ink/plugins/asset_pipeline.rb +0 -103
- data/test/_concat_false.yml +0 -2
- data/test/_sass_compact.yml +0 -4
- data/test/_sass_expanded.yml +0 -4
- data/test/concat_css/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +0 -1
- data/test/concat_css/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css +0 -1
- data/test/concat_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js +0 -3
- data/test/sass_compact/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +0 -18
- data/test/sass_compact/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css +0 -5
- data/test/sass_expanded/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +0 -36
- data/test/source/_javascripts/site.js +0 -1
- data/test/source/_stylesheets/_foo.scss +0 -1
- data/test/source/_stylesheets/site.sass +0 -7
- data/test/source/_stylesheets/test.css +0 -1
data/test/expected/index.html
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
console.log 'dang'
|
data/test/source/index.md
CHANGED
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
|
52
|
+
if diff.size > 0
|
53
53
|
@failures << <<-DIFF
|
54
54
|
Failure in #{file}
|
55
55
|
---------
|
56
|
-
#{(
|
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,
|
93
|
-
if
|
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,
|
109
|
-
if
|
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
|
-
|
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('
|
165
|
-
test_javascripts('
|
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
|
-
|
165
|
+
system "octopress ink copy theme --path _copy --force"
|
170
166
|
test_copy_assets('copy_test')
|
171
167
|
|
172
|
-
|
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: '
|
176
|
-
test_stylesheets('
|
177
|
-
test_javascripts('
|
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.
|
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-
|
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: '
|
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:
|
26
|
+
version: '2.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
28
|
+
name: autoprefixer-rails
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - ~>
|
31
|
+
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
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:
|
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/
|
175
|
+
- test/_combine_false.yml
|
178
176
|
- test/_config.yml
|
179
|
-
- test/
|
180
|
-
- test/
|
181
|
-
- test/
|
182
|
-
- test/
|
183
|
-
- test/
|
184
|
-
- test/
|
185
|
-
- test/
|
186
|
-
- test/
|
187
|
-
- test/
|
188
|
-
- test/
|
189
|
-
- test/
|
190
|
-
- test/
|
191
|
-
- test/
|
192
|
-
- test/
|
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.
|
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/
|
347
|
+
- test/_combine_false.yml
|
358
348
|
- test/_config.yml
|
359
|
-
- test/
|
360
|
-
- test/
|
361
|
-
- test/
|
362
|
-
- test/
|
363
|
-
- test/
|
364
|
-
- test/
|
365
|
-
- test/
|
366
|
-
- test/
|
367
|
-
- test/
|
368
|
-
- test/
|
369
|
-
- test/
|
370
|
-
- test/
|
371
|
-
- test/
|
372
|
-
- test/
|
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,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
|
-
|