doc 0.2.5 → 0.2.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.
Files changed (3) hide show
  1. data/doc.gemspec +1 -1
  2. data/lib/doc/merger.rb +3 -1
  3. metadata +3 -3
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'doc'
5
- s.version = '0.2.5'
5
+ s.version = '0.2.6'
6
6
  s.summary = %q{Get all ruby documentation in one place}
7
7
  s.description = %Q{Generate `Rakefile` with `docr` and get searchable documentation for ruby, rails, gems, plugins and all other ruby code in one place}
8
8
  s.homepage = "http://github.com/toy/#{s.name}"
@@ -21,11 +21,13 @@ module Doc
21
21
  Progress.note = task.dir_name
22
22
  task.run
23
23
  end
24
- super(failed_state_changed?)
24
+ super(failed_state_changed? || tasks.any?(&:succeeded?))
25
25
  write_failed_state if succeeded?
26
26
  end
27
27
 
28
28
  def build
29
+ $stderr.puts "Merging #{title}"
30
+
29
31
  succeded_tasks = tasks.reject(&:failed?)
30
32
  task_titles = succeded_tasks.map{ |task| task.title.gsub(',', '_') }.join(',')
31
33
  task_urls = succeded_tasks.map{ |task| task.doc_dir.relative_path_from(doc_dir).to_s.strip }.join(' ')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 5
10
- version: 0.2.5
9
+ - 6
10
+ version: 0.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ivan Kuchin