unimidi 0.3.0-i686-linux → 0.3.1-i686-linux

Sign up to get free protection for your applications and to get access to all the features.
data/lib/unimidi.rb CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  module UniMIDI
8
8
 
9
- VERSION = "0.3.0"
9
+ VERSION = "0.3.1"
10
10
 
11
11
  end
12
12
 
@@ -58,9 +58,8 @@ module UniMIDI
58
58
  def gets
59
59
  device = nil
60
60
  class_name = self.name.split("::").last.downcase
61
- grammer = %w{o i}.include?(class_name[0]) ? "n" : ""
62
61
  puts ""
63
- puts "Select a#{grammer} #{class_name}..."
62
+ puts "Select a MIDI #{class_name}..."
64
63
  while device.nil?
65
64
  list
66
65
  print "> "
@@ -70,7 +69,7 @@ module UniMIDI
70
69
  device = all.find { |d| d.id == selection }
71
70
  end
72
71
  end
73
- device
72
+ device.open
74
73
  end
75
74
 
76
75
  # returns the first device for this class
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unimidi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: i686-linux
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: alsa-rawmidi
16
- requirement: &70128926672500 !ruby/object:Gem::Requirement
16
+ requirement: &70353149937520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70128926672500
24
+ version_requirements: *70353149937520
25
25
  description: Platform Independent, realtime MIDI input and output for Ruby
26
26
  email:
27
27
  - ari.russo@gmail.com