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 +4 -4
- data/lib/voicemeeter/configs.rb +3 -7
- data/lib/voicemeeter/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3319ee7f7d936824d91f12d06551fce6317d10e86ddf326710326991e75e248
|
4
|
+
data.tar.gz: 2ec613c19e32eca1f5d138e99fd1b814d781a96cfc949f755e18a483b324f41a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 449bc894bb2389df46955b8f83314762ce96f04910e4dfa09476ea6b04e5d45bda3edb43a72dc3cdb24d95952ebb71a476399e8df51812d6b823826be7868434
|
7
|
+
data.tar.gz: d54a2a669815d302263627ac05bc6d8c758fa927989859439116c10a29fb288765b9e085b915f8b87809f3eb1bfeddea142e93458c5d6883e5231b3d3959cf99
|
data/lib/voicemeeter/configs.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
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,
|
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"] =
|
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?
|
data/lib/voicemeeter/version.rb
CHANGED
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.
|
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:
|
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.
|
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.
|
46
|
+
version: 0.9.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: observer
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|