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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef759fe2bcc48694d8393ed1812d996149cd6852
4
- data.tar.gz: 12bbee6302d4f68c66af27c231a28cf0f9e306fc
3
+ metadata.gz: 1dcfc42eb8c64c92839d2a857871dc250e0218a3
4
+ data.tar.gz: a62b2faed5fcaaffdc4d5fdd96edbddd18d6ee4a
5
5
  SHA512:
6
- metadata.gz: 077054ce5ca5c84bf529597a0e5345729fb329cef5e934bfc3deba2dcecdf8dfcdb24b2bf01d19d3ff21f85670a87cc6d0bdd1a1b5c02dacaa47dff9eb6ac289
7
- data.tar.gz: 5b7e76e3f66ebaed25c234135bf3c16db099f5f892796dbf9190a3297049255126eac7123f990263524d5e9af69d8e9b1aa64614cb2bcd5b0bf69a303438d533
6
+ metadata.gz: 676d2cf9763628d932da7b81b22b986ed18323774d3beb65045d0172ced8b7d6ca1cd51795d586327faf961e147826155f11e220ce613e840f68c536e41c2447
7
+ data.tar.gz: 4c3d5e0d1f86b0eeb5ffc8588470f88c78cffba34c7d3d56ceaad870bb4a782878a5657073b2ab1ebb420293c9fdcdf5b74d2268fcef2bec4cdc42bda8f20831
@@ -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", "~>1.1"
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"
@@ -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
- VersionSorter.sort(@repo.tags.map { |tag| tag.name.gsub(%r(^refs/tags/), '') })
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'
@@ -1,3 +1,3 @@
1
1
  class Docurium
2
- Version = VERSION = '0.4.1'
2
+ Version = VERSION = '0.4.2'
3
3
  end
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.1
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-03-18 00:00:00.000000000 Z
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: '1.1'
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: '1.1'
27
+ version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: mustache
30
30
  requirement: !ruby/object:Gem::Requirement