sdoc_all 1.0.5 → 1.0.6

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.5
1
+ 1.0.6
@@ -21,7 +21,7 @@ class SdocAll
21
21
  end
22
22
 
23
23
  def add_tasks(options = {})
24
- plugins = config[:path].children.select(&:directory?)
24
+ plugins = config[:path].children.select(&:directory?).select(&:visible?)
25
25
 
26
26
  plugins.delete_if{ |plugin| !config[:only].include?(plugin.basename.to_s.downcase) } if config[:only]
27
27
  plugins.delete_if{ |plugin| config[:exclude].include?(plugin.basename.to_s.downcase) }
data/lib/sdoc_all.rb CHANGED
@@ -26,6 +26,12 @@ class Pathname
26
26
  f.write(s)
27
27
  end
28
28
  end
29
+ def hidden?
30
+ basename.to_s =~ /^\./
31
+ end
32
+ def visible?
33
+ !hidden?
34
+ end
29
35
  end
30
36
 
31
37
  class String
data/sdoc_all.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sdoc_all}
8
- s.version = "1.0.5"
8
+ s.version = "1.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Boba Fat"]
12
- s.date = %q{2010-01-03}
12
+ s.date = %q{2010-01-12}
13
13
  s.default_executable = %q{sdoc-all}
14
14
  s.description = %q{Command line tool to get documentation for ruby, rails, gems and plugins in one place}
15
15
  s.executables = ["sdoc-all"]
@@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../spec_helper.rb'
2
2
 
3
3
  describe SdocAll::Plugins do
4
4
  def plugin_mock(name, options = {})
5
- mock(:plugin, :basename => name, :directory? => !options[:not_directory], :+ => mock(:git_dir, :directory? => !options[:no_git]))
5
+ mock(:plugin, :basename => name, :directory? => !options[:not_directory], :visible? => true, :+ => mock(:git_dir, :directory? => !options[:no_git]))
6
6
  end
7
7
 
8
8
  before do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdoc_all
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boba Fat
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-03 00:00:00 +03:00
12
+ date: 2010-01-12 00:00:00 +03:00
13
13
  default_executable: sdoc-all
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency