moft 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/moft.rb +1 -1
  2. data/lib/moft/site.rb +0 -20
  3. data/moft.gemspec +1 -1
  4. metadata +1 -1
@@ -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.1'
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.
@@ -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] == '~' ||
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'moft'
7
- s.version = '1.0.1'
7
+ s.version = '1.0.2'
8
8
  s.license = 'MIT'
9
9
  s.date = '2013-05-08'
10
10
  s.rubyforge_project = 'moft'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moft
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: