sass 3.2.17 → 3.2.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass/cache_stores/filesystem.rb +1 -1
- data/lib/sass/util.rb +7 -1
- data/test/sass/util_test.rb +21 -0
- metadata +73 -73
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f6abbc048da9f6709768f572ffc88afb98cfa0a
|
4
|
+
data.tar.gz: 992bbcf163be9c207e31bdee3ba60dda859ce91c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0068a9022f76b5bdce37ffe7412435d339b9c54674d6433cbbbd578837408189065e00d3d70b115b0a3ce07b3d404b1ff468cb3e435d3792d73239a98fd01d5d
|
7
|
+
data.tar.gz: dc16a831ca50b3b711c30069eda651b5cb4ab51c7b2eefd4260d7bff7611278ab1662835f8bd0fd89bcab71f1c7b8c0f06f80309652e58b63b906cc0352ce45e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.18
|
data/VERSION_DATE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
22 March 2014 23:08:14 UTC
|
@@ -40,7 +40,7 @@ module Sass
|
|
40
40
|
# return if File.exists?(File.dirname(compiled_filename)) && !File.writable?(File.dirname(compiled_filename))
|
41
41
|
# return if File.exists?(compiled_filename) && !File.writable?(compiled_filename)
|
42
42
|
FileUtils.mkdir_p(File.dirname(compiled_filename))
|
43
|
-
Sass::Util.atomic_create_and_write_file(compiled_filename) do |f|
|
43
|
+
Sass::Util.atomic_create_and_write_file(compiled_filename, 0600) do |f|
|
44
44
|
f.puts(version)
|
45
45
|
f.puts(sha)
|
46
46
|
f.write(contents)
|
data/lib/sass/util.rb
CHANGED
@@ -875,9 +875,13 @@ MSG
|
|
875
875
|
# rename operation.
|
876
876
|
#
|
877
877
|
# @param filename [String] The file to write to.
|
878
|
+
# @param perms [Integer] The permissions used for creating this file.
|
879
|
+
# Will be masked by the process umask. Defaults to readable/writeable
|
880
|
+
# by all users however the umask usually changes this to only be writable
|
881
|
+
# by the process's user.
|
878
882
|
# @yieldparam tmpfile [Tempfile] The temp file that can be written to.
|
879
883
|
# @return The value returned by the block.
|
880
|
-
def atomic_create_and_write_file(filename)
|
884
|
+
def atomic_create_and_write_file(filename, perms = 0666)
|
881
885
|
require 'tempfile'
|
882
886
|
tmpfile = Tempfile.new(File.basename(filename), File.dirname(filename))
|
883
887
|
tmpfile.binmode if tmpfile.respond_to?(:binmode)
|
@@ -888,6 +892,8 @@ MSG
|
|
888
892
|
rescue NotImplementedError
|
889
893
|
# Not all OSes support fsync
|
890
894
|
end
|
895
|
+
# Make file readable and writeable to all but respect umask (usually 022).
|
896
|
+
File.chmod(perms & ~File.umask, tmpfile.path)
|
891
897
|
File.rename tmpfile.path, filename
|
892
898
|
result
|
893
899
|
ensure
|
data/test/sass/util_test.rb
CHANGED
@@ -343,6 +343,27 @@ class UtilTest < Test::Unit::TestCase
|
|
343
343
|
end
|
344
344
|
end
|
345
345
|
|
346
|
+
def test_atomic_write_permissions
|
347
|
+
atomic_filename = File.join(Dir.tmpdir, "test_atomic_perms.atomic")
|
348
|
+
normal_filename = File.join(Dir.tmpdir, "test_atomic_perms.normal")
|
349
|
+
atomic_create_and_write_file(atomic_filename) {|f| f.write("whatever\n") }
|
350
|
+
open(normal_filename, "wb") {|f| f.write("whatever\n") }
|
351
|
+
assert_equal File.stat(normal_filename).mode.to_s(8), File.stat(atomic_filename).mode.to_s(8)
|
352
|
+
ensure
|
353
|
+
File.unlink(atomic_filename) rescue nil
|
354
|
+
File.unlink(normal_filename) rescue nil
|
355
|
+
end
|
356
|
+
|
357
|
+
def test_atomic_writes_respect_umask
|
358
|
+
atomic_filename = File.join(Dir.tmpdir, "test_atomic_perms.atomic")
|
359
|
+
atomic_create_and_write_file(atomic_filename) do |f|
|
360
|
+
f.write("whatever\n")
|
361
|
+
end
|
362
|
+
assert_equal 0, File.stat(atomic_filename).mode & File.umask
|
363
|
+
ensure
|
364
|
+
File.unlink(atomic_filename)
|
365
|
+
end
|
366
|
+
|
346
367
|
class FakeError < RuntimeError; end
|
347
368
|
|
348
369
|
def test_atomic_writes_handles_exceptions
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Weizenbaum
|
@@ -10,34 +10,34 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-03-
|
13
|
+
date: 2014-03-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: yard
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 0.5.3
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - '>='
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 0.5.3
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: maruku
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - '>='
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: 0.5.9
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - '>='
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 0.5.9
|
43
43
|
description: |2
|
@@ -53,41 +53,26 @@ executables:
|
|
53
53
|
extensions: []
|
54
54
|
extra_rdoc_files: []
|
55
55
|
files:
|
56
|
-
-
|
57
|
-
- CONTRIBUTING
|
58
|
-
- MIT-LICENSE
|
59
|
-
- README.md
|
60
|
-
- REVISION
|
61
|
-
- Rakefile
|
62
|
-
- VERSION
|
63
|
-
- VERSION_DATE
|
64
|
-
- VERSION_NAME
|
65
|
-
- bin/sass
|
66
|
-
- bin/sass-convert
|
67
|
-
- bin/scss
|
68
|
-
- extra/update_watch.rb
|
69
|
-
- init.rb
|
70
|
-
- lib/sass.rb
|
71
|
-
- lib/sass/cache_stores.rb
|
56
|
+
- rails/init.rb
|
72
57
|
- lib/sass/cache_stores/base.rb
|
73
58
|
- lib/sass/cache_stores/chain.rb
|
74
59
|
- lib/sass/cache_stores/filesystem.rb
|
75
60
|
- lib/sass/cache_stores/memory.rb
|
76
61
|
- lib/sass/cache_stores/null.rb
|
62
|
+
- lib/sass/cache_stores.rb
|
77
63
|
- lib/sass/callbacks.rb
|
78
64
|
- lib/sass/css.rb
|
79
65
|
- lib/sass/engine.rb
|
80
66
|
- lib/sass/environment.rb
|
81
67
|
- lib/sass/error.rb
|
82
68
|
- lib/sass/exec.rb
|
83
|
-
- lib/sass/importers.rb
|
84
69
|
- lib/sass/importers/base.rb
|
85
70
|
- lib/sass/importers/filesystem.rb
|
86
|
-
- lib/sass/
|
71
|
+
- lib/sass/importers.rb
|
87
72
|
- lib/sass/logger/base.rb
|
88
73
|
- lib/sass/logger/log_level.rb
|
74
|
+
- lib/sass/logger.rb
|
89
75
|
- lib/sass/media.rb
|
90
|
-
- lib/sass/plugin.rb
|
91
76
|
- lib/sass/plugin/compiler.rb
|
92
77
|
- lib/sass/plugin/configuration.rb
|
93
78
|
- lib/sass/plugin/generic.rb
|
@@ -95,10 +80,10 @@ files:
|
|
95
80
|
- lib/sass/plugin/rack.rb
|
96
81
|
- lib/sass/plugin/rails.rb
|
97
82
|
- lib/sass/plugin/staleness_checker.rb
|
83
|
+
- lib/sass/plugin.rb
|
98
84
|
- lib/sass/railtie.rb
|
99
85
|
- lib/sass/repl.rb
|
100
86
|
- lib/sass/root.rb
|
101
|
-
- lib/sass/script.rb
|
102
87
|
- lib/sass/script/arg_list.rb
|
103
88
|
- lib/sass/script/bool.rb
|
104
89
|
- lib/sass/script/color.rb
|
@@ -119,19 +104,20 @@ files:
|
|
119
104
|
- lib/sass/script/string_interpolation.rb
|
120
105
|
- lib/sass/script/unary_operation.rb
|
121
106
|
- lib/sass/script/variable.rb
|
122
|
-
- lib/sass/
|
107
|
+
- lib/sass/script.rb
|
123
108
|
- lib/sass/scss/css_parser.rb
|
124
109
|
- lib/sass/scss/parser.rb
|
125
110
|
- lib/sass/scss/rx.rb
|
126
111
|
- lib/sass/scss/script_lexer.rb
|
127
112
|
- lib/sass/scss/script_parser.rb
|
128
113
|
- lib/sass/scss/static_parser.rb
|
129
|
-
- lib/sass/
|
114
|
+
- lib/sass/scss.rb
|
130
115
|
- lib/sass/selector/abstract_sequence.rb
|
131
116
|
- lib/sass/selector/comma_sequence.rb
|
132
117
|
- lib/sass/selector/sequence.rb
|
133
118
|
- lib/sass/selector/simple.rb
|
134
119
|
- lib/sass/selector/simple_sequence.rb
|
120
|
+
- lib/sass/selector.rb
|
135
121
|
- lib/sass/shared.rb
|
136
122
|
- lib/sass/supports.rb
|
137
123
|
- lib/sass/tree/charset_node.rb
|
@@ -168,12 +154,55 @@ files:
|
|
168
154
|
- lib/sass/tree/visitors/to_css.rb
|
169
155
|
- lib/sass/tree/warn_node.rb
|
170
156
|
- lib/sass/tree/while_node.rb
|
171
|
-
- lib/sass/util.rb
|
172
157
|
- lib/sass/util/multibyte_string_scanner.rb
|
173
158
|
- lib/sass/util/subset_map.rb
|
174
159
|
- lib/sass/util/test.rb
|
160
|
+
- lib/sass/util.rb
|
175
161
|
- lib/sass/version.rb
|
176
|
-
-
|
162
|
+
- lib/sass.rb
|
163
|
+
- vendor/listen/CHANGELOG.md
|
164
|
+
- vendor/listen/CONTRIBUTING.md
|
165
|
+
- vendor/listen/Gemfile
|
166
|
+
- vendor/listen/Guardfile
|
167
|
+
- vendor/listen/lib/listen/adapter.rb
|
168
|
+
- vendor/listen/lib/listen/adapters/bsd.rb
|
169
|
+
- vendor/listen/lib/listen/adapters/darwin.rb
|
170
|
+
- vendor/listen/lib/listen/adapters/linux.rb
|
171
|
+
- vendor/listen/lib/listen/adapters/polling.rb
|
172
|
+
- vendor/listen/lib/listen/adapters/windows.rb
|
173
|
+
- vendor/listen/lib/listen/dependency_manager.rb
|
174
|
+
- vendor/listen/lib/listen/directory_record.rb
|
175
|
+
- vendor/listen/lib/listen/listener.rb
|
176
|
+
- vendor/listen/lib/listen/multi_listener.rb
|
177
|
+
- vendor/listen/lib/listen/turnstile.rb
|
178
|
+
- vendor/listen/lib/listen/version.rb
|
179
|
+
- vendor/listen/lib/listen.rb
|
180
|
+
- vendor/listen/LICENSE
|
181
|
+
- vendor/listen/listen.gemspec
|
182
|
+
- vendor/listen/Rakefile
|
183
|
+
- vendor/listen/README.md
|
184
|
+
- vendor/listen/spec/listen/adapter_spec.rb
|
185
|
+
- vendor/listen/spec/listen/adapters/bsd_spec.rb
|
186
|
+
- vendor/listen/spec/listen/adapters/darwin_spec.rb
|
187
|
+
- vendor/listen/spec/listen/adapters/linux_spec.rb
|
188
|
+
- vendor/listen/spec/listen/adapters/polling_spec.rb
|
189
|
+
- vendor/listen/spec/listen/adapters/windows_spec.rb
|
190
|
+
- vendor/listen/spec/listen/dependency_manager_spec.rb
|
191
|
+
- vendor/listen/spec/listen/directory_record_spec.rb
|
192
|
+
- vendor/listen/spec/listen/listener_spec.rb
|
193
|
+
- vendor/listen/spec/listen/multi_listener_spec.rb
|
194
|
+
- vendor/listen/spec/listen/turnstile_spec.rb
|
195
|
+
- vendor/listen/spec/listen_spec.rb
|
196
|
+
- vendor/listen/spec/spec_helper.rb
|
197
|
+
- vendor/listen/spec/support/adapter_helper.rb
|
198
|
+
- vendor/listen/spec/support/directory_record_helper.rb
|
199
|
+
- vendor/listen/spec/support/fixtures_helper.rb
|
200
|
+
- vendor/listen/spec/support/listeners_helper.rb
|
201
|
+
- vendor/listen/spec/support/platform_helper.rb
|
202
|
+
- vendor/listen/Vagrantfile
|
203
|
+
- bin/sass
|
204
|
+
- bin/sass-convert
|
205
|
+
- bin/scss
|
177
206
|
- test/Gemfile
|
178
207
|
- test/Gemfile.lock
|
179
208
|
- test/sass/cache_test.rb
|
@@ -294,46 +323,17 @@ files:
|
|
294
323
|
- test/sass/util/subset_map_test.rb
|
295
324
|
- test/sass/util_test.rb
|
296
325
|
- test/test_helper.rb
|
297
|
-
-
|
298
|
-
-
|
299
|
-
-
|
300
|
-
-
|
301
|
-
-
|
302
|
-
-
|
303
|
-
-
|
304
|
-
-
|
305
|
-
-
|
306
|
-
-
|
307
|
-
-
|
308
|
-
- vendor/listen/lib/listen/adapters/darwin.rb
|
309
|
-
- vendor/listen/lib/listen/adapters/linux.rb
|
310
|
-
- vendor/listen/lib/listen/adapters/polling.rb
|
311
|
-
- vendor/listen/lib/listen/adapters/windows.rb
|
312
|
-
- vendor/listen/lib/listen/dependency_manager.rb
|
313
|
-
- vendor/listen/lib/listen/directory_record.rb
|
314
|
-
- vendor/listen/lib/listen/listener.rb
|
315
|
-
- vendor/listen/lib/listen/multi_listener.rb
|
316
|
-
- vendor/listen/lib/listen/turnstile.rb
|
317
|
-
- vendor/listen/lib/listen/version.rb
|
318
|
-
- vendor/listen/listen.gemspec
|
319
|
-
- vendor/listen/spec/listen/adapter_spec.rb
|
320
|
-
- vendor/listen/spec/listen/adapters/bsd_spec.rb
|
321
|
-
- vendor/listen/spec/listen/adapters/darwin_spec.rb
|
322
|
-
- vendor/listen/spec/listen/adapters/linux_spec.rb
|
323
|
-
- vendor/listen/spec/listen/adapters/polling_spec.rb
|
324
|
-
- vendor/listen/spec/listen/adapters/windows_spec.rb
|
325
|
-
- vendor/listen/spec/listen/dependency_manager_spec.rb
|
326
|
-
- vendor/listen/spec/listen/directory_record_spec.rb
|
327
|
-
- vendor/listen/spec/listen/listener_spec.rb
|
328
|
-
- vendor/listen/spec/listen/multi_listener_spec.rb
|
329
|
-
- vendor/listen/spec/listen/turnstile_spec.rb
|
330
|
-
- vendor/listen/spec/listen_spec.rb
|
331
|
-
- vendor/listen/spec/spec_helper.rb
|
332
|
-
- vendor/listen/spec/support/adapter_helper.rb
|
333
|
-
- vendor/listen/spec/support/directory_record_helper.rb
|
334
|
-
- vendor/listen/spec/support/fixtures_helper.rb
|
335
|
-
- vendor/listen/spec/support/listeners_helper.rb
|
336
|
-
- vendor/listen/spec/support/platform_helper.rb
|
326
|
+
- extra/update_watch.rb
|
327
|
+
- Rakefile
|
328
|
+
- init.rb
|
329
|
+
- .yardopts
|
330
|
+
- CONTRIBUTING
|
331
|
+
- MIT-LICENSE
|
332
|
+
- README.md
|
333
|
+
- REVISION
|
334
|
+
- VERSION
|
335
|
+
- VERSION_DATE
|
336
|
+
- VERSION_NAME
|
337
337
|
homepage: http://sass-lang.com/
|
338
338
|
licenses:
|
339
339
|
- MIT
|
@@ -344,17 +344,17 @@ require_paths:
|
|
344
344
|
- lib
|
345
345
|
required_ruby_version: !ruby/object:Gem::Requirement
|
346
346
|
requirements:
|
347
|
-
- -
|
347
|
+
- - '>='
|
348
348
|
- !ruby/object:Gem::Version
|
349
349
|
version: 1.8.7
|
350
350
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
351
351
|
requirements:
|
352
|
-
- -
|
352
|
+
- - '>='
|
353
353
|
- !ruby/object:Gem::Version
|
354
354
|
version: '0'
|
355
355
|
requirements: []
|
356
356
|
rubyforge_project: sass
|
357
|
-
rubygems_version: 2.
|
357
|
+
rubygems_version: 2.0.3
|
358
358
|
signing_key:
|
359
359
|
specification_version: 4
|
360
360
|
summary: A powerful but elegant CSS compiler that makes CSS fun again.
|