muzak 0.3.2 → 0.3.3
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 +4 -4
- data/lib/muzak.rb +1 -1
- data/lib/muzak/config.rb +2 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30a4b9bd888f454b95277f386f34c3450afb8f1d
|
4
|
+
data.tar.gz: 8f62af12d4c5ce35d6ba18c60fcbbfb7371d3adf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faf8e6c0076ded0a4c826b90e2b6a7f1eedf444309765187d9cd08c5b2d9bf0b7f1236ac1c8d43661e3110b1f179c7f859b771abc5f7ae6cc02355fcb6e6b5db
|
7
|
+
data.tar.gz: c675b80b4656570a77a9f289df0712fda1cd8c68ad942a4a419b1886e3cebcdcf15b39bc38120031d51c1c6d1af5fac294b88be54f66c350a13cbbeab32a47ba
|
data/lib/muzak.rb
CHANGED
data/lib/muzak/config.rb
CHANGED
@@ -93,12 +93,6 @@ module Muzak
|
|
93
93
|
false
|
94
94
|
end
|
95
95
|
|
96
|
-
# Synchronizes the in-memory configuration with {CONFIG_FILE}.
|
97
|
-
# @return [void]
|
98
|
-
def self.sync!
|
99
|
-
File.open(CONFIG_FILE, "w") { |io| io.write @config.to_yaml }
|
100
|
-
end
|
101
|
-
|
102
96
|
# @return [Boolean] whether or not the given plugin is configured
|
103
97
|
# @note the truth-value of this method is used to determine which
|
104
98
|
# plugins should be loaded.
|
@@ -115,7 +109,7 @@ module Muzak
|
|
115
109
|
FileUtils.mkdir_p d
|
116
110
|
end
|
117
111
|
|
118
|
-
|
112
|
+
File.open(CONFIG_FILE, "w") { |io| io.write DEFAULT_CONFIG.to_yaml }
|
119
113
|
end
|
120
114
|
|
121
115
|
@config = DEFAULT_CONFIG.merge(user_config)
|
@@ -127,7 +121,7 @@ module Muzak
|
|
127
121
|
|
128
122
|
define_singleton_method "#{resolve_command(key)}=" do |value|
|
129
123
|
@config[key] = value
|
130
|
-
|
124
|
+
File.open(CONFIG_FILE, "w") { |io| io.write @config.to_yaml }
|
131
125
|
end
|
132
126
|
end
|
133
127
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muzak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Woodruff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: taglib-ruby
|