music-transcription 0.5.10 → 0.5.11

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: c5a2fe8f5cd88b188a02996d8cda9c12c496513f
4
- data.tar.gz: 2e4a25eb76fe5ac98d928acc253a7784190d7a05
3
+ metadata.gz: 693041857559185a3b35e513e64f5d0ec39b7d7f
4
+ data.tar.gz: 815fcf70a4a859adcb043b7d34cfb093f492ca71
5
5
  SHA512:
6
- metadata.gz: 7e4992d64b4d6dc135c0a28c878f036683c0188c666738eee42d9e4cc8281d1acffb5317912fe42e1accbb450da1c8d149043b290bd7ad1bcc2533e0b2aa6099
7
- data.tar.gz: 3cf61df796185c129dbc7f539449d6f8b91ee55f007ffc158825c8adc4189ed15998d1d6267bc24634f74f6d8908a200adc1ff48a6675f19b099baa9c3436092
6
+ metadata.gz: 98e2b0d53a98619aa58e3e376ede9557e59b7b3d36d19791b749388ba64b54a416db2246eb9fb533fa40b890459743c6f764d2d40af28078be96e49047ebd2a7
7
+ data.tar.gz: fbe7411e757ca16a46b86d6a97ab2fde24931a620c394e37f2d69a1818dad8a364523da242f40155a725077f9707b432128e92a7951622fd8a666fb12b267449
data/README.rdoc CHANGED
@@ -3,7 +3,7 @@
3
3
  * {Homepage}[https://github.com/jamestunnell/music-transcription]
4
4
  * {Issues}[https://github.com/jamestunnell/music-transcription/issues]
5
5
  * {Documentation}[http://rubydoc.info/gems/music-transcription/frames]
6
- * {Email}[mailto:jamestunnell@lavabit.com]
6
+ * {Email}[mailto:jamestunnell@gmail.com]
7
7
 
8
8
  == Description
9
9
 
@@ -2,6 +2,6 @@
2
2
  module Music
3
3
  module Transcription
4
4
  # music-transcription version
5
- VERSION = "0.5.10"
5
+ VERSION = "0.5.11"
6
6
  end
7
7
  end
@@ -0,0 +1,24 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe Tempo do
4
+ describe '#==' do
5
+ context 'same bpm and beat duration' do
6
+ it 'should return true' do
7
+ [
8
+ [120,nil],
9
+ [120,0.25.to_r],
10
+ [300,"3/8".to_r]
11
+ ].each do |bpm,bd|
12
+ Tempo.new(bpm,bd).should eq(Tempo.new(bpm,bd))
13
+ end
14
+ end
15
+ end
16
+
17
+ context 'different bpm or beat duration' do
18
+ it 'should return false' do
19
+ Tempo.new(120,nil).should_not eq(Tempo.new(120,"1/4".to_r))
20
+ Tempo.new(200,2).should_not eq(Tempo.new(200,2.1))
21
+ end
22
+ end
23
+ end
24
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: music-transcription
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Tunnell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-11 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -164,7 +164,7 @@ files:
164
164
  - samples/arrangements/song1.yml
165
165
  - samples/arrangements/song2.yml
166
166
  - spec/link_spec.rb
167
- - spec/musicality_spec.rb
167
+ - spec/music-transcription_spec.rb
168
168
  - spec/note_spec.rb
169
169
  - spec/part_spec.rb
170
170
  - spec/pitch_spec.rb
@@ -172,6 +172,7 @@ files:
172
172
  - spec/program_spec.rb
173
173
  - spec/score_spec.rb
174
174
  - spec/spec_helper.rb
175
+ - spec/tempo_spec.rb
175
176
  homepage: https://github.com/jamestunnell/music-transcription
176
177
  licenses:
177
178
  - MIT
@@ -199,7 +200,7 @@ summary: Classes for representing music notational features like pitch, note, lo
199
200
  tempo, etc.
200
201
  test_files:
201
202
  - spec/link_spec.rb
202
- - spec/musicality_spec.rb
203
+ - spec/music-transcription_spec.rb
203
204
  - spec/note_spec.rb
204
205
  - spec/part_spec.rb
205
206
  - spec/pitch_spec.rb
@@ -207,4 +208,5 @@ test_files:
207
208
  - spec/program_spec.rb
208
209
  - spec/score_spec.rb
209
210
  - spec/spec_helper.rb
211
+ - spec/tempo_spec.rb
210
212
  has_rdoc: