sdoc_all 1.0.2.1 → 1.0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -1,22 +1,23 @@
1
+ LICENSE
2
+ Manifest
3
+ README.rdoc
4
+ Rakefile
5
+ VERSION.yml
1
6
  bin/sdoc-all
7
+ lib/sdoc_all.rb
2
8
  lib/sdoc_all/base.rb
3
9
  lib/sdoc_all/config_error.rb
4
10
  lib/sdoc_all/file_list.rb
5
11
  lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb
6
- lib/sdoc_all/generator/sdoc_all/templates/config.yml
7
12
  lib/sdoc_all/generator/sdoc_all/templates/Rakefile
13
+ lib/sdoc_all/generator/sdoc_all/templates/config.yml
8
14
  lib/sdoc_all/parts/gems.rb
9
15
  lib/sdoc_all/parts/paths.rb
10
16
  lib/sdoc_all/parts/plugins.rb
11
17
  lib/sdoc_all/parts/rails.rb
12
18
  lib/sdoc_all/parts/ruby.rb
13
19
  lib/sdoc_all/task.rb
14
- lib/sdoc_all.rb
15
20
  lib/tasks/sdoc_all_rake.rb
16
- LICENSE
17
- Manifest
18
- Rakefile
19
- README.rdoc
20
21
  spec/sdoc_all/file_list_spec.rb
21
22
  spec/sdoc_all/gems_spec.rb
22
23
  spec/sdoc_all/paths_spec.rb
@@ -26,4 +27,3 @@ spec/sdoc_all/ruby_spec.rb
26
27
  spec/sdoc_all_spec.rb
27
28
  spec/spec.opts
28
29
  spec/spec_helper.rb
29
- VERSION.yml
data/Rakefile CHANGED
@@ -8,15 +8,15 @@ require 'echoe'
8
8
  version = YAML.load_file(File.join(File.dirname(__FILE__), 'VERSION.yml')).join('.') rescue nil
9
9
 
10
10
  echoe = Echoe.new('sdoc_all', version) do |p|
11
- p.author = "toy"
12
- p.summary = "documentation for everything"
13
- p.description = "Command line tool to get documentation for ruby, rails, gems and plugins in one place"
14
- p.email = "ivan@workisfun.ru"
15
- p.url = "http://github.com/toy/sdoc_all"
11
+ p.author = 'toy'
12
+ p.summary = 'documentation for everything'
13
+ p.description = 'Command line tool to get documentation for ruby, rails, gems and plugins in one place'
14
+ p.email = 'ivan@workisfun.ru'
15
+ p.url = 'http://github.com/toy/sdoc_all'
16
16
  p.runtime_dependencies << 'activesupport'
17
17
  p.runtime_dependencies << 'rake'
18
18
  p.runtime_dependencies << 'progress >=0.0.8'
19
- # TODO: sdoc or voloko-sdoc
19
+ p.runtime_dependencies << 'sdoc'
20
20
  p.project = 'toytoy'
21
21
  end
22
22
 
@@ -26,21 +26,3 @@ task 'ghost' do
26
26
  system 'sudo', 'rm', '-r', path
27
27
  symlink File.expand_path('.'), path
28
28
  end
29
-
30
- begin
31
- require 'spec/rake/spectask'
32
-
33
- task :default => :spec
34
- task :test
35
-
36
- desc "Run the specs"
37
- Spec::Rake::SpecTask.new do |t|
38
- t.spec_opts = ['--options', "spec/spec.opts"]
39
- t.spec_files = FileList['spec/**/*_spec.rb']
40
- end
41
- rescue LoadError
42
- puts <<-EOS
43
- To use rspec for testing you must install rspec gem:
44
- gem install rspec
45
- EOS
46
- end
data/VERSION.yml CHANGED
@@ -1 +1 @@
1
- [1, 0, 2, 1]
1
+ [1, 0, 2, 2]
data/sdoc_all.gemspec CHANGED
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{sdoc_all}
5
- s.version = "1.0.2.1"
5
+ s.version = "1.0.2.2"
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-09-06}
9
+ s.date = %q{2009-09-21}
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
- s.extra_rdoc_files = ["bin/sdoc-all", "lib/sdoc_all/base.rb", "lib/sdoc_all/config_error.rb", "lib/sdoc_all/file_list.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/parts/gems.rb", "lib/sdoc_all/parts/paths.rb", "lib/sdoc_all/parts/plugins.rb", "lib/sdoc_all/parts/rails.rb", "lib/sdoc_all/parts/ruby.rb", "lib/sdoc_all/task.rb", "lib/sdoc_all.rb", "lib/tasks/sdoc_all_rake.rb", "LICENSE", "README.rdoc"]
15
- s.files = ["bin/sdoc-all", "lib/sdoc_all/base.rb", "lib/sdoc_all/config_error.rb", "lib/sdoc_all/file_list.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/parts/gems.rb", "lib/sdoc_all/parts/paths.rb", "lib/sdoc_all/parts/plugins.rb", "lib/sdoc_all/parts/rails.rb", "lib/sdoc_all/parts/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/file_list_spec.rb", "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"]
14
+ s.extra_rdoc_files = ["LICENSE", "README.rdoc", "bin/sdoc-all", "lib/sdoc_all.rb", "lib/sdoc_all/base.rb", "lib/sdoc_all/config_error.rb", "lib/sdoc_all/file_list.rb", "lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb", "lib/sdoc_all/generator/sdoc_all/templates/Rakefile", "lib/sdoc_all/generator/sdoc_all/templates/config.yml", "lib/sdoc_all/parts/gems.rb", "lib/sdoc_all/parts/paths.rb", "lib/sdoc_all/parts/plugins.rb", "lib/sdoc_all/parts/rails.rb", "lib/sdoc_all/parts/ruby.rb", "lib/sdoc_all/task.rb", "lib/tasks/sdoc_all_rake.rb"]
15
+ s.files = ["LICENSE", "Manifest", "README.rdoc", "Rakefile", "VERSION.yml", "bin/sdoc-all", "lib/sdoc_all.rb", "lib/sdoc_all/base.rb", "lib/sdoc_all/config_error.rb", "lib/sdoc_all/file_list.rb", "lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb", "lib/sdoc_all/generator/sdoc_all/templates/Rakefile", "lib/sdoc_all/generator/sdoc_all/templates/config.yml", "lib/sdoc_all/parts/gems.rb", "lib/sdoc_all/parts/paths.rb", "lib/sdoc_all/parts/plugins.rb", "lib/sdoc_all/parts/rails.rb", "lib/sdoc_all/parts/ruby.rb", "lib/sdoc_all/task.rb", "lib/tasks/sdoc_all_rake.rb", "spec/sdoc_all/file_list_spec.rb", "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", "sdoc_all.gemspec"]
16
16
  s.homepage = %q{http://github.com/toy/sdoc_all}
17
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Sdoc_all", "--main", "README.rdoc"]
18
18
  s.require_paths = ["lib"]
@@ -28,14 +28,17 @@ Gem::Specification.new do |s|
28
28
  s.add_runtime_dependency(%q<activesupport>, [">= 0"])
29
29
  s.add_runtime_dependency(%q<rake>, [">= 0"])
30
30
  s.add_runtime_dependency(%q<progress>, [">= 0.0.8"])
31
+ s.add_runtime_dependency(%q<sdoc>, [">= 0"])
31
32
  else
32
33
  s.add_dependency(%q<activesupport>, [">= 0"])
33
34
  s.add_dependency(%q<rake>, [">= 0"])
34
35
  s.add_dependency(%q<progress>, [">= 0.0.8"])
36
+ s.add_dependency(%q<sdoc>, [">= 0"])
35
37
  end
36
38
  else
37
39
  s.add_dependency(%q<activesupport>, [">= 0"])
38
40
  s.add_dependency(%q<rake>, [">= 0"])
39
41
  s.add_dependency(%q<progress>, [">= 0.0.8"])
42
+ s.add_dependency(%q<sdoc>, [">= 0"])
40
43
  end
41
44
  end
@@ -60,18 +60,22 @@ class SdocAll
60
60
  describe "download_matching_archive" do
61
61
  before do
62
62
  @ftp = mock(:ftp, :debug_mode= => nil, :passive= => nil, :login => nil)
63
- @ftp.should_receive(:chdir).with('/pub/ruby')
64
- @list = ['mode user ... a', 'mode user ... b', 'mode user ... c']
65
- @paths = ['/pub/ruby/a', '/pub/ruby/b', '/pub/ruby/c']
66
- @ftp.should_receive(:list).with('ruby-*.tar.bz2').and_return(@list)
63
+ @ftp.should_receive(:chdir).with(Pathname('/pub/ruby'))
64
+ @list = ['mode user ... ruby-1.2.3.tar.bz2', 'mode user ... ruby-1.2.4.tar.bz2', 'mode user ... ruby-1.2.5.tar.bz2']
65
+ @paths = [Pathname('/pub/ruby/ruby-1.2.3.tar.bz2'), Pathname('/pub/ruby/ruby-1.2.4.tar.bz2'), Pathname('/pub/ruby/ruby-1.2.5.tar.bz2')]
66
+ @ftp.should_receive(:list).with('*').and_return(@list)
67
67
  Net::FTP.should_receive(:open).with('ftp.ruby-lang.org').and_yield(@ftp)
68
+
69
+ @dest = mock(:dest)
70
+ @sources_path = mock(:sources_path, :parent => mock(:parent, :children => @children, :+ => @dest))
71
+ Ruby.stub!(:sources_path).and_return(@sources_path)
68
72
  end
69
73
 
70
74
  it "should not download anything if no matces" do
71
75
  @ftp.should_not_receive(:size)
72
76
  @ftp.should_not_receive(:getbinaryfile)
73
77
 
74
- Ruby.should_receive(:last_matching_ruby_archive).with('1.2.3', @paths).and_return(nil)
78
+ Ruby.should_receive(:last_matching_ruby_archive).with('1.2.3', @paths).any_number_of_times.and_return(nil)
75
79
  Ruby.download_matching_archive('1.2.3')
76
80
  end
77
81
 
@@ -81,7 +85,7 @@ class SdocAll
81
85
  end
82
86
 
83
87
  it "should download if it does not exist locally" do
84
- File.stub!(:exist?).and_return(false)
88
+ @dest.stub!(:exist?).and_return(false)
85
89
  @ftp.should_receive(:getbinaryfile)
86
90
 
87
91
  Ruby.should_receive(:last_matching_ruby_archive).with('1.2.3', @paths).and_return(@tar)
@@ -89,8 +93,8 @@ class SdocAll
89
93
  end
90
94
 
91
95
  it "should download if local file size is not equal to remote" do
92
- File.stub!(:exist?).and_return(true)
93
- File.stub!(:size).and_return(1000)
96
+ @dest.stub!(:exist?).and_return(true)
97
+ @dest.stub!(:size).and_return(1000)
94
98
  @ftp.stub!(:size).and_return(2000)
95
99
  @ftp.should_receive(:getbinaryfile)
96
100
 
@@ -98,9 +102,9 @@ class SdocAll
98
102
  Ruby.download_matching_archive('1.2.3')
99
103
  end
100
104
 
101
- it "should not download if local file size is to remote" do
102
- File.stub!(:exist?).and_return(true)
103
- File.stub!(:size).and_return(2000)
105
+ it "should not download if local file size is equal to remote" do
106
+ @dest.stub!(:exist?).and_return(true)
107
+ @dest.stub!(:size).and_return(2000)
104
108
  @ftp.stub!(:size).and_return(2000)
105
109
  @ftp.should_not_receive(:getbinaryfile)
106
110
 
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.2.1
4
+ version: 1.0.2.2
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-09-06 00:00:00 +04:00
12
+ date: 2009-09-21 00:00:00 +04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -42,6 +42,16 @@ dependencies:
42
42
  - !ruby/object:Gem::Version
43
43
  version: 0.0.8
44
44
  version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: sdoc
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
45
55
  description: Command line tool to get documentation for ruby, rails, gems and plugins in one place
46
56
  email: ivan@workisfun.ru
47
57
  executables:
@@ -49,43 +59,44 @@ executables:
49
59
  extensions: []
50
60
 
51
61
  extra_rdoc_files:
62
+ - LICENSE
63
+ - README.rdoc
52
64
  - bin/sdoc-all
65
+ - lib/sdoc_all.rb
53
66
  - lib/sdoc_all/base.rb
54
67
  - lib/sdoc_all/config_error.rb
55
68
  - lib/sdoc_all/file_list.rb
56
69
  - lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb
57
- - lib/sdoc_all/generator/sdoc_all/templates/config.yml
58
70
  - lib/sdoc_all/generator/sdoc_all/templates/Rakefile
71
+ - lib/sdoc_all/generator/sdoc_all/templates/config.yml
59
72
  - lib/sdoc_all/parts/gems.rb
60
73
  - lib/sdoc_all/parts/paths.rb
61
74
  - lib/sdoc_all/parts/plugins.rb
62
75
  - lib/sdoc_all/parts/rails.rb
63
76
  - lib/sdoc_all/parts/ruby.rb
64
77
  - lib/sdoc_all/task.rb
65
- - lib/sdoc_all.rb
66
78
  - lib/tasks/sdoc_all_rake.rb
79
+ files:
67
80
  - LICENSE
81
+ - Manifest
68
82
  - README.rdoc
69
- files:
83
+ - Rakefile
84
+ - VERSION.yml
70
85
  - bin/sdoc-all
86
+ - lib/sdoc_all.rb
71
87
  - lib/sdoc_all/base.rb
72
88
  - lib/sdoc_all/config_error.rb
73
89
  - lib/sdoc_all/file_list.rb
74
90
  - lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb
75
- - lib/sdoc_all/generator/sdoc_all/templates/config.yml
76
91
  - lib/sdoc_all/generator/sdoc_all/templates/Rakefile
92
+ - lib/sdoc_all/generator/sdoc_all/templates/config.yml
77
93
  - lib/sdoc_all/parts/gems.rb
78
94
  - lib/sdoc_all/parts/paths.rb
79
95
  - lib/sdoc_all/parts/plugins.rb
80
96
  - lib/sdoc_all/parts/rails.rb
81
97
  - lib/sdoc_all/parts/ruby.rb
82
98
  - lib/sdoc_all/task.rb
83
- - lib/sdoc_all.rb
84
99
  - lib/tasks/sdoc_all_rake.rb
85
- - LICENSE
86
- - Manifest
87
- - Rakefile
88
- - README.rdoc
89
100
  - spec/sdoc_all/file_list_spec.rb
90
101
  - spec/sdoc_all/gems_spec.rb
91
102
  - spec/sdoc_all/paths_spec.rb
@@ -95,7 +106,6 @@ files:
95
106
  - spec/sdoc_all_spec.rb
96
107
  - spec/spec.opts
97
108
  - spec/spec_helper.rb
98
- - VERSION.yml
99
109
  - sdoc_all.gemspec
100
110
  has_rdoc: true
101
111
  homepage: http://github.com/toy/sdoc_all