sdoc_all 0.2.0.7 → 0.2.0.8
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.yml +1 -1
- data/lib/sdoc_all/base.rb +1 -1
- data/lib/sdoc_all/paths.rb +1 -1
- data/lib/sdoc_all/plugins.rb +1 -1
- data/lib/sdoc_all/rails.rb +1 -1
- data/sdoc_all.gemspec +3 -4
- data/spec/sdoc_all/paths_spec.rb +2 -2
- data/spec/spec_helper.rb +3 -0
- metadata +3 -3
data/VERSION.yml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
[0, 2, 0,
|
1
|
+
[0, 2, 0, 8]
|
data/lib/sdoc_all/base.rb
CHANGED
@@ -93,7 +93,7 @@ class SdocAll
|
|
93
93
|
end
|
94
94
|
subclasses.values.each do |subclass|
|
95
95
|
unless subclass.used_sources.empty?
|
96
|
-
paths =
|
96
|
+
paths = FileList.new
|
97
97
|
paths.include(subclass.sources_path + '*')
|
98
98
|
subclass.used_sources.each do |path|
|
99
99
|
paths.exclude(path)
|
data/lib/sdoc_all/paths.rb
CHANGED
data/lib/sdoc_all/plugins.rb
CHANGED
data/lib/sdoc_all/rails.rb
CHANGED
@@ -34,7 +34,7 @@ class SdocAll
|
|
34
34
|
end
|
35
35
|
self.class.used_sources << path
|
36
36
|
|
37
|
-
paths =
|
37
|
+
paths = FileList.new
|
38
38
|
Dir.chdir(path) do
|
39
39
|
File.open('vendor/rails/railties/lib/tasks/documentation.rake') do |f|
|
40
40
|
true until f.readline['Rake::RDocTask.new("rails")']
|
data/sdoc_all.gemspec
CHANGED
@@ -2,23 +2,22 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{sdoc_all}
|
5
|
-
s.version = "0.2.0.
|
5
|
+
s.version = "0.2.0.8"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["toy"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-06-17}
|
10
10
|
s.default_executable = %q{sdoc-all}
|
11
11
|
s.description = %q{Command line tool to get documentation for ruby, rails, gems and plugins in one place}
|
12
12
|
s.email = %q{ivan@workisfun.ru}
|
13
13
|
s.executables = ["sdoc-all"]
|
14
14
|
s.extra_rdoc_files = ["bin/sdoc-all", "lib/sdoc_all/base.rb", "lib/sdoc_all/config_error.rb", "lib/sdoc_all/gems.rb", "lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb", "lib/sdoc_all/generator/sdoc_all/templates/config.yml", "lib/sdoc_all/generator/sdoc_all/templates/Rakefile", "lib/sdoc_all/paths.rb", "lib/sdoc_all/plugins.rb", "lib/sdoc_all/rails.rb", "lib/sdoc_all/ruby.rb", "lib/sdoc_all/task.rb", "lib/sdoc_all.rb", "lib/tasks/sdoc_all_rake.rb", "LICENSE", "README.rdoc"]
|
15
15
|
s.files = ["bin/sdoc-all", "lib/sdoc_all/base.rb", "lib/sdoc_all/config_error.rb", "lib/sdoc_all/gems.rb", "lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb", "lib/sdoc_all/generator/sdoc_all/templates/config.yml", "lib/sdoc_all/generator/sdoc_all/templates/Rakefile", "lib/sdoc_all/paths.rb", "lib/sdoc_all/plugins.rb", "lib/sdoc_all/rails.rb", "lib/sdoc_all/ruby.rb", "lib/sdoc_all/task.rb", "lib/sdoc_all.rb", "lib/tasks/sdoc_all_rake.rb", "LICENSE", "Manifest", "Rakefile", "README.rdoc", "spec/sdoc_all/gems_spec.rb", "spec/sdoc_all/paths_spec.rb", "spec/sdoc_all/plugins_spec.rb", "spec/sdoc_all/rails_spec.rb", "spec/sdoc_all/ruby_spec.rb", "spec/sdoc_all_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "VERSION.yml", "sdoc_all.gemspec"]
|
16
|
-
s.has_rdoc = true
|
17
16
|
s.homepage = %q{http://github.com/toy/sdoc_all}
|
18
17
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Sdoc_all", "--main", "README.rdoc"]
|
19
18
|
s.require_paths = ["lib"]
|
20
19
|
s.rubyforge_project = %q{toytoy}
|
21
|
-
s.rubygems_version = %q{1.3.
|
20
|
+
s.rubygems_version = %q{1.3.4}
|
22
21
|
s.summary = %q{documentation for everything}
|
23
22
|
|
24
23
|
if s.respond_to? :specification_version then
|
data/spec/sdoc_all/paths_spec.rb
CHANGED
@@ -56,7 +56,7 @@ class SdocAll
|
|
56
56
|
|
57
57
|
it "should add task with with one include" do
|
58
58
|
@file_list = mock(:file_list, :resolve => true)
|
59
|
-
|
59
|
+
FileList.stub!(:new).and_return(@file_list)
|
60
60
|
Dir.should_receive(:chdir).with(@root.expand_path).and_yield
|
61
61
|
@file_list.should_receive(:include).with('*.rb')
|
62
62
|
@file_list.should_receive(:to_a).and_return(['a.rb', 'b.rb'])
|
@@ -67,7 +67,7 @@ class SdocAll
|
|
67
67
|
|
68
68
|
it "should add task with with array of includes and excludes" do
|
69
69
|
@file_list = mock(:file_list, :resolve => true)
|
70
|
-
|
70
|
+
FileList.stub!(:new).and_return(@file_list)
|
71
71
|
Dir.should_receive(:chdir).with(@root.expand_path).and_yield
|
72
72
|
@file_list.should_receive(:include).ordered.with('*.*')
|
73
73
|
@file_list.should_receive(:exclude).ordered.with('*.cgi')
|
data/spec/spec_helper.rb
CHANGED
@@ -10,6 +10,9 @@ Spec::Runner.configure do |config|
|
|
10
10
|
config.prepend_before do
|
11
11
|
SdocAll::Base.stub!(:system)
|
12
12
|
SdocAll::Base.stub!(:remove_if_present)
|
13
|
+
class <<Dir
|
14
|
+
alias original_chdir chdir
|
15
|
+
end
|
13
16
|
Dir.stub!(:chdir).and_yield
|
14
17
|
Net::FTP.stub!(:open)
|
15
18
|
File.stub!(:symlink)
|
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: 0.2.0.
|
4
|
+
version: 0.2.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toy
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-06-17 00:00:00 +04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
requirements: []
|
124
124
|
|
125
125
|
rubyforge_project: toytoy
|
126
|
-
rubygems_version: 1.3.
|
126
|
+
rubygems_version: 1.3.4
|
127
127
|
signing_key:
|
128
128
|
specification_version: 3
|
129
129
|
summary: documentation for everything
|