user_space 0.3.0 → 0.3.1
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/History.txt +2 -0
- data/lib/user_space/user_space.rb +4 -4
- data/lib/user_space/version.rb +1 -1
- data/test/user_space.rb +1 -1
- data/user_space.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 149e88ebcb48a9ca714ad14566702034e351b2a3
|
|
4
|
+
data.tar.gz: 0f235cd46600224046f4837c2569ddf07c1c01c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e94d27a7b3eb42a40190310db8ec1a5814028edbe78e082257a10a2d7f21a0507ebb4cab42bb749420308a40f5f38bc8dca144a818f6f464bebfbec239b709ca
|
|
7
|
+
data.tar.gz: 4a366e41156a30c6956da85cd56e7695bd1c8866ba215eb5568e74b6e615bee31939e0445a0ba9786a174a3bb787eee5d549c93f822897abddca78c4da48c9ba
|
data/History.txt
CHANGED
|
@@ -48,7 +48,7 @@ module USER_SPACE
|
|
|
48
48
|
raise "Not a directory: #{userdir}" unless File.directory?(userdir)
|
|
49
49
|
# Pre-existing directory.
|
|
50
50
|
# Return unless user wants to overwrite.
|
|
51
|
-
|
|
51
|
+
next unless overwrite
|
|
52
52
|
else
|
|
53
53
|
Dir.mkdir(userdir, 0700)
|
|
54
54
|
end
|
|
@@ -101,9 +101,9 @@ module USER_SPACE
|
|
|
101
101
|
File.open(config_file_name, 'w', 0600){|fh| fh.puts options[:parser].pretty_generate obj}
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
def configures(hash
|
|
105
|
-
if config? # file exists
|
|
106
|
-
config.each{|opt, value| hash[opt.to_sym] = value}
|
|
104
|
+
def configures(hash)
|
|
105
|
+
if self.config? # file exists
|
|
106
|
+
self.config.each{|opt, value| hash[opt.to_sym] = value}
|
|
107
107
|
else
|
|
108
108
|
trace.puts config_file_name if trace
|
|
109
109
|
self.config = hash
|
data/lib/user_space/version.rb
CHANGED
data/test/user_space.rb
CHANGED
data/user_space.gemspec
CHANGED