eternity 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae0c0bddc4d901d3dcd08eaeca52e6bfe57795b6
4
- data.tar.gz: 96978a1839083f06460ebbf2f42c7b11a0315402
3
+ metadata.gz: 6a63e70964889425618e513c2b015c4dab49df29
4
+ data.tar.gz: 9469a0aaef5ade727668538d82037bf6b37e2df7
5
5
  SHA512:
6
- metadata.gz: 0d617c2fb2ce1a9bfb5f7c6512b475c088b05dc003bfacb2ce05899c84377c7da3f3cf28fd1e950b05b79dc17343168788b0f55c7465dcd0d5b09aaecb20203a
7
- data.tar.gz: 2c4c6561199c5784d577d850eaac89455881962fd1864aef2264dfc1eba444a774ef6799bdd62551c0d66b6e7fbde8616e292ccbb8d5f0959177c98da590f88b
6
+ metadata.gz: c4ef8f7b20359f19675244b29e75d72fcd994af5c87bad10db3a1557177a460684d70295a0a173f1edabf12693ae7697f9beb557f88540a7c3c139627e86ed6e
7
+ data.tar.gz: 0a7f43754360afb66f62dc9c7486baa455cb7c6513fee2c5ec62096f702bcd6a19bf19ca0cf31a9a4bc42c594447896a9583571168cff4b658d7dc455eae6acb
@@ -61,8 +61,8 @@ module Eternity
61
61
  end
62
62
 
63
63
  def fast_forward?(commit)
64
- return commit.nil? if first?
65
- parent_ids.any? { |id| id == commit.id } || parents.map { |c| c.fast_forward?(commit) }.inject(:|)
64
+ return true if commit.nil?
65
+ history_times.key? commit.id
66
66
  end
67
67
 
68
68
  def base_history_at(commit)
@@ -1,3 +1,3 @@
1
1
  module Eternity
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eternity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-06 00:00:00.000000000 Z
11
+ date: 2015-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redic