haml-edge 2.1.42 → 2.1.43
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.
- 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)
|