kagu 3.0.6 → 3.0.7

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 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4e99368adaa97b1dc53ed962f73aaa70fb9215f63d19cd0d7d064723814877f
4
- data.tar.gz: 7bed18a725c323edcde770be5f49cf1113d0b90d95a6fdd356bb274cf05923d5
3
+ metadata.gz: '08a61e583b7b18fcfb6861e475872806f51ca5e16fee613a9d6decf4a4654be5'
4
+ data.tar.gz: 1cd22e2339674a7f7583fde9542ed495dbce8b1cd0f9643a2f5fac9fdc202501
5
5
  SHA512:
6
- metadata.gz: 4348fc1cfcba406c528d8719eec7b0147bd3fd82d8b19472d5b786a06ac0ba14fc1a3d73193a6cea95cefb7323c8a175d94a35d36dfe2782b1349e33441c0833
7
- data.tar.gz: 509cc114a1c0087d5df86195cdb868cac1ed4d2ec83ea53a3d25fdb9defe5990e16c478712d7eade5fe279c11799671a961b65cfc906085ceffea43c7cee7232
6
+ metadata.gz: e62e833e1a169c9032edeb75d20fb5d19ffbafc950e9ffe92dedf7817425c123f451ab9b15cc2852ceb899b119a72816a52695697e664336c778294cc9f873e3
7
+ data.tar.gz: c61a3dca90a31a308788a0aaa67b06c577ec97c039801cf9c4c1df8bd182d3700f662d12fbc86f37d97a737234b9b60854e73b623163e9421cf143084e1f0636
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.6
1
+ 3.0.7
data/lib/kagu/track.rb CHANGED
@@ -59,7 +59,8 @@ module Kagu
59
59
  end
60
60
 
61
61
  def bpm=(value)
62
- @bpm = value.to_s =~ /\A[0-9]+\z/ ? value.to_i : nil
62
+ value = value.to_s =~ /\A[0-9]+\z/ ? value.to_i : nil
63
+ @bpm = (value && value > 0) ? value : nil
63
64
  end
64
65
 
65
66
  def genre=(value)
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: 3.0.6
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Toulotte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-06 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport