haml-edge 2.1.42 → 2.1.43
Sign up to get free protection for your applications and to get access to all the features.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/sass/files.rb +2 -2
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.43
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.43
|
data/lib/sass/files.rb
CHANGED
@@ -91,7 +91,7 @@ module Sass
|
|
91
91
|
def try_to_read_sassc(filename, compiled_filename, sha)
|
92
92
|
return unless File.readable?(compiled_filename)
|
93
93
|
|
94
|
-
File.open(compiled_filename) do |f|
|
94
|
+
File.open(compiled_filename, "rb") do |f|
|
95
95
|
return unless f.readline("\n").strip == Sass::VERSION
|
96
96
|
return unless f.readline("\n").strip == sha
|
97
97
|
return Marshal.load(f.read)
|
@@ -106,7 +106,7 @@ module Sass
|
|
106
106
|
return if File.exists?(File.dirname(compiled_filename)) && !File.writable?(File.dirname(compiled_filename))
|
107
107
|
return if File.exists?(compiled_filename) && !File.writable?(compiled_filename)
|
108
108
|
FileUtils.mkdir_p(File.dirname(compiled_filename))
|
109
|
-
File.open(compiled_filename, "
|
109
|
+
File.open(compiled_filename, "wb") do |f|
|
110
110
|
f.write(Sass::VERSION)
|
111
111
|
f.write("\n")
|
112
112
|
f.write(sha)
|