sass 3.3.0.alpha.368 → 3.3.0.alpha.369
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/REVISION +1 -1
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- metadata +3 -4
- data/test/rubocop_extensions.rb +0 -70
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
da95ceeed652f28309ed53519113914945473558
|
data/Rakefile
CHANGED
@@ -23,7 +23,6 @@ end
|
|
23
23
|
|
24
24
|
if RUBY_VERSION !~ /^(1\.8|2\.1)/ && (ENV.has_key?("RUBOCOP") && ENV["RUBOCOP"] == "true" || !ENV.has_key?("RUBOCOP"))
|
25
25
|
require 'rubocop/rake_task'
|
26
|
-
require "#{File.dirname(__FILE__)}/test/rubocop_extensions.rb"
|
27
26
|
Rubocop::RakeTask.new do |t|
|
28
27
|
t.patterns = FileList["lib/**/*"]
|
29
28
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.0.alpha.
|
1
|
+
3.3.0.alpha.369
|
data/VERSION_DATE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
08 October 2013
|
1
|
+
08 October 2013 21:16:33 GMT
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 592302575
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 3
|
9
9
|
- 0
|
10
10
|
- alpha
|
11
|
-
-
|
12
|
-
version: 3.3.0.alpha.
|
11
|
+
- 369
|
12
|
+
version: 3.3.0.alpha.369
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Nathan Weizenbaum
|
@@ -209,7 +209,6 @@ files:
|
|
209
209
|
- bin/sass-convert
|
210
210
|
- bin/scss
|
211
211
|
- test/Gemfile.lock
|
212
|
-
- test/rubocop_extensions.rb
|
213
212
|
- test/sass/cache_test.rb
|
214
213
|
- test/sass/callbacks_test.rb
|
215
214
|
- test/sass/conversion_test.rb
|
data/test/rubocop_extensions.rb
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
require "rubocop/cop/style/surrounding_space"
|
2
|
-
|
3
|
-
module Rubocop
|
4
|
-
module Cop
|
5
|
-
module Style
|
6
|
-
# Common functionality for checking surrounding space.
|
7
|
-
# This is monkeypatching an existing class.
|
8
|
-
class SpaceAroundBlockBraces < Cop
|
9
|
-
MSG_RIGHT_SPACE = "Space found to the left of '}'."
|
10
|
-
MSG_LEFT_SPACE = "Space found to the right of '{'."
|
11
|
-
def investigate(processed_source)
|
12
|
-
return unless processed_source.ast
|
13
|
-
@processed_source = processed_source
|
14
|
-
|
15
|
-
processed_source.tokens.each_cons(2) do |t1, t2|
|
16
|
-
next if ([t1.pos, t2.pos] - positions_not_to_check).size < 2
|
17
|
-
|
18
|
-
type1, type2 = t1.type, t2.type
|
19
|
-
check(t1, t2, MSG_LEFT) if type2 == :tLCURLY
|
20
|
-
if type1 == :tLCURLY
|
21
|
-
if type2 == :tPIPE && cop_config['NoSpaceBeforeBlockParameters']
|
22
|
-
check_no_space(t1, t2, MSG_PIPE)
|
23
|
-
elsif cop_config['NoSpaceAfterOpeningCurly']
|
24
|
-
check_no_space(t1, t2, MSG_LEFT_SPACE)
|
25
|
-
else
|
26
|
-
check(t1, t2, MSG_LEFT)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
if type2 == :tRCURLY
|
30
|
-
if cop_config['NoSpaceBeforeClosingCurly']
|
31
|
-
check_no_space(t1, t2, MSG_RIGHT_SPACE)
|
32
|
-
else
|
33
|
-
check(t1, t2, MSG_RIGHT)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
def check_no_space(t1, t2, msg)
|
40
|
-
convention(nil, t1.pos, msg) if space_between?(t1, t2)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
# This is monkeypatching an existing class.
|
45
|
-
class RedundantReturn < Cop
|
46
|
-
def check(node)
|
47
|
-
return unless node
|
48
|
-
|
49
|
-
if node.type == :return
|
50
|
-
convention(node, :keyword)
|
51
|
-
elsif node.type == :begin
|
52
|
-
expressions = *node
|
53
|
-
last_expr = expressions.last
|
54
|
-
|
55
|
-
if last_expr && last_expr.type == :return
|
56
|
-
if cop_config['AllowMultipleReturnValues']
|
57
|
-
return if last_expr.children.size > 1
|
58
|
-
end
|
59
|
-
convention(last_expr, :keyword)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
Rubocop::Config.default_configuration["SpaceAroundBlockBraces"]["NoSpaceBeforeClosingCurly"] = false
|
69
|
-
Rubocop::Config.default_configuration["SpaceAroundBlockBraces"]["NoSpaceAfterOpeningCurly"] = false
|
70
|
-
Rubocop::Config.default_configuration["RedundantReturn"]["AllowMultipleReturnValues"] = false
|