compact_index 0.8.0 → 0.8.1

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: 474f80952b0a87967f5ab7b3de9417398aa8f557
4
- data.tar.gz: 320b1fd0ae8d2abfad48853339c6918d4f1d325c
3
+ metadata.gz: 45af59196a7c0e110d5a888103c573b88da564d4
4
+ data.tar.gz: c7aa0e482d9f5bd5f08708633676151ba46fbe95
5
5
  SHA512:
6
- metadata.gz: 3b03b862fba7ff8ded34e3f2a8dd0fda3682662a2b131525321f6c15d32dfd971cc0709143aa320acbf1e0fe62ddeaa5c016b3b12f32bf936e53547dc4f0d08a
7
- data.tar.gz: a7b1bc8c9dc3d0d4689b8c002db1ca22a8453a56690bc74a97c9b8c50a8b2986564bfd065fb8d41fd2d0bd4d130a06bf709216f8960d91773a4aff8f7d095a42
6
+ metadata.gz: a3ddc30cb5ea6dfd4a82f08772f0ca75e36a62e46c441f03f5687837be5d46292b4b9658b37e780cd3b07d8ecb9e54553cb6e276d5dbe20d32d70bf74a502f51
7
+ data.tar.gz: 3989c7b72b3582b6df70e86a1db72b4c65c2dd5795ad0f637db4c2579da95b169842d65889846ade6412634b70514a6743e3cd77d004c1c75cdfd74491ddbc5c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.8.1 (August 13, 2015)
2
+
3
+ Bugfixes:
4
+
5
+ - deal with nil created_at when sorting on info
6
+
1
7
  ## 0.8.0 (August 13, 2015)
2
8
 
3
9
  Features:
data/lib/compact_index.rb CHANGED
@@ -12,7 +12,16 @@ module CompactIndex
12
12
 
13
13
  def self.info(params)
14
14
  output = "---\n"
15
- params.sort { |a,b| a[:created_at] <=> b[:created_at] }.each do |version|
15
+ sorted = params.sort do |a,b|
16
+ if a[:created_at] and b[:created_at]
17
+ a[:created_at] <=> b[:created_at]
18
+ elsif a[:created_at]
19
+ -1
20
+ else
21
+ 1
22
+ end
23
+ end
24
+ sorted.each do |version|
16
25
  output << version_line(version) << "\n"
17
26
  end
18
27
  output
@@ -1,3 +1,3 @@
1
1
  module CompactIndex
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compact_index
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - fotanus@gmail.com
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-13 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake