sdoc_all 0.2.0.7 → 0.2.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1 +1 @@
1
- [0, 2, 0, 7]
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 = Rake::FileList.new
96
+ paths = FileList.new
97
97
  paths.include(subclass.sources_path + '*')
98
98
  subclass.used_sources.each do |path|
99
99
  paths.exclude(path)
@@ -51,7 +51,7 @@ class SdocAll
51
51
  task_options[:main] = entry[:main] if entry[:main]
52
52
 
53
53
  if entry[:paths]
54
- paths = Rake::FileList.new
54
+ paths = FileList.new
55
55
  Dir.chdir(path) do
56
56
  entry[:paths].each do |glob|
57
57
  m = /^([+-]?)(.*)$/.match(glob)
@@ -39,7 +39,7 @@ class SdocAll
39
39
  end
40
40
 
41
41
  plugins.each do |plugin|
42
- paths = Rake::FileList.new
42
+ paths = FileList.new
43
43
  Dir.chdir(plugin) do
44
44
  paths.include('lib/**/*.rb')
45
45
  paths.include('README*')
@@ -34,7 +34,7 @@ class SdocAll
34
34
  end
35
35
  self.class.used_sources << path
36
36
 
37
- paths = Rake::FileList.new
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.7"
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-05-11}
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.2}
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
@@ -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
- Rake::FileList.stub!(:new).and_return(@file_list)
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
- Rake::FileList.stub!(:new).and_return(@file_list)
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.7
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-05-11 00:00:00 +04:00
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.2
126
+ rubygems_version: 1.3.4
127
127
  signing_key:
128
128
  specification_version: 3
129
129
  summary: documentation for everything