voicemeeter_api_ruby 4.4.1 → 4.4.2

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: 2d5c6df9dba5f3f6bb249665cc26a6aeb8541c6e77712b4ff45f73452cfac8c4
4
- data.tar.gz: a4c14273ab0cff0f004a68b4b9aa1816c087c775627bb2ab7872c8275b497859
3
+ metadata.gz: b3319ee7f7d936824d91f12d06551fce6317d10e86ddf326710326991e75e248
4
+ data.tar.gz: 2ec613c19e32eca1f5d138e99fd1b814d781a96cfc949f755e18a483b324f41a
5
5
  SHA512:
6
- metadata.gz: ad89a1cd012ccc74a42e7f8886c17a531e72b5af8180bba87e28da1df191dee74ac2b24d6531c11c0493e554652779a334241823d31af1e73718a76fc1bdbb11
7
- data.tar.gz: d7f1d28cc751ed6d40d770f66691e2d012e71d9a29e72d236d2a7800fca3b19f1bbb536fa066e9b0b392a109e27df76be8658dca0605d41769afbe82670eb1a9
6
+ metadata.gz: 449bc894bb2389df46955b8f83314762ce96f04910e4dfa09476ea6b04e5d45bda3edb43a72dc3cdb24d95952ebb71a476399e8df51812d6b823826be7868434
7
+ data.tar.gz: d54a2a669815d302263627ac05bc6d8c758fa927989859439116c10a29fb288765b9e085b915f8b87809f3eb1bfeddea142e93458c5d6883e5231b3d3959cf99
@@ -1,4 +1,4 @@
1
- require "toml"
1
+ require "perfect_toml"
2
2
  require_relative "kinds"
3
3
 
4
4
  module Voicemeeter
@@ -36,10 +36,6 @@ module Voicemeeter
36
36
  end
37
37
  end
38
38
 
39
- def parser(data)
40
- TOML::Parser.new(data).parsed
41
- end
42
-
43
39
  def get_configs(kind_id)
44
40
  file_path = File.join(Dir.pwd, "configs", "#{kind_id}")
45
41
 
@@ -49,7 +45,7 @@ module Voicemeeter
49
45
  .to_h do |toml_file|
50
46
  filename = File.basename(toml_file, ".toml")
51
47
  puts "loading config #{kind_id}/#{filename} into memory"
52
- [filename, parser(File.read(toml_file))]
48
+ [filename, PerfectTOML.load_file(toml_file)]
53
49
  end
54
50
  end
55
51
  end
@@ -58,7 +54,7 @@ module Voicemeeter
58
54
  if @@configs.empty?
59
55
  builder = TOMLStrBuilder.new(@kind)
60
56
  puts "loading config reset into memory"
61
- @@configs["reset"] = parser(builder.build)
57
+ @@configs["reset"] = PerfectTOML.parse(builder.build)
62
58
  configs = get_configs(@kind.name.to_s)
63
59
 
64
60
  @@configs.merge!(configs) unless configs.nil?
@@ -11,7 +11,7 @@ module Voicemeeter
11
11
  end
12
12
 
13
13
  def patch
14
- 1
14
+ 2
15
15
  end
16
16
 
17
17
  def to_a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voicemeeter_api_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.1
4
+ version: 4.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - onyx_online
@@ -31,19 +31,19 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.9.10
33
33
  - !ruby/object:Gem::Dependency
34
- name: toml
34
+ name: perfect_toml
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.3.0
39
+ version: 0.9.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.3.0
46
+ version: 0.9.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: observer
49
49
  requirement: !ruby/object:Gem::Requirement