rscons 0.0.9 → 0.0.10
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 +8 -8
- data/lib/rscons/cache.rb +5 -1
- data/lib/rscons/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDg1ZjA1NzY3MDJkMDkwN2RhNTcxNmEwZTIxMTgxMDQ0ZjY2NGIyMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWU0MzkxMTM2YzhlZDNlMGQ2NmRmMDU3ODdiZDY3YTc0NzIwOGZiMg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDliYzIyMWNhODc0MzdjYjNlMTQ1MTE3YmU0MWU4NzdjZDRlODY5OTdhNDMw
|
10
|
+
NTU1ZGI3OTI3OTA5MTMxMzIwZTM1NzU2OTVkOGI0M2U1NDUyYzc3NGYxYjJk
|
11
|
+
YzZhZWNkNTRmNDAxNGJkMDE4ODBhOWE0YWYwZGFmZjM5OGI5ZmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDg2OGMxMjM3MzJiOWEyMDU1NjFhMTlkZTBlMjM5MDgyODFjOTFiZDEyOWU3
|
14
|
+
OGYzMDczZjI5YzBkMDllZWJmMWU2YThjN2NmNjdmNTQzMDU2NjJmYzU3M2M5
|
15
|
+
NzgwMTQ5YjljZjIwZjAwNTRjMzQ0ZmQ2ZDY2MmVlMWY1NWM5YTI=
|
data/lib/rscons/cache.rb
CHANGED
@@ -61,6 +61,10 @@ module Rscons
|
|
61
61
|
# file.
|
62
62
|
def initialize
|
63
63
|
@cache = YAML.load(File.read(CACHE_FILE)) rescue {}
|
64
|
+
unless @cache.is_a?(Hash)
|
65
|
+
$stderr.puts "Warning: #{CACHE_FILE} was corrupt. Contents:\n#{@cache.inspect}"
|
66
|
+
@cache = {}
|
67
|
+
end
|
64
68
|
@cache[:targets] ||= {}
|
65
69
|
@cache[:directories] ||= {}
|
66
70
|
@cache[:version] ||= VERSION
|
@@ -147,7 +151,7 @@ module Rscons
|
|
147
151
|
def mkdir_p(path)
|
148
152
|
parts = path.split(/[\\\/]/)
|
149
153
|
(0..parts.size).each do |i|
|
150
|
-
subpath = File.join(*parts[0, i + 1])
|
154
|
+
subpath = File.join(*parts[0, i + 1]).encode(__ENCODING__)
|
151
155
|
unless File.exists?(subpath)
|
152
156
|
FileUtils.mkdir(subpath)
|
153
157
|
unless @cache[:directories].include?(subpath)
|
data/lib/rscons/version.rb
CHANGED