rscons 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWNjZDBhMDQ4MTlmOTM5OTY0NGQzNGI5OWE3NWNjNGE5ZWNmNTgxZA==
4
+ MDg1ZjA1NzY3MDJkMDkwN2RhNTcxNmEwZTIxMTgxMDQ0ZjY2NGIyMw==
5
5
  data.tar.gz: !binary |-
6
- NTcxODgyMDQwNTZmMzU4N2JlMjMwZTc3N2I5ZTEyMTk1MTRhYjgyOA==
6
+ YWU0MzkxMTM2YzhlZDNlMGQ2NmRmMDU3ODdiZDY3YTc0NzIwOGZiMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmMwZjRiNGU5MDRkZDU1YmU2MjhmZjY1ZTUzMjVkNzcyOGJiODIyODlkMGJj
10
- ZTA5MDVkMzk4NjI5ODZlYWUzMjUyZGU1NTY0ODY1MDJlZDQxNTM0MmQ2Nzdk
11
- ZWQwYWNmNTQwNWY2NGY4YTNhMWQyZDgyNWFlZjM3MmE4NGJhZTU=
9
+ NDliYzIyMWNhODc0MzdjYjNlMTQ1MTE3YmU0MWU4NzdjZDRlODY5OTdhNDMw
10
+ NTU1ZGI3OTI3OTA5MTMxMzIwZTM1NzU2OTVkOGI0M2U1NDUyYzc3NGYxYjJk
11
+ YzZhZWNkNTRmNDAxNGJkMDE4ODBhOWE0YWYwZGFmZjM5OGI5ZmQ=
12
12
  data.tar.gz: !binary |-
13
- NWRhNDkxMjhkNmM2NzM3MzY2MGRkMzk1N2RjYjgzNDBjZTgzZTA1ZDE4MjUx
14
- YmZkMzJkNTE2NzUyMDVmZjYxZGU1MjdjMmFjYjNjYmU2NTcyZTY3MGI1MTMy
15
- OGY3YmZjYzExMjRjMGFhNWZhNDljZmU4ZjI0NGMzZDdmYjY1MGU=
13
+ ZDg2OGMxMjM3MzJiOWEyMDU1NjFhMTlkZTBlMjM5MDgyODFjOTFiZDEyOWU3
14
+ OGYzMDczZjI5YzBkMDllZWJmMWU2YThjN2NmNjdmNTQzMDU2NjJmYzU3M2M5
15
+ NzgwMTQ5YjljZjIwZjAwNTRjMzQ0ZmQ2ZDY2MmVlMWY1NWM5YTI=
@@ -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)
@@ -1,4 +1,4 @@
1
1
  module Rscons
2
2
  # gem version
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rscons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Holtrop