moft 1.0.1 → 1.0.2
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.
- data/lib/moft.rb +1 -1
- data/lib/moft/site.rb +0 -20
- data/moft.gemspec +1 -1
- metadata +1 -1
data/lib/moft.rb
CHANGED
@@ -56,7 +56,7 @@ require_all 'moft/tags'
|
|
56
56
|
SafeYAML::OPTIONS[:suppress_warnings] = true
|
57
57
|
|
58
58
|
module Moft
|
59
|
-
VERSION = '1.0.
|
59
|
+
VERSION = '1.0.2'
|
60
60
|
|
61
61
|
# Public: Generate a Moft configuration Hash by merging the default
|
62
62
|
# options with anything in _config.yml, and adding the given options on top.
|
data/lib/moft/site.rb
CHANGED
@@ -13,7 +13,6 @@ module Moft
|
|
13
13
|
#
|
14
14
|
# config - A Hash containing site configuration details.
|
15
15
|
def initialize(config)
|
16
|
-
# puts YAML::dump(config)
|
17
16
|
self.config = config.clone
|
18
17
|
|
19
18
|
self.safe = config['safe']
|
@@ -145,8 +144,6 @@ module Moft
|
|
145
144
|
#
|
146
145
|
# Returns nothing.
|
147
146
|
def read_directories(dir = '')
|
148
|
-
puts "read_redirectories(%s)" % [dir]
|
149
|
-
|
150
147
|
base = File.join(self.source, dir)
|
151
148
|
entries = Dir.chdir(base) { filter_entries(Dir.entries('.')) }
|
152
149
|
|
@@ -368,23 +365,6 @@ module Moft
|
|
368
365
|
# Returns the Array of filtered entries.
|
369
366
|
def filter_entries(entries)
|
370
367
|
entries.reject do |e|
|
371
|
-
if (e.include?("javascript") == true)
|
372
|
-
puts "Entry check"
|
373
|
-
puts e
|
374
|
-
puts "glob_include()"
|
375
|
-
puts self.include.glob_include?(e)
|
376
|
-
puts "starting char check"
|
377
|
-
puts ['.','_', '#'].include?(e[0..0])
|
378
|
-
puts "tilde check"
|
379
|
-
puts e[-1..-1] == '~'
|
380
|
-
puts "exclude glob_include"
|
381
|
-
puts self.exclude.glob_include?(e)
|
382
|
-
puts "symlink?"
|
383
|
-
puts (File.symlink?(e) && self.safe)
|
384
|
-
puts " ------- "
|
385
|
-
else
|
386
|
-
puts e
|
387
|
-
end
|
388
368
|
unless self.include.glob_include?(e)
|
389
369
|
['.','_', '#'].include?(e[0..0]) ||
|
390
370
|
e[-1..-1] == '~' ||
|
data/moft.gemspec
CHANGED