ramekin 0.1.5 → 0.1.7

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
  SHA256:
3
- metadata.gz: e86782ed3b91b2d539e25a9c2a43887ad60e0f978659fc0d993a9c697980e551
4
- data.tar.gz: 8065e561cd4a385b97914e8874b8302c427bfd38c7fd4976d2d3698db3292af2
3
+ metadata.gz: 8df1425f8986f77501484c31067d29deca4683da46be551bb9af21eb600a02e9
4
+ data.tar.gz: c201f6a35161c0e2369212938f1577e02b96c3a4fe036486c9621bb2ec64c912
5
5
  SHA512:
6
- metadata.gz: d379d84449a16292615ec3313d4e030da6b90f8c13817d7322aa9ecfb3aa2614b1c713363fa51045f6d060e3d07c3b8b619c024676a08e06de0f05193e14de45
7
- data.tar.gz: 24e1619066857f8378cdf5bebd36f9d0b4580d0f6d71d4469849990dd347f3fbb9094ec811fb0fe16c77b679e8a32da0b64f90f33d80058da08908501b87cab7
6
+ metadata.gz: 6dcf805c978c96e73c552867100243717f35789716058f07e79183172674dc218083ef2200df6a8553a2bfb65b931d33cfec17a7118f4f603b32d386affa42d3
7
+ data.tar.gz: 4cf665aa3afde278328d0c59677458df0437886fc21f2692c47ef00ca48b138a16be7169d2f267d38833cb8a70a59690dc4bab0bf1caae2637ea48950200d32f
@@ -92,8 +92,12 @@ module Ramekin
92
92
  lib_file = Dir.glob('asar/lib/*').find do |entry|
93
93
  next false unless File.file?(entry)
94
94
  next false if File.symlink?(entry)
95
- entry.end_with?('.dylib') || entry.end_with?('.so') || entry.end_with?('.dll')
96
- end
95
+ next true if entry.end_with?('.dylib')
96
+ next true if entry.end_with?('.dll')
97
+ next true if entry =~ /[.]so([.]\d+)*/
98
+ end or error!(
99
+ "couldn't find a dynamic library in #{Ramekin.config.asar_dir} - did it compile correctly?"
100
+ )
97
101
 
98
102
  @asar_lib_file = File.expand_path(lib_file, Ramekin.config.asar_dir)
99
103
  end
@@ -14,6 +14,14 @@ module Ramekin
14
14
  @note = note
15
15
  end
16
16
 
17
+ def start
18
+ @note.start
19
+ end
20
+
21
+ def fin
22
+ @note.fin
23
+ end
24
+
17
25
  def rest?
18
26
  @note.rest?
19
27
  end
@@ -22,6 +30,10 @@ module Ramekin
22
30
  @note.octave_amk(*a)
23
31
  end
24
32
 
33
+ def meta
34
+ @note.meta
35
+ end
36
+
25
37
  def note_name
26
38
  @note.note_name
27
39
  end
@@ -128,17 +128,18 @@ module Ramekin
128
128
  end
129
129
 
130
130
  class CombinedRestEvent < NoteEvent
131
+ attr_reader :rests
131
132
  def initialize(rests)
132
133
  @rests = rests
133
134
  error! "empty CombinedRestEvent" if rests.empty?
134
135
  end
135
136
 
136
137
  def start
137
- rests.first.start
138
+ @rests.first.start
138
139
  end
139
140
 
140
141
  def fin
141
- rests.last.fin
142
+ @rests.last.fin
142
143
  end
143
144
 
144
145
  def rest?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ramekin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - jneen
8
8
  bindir: gembin
9
9
  cert_chain: []
10
- date: 2025-03-05 00:00:00.000000000 Z
10
+ date: 2025-03-06 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: strscan