midi-jruby 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +2 -6
- data/lib/midi-jruby.rb +6 -3
- data/lib/midi-jruby/device.rb +6 -6
- data/test/helper.rb +2 -4
- metadata +43 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37ac746080bbbe99c19459c5a9e8ea5d35f2b44
|
4
|
+
data.tar.gz: d134b1bcf2c898180152ffd6978f9b46bf8d1522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7db8d967508e7e1d9bee502b621fa3b06b542931f4fd22547ae4f3bb1825fe53ffc7bb962c069610a14dbf8e0ec936cd0730e74a28a832341db0fed6f21d9b3a
|
7
|
+
data.tar.gz: 3e0fbfc184d4db3a8829662cc84c4d5160be02a5dc4ea382fcc00ab5530f6b0dffd3002cd1a380dc2c7d5f48e439ceb256ae65054bb293eab027a564759f3606
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -20,7 +20,7 @@ If you're using Bundler, add this line to your application's Gemfile:
|
|
20
20
|
Otherwise
|
21
21
|
|
22
22
|
`gem install midi-jruby`
|
23
|
-
|
23
|
+
|
24
24
|
## Examples
|
25
25
|
|
26
26
|
* [Input](http://github.com/arirusso/midi-jruby/blob/master/examples/input.rb)
|
@@ -34,12 +34,8 @@ There is [an issue](http://stackoverflow.com/questions/8148898/java-midi-in-mac-
|
|
34
34
|
|
35
35
|
* [rdoc](http://rdoc.info/gems/midi-jruby)
|
36
36
|
|
37
|
-
## Author
|
38
|
-
|
39
|
-
[Ari Russo](http://github.com/arirusso) <ari.russo at gmail.com>
|
40
|
-
|
41
37
|
## License
|
42
38
|
|
43
39
|
Apache 2.0, See the file LICENSE
|
44
40
|
|
45
|
-
Copyright (c) 2011-
|
41
|
+
Copyright (c) 2011-2017 [Ari Russo](http://github.com/arirusso)
|
data/lib/midi-jruby.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
+
#
|
2
|
+
# MIDI-JRuby
|
1
3
|
# Realtime MIDI IO in JRuby using the javax.sound.midi API
|
2
4
|
#
|
3
|
-
# Ari Russo
|
4
|
-
# (c) 2011-2014
|
5
|
+
# (c) 2011-2017 Ari Russo
|
5
6
|
# Licensed under Apache 2.0
|
7
|
+
# https://github.com/arirusso/midi-jruby
|
8
|
+
#
|
6
9
|
|
7
10
|
# libs
|
8
11
|
require "java"
|
@@ -18,6 +21,6 @@ require "midi-jruby/output"
|
|
18
21
|
|
19
22
|
module MIDIJRuby
|
20
23
|
|
21
|
-
VERSION = "0.1.
|
24
|
+
VERSION = "0.1.6"
|
22
25
|
|
23
26
|
end
|
data/lib/midi-jruby/device.rb
CHANGED
@@ -2,16 +2,16 @@ module MIDIJRuby
|
|
2
2
|
|
3
3
|
# Common methods used by both input and output devices
|
4
4
|
module Device
|
5
|
-
|
5
|
+
|
6
6
|
attr_reader :enabled, # has the device been initialized?
|
7
7
|
:id, # unique int id
|
8
8
|
:name, # name property from javax.sound.midi.MidiDevice.Info
|
9
9
|
:description, # description property from javax.sound.midi.MidiDevice.Info
|
10
10
|
:vendor, # vendor property from javax.sound.midi.MidiDevice.Info
|
11
|
-
:type # :input or :output
|
11
|
+
:type # :input or :output
|
12
12
|
|
13
13
|
alias_method :enabled?, :enabled
|
14
|
-
|
14
|
+
|
15
15
|
# @param [Fixnum] The uuid for the given device
|
16
16
|
# @param [Java::ComSunMediaSound::MidiInDevice, Java::ComSunMediaSound::MidiOutDevice] device The underlying Java device object
|
17
17
|
# @param [Hash] options
|
@@ -46,8 +46,8 @@ module MIDIJRuby
|
|
46
46
|
# A hash of :input and :output devices
|
47
47
|
# @return [Hash]
|
48
48
|
def self.all_by_type
|
49
|
-
@devices ||= {
|
50
|
-
:input => API.get_inputs,
|
49
|
+
@devices ||= {
|
50
|
+
:input => API.get_inputs,
|
51
51
|
:output => API.get_outputs
|
52
52
|
}
|
53
53
|
end
|
@@ -62,7 +62,7 @@ module MIDIJRuby
|
|
62
62
|
|
63
63
|
# @return [String]
|
64
64
|
def get_type
|
65
|
-
self.class.name.split(
|
65
|
+
self.class.name.split("::").last.downcase.to_sym
|
66
66
|
end
|
67
67
|
|
68
68
|
end
|
data/test/helper.rb
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
|
2
|
-
$LOAD_PATH.unshift dir + "/../lib"
|
1
|
+
$:.unshift(File.join("..", "lib"))
|
3
2
|
|
4
3
|
require "minitest/autorun"
|
5
|
-
require "mocha/test_unit"
|
6
4
|
require "shoulda-context"
|
7
5
|
require "midi-jruby"
|
8
6
|
|
@@ -54,7 +52,7 @@ module TestHelper
|
|
54
52
|
end
|
55
53
|
|
56
54
|
def output
|
57
|
-
MIDIJRuby::Output.
|
55
|
+
MIDIJRuby::Output.all[1]
|
58
56
|
end
|
59
57
|
|
60
58
|
end
|
metadata
CHANGED
@@ -1,95 +1,95 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midi-jruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Russo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: minitest
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '5.5'
|
20
|
-
- - '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 5.5.0
|
23
14
|
requirement: !ruby/object:Gem::Requirement
|
24
15
|
requirements:
|
25
|
-
- - ~>
|
16
|
+
- - "~>"
|
26
17
|
- !ruby/object:Gem::Version
|
27
18
|
version: '5.5'
|
28
|
-
- -
|
19
|
+
- - ">="
|
29
20
|
- !ruby/object:Gem::Version
|
30
21
|
version: 5.5.0
|
22
|
+
name: minitest
|
31
23
|
prerelease: false
|
32
24
|
type: :development
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: mocha
|
35
25
|
version_requirements: !ruby/object:Gem::Requirement
|
36
26
|
requirements:
|
37
|
-
- - ~>
|
27
|
+
- - "~>"
|
38
28
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
40
|
-
- -
|
29
|
+
version: '5.5'
|
30
|
+
- - ">="
|
41
31
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
32
|
+
version: 5.5.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
43
34
|
requirement: !ruby/object:Gem::Requirement
|
44
35
|
requirements:
|
45
|
-
- - ~>
|
36
|
+
- - "~>"
|
46
37
|
- !ruby/object:Gem::Version
|
47
38
|
version: '1.1'
|
48
|
-
- -
|
39
|
+
- - ">="
|
49
40
|
- !ruby/object:Gem::Version
|
50
41
|
version: 1.1.0
|
42
|
+
name: mocha
|
51
43
|
prerelease: false
|
52
44
|
type: :development
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: rake
|
55
45
|
version_requirements: !ruby/object:Gem::Requirement
|
56
46
|
requirements:
|
57
|
-
- - ~>
|
47
|
+
- - "~>"
|
58
48
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
60
|
-
- -
|
49
|
+
version: '1.1'
|
50
|
+
- - ">="
|
61
51
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
52
|
+
version: 1.1.0
|
53
|
+
- !ruby/object:Gem::Dependency
|
63
54
|
requirement: !ruby/object:Gem::Requirement
|
64
55
|
requirements:
|
65
|
-
- - ~>
|
56
|
+
- - "~>"
|
66
57
|
- !ruby/object:Gem::Version
|
67
58
|
version: '10.4'
|
68
|
-
- -
|
59
|
+
- - ">="
|
69
60
|
- !ruby/object:Gem::Version
|
70
61
|
version: 10.4.2
|
62
|
+
name: rake
|
71
63
|
prerelease: false
|
72
64
|
type: :development
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: shoulda-context
|
75
65
|
version_requirements: !ruby/object:Gem::Requirement
|
76
66
|
requirements:
|
77
|
-
- - ~>
|
67
|
+
- - "~>"
|
78
68
|
- !ruby/object:Gem::Version
|
79
|
-
version: '
|
80
|
-
- -
|
69
|
+
version: '10.4'
|
70
|
+
- - ">="
|
81
71
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
72
|
+
version: 10.4.2
|
73
|
+
- !ruby/object:Gem::Dependency
|
83
74
|
requirement: !ruby/object:Gem::Requirement
|
84
75
|
requirements:
|
85
|
-
- - ~>
|
76
|
+
- - "~>"
|
86
77
|
- !ruby/object:Gem::Version
|
87
78
|
version: '1.2'
|
88
|
-
- -
|
79
|
+
- - ">="
|
89
80
|
- !ruby/object:Gem::Version
|
90
81
|
version: 1.2.1
|
82
|
+
name: shoulda-context
|
91
83
|
prerelease: false
|
92
84
|
type: :development
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.2'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 1.2.1
|
93
93
|
description: Realtime MIDI IO with JRuby using the javax.sound.midi API
|
94
94
|
email:
|
95
95
|
- ari.russo@gmail.com
|
@@ -97,6 +97,8 @@ executables: []
|
|
97
97
|
extensions: []
|
98
98
|
extra_rdoc_files: []
|
99
99
|
files:
|
100
|
+
- LICENSE
|
101
|
+
- README.md
|
100
102
|
- lib/midi-jruby.rb
|
101
103
|
- lib/midi-jruby/api.rb
|
102
104
|
- lib/midi-jruby/device.rb
|
@@ -105,11 +107,9 @@ files:
|
|
105
107
|
- test/helper.rb
|
106
108
|
- test/input_buffer_test.rb
|
107
109
|
- test/io_test.rb
|
108
|
-
- LICENSE
|
109
|
-
- README.md
|
110
110
|
homepage: http://github.com/arirusso/midi-jruby
|
111
111
|
licenses:
|
112
|
-
- Apache
|
112
|
+
- Apache-2.0
|
113
113
|
metadata: {}
|
114
114
|
post_install_message:
|
115
115
|
rdoc_options: []
|
@@ -117,17 +117,17 @@ require_paths:
|
|
117
117
|
- lib
|
118
118
|
required_ruby_version: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- -
|
120
|
+
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- -
|
125
|
+
- - ">="
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: 1.3.6
|
128
128
|
requirements: []
|
129
129
|
rubyforge_project: midi-jruby
|
130
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.6.8
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Realtime MIDI IO with JRuby
|