sass 3.4.4 → 3.4.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3fbc042c02c52b18d59b25d9c26459658baf6cf
4
- data.tar.gz: faf525b9b4f1837dc790d9fdae267d0ed729b41e
3
+ metadata.gz: cf0926f17a403b6e66c37ae0c7bc650305f19b20
4
+ data.tar.gz: fd72f981a1398c5b48bbb8ff6213742908625507
5
5
  SHA512:
6
- metadata.gz: 6cd8dc8c85660b360845e47b15c78218a076558e6ce0e09bbb13b4a79d2c74a72563e974189d8db5be708c30c6f04877c467a959670179b7244c4d91cd8b7c87
7
- data.tar.gz: 7cd31825c789bc5744514aac91d5346b952a2286c5ea148f1cb2c1471b34769fae3df30bab1d7ffa728bb07a774a9560732fb4acb011062e6e7694f5bf8ea244
6
+ metadata.gz: 7693230e4871ca0d0539b56f854bfd6e4945edfc87f11179416f2521130966cf53be50986a70e65e2dbe2e00e3fe7dc9019196f354be3846d3d45f28d0d78f48
7
+ data.tar.gz: f3ef8096eec2b1a90f48b928167d1226edc8276eb07a23f6d1b337c6991f9799ea6bf780c9e9747155859b188791778a90032ebdb28d48a0b9c57e9586187205
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.4.4
1
+ 3.4.5
@@ -1 +1 @@
1
- 13 September 2014 00:20:07 UTC
1
+ 20 September 2014 01:03:27 UTC
@@ -18,11 +18,23 @@ module Sass::Exec
18
18
  begin
19
19
  parse
20
20
  rescue Exception => e
21
+ # Exit code 65 indicates invalid data per
22
+ # http://www.freebsd.org/cgi/man.cgi?query=sysexits. Setting it via
23
+ # at_exit is a bit of a hack, but it allows us to rethrow when --trace
24
+ # is active and get both the built-in exception formatting and the
25
+ # correct exit code.
26
+ at_exit {exit 65} if e.is_a?(Sass::SyntaxError)
27
+
21
28
  raise e if @options[:trace] || e.is_a?(SystemExit)
22
29
 
23
- $stderr.print "#{e.class}: " unless e.class == RuntimeError
24
- $stderr.puts "#{e.message}"
30
+ if e.is_a?(Sass::SyntaxError)
31
+ $stderr.puts e.sass_backtrace_str("standard input")
32
+ else
33
+ $stderr.print "#{e.class}: " unless e.class == RuntimeError
34
+ $stderr.puts e.message.to_s
35
+ end
25
36
  $stderr.puts " Use --trace for backtrace."
37
+
26
38
  exit 1
27
39
  end
28
40
  exit 0
@@ -162,7 +162,7 @@ END
162
162
  end
163
163
 
164
164
  def process_directory
165
- unless (input = @options[:input] = @args.shift)
165
+ unless @options[:input] = @args.shift
166
166
  raise "Error: directory required when using --recursive."
167
167
  end
168
168
 
@@ -207,7 +207,7 @@ END
207
207
  puts_action :create, :green, output
208
208
  end
209
209
 
210
- process_file(input, output)
210
+ process_file(f, output)
211
211
  end
212
212
  end
213
213
 
@@ -289,6 +289,27 @@ File #{@args[1]} #{err}.
289
289
  MSG
290
290
  end
291
291
 
292
+ # Watch the working directory for changes without adding it to the load
293
+ # path. This preserves the pre-3.4 behavior when the working directory was
294
+ # on the load path. We should remove this when we can look for directories
295
+ # to watch by traversing the import graph.
296
+ class << Sass::Plugin.compiler
297
+ # We have to use a class var to make this visible to #watched_file? and
298
+ # #watched_paths.
299
+ # rubocop:disable ClassVars
300
+ @@working_directory = Sass::Util.realpath('.').to_s
301
+ # rubocop:ensable ClassVars
302
+
303
+ def watched_file?(file)
304
+ super(file) ||
305
+ (file =~ /\.s[ac]ss$/ && file.start_with?(@@working_directory + File::SEPARATOR))
306
+ end
307
+
308
+ def watched_paths
309
+ @watched_paths ||= super + [@@working_directory]
310
+ end
311
+ end
312
+
292
313
  dirs, files = @args.map {|name| split_colon_path(name)}.
293
314
  partition {|i, _| File.directory? i}
294
315
  files.map! do |from, to|
@@ -384,8 +405,7 @@ MSG
384
405
  end
385
406
  rescue Sass::SyntaxError => e
386
407
  write_output(Sass::SyntaxError.exception_to_css(e), output) if output.is_a?(String)
387
- raise e if @options[:trace]
388
- raise e.sass_backtrace_str("standard input")
408
+ raise e
389
409
  ensure
390
410
  output.close if output.is_a? File
391
411
  end
@@ -0,0 +1 @@
1
+ foo {a: x}
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.4.4
4
+ version: 3.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Natalie Weizenbaum
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-09-13 00:00:00.000000000 Z
13
+ date: 2014-09-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: yard
@@ -237,6 +237,7 @@ files:
237
237
  - bin/scss
238
238
  - bin/sass
239
239
  - test/test_helper.rb
240
+ - test/foo.scss
240
241
  - test/sass/engine_test.rb
241
242
  - test/sass/functions_test.rb
242
243
  - test/sass/value_helpers_test.rb