muzak 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/muzak.rb +1 -1
  3. data/lib/muzak/config.rb +2 -8
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db204b0d9f256751a68fa9cb597ed3473d4a87ec
4
- data.tar.gz: 7008b0cdffc2b98ccaedacaa7a5ca01eb23bbbf1
3
+ metadata.gz: 30a4b9bd888f454b95277f386f34c3450afb8f1d
4
+ data.tar.gz: 8f62af12d4c5ce35d6ba18c60fcbbfb7371d3adf
5
5
  SHA512:
6
- metadata.gz: f333cb37e5e8f88082fdb693dd4dfdb3055ecbc84f6d56b976c5f5c0575f5135ad63c596b4fe113074a8d172b8f0de5ccc2ed3d82b24deb74bbc32585a16138d
7
- data.tar.gz: 3b3da27b4177a24104bf88df29cfbbc04e235b611a8ed2adcaffc7c1c4a51f964a4d802ca13c30fa597ac9809b7812024e01338cba0e00c4170ab97f55e5f99e
6
+ metadata.gz: faf8e6c0076ded0a4c826b90e2b6a7f1eedf444309765187d9cd08c5b2d9bf0b7f1236ac1c8d43661e3110b1f179c7f859b771abc5f7ae6cc02355fcb6e6b5db
7
+ data.tar.gz: c675b80b4656570a77a9f289df0712fda1cd8c68ad942a4a419b1886e3cebcdcf15b39bc38120031d51c1c6d1af5fac294b88be54f66c350a13cbbeab32a47ba
@@ -12,5 +12,5 @@ require_relative "muzak/instance"
12
12
  # The primary namespace for muzak.
13
13
  module Muzak
14
14
  # Muzak's current version
15
- VERSION = "0.3.2".freeze
15
+ VERSION = "0.3.3".freeze
16
16
  end
@@ -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
- sync!
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
- sync!
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.2
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-23 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: taglib-ruby