micromidi 0.1.5 → 0.2.0

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: 34add3c5d0d82e3fe9ac1ea773a574d8f29b43ca
4
- data.tar.gz: 77bb91ec4695c2aeea7cfa4b589d1cdef3864d6a
3
+ metadata.gz: 5ed01f3826ddb408c9426e43ef2698d4b4f8ac58
4
+ data.tar.gz: 172ae101c70305edb8a938488460b0e9f6fedd6c
5
5
  SHA512:
6
- metadata.gz: 330ba95c70c88f7a493a2df2a9ac06877aebb500173dc19761c2aa07fc82f356566f5098b28fd2672bb82e0a31161e0bace2df950b9b97483c2c74996461fe60
7
- data.tar.gz: b4ec59d0664aa536713fedfa736edcda4536ff54ac73b5224ad6f1d44b6caa6bcf75eab420adf9f73029887514fdec4d75a113a3bd4c9980a9c46b02beca94b4
6
+ metadata.gz: a35e057a57790ca3d08e98b073abed22a5b7dfefeede754e436be1c218e3cf02a5f1abfbede47abd35c34ed35946e92e85a89c20177471fb67d7536d63e1b0b1
7
+ data.tar.gz: 69af68aa68a6faad1641befdc3116dc696169ab82513c23110c5a1d3f0218d5c3a653bd29889224d0341c76ae3edf21b65d48efbd77b2e78b844e4be12dfacf7
@@ -33,7 +33,7 @@ require "micromidi/instructions/shorthand"
33
33
 
34
34
  module MicroMIDI
35
35
 
36
- VERSION = "0.1.5"
36
+ VERSION = "0.2.0"
37
37
 
38
38
  end
39
39
 
@@ -17,7 +17,7 @@ module MicroMIDI
17
17
  alias_method :using, :new
18
18
  end
19
19
 
20
- module IO
20
+ module Session
21
21
 
22
22
  # Shortcut to create a new context
23
23
  # @param [*Object] args
@@ -4,7 +4,7 @@ class ContextTest < Minitest::Test
4
4
 
5
5
  def test_new_with_block
6
6
  msg = nil
7
- MIDI::IO.new do
7
+ MIDI::Session.new do
8
8
  msg = note "C0"
9
9
  end
10
10
  assert_equal(MIDIMessage::NoteOn, msg.class)
@@ -13,7 +13,7 @@ class ContextTest < Minitest::Test
13
13
  end
14
14
 
15
15
  def test_new_with_no_block
16
- m = MIDI::IO.new
16
+ m = MIDI::Session.new
17
17
  msg = m.note "C0"
18
18
  assert_equal(MIDIMessage::NoteOn, msg.class)
19
19
  assert_equal(12, msg.note)
@@ -22,7 +22,7 @@ class ContextTest < Minitest::Test
22
22
 
23
23
  def test_exception
24
24
  msg = nil
25
- m = MIDI::IO.new
25
+ m = MIDI::Session.new
26
26
  assert_raises(ArgumentError) do
27
27
  m.edit do
28
28
  msg = m.note
@@ -32,7 +32,7 @@ class ContextTest < Minitest::Test
32
32
 
33
33
  def test_edit
34
34
  msg = nil
35
- m = MIDI::IO.new
35
+ m = MIDI::Session.new
36
36
  m.edit do
37
37
  msg = m.note "C0"
38
38
  end
@@ -11,7 +11,7 @@ class MessageTest < Minitest::Test
11
11
  end
12
12
 
13
13
  def test_channel_aftertouch
14
- m = MicroMIDI::IO.new
14
+ m = MicroMIDI::Session.new
15
15
  msg = m.channel_aftertouch 2, :channel => 1
16
16
  assert_equal(MIDIMessage::ChannelAftertouch, msg.class)
17
17
  assert_equal(1, msg.channel)
@@ -19,7 +19,7 @@ class MessageTest < Minitest::Test
19
19
  end
20
20
 
21
21
  def test_poly_aftertouch
22
- m = MicroMIDI::IO.new
22
+ m = MicroMIDI::Session.new
23
23
  msg = m.poly_aftertouch 64, 2, :channel => 1
24
24
  assert_equal(MIDIMessage::PolyphonicAftertouch, msg.class)
25
25
  assert_equal(1, msg.channel)
@@ -28,7 +28,7 @@ class MessageTest < Minitest::Test
28
28
  end
29
29
 
30
30
  def test_pitch_bend
31
- m = MicroMIDI::IO.new
31
+ m = MicroMIDI::Session.new
32
32
  msg = m.pitch_bend 64, 2, :channel => 1
33
33
  assert_equal(MIDIMessage::PitchBend, msg.class)
34
34
  assert_equal(1, msg.channel)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micromidi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Russo
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  version: 1.3.6
225
225
  requirements: []
226
226
  rubyforge_project: micromidi
227
- rubygems_version: 2.2.2
227
+ rubygems_version: 2.4.6
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: A Ruby DSL for MIDI