ffi-coremidi 0.5.0 → 0.5.1

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
  SHA256:
3
- metadata.gz: d05cb8f763c856b651e7fa5f94499350bc7576cd210e7402ce26bc9bbd714739
4
- data.tar.gz: 77a98c6abc53d0287bc4e57d7f3cce217da9e32d73fd6a3205602f0c6bd69fbe
3
+ metadata.gz: dab097a8dd88318d79ef220b1a22a244892a7a410663dab5e7fb98b622621b0a
4
+ data.tar.gz: cbe5cbe19b52e5f728f55342ca1eddaa821c5c1cd2632fa7452c4782a6770950
5
5
  SHA512:
6
- metadata.gz: fc172a0d02c6fc6efd3d1337623e92fdf9bb4b01e08debe2105ed78bb306d49db44308d72cc0041cd04ee04ecb50f4ebda935610bcf18dab67afb2b90e1a5d9b
7
- data.tar.gz: bbdcf6d8e87f2896db09859e79b6d8c39f33ea2046a10704d917439d7974e50224ed842414ece048e99d671943da7939e47cef74ae3e4683ee4ccdf54646687b
6
+ metadata.gz: 0a2883b3a33e0f67dda8baa3da2458a8bb1c1b027909e1f70a8cd17a28b798c951b57b205c5c81a6a721d13e6477e72b2e5a3150150f4eab436ac1b84bc2a796
7
+ data.tar.gz: 1539a681f754432531c2ec5c806214cef21e4ef688b6ea60d809631d90c36e10a8f7945ecd8fe2dfdb6a8948ec6ea2ef721cc07873a1de83c1352688cd89661d
@@ -171,14 +171,15 @@ module CoreMIDI
171
171
  def get_event_callback
172
172
  Thread.abort_on_exception = true
173
173
  proc do |new_packets, _refCon_ptr, _connRefCon_ptr|
174
- # p "packets received: #{new_packets[:numPackets]}"
175
- timestamp = Time.now.to_f
176
- messages = get_messages(new_packets)
177
- messages.each do |message|
178
- enqueue_message(message, timestamp)
174
+ begin
175
+ timestamp = Time.now.to_f
176
+ messages = get_messages(new_packets)
177
+ messages.each do |message|
178
+ enqueue_message(message, timestamp)
179
+ end
180
+ rescue Exception => e
181
+ Thread.main.raise(e)
179
182
  end
180
- rescue Exception => e
181
- Thread.main.raise(e)
182
183
  end
183
184
  end
184
185
 
data/lib/coremidi.rb CHANGED
@@ -24,5 +24,5 @@ require 'coremidi/source'
24
24
  require 'coremidi/destination'
25
25
 
26
26
  module CoreMIDI
27
- VERSION = '0.5.0'
27
+ VERSION = '0.5.1'
28
28
  end
metadata CHANGED
@@ -1,35 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-coremidi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Russo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-13 00:00:00.000000000 Z
11
+ date: 2022-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: minitest
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '5.15'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 5.15.0
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '5.15'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 5.15.0
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: rake
35
15
  requirement: !ruby/object:Gem::Requirement
@@ -54,42 +34,42 @@ dependencies:
54
34
  name: rspec
55
35
  requirement: !ruby/object:Gem::Requirement
56
36
  requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '3.11'
60
37
  - - ">="
61
38
  - !ruby/object:Gem::Version
62
39
  version: 3.11.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '3.11'
63
43
  type: :development
64
44
  prerelease: false
65
45
  version_requirements: !ruby/object:Gem::Requirement
66
46
  requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3.11'
70
47
  - - ">="
71
48
  - !ruby/object:Gem::Version
72
49
  version: 3.11.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '3.11'
73
53
  - !ruby/object:Gem::Dependency
74
54
  name: rubocop
75
55
  requirement: !ruby/object:Gem::Requirement
76
56
  requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '1.25'
80
57
  - - ">="
81
58
  - !ruby/object:Gem::Version
82
- version: 1.25.1
59
+ version: 1.10.0
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.10'
83
63
  type: :development
84
64
  prerelease: false
85
65
  version_requirements: !ruby/object:Gem::Requirement
86
66
  requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.25'
90
67
  - - ">="
91
68
  - !ruby/object:Gem::Version
92
- version: 1.25.1
69
+ version: 1.10.0
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '1.10'
93
73
  - !ruby/object:Gem::Dependency
94
74
  name: ffi
95
75
  requirement: !ruby/object:Gem::Requirement
@@ -144,9 +124,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
124
  requirements:
145
125
  - - ">="
146
126
  - !ruby/object:Gem::Version
147
- version: 1.3.6
127
+ version: '0'
148
128
  requirements: []
149
- rubygems_version: 3.3.3
129
+ rubygems_version: 3.0.9
150
130
  signing_key:
151
131
  specification_version: 4
152
132
  summary: Realtime MIDI IO with Ruby for OSX