music-transcription 0.6.2 → 0.6.3

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: 798476169e353327ed492007a49a4fa4cb7a5876
4
- data.tar.gz: e1b210b46df6d19be8376981d273386d259112b6
3
+ metadata.gz: 468b4c25a3781461ca19c867a67f2525f289a971
4
+ data.tar.gz: e0627f559880797830c365081f1b60771cbcbd3f
5
5
  SHA512:
6
- metadata.gz: 703b333835f7a602d7fddd76f8cb3a4de29e2ffc5e917a5f6041056f8c5bf26d1159095cdd9d9860be184f1ee9dddc52d7819e1aa07a4d2c5c1a570024434a4d
7
- data.tar.gz: 48f2c1e631998cc99cfa01bf960dc405b0280717a9357fcf40cefc6d8c8550a7c94c9527d35d92f301d62a457f2053ec2b99ad394c0d85950932d4c8cf4454ec
6
+ metadata.gz: 8e2b80ffa7a5001528d606e14a4b5b28044ebb4564d846d359426774d2e4d92767b5eafbc2e77b3e77239f34b6d2bab529a28d2e8617ead727f0bac32f87fbe7
7
+ data.tar.gz: 2011a25e44734a564a492dc7067b608a2e259c7ac62f925683cc05a080db9b62a495369a42d07feb448ba39cf05676600dd933bcdcc3b14cd663ea6bb0f67d74
@@ -99,6 +99,7 @@ class Note
99
99
 
100
100
  def stretch! ratio
101
101
  @duration *= ratio
102
+ return self
102
103
  end
103
104
 
104
105
  def to_s
@@ -2,6 +2,6 @@
2
2
  module Music
3
3
  module Transcription
4
4
  # music-transcription version
5
- VERSION = "0.6.2"
5
+ VERSION = "0.6.3"
6
6
  end
7
7
  end
@@ -93,5 +93,10 @@ describe Note do
93
93
  note.stretch!(2)
94
94
  note.duration.should eq(Rational(1,2))
95
95
  end
96
+
97
+ it 'should return self' do
98
+ note = Note::Quarter.new
99
+ note.stretch!(1).should be note
100
+ end
96
101
  end
97
102
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: music-transcription
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Tunnell