midi-jruby 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3556d36dc4530a743c39ee52843ac49c6106d7d1
4
- data.tar.gz: 1f9d70df4153c5a152e34260da63f408cabb71d2
3
+ metadata.gz: d5159bd13e292045f38215ae06e246de612dfcab
4
+ data.tar.gz: 7b00b930fcce5edf13fca01573de0b870e30bf58
5
5
  SHA512:
6
- metadata.gz: c3adf3f2a801d5c7a56db5f64260d1868ca59ce10da867b4d27f970dbc3cfb891dae40905728afdcb16547491b4d5365f4e25e5dc19e5212cefbedc91b572122
7
- data.tar.gz: ab5f514ffd17459df997e5be3a84b58696193c8803b4e89d28a99ef519179e15c0b1442b5b8cd57aa99c0bdc3d2e62920d62397fe67a920495fe36cd1ae1cbed
6
+ metadata.gz: 775d9ec47981bef54cf8f0cd0d2ad34feca630651ac6eb7f86ee4a46ce4f77451381116e150338645a85b21c9cf1a110cc9de835526cc027199b1cdbc3da2f0a
7
+ data.tar.gz: 1e4498f8827d1feb4b4276f8e7674cb6884fbeebf8a2aede909213ab276470c4558ca64417b3fefbe92914e6a2831c65c43f2466825659b769786f2e06564404
@@ -158,6 +158,7 @@ module MIDIJRuby
158
158
  bytes = []
159
159
  string = message.to_s(16)
160
160
  string = "0#{s}" if string.length.divmod(2).last > 0
161
+ string = string.rjust(6,"0")
161
162
  while string.length > 0
162
163
  string_byte = string.slice!(0,2)
163
164
  bytes << string_byte.hex
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.1"
21
+ VERSION = "0.1.2"
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.1
4
+ version: 0.1.2
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-09-28 00:00:00.000000000 Z
11
+ date: 2014-10-02 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: