kagu 1.2.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/kagu/track.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f71aa5640c0be036f6a6f36b2217ef0ef8cb2666d598dc2e08612fd105c84c05
4
- data.tar.gz: 675a46ea83f6d36c36e704f8e0f0c28d47e61d0be8a90256bb8e3c462d4f3e1d
3
+ metadata.gz: 05530d96685beff7b5bd5b348a7a36ec250e14e7e3f670c8af5a8a2e90869e19
4
+ data.tar.gz: c8d0c1c58b6d249c182111234f4511796089b7edd74ed56d5df55ede882d9448
5
5
  SHA512:
6
- metadata.gz: ced24da4f9c8dc05de3aa8d082f6808515575a9e04cfb69be56e61c53fe70b8b1fe6e899b21828fcaee61521c2592f802f0156aef2438ad5603ee2d2219d4823
7
- data.tar.gz: 8e3b452a64672c36691876d9487cb79442b0788c0c5cad2a509835419391bde343cf8ebe89e9a98a3a79aa732e7ed017ff7d7cdbe2ad4dbe1d1bcca09c40321e
6
+ metadata.gz: 3d3ee5e53b26cb920203e1282544a3d7e30bddb72935bdacc074745dccd2bd4ca3ad8862a4edc1c049e56e128c03c796dbbb0e91c0b76ab530f77312f8041547
7
+ data.tar.gz: c805e52b6ec32a7b1656239951f5f2ff4e9647784ad1ef501efe014a42f711809368da53b13878516cb736d48eb8c647d87bd3d730a82643db4e61fff00e9716
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.3
1
+ 2.0.0
data/lib/kagu/track.rb CHANGED
@@ -16,11 +16,11 @@ module Kagu
16
16
 
17
17
  def <=>(other)
18
18
  return nil unless other.is_a?(self.class)
19
- added_at <=> other.added_at
19
+ length <=> other.length
20
20
  end
21
21
 
22
22
  def ==(other)
23
- other.is_a?(self.class) && artist == other.artist && title == other.title && (length.to_i - other.length.to_i).abs < 3
23
+ other.is_a?(self.class) && artist == other.artist && title == other.title
24
24
  end
25
25
 
26
26
  def eql?(other)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kagu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Toulotte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-11 00:00:00.000000000 Z
11
+ date: 2018-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport