octopress-ink 1.0.0.rc.30 → 1.0.0.rc.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcc51a1a453784cb3a90c6160d1cf153a78a0176
4
- data.tar.gz: b7f07b207482ae30731e390493225a46293b3148
3
+ metadata.gz: 5c20ee013f448dd230e3203d32a0fe56bb12c137
4
+ data.tar.gz: 644b4e9b0bbf6a54e3b30acf354141a8bbb98153
5
5
  SHA512:
6
- metadata.gz: b68e8536e6a318709a44d7f3bb6f0da79f7c2290e9a4c69297c5822380d052e3de147a28b76ea6a7e1ef3a8fae7fb5eb9aa2ff7ec7126c116a783fadd8a5b32b
7
- data.tar.gz: 2d84b28d13238dabdd81b20b4ebc2af87bba88e49220e52cc96f7d6db379a6c6664ec9e8d031c121fc309193ea48b45ff4263916482017b1598c2c9b6b3a3568
6
+ metadata.gz: 83957a422d9173dd9ccd1a8a530379c6518bc48b5b5a70a6ddcaa2ae23213ee8297e4698f98a000eed7c11b117bc71baf3ba6aeff7abb0453f0fafe4633197b9
7
+ data.tar.gz: fc01925879bfdf24c039a334a779c8486da9a6ce0f4dc469b86416db23bbfab99cad91673b0fd4a6f5eaf8abcd4d3b1df2c75d51915732af5abc64e2e2240a8c
@@ -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).
@@ -108,7 +108,7 @@ module Octopress
108
108
  #
109
109
  #
110
110
  def self.list(options={})
111
- Octopress.site(options)
111
+ site = Octopress.site(options)
112
112
  Plugins.register
113
113
  options = {'minimal'=>true} if options.empty?
114
114
  message = "Octopress Ink - v#{VERSION}\n"
@@ -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
@@ -18,7 +18,7 @@ module Octopress
18
18
  end
19
19
 
20
20
  def add
21
- unless file =~ /^_/
21
+ unless File.basename(file).start_with?('_')
22
22
  Plugins.add_css_tag tag
23
23
  Plugins.static_files << StaticFileContent.new(compile, destination)
24
24
  end
@@ -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
@@ -43,6 +43,7 @@ module Octopress
43
43
  end
44
44
 
45
45
  def self.register
46
+ Octopress.site.plugin_manager.conscientious_require
46
47
  plugins.each do |p|
47
48
  p.register
48
49
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.30"
3
+ VERSION = "1.0.0.rc.31"
4
4
  end
5
5
  end
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.30
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-23 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll