sdoc_all 0.2.0.10 → 0.2.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/sdoc_all.rb +8 -2
- data/sdoc_all.gemspec +2 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
[0, 2, 0,
|
1
|
+
[0, 2, 0, 11]
|
data/lib/sdoc_all.rb
CHANGED
@@ -24,6 +24,10 @@ class SdocAll
|
|
24
24
|
@update.nil? || @update
|
25
25
|
end
|
26
26
|
|
27
|
+
def title
|
28
|
+
@title
|
29
|
+
end
|
30
|
+
|
27
31
|
def last_build_sdoc_version_path
|
28
32
|
Base.base_path + 'sdoc.version'
|
29
33
|
end
|
@@ -63,7 +67,7 @@ class SdocAll
|
|
63
67
|
task.run(options)
|
64
68
|
end
|
65
69
|
|
66
|
-
hash = Digest::SHA1.hexdigest(tasks.map(&:hash).inspect)
|
70
|
+
hash = Digest::SHA1.hexdigest(tasks.map(&:hash).inspect + title)
|
67
71
|
created_hash = config_hash_path.read rescue nil
|
68
72
|
|
69
73
|
if hash != created_hash
|
@@ -85,7 +89,7 @@ class SdocAll
|
|
85
89
|
|
86
90
|
cmd = %w(sdoc-merge)
|
87
91
|
cmd << '-o' << Base.public_path
|
88
|
-
cmd << '-t' <<
|
92
|
+
cmd << '-t' << title
|
89
93
|
cmd << '-n' << titles.join(',')
|
90
94
|
cmd << '-u' << urls.join(' ')
|
91
95
|
Base.system(*cmd + paths)
|
@@ -130,6 +134,8 @@ class SdocAll
|
|
130
134
|
created = last_build_sdoc_version_path.mtime rescue nil
|
131
135
|
@update = created.nil? || created < min_update_interval.ago
|
132
136
|
|
137
|
+
@title = config[:title].present? ? config[:title] : 'ruby related reference'
|
138
|
+
|
133
139
|
if config[:sdoc] && config[:sdoc].is_a?(Array) && config[:sdoc].length > 0
|
134
140
|
errors = []
|
135
141
|
config[:sdoc].each do |entry|
|
data/sdoc_all.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
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.11"
|
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-06-
|
9
|
+
s.date = %q{2009-06-26}
|
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}
|
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.11
|
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-06-
|
12
|
+
date: 2009-06-26 00:00:00 +04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|