sdoc_all 0.1.0 → 0.2.0.1

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.
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.1.0
4
+ version: 0.2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - toy
@@ -9,19 +9,9 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-22 00:00:00 +04:00
12
+ date: 2009-04-27 00:00:00 +04:00
13
13
  default_executable:
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: sdoc
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
25
15
  - !ruby/object:Gem::Dependency
26
16
  name: activesupport
27
17
  type: :runtime
@@ -51,9 +41,12 @@ dependencies:
51
41
  - - ">="
52
42
  - !ruby/object:Gem::Version
53
43
  version: "0"
44
+ - - "="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.0.8
54
47
  version:
55
48
  description: Command line tool to get documentation for ruby, rails, gems and plugins in one place
56
- email: ""
49
+ email: ivan@workisfun.ru
57
50
  executables:
58
51
  - sdoc-all
59
52
  extensions: []
@@ -61,35 +54,47 @@ extensions: []
61
54
  extra_rdoc_files:
62
55
  - bin/sdoc-all
63
56
  - lib/sdoc_all/base.rb
57
+ - lib/sdoc_all/config_error.rb
64
58
  - lib/sdoc_all/gems.rb
65
59
  - lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb
60
+ - lib/sdoc_all/generator/sdoc_all/templates/config.yml
66
61
  - lib/sdoc_all/generator/sdoc_all/templates/Rakefile
67
- - lib/sdoc_all/generator/sdoc_all/templates/sdoc.config.yml.erb
62
+ - lib/sdoc_all/paths.rb
68
63
  - lib/sdoc_all/plugins.rb
69
64
  - lib/sdoc_all/rails.rb
70
- - lib/sdoc_all/rdoc_task.rb
71
- - lib/sdoc_all/rdoc_tasks.rb
72
65
  - lib/sdoc_all/ruby.rb
66
+ - lib/sdoc_all/task.rb
73
67
  - lib/sdoc_all.rb
74
- - lib/tasks/sdoc_all.rb
68
+ - lib/tasks/sdoc_all_rake.rb
69
+ - LICENSE
75
70
  - README.rdoc
76
71
  files:
77
72
  - bin/sdoc-all
78
73
  - lib/sdoc_all/base.rb
74
+ - lib/sdoc_all/config_error.rb
79
75
  - lib/sdoc_all/gems.rb
80
76
  - lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb
77
+ - lib/sdoc_all/generator/sdoc_all/templates/config.yml
81
78
  - lib/sdoc_all/generator/sdoc_all/templates/Rakefile
82
- - lib/sdoc_all/generator/sdoc_all/templates/sdoc.config.yml.erb
79
+ - lib/sdoc_all/paths.rb
83
80
  - lib/sdoc_all/plugins.rb
84
81
  - lib/sdoc_all/rails.rb
85
- - lib/sdoc_all/rdoc_task.rb
86
- - lib/sdoc_all/rdoc_tasks.rb
87
82
  - lib/sdoc_all/ruby.rb
83
+ - lib/sdoc_all/task.rb
88
84
  - lib/sdoc_all.rb
89
- - lib/tasks/sdoc_all.rb
85
+ - lib/tasks/sdoc_all_rake.rb
86
+ - LICENSE
90
87
  - Manifest
91
88
  - Rakefile
92
89
  - README.rdoc
90
+ - spec/sdoc_all/gems_spec.rb
91
+ - spec/sdoc_all/paths_spec.rb
92
+ - spec/sdoc_all/plugins_spec.rb
93
+ - spec/sdoc_all/rails_spec.rb
94
+ - spec/sdoc_all/ruby_spec.rb
95
+ - spec/sdoc_all_spec.rb
96
+ - spec/spec.opts
97
+ - spec/spec_helper.rb
93
98
  - VERSION.yml
94
99
  - sdoc_all.gemspec
95
100
  has_rdoc: true
@@ -124,6 +129,6 @@ rubyforge_project: toytoy
124
129
  rubygems_version: 1.3.2
125
130
  signing_key:
126
131
  specification_version: 3
127
- summary: Command line tool to get documentation for ruby, rails, gems and plugins in one place
132
+ summary: documentation for everything
128
133
  test_files: []
129
134
 
@@ -1 +0,0 @@
1
- <%= YAML.dump(sdoc_options) %>
@@ -1,45 +0,0 @@
1
- class SdocAll
2
- class RdocTask
3
- def initialize(options = {})
4
- @options = options
5
- @options[:title] = @options[:doc_path].sub('s/', ' — ') if @options[:doc_path]
6
- end
7
-
8
- def src_path
9
- @options[:src_path]
10
- end
11
-
12
- def doc_path
13
- @options[:doc_path]
14
- end
15
-
16
- def pathes
17
- @options[:pathes]
18
- end
19
-
20
- def title
21
- @options[:title]
22
- end
23
-
24
- def main
25
- @options[:main]
26
- end
27
-
28
- def name_parts
29
- @options[:name_parts]
30
- end
31
-
32
- def run(options = {})
33
- unless File.directory?(options[:docs_path] + doc_path)
34
- Dir.chdir(options[:sources_path] + src_path) do
35
- cmd = %w(sdoc)
36
- cmd << '-o' << options[:docs_path] + doc_path
37
- cmd << '-t' << title
38
- cmd << '-T' << 'direct'
39
- cmd << '-m' << main if main
40
- system(*cmd + pathes)
41
- end
42
- end
43
- end
44
- end
45
- end
@@ -1,32 +0,0 @@
1
- class SdocAll
2
- class RdocTasks
3
- include Enumerable
4
- def initialize
5
- @tasks = {}
6
- end
7
-
8
- def add(klass, options = {})
9
- type = klass.name.split('::').last.downcase.to_sym
10
- (@tasks[type] ||= []) << RdocTask.new(options)
11
- end
12
-
13
- def length
14
- @tasks.sum{ |type, tasks| tasks.length }
15
- end
16
- def each(&block)
17
- @tasks.each do |type, tasks|
18
- tasks.each(&block)
19
- end
20
- end
21
-
22
- def method_missing(method, *args, &block)
23
- if /^find_or_(first|last)_(.*)/ === method.to_s
24
- tasks = @tasks[$2.to_sym] || super
25
- name = args[0]
26
- name && tasks.find{ |task| task.name_parts.any?{ |part| part[name] } } || ($1 == 'first' ? tasks.first : tasks.last)
27
- else
28
- @tasks[method] || super
29
- end
30
- end
31
- end
32
- end
@@ -1,10 +0,0 @@
1
- task :default => :update
2
-
3
- desc "Update documentation"
4
- task :update do
5
- require 'sdoc_all'
6
-
7
- options = YAML.load_file('sdoc.config.yml').symbolize_keys rescue {}
8
-
9
- SdocAll.run(options)
10
- end