sass 3.2.19 → 3.3.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CONTRIBUTING +1 -1
- data/MIT-LICENSE +2 -2
- data/README.md +13 -14
- data/REVISION +1 -1
- data/Rakefile +4 -6
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/VERSION_NAME +1 -1
- data/bin/sass +1 -6
- data/bin/sass-convert +1 -6
- data/bin/scss +1 -6
- data/lib/sass/cache_stores/base.rb +0 -2
- data/lib/sass/cache_stores/chain.rb +1 -1
- data/lib/sass/cache_stores/filesystem.rb +3 -6
- data/lib/sass/callbacks.rb +1 -1
- data/lib/sass/css.rb +1 -1
- data/lib/sass/engine.rb +4 -11
- data/lib/sass/error.rb +2 -2
- data/lib/sass/exec.rb +10 -40
- data/lib/sass/importers/filesystem.rb +15 -52
- data/lib/sass/logger/log_level.rb +3 -3
- data/lib/sass/media.rb +4 -1
- data/lib/sass/plugin.rb +1 -2
- data/lib/sass/plugin/compiler.rb +18 -40
- data/lib/sass/plugin/staleness_checker.rb +5 -21
- data/lib/sass/railtie.rb +0 -1
- data/lib/sass/script/funcall.rb +8 -62
- data/lib/sass/script/functions.rb +457 -557
- data/lib/sass/script/lexer.rb +30 -25
- data/lib/sass/script/list.rb +1 -2
- data/lib/sass/script/literal.rb +18 -0
- data/lib/sass/script/null.rb +1 -4
- data/lib/sass/script/operation.rb +1 -0
- data/lib/sass/script/parser.rb +35 -42
- data/lib/sass/script/string.rb +1 -1
- data/lib/sass/script/unary_operation.rb +3 -8
- data/lib/sass/scss/parser.rb +14 -33
- data/lib/sass/scss/rx.rb +10 -3
- data/lib/sass/selector.rb +16 -19
- data/lib/sass/selector/sequence.rb +7 -16
- data/lib/sass/selector/simple.rb +1 -1
- data/lib/sass/selector/simple_sequence.rb +15 -25
- data/lib/sass/tree/comment_node.rb +2 -2
- data/lib/sass/tree/import_node.rb +2 -9
- data/lib/sass/tree/visitors/check_nesting.rb +2 -3
- data/lib/sass/tree/visitors/convert.rb +4 -9
- data/lib/sass/tree/visitors/cssize.rb +15 -36
- data/lib/sass/tree/visitors/perform.rb +20 -23
- data/lib/sass/tree/visitors/set_options.rb +0 -8
- data/lib/sass/tree/visitors/to_css.rb +1 -0
- data/lib/sass/util.rb +2 -120
- data/lib/sass/util/multibyte_string_scanner.rb +8 -29
- data/test/sass/conversion_test.rb +8 -33
- data/test/sass/css2sass_test.rb +0 -19
- data/test/sass/engine_test.rb +17 -129
- data/test/sass/extend_test.rb +24 -169
- data/test/sass/functions_test.rb +73 -93
- data/test/sass/plugin_test.rb +11 -72
- data/test/sass/script_conversion_test.rb +0 -14
- data/test/sass/script_test.rb +1 -40
- data/test/sass/scss/css_test.rb +3 -44
- data/test/sass/scss/scss_test.rb +3 -134
- data/test/sass/util_test.rb +0 -93
- data/vendor/listen/CHANGELOG.md +2 -83
- data/vendor/listen/Gemfile +1 -8
- data/vendor/listen/Guardfile +1 -1
- data/vendor/listen/LICENSE +1 -1
- data/vendor/listen/README.md +5 -8
- data/vendor/listen/lib/listen.rb +5 -7
- data/vendor/listen/lib/listen/adapter.rb +29 -76
- data/vendor/listen/lib/listen/adapters/darwin.rb +10 -11
- data/vendor/listen/lib/listen/adapters/linux.rb +30 -33
- data/vendor/listen/lib/listen/adapters/polling.rb +1 -2
- data/vendor/listen/lib/listen/adapters/windows.rb +21 -27
- data/vendor/listen/lib/listen/directory_record.rb +10 -63
- data/vendor/listen/lib/listen/listener.rb +0 -22
- data/vendor/listen/lib/listen/multi_listener.rb +0 -22
- data/vendor/listen/lib/listen/version.rb +1 -1
- data/vendor/listen/listen.gemspec +4 -0
- data/vendor/listen/spec/listen/adapter_spec.rb +4 -45
- data/vendor/listen/spec/listen/adapters/darwin_spec.rb +0 -6
- data/vendor/listen/spec/listen/adapters/linux_spec.rb +0 -6
- data/vendor/listen/spec/listen/adapters/windows_spec.rb +1 -7
- data/vendor/listen/spec/listen/directory_record_spec.rb +4 -91
- data/vendor/listen/spec/listen/listener_spec.rb +0 -14
- data/vendor/listen/spec/listen/multi_listener_spec.rb +1 -19
- data/vendor/listen/spec/spec_helper.rb +3 -6
- data/vendor/listen/spec/support/adapter_helper.rb +212 -125
- data/vendor/listen/spec/support/listeners_helper.rb +1 -13
- data/vendor/listen/spec/support/platform_helper.rb +0 -4
- metadata +113 -105
- checksums.yaml +0 -7
- data/lib/sass/util/test.rb +0 -10
- data/test/sass/exec_test.rb +0 -86
- data/test/sass/results/cached_import_option.css +0 -3
- data/test/sass/templates/_cached_import_option_partial.scss +0 -1
- data/test/sass/templates/_same_name_different_partiality.scss +0 -1
- data/test/sass/templates/bork5.sass +0 -3
- data/test/sass/templates/cached_import_option.scss +0 -3
- data/test/sass/templates/same_name_different_ext.sass +0 -2
- data/test/sass/templates/same_name_different_ext.scss +0 -1
- data/test/sass/templates/same_name_different_partiality.scss +0 -1
- data/test/sass/templates/subdir/import_up1.scss +0 -1
- data/test/sass/templates/subdir/import_up2.scss +0 -1
- data/vendor/listen/CONTRIBUTING.md +0 -38
- data/vendor/listen/lib/listen/adapters/bsd.rb +0 -112
- data/vendor/listen/lib/listen/dependency_manager.rb +0 -126
- data/vendor/listen/spec/listen/adapters/bsd_spec.rb +0 -36
- data/vendor/listen/spec/listen/dependency_manager_spec.rb +0 -107
@@ -1,107 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Listen::DependencyManager do
|
4
|
-
let(:dependency) { Listen::DependencyManager::Dependency.new('listen', '~> 0.0.1') }
|
5
|
-
|
6
|
-
subject { Class.new { extend Listen::DependencyManager } }
|
7
|
-
|
8
|
-
before { described_class.clear_loaded }
|
9
|
-
|
10
|
-
describe '.add_loaded' do
|
11
|
-
it 'adds a dependency to the list of loaded dependencies' do
|
12
|
-
described_class.add_loaded dependency
|
13
|
-
described_class.already_loaded?(dependency).should be_true
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
describe '.already_loaded?' do
|
18
|
-
it 'returns false when a dependency is not in the list of loaded dependencies' do
|
19
|
-
described_class.already_loaded?(dependency).should be_false
|
20
|
-
end
|
21
|
-
|
22
|
-
it 'returns true when a dependency is in the list of loaded dependencies' do
|
23
|
-
described_class.add_loaded dependency
|
24
|
-
described_class.already_loaded?(dependency).should be_true
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
describe '.clear_loaded' do
|
29
|
-
it 'clears the whole list of loaded dependencies' do
|
30
|
-
described_class.add_loaded dependency
|
31
|
-
described_class.already_loaded?(dependency).should be_true
|
32
|
-
described_class.clear_loaded
|
33
|
-
described_class.already_loaded?(dependency).should be_false
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
describe '#dependency' do
|
38
|
-
it 'registers a new dependency for the managed class' do
|
39
|
-
subject.dependency 'listen', '~> 0.0.1'
|
40
|
-
subject.dependencies_loaded?.should be_false
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
describe '#load_depenencies' do
|
45
|
-
before { subject.dependency 'listen', '~> 0.0.1' }
|
46
|
-
|
47
|
-
context 'when dependencies can be loaded' do
|
48
|
-
before { subject.stub(:gem, :require) }
|
49
|
-
|
50
|
-
it 'loads all the registerd dependencies' do
|
51
|
-
subject.load_depenencies
|
52
|
-
subject.dependencies_loaded?.should be_true
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
context 'when dependencies can not be loaded' do
|
57
|
-
it 'raises an error' do
|
58
|
-
expect {
|
59
|
-
subject.load_depenencies
|
60
|
-
}.to raise_error(described_class::Error)
|
61
|
-
end
|
62
|
-
|
63
|
-
context 'when running under bundler' do
|
64
|
-
before { subject.should_receive(:running_under_bundler?).and_return(true) }
|
65
|
-
|
66
|
-
it 'includes the Gemfile declaration to satisfy the dependency' do
|
67
|
-
begin
|
68
|
-
subject.load_depenencies
|
69
|
-
rescue described_class::Error => e
|
70
|
-
e.message.should include("gem 'listen', '~> 0.0.1'")
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
context 'when not running under bundler' do
|
76
|
-
before { subject.should_receive(:running_under_bundler?).and_return(false) }
|
77
|
-
|
78
|
-
it 'includes the command to install the dependency' do
|
79
|
-
begin
|
80
|
-
subject.load_depenencies
|
81
|
-
rescue described_class::Error => e
|
82
|
-
e.message.should include("gem install --version '~> 0.0.1' listen")
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
describe '#dependencies_loaded?' do
|
90
|
-
it 'return false when dependencies are not loaded' do
|
91
|
-
subject.dependency 'listen', '~> 0.0.1'
|
92
|
-
subject.dependencies_loaded?.should be_false
|
93
|
-
end
|
94
|
-
|
95
|
-
it 'return true when dependencies are loaded' do
|
96
|
-
subject.stub(:gem, :require)
|
97
|
-
|
98
|
-
subject.dependency 'listen', '~> 0.0.1'
|
99
|
-
subject.load_depenencies
|
100
|
-
subject.dependencies_loaded?.should be_true
|
101
|
-
end
|
102
|
-
|
103
|
-
it 'return true when there are no dependencies to load' do
|
104
|
-
subject.dependencies_loaded?.should be_true
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|