naeu-jekyll 0.5.4 → 0.5.5

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.
@@ -1,4 +1,5 @@
1
1
  ---
2
- :patch: 4
3
2
  :major: 0
4
3
  :minor: 5
4
+ :patch: 5
5
+ :build:
@@ -30,12 +30,12 @@ require 'jekyll/albino'
30
30
  module Jekyll
31
31
  # Default options. Overriden by values in _config.yml or command-line opts.
32
32
  # (Strings rather symbols used for compatability with YAML)
33
+
33
34
  DEFAULTS = {
34
35
  'auto' => false,
35
36
  'server' => false,
36
37
  'server_port' => 4000,
37
-
38
- 'source' => '.',
38
+ 'source' => File.expand_path('.'),
39
39
  'destination' => File.join('.', '_site'),
40
40
 
41
41
  'lsi' => false,
@@ -11,7 +11,7 @@ module Jekyll
11
11
  return "Include file '#{@file}' contains invalid characters or sequences"
12
12
  end
13
13
 
14
- Dir.chdir(File.join(context.registers[:site].source, '_includes')) do
14
+ Dir.chdir(File.join(Jekyll::DEFAULTS['source'], '_includes')) do
15
15
  choices = Dir['**/*'].reject { |x| File.symlink?(x) }
16
16
  if choices.include?(@file)
17
17
  source = File.read(@file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naeu-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner