midi-jruby 0.1.3 → 0.1.4

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: aed43bfbe40337af605ba9231b0879c4503ffc5e
4
- data.tar.gz: 6f0a1ba2c77af97b0d83b7c7300080943781bf4a
3
+ metadata.gz: bf744e9581d62124eb169e965e65336596666bf4
4
+ data.tar.gz: 700d475d1a7591fb7a99d1360ac109b6f07594e2
5
5
  SHA512:
6
- metadata.gz: e33a70da2682cd14ae4f31ad3d6262d423219cc7140e257e37da09b886fa02b22ca344a746a6e297c2bdda4745c84a53ca238e6395db6480e7196f2027f80a0c
7
- data.tar.gz: a0963229066ed088c9f7e0198128dcb807782c3532d1bc464aeb4db6a60e5252e8472954c6c3d0e1aeaea2e805b9de8b8c596715e225652080a885ada2d5de9c
6
+ metadata.gz: a397868270cff0ff3874e1314d2365d62e97c64575909f31168da64b6b8f1faf7c1da611c6ac969be579fa26ac67bfa6bb1eb1f52b4a99e45331a150afb2160e
7
+ data.tar.gz: ad596c9e7c07ddcb83e7fd6cc4e1c73771eb1d07bdd31c0298517e9d1902c0cf99e7858348ce0b72b9545fbed5d903eed1c11da281b30b999ef019bfbfce4b37
data/README.md CHANGED
@@ -28,7 +28,7 @@ Otherwise
28
28
 
29
29
  ## Issues
30
30
 
31
- There is [an issue](http://stackoverflow.com/questions/8148898/java-midi-in-mac-osx-broken) that causes javax.sound.midi not to be able to send SysEx messages in some versions.
31
+ There is [an issue](http://stackoverflow.com/questions/8148898/java-midi-in-mac-osx-broken) that causes javax.sound.midi not to be able to send SysEx messages in some versions of OSX.
32
32
 
33
33
  ## Documentation
34
34
 
@@ -67,8 +67,10 @@ module MIDIJRuby
67
67
  # @param [Java::ComSunMediaSound::MidiOutDevice] device
68
68
  # @return [Boolean]
69
69
  def close_output(device)
70
- @receiver[device].close
71
- @receiver.delete(device)
70
+ unless @receiver[device].nil?
71
+ @receiver[device].close
72
+ @receiver.delete(device)
73
+ end
72
74
  device.close
73
75
  true
74
76
  end
@@ -48,8 +48,10 @@ module MIDIJRuby
48
48
  # @param [Proc] block
49
49
  # @return [Input] self
50
50
  def enable(options = {}, &block)
51
- initialize_input
52
- @enabled = true
51
+ unless @enabled
52
+ initialize_input
53
+ @enabled = true
54
+ end
53
55
  if block_given?
54
56
  begin
55
57
  yield(self)
@@ -46,8 +46,10 @@ module MIDIJRuby
46
46
  # @param [Proc] block
47
47
  # @return [Output]
48
48
  def enable(options = {}, &block)
49
- API.enable_output(@device)
50
- @enabled = true
49
+ unless @enabled
50
+ API.enable_output(@device)
51
+ @enabled = true
52
+ end
51
53
  if block_given?
52
54
  begin
53
55
  yield(self)
data/lib/midi-jruby.rb CHANGED
@@ -18,6 +18,6 @@ require "midi-jruby/output"
18
18
 
19
19
  module MIDIJRuby
20
20
 
21
- VERSION = "0.1.3"
21
+ VERSION = "0.1.4"
22
22
 
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: midi-jruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Russo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-02 00:00:00.000000000 Z
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Realtime MIDI IO with JRuby using the javax.sound.midi API
14
14
  email: