octopress-ink 1.0.0.rc.30 → 1.0.0.rc.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/octopress-ink.rb +1 -1
- data/lib/octopress-ink/assets/asset.rb +2 -2
- data/lib/octopress-ink/assets/sass.rb +1 -1
- data/lib/octopress-ink/plugin.rb +30 -17
- data/lib/octopress-ink/plugins.rb +1 -0
- data/lib/octopress-ink/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c20ee013f448dd230e3203d32a0fe56bb12c137
|
4
|
+
data.tar.gz: 644b4e9b0bbf6a54e3b30acf354141a8bbb98153
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83957a422d9173dd9ccd1a8a530379c6518bc48b5b5a70a6ddcaa2ae23213ee8297e4698f98a000eed7c11b117bc71baf3ba6aeff7abb0453f0fafe4633197b9
|
7
|
+
data.tar.gz: fc01925879bfdf24c039a334a779c8486da9a6ce0f4dc469b86416db23bbfab99cad91673b0fd4a6f5eaf8abcd4d3b1df2c75d51915732af5abc64e2e2240a8c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 1.0.0 RC31 - 2015-01-26
|
4
|
+
|
5
|
+
- Fix: Sass partials in subdirectories aren't added to asset pipeline.
|
6
|
+
- Fix: Now copies assets in subdirectories into correct paths.
|
7
|
+
- Fix: Plugins are now loaded via Jekyll's plugin manager
|
8
|
+
|
3
9
|
### 1.0.0 RC30 - 2015-01-22
|
4
10
|
|
5
11
|
- Added `set_lang` placeholder so plugins can easily integrate with [octopress-multilingual](https://github.com/octopress/multilingual).
|
data/lib/octopress-ink.rb
CHANGED
@@ -81,8 +81,8 @@ module Octopress
|
|
81
81
|
else
|
82
82
|
target_dir = user_dir
|
83
83
|
end
|
84
|
-
FileUtils.mkdir_p target_dir
|
85
|
-
FileUtils.cp plugin_path, target_dir
|
84
|
+
FileUtils.mkdir_p File.join(target_dir, File.dirname(file))
|
85
|
+
FileUtils.cp plugin_path, File.join(target_dir, file)
|
86
86
|
target_dir.sub!(Dir.pwd+'/', '')
|
87
87
|
"+ ".green + "#{File.join(target_dir, filename)}"
|
88
88
|
end
|
data/lib/octopress-ink/plugin.rb
CHANGED
@@ -145,7 +145,7 @@ module Octopress
|
|
145
145
|
def disable_assets
|
146
146
|
disabled = []
|
147
147
|
config['disable'] ||= {}
|
148
|
-
config['disable'].each do |key,val|
|
148
|
+
config['disable'].each do |key,val|
|
149
149
|
next unless can_disable.include? key
|
150
150
|
if !!val == val
|
151
151
|
disabled << key if val
|
@@ -164,7 +164,7 @@ module Octopress
|
|
164
164
|
|
165
165
|
|
166
166
|
def can_disable
|
167
|
-
[
|
167
|
+
[
|
168
168
|
'pages',
|
169
169
|
'sass',
|
170
170
|
'css',
|
@@ -182,20 +182,20 @@ module Octopress
|
|
182
182
|
{
|
183
183
|
'layouts' => @layouts,
|
184
184
|
'includes' => @includes,
|
185
|
-
'pages' => @pages,
|
186
|
-
'sass' => @sass,
|
185
|
+
'pages' => @pages,
|
186
|
+
'sass' => @sass,
|
187
187
|
'css' => @css,
|
188
|
-
'js' => @js,
|
189
|
-
'minjs' => @no_compress_js,
|
190
|
-
'coffee' => @coffee,
|
191
|
-
'images' => @images,
|
192
|
-
'fonts' => @fonts,
|
188
|
+
'js' => @js,
|
189
|
+
'minjs' => @no_compress_js,
|
190
|
+
'coffee' => @coffee,
|
191
|
+
'images' => @images,
|
192
|
+
'fonts' => @fonts,
|
193
193
|
'files' => @files,
|
194
194
|
'config-file' => [@config]
|
195
195
|
}
|
196
196
|
end
|
197
|
-
|
198
|
-
# Return information about each asset
|
197
|
+
|
198
|
+
# Return information about each asset
|
199
199
|
def assets_list(options)
|
200
200
|
message = ''
|
201
201
|
no_assets = []
|
@@ -273,7 +273,7 @@ module Octopress
|
|
273
273
|
#
|
274
274
|
# input: options (an array ['type',...], hash {'type'=>true}
|
275
275
|
# or string of asset types)
|
276
|
-
#
|
276
|
+
#
|
277
277
|
# Output a hash of assets instances {'files' => @files }
|
278
278
|
#
|
279
279
|
def select_assets(asset_types)
|
@@ -282,7 +282,7 @@ module Octopress
|
|
282
282
|
# Or from Ink modules as an array of asset names
|
283
283
|
#
|
284
284
|
if asset_types.is_a? Hash
|
285
|
-
|
285
|
+
|
286
286
|
# Show Sass and CSS when 'stylesheets' is chosen
|
287
287
|
if asset_types['stylesheets']
|
288
288
|
asset_types['css'] = true
|
@@ -303,9 +303,9 @@ module Octopress
|
|
303
303
|
# Args should allow a single asset as a string too
|
304
304
|
#
|
305
305
|
if asset_types.is_a? String
|
306
|
-
asset_types = [asset_types]
|
306
|
+
asset_types = [asset_types]
|
307
307
|
end
|
308
|
-
|
308
|
+
|
309
309
|
# Match asset_types against list of assets and
|
310
310
|
# remove asset_types which don't belong
|
311
311
|
#
|
@@ -387,7 +387,7 @@ module Octopress
|
|
387
387
|
|
388
388
|
def glob_assets(dir)
|
389
389
|
return [] unless Dir.exist? dir
|
390
|
-
Find.find(dir).to_a.reject do |file|
|
390
|
+
Find.find(dir).to_a.reject do |file|
|
391
391
|
File.directory?(file) || File.basename(file) =~ /^\./
|
392
392
|
end
|
393
393
|
end
|
@@ -400,8 +400,21 @@ module Octopress
|
|
400
400
|
@sass.reject(&:disabled?).compact
|
401
401
|
end
|
402
402
|
|
403
|
+
# Internal: Remove Sass partials from Sass assets.
|
404
|
+
# Partials can be in "stylesheets" or its sub-directories.
|
405
|
+
#
|
406
|
+
# Examples
|
407
|
+
#
|
408
|
+
# _partial.scss is rejected
|
409
|
+
# dir/_partial.scss is rejected
|
410
|
+
# dir/dir/_partial.scss is rejected
|
411
|
+
# snake_case.scss is not rejected
|
412
|
+
# dir/snake_case.scss is not rejected
|
413
|
+
# dir/dir/snake_case.scss is not rejected
|
414
|
+
#
|
415
|
+
# Returns Sass assets not including partials.
|
403
416
|
def sass_without_partials
|
404
|
-
sass.reject{|f| f.file
|
417
|
+
sass.reject { |f| File.basename(f.file).start_with?('_') }
|
405
418
|
end
|
406
419
|
|
407
420
|
def js
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-ink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.rc.
|
4
|
+
version: 1.0.0.rc.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|