docurium 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docurium.gemspec +1 -1
- data/lib/docurium.rb +17 -1
- data/lib/docurium/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dcfc42eb8c64c92839d2a857871dc250e0218a3
|
4
|
+
data.tar.gz: a62b2faed5fcaaffdc4d5fdd96edbddd18d6ee4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 676d2cf9763628d932da7b81b22b986ed18323774d3beb65045d0172ced8b7d6ca1cd51795d586327faf961e147826155f11e220ce613e840f68c536e41c2447
|
7
|
+
data.tar.gz: 4c3d5e0d1f86b0eeb5ffc8588470f88c78cffba34c7d3d56ceaad870bb4a782878a5657073b2ab1ebb420293c9fdcdf5b74d2268fcef2bec4cdc42bda8f20831
|
data/docurium.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = s.summary
|
14
14
|
s.license = 'MIT'
|
15
15
|
|
16
|
-
s.add_dependency "version_sorter", "~>
|
16
|
+
s.add_dependency "version_sorter", "~>2.0"
|
17
17
|
s.add_dependency "mustache", "~> 0.99"
|
18
18
|
s.add_dependency "rocco", "~>0.8"
|
19
19
|
s.add_dependency "gli", "~>2.5"
|
data/lib/docurium.rb
CHANGED
@@ -188,6 +188,11 @@ class Docurium
|
|
188
188
|
|
189
189
|
end
|
190
190
|
|
191
|
+
# We tally the sigantures in the order they finished, which is
|
192
|
+
# arbitrary due to the concurrency, so we need to sort them once
|
193
|
+
# they've finsihed.
|
194
|
+
sort_sigs!
|
195
|
+
|
191
196
|
project = {
|
192
197
|
:versions => versions.reverse,
|
193
198
|
:github => @options['github'],
|
@@ -247,7 +252,10 @@ class Docurium
|
|
247
252
|
end
|
248
253
|
|
249
254
|
def get_versions
|
250
|
-
|
255
|
+
releases = @repo.tags
|
256
|
+
.map { |tag| tag.name.gsub(%r(^refs/tags/), '') }
|
257
|
+
.delete_if { |tagname| tagname.match(%r(-rc\d*$)) }
|
258
|
+
VersionSorter.sort(releases)
|
251
259
|
end
|
252
260
|
|
253
261
|
def parse_headers(index, version)
|
@@ -288,6 +296,14 @@ class Docurium
|
|
288
296
|
end
|
289
297
|
end
|
290
298
|
|
299
|
+
def sort_sigs!
|
300
|
+
@sigs.keys.each do |fn|
|
301
|
+
VersionSorter.sort!(@sigs[fn][:exists])
|
302
|
+
# Put HEAD at the back
|
303
|
+
@sigs[fn][:exists] << @sigs[fn][:exists].shift
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
291
307
|
def find_subtree(version, path)
|
292
308
|
tree = nil
|
293
309
|
if version == 'HEAD'
|
data/lib/docurium/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docurium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Martín Nieto
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: version_sorter
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '2.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '2.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: mustache
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|