sass 3.2.0.alpha.102 → 3.2.0.alpha.103

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/REVISION +1 -1
  2. data/VERSION +1 -1
  3. metadata +5 -41
  4. data/vendor/fssm/Gemfile +0 -3
  5. data/vendor/fssm/LICENSE +0 -20
  6. data/vendor/fssm/README.markdown +0 -83
  7. data/vendor/fssm/Rakefile +0 -11
  8. data/vendor/fssm/example.rb +0 -12
  9. data/vendor/fssm/ext/rakefile.rb +0 -14
  10. data/vendor/fssm/fssm.gemspec +0 -27
  11. data/vendor/fssm/lib/fssm.rb +0 -74
  12. data/vendor/fssm/lib/fssm/backends/fsevents.rb +0 -36
  13. data/vendor/fssm/lib/fssm/backends/inotify.rb +0 -26
  14. data/vendor/fssm/lib/fssm/backends/polling.rb +0 -25
  15. data/vendor/fssm/lib/fssm/backends/rbfsevent.rb +0 -42
  16. data/vendor/fssm/lib/fssm/backends/rubycocoa/fsevents.rb +0 -131
  17. data/vendor/fssm/lib/fssm/monitor.rb +0 -36
  18. data/vendor/fssm/lib/fssm/path.rb +0 -94
  19. data/vendor/fssm/lib/fssm/pathname.rb +0 -36
  20. data/vendor/fssm/lib/fssm/state/directory.rb +0 -75
  21. data/vendor/fssm/lib/fssm/state/file.rb +0 -24
  22. data/vendor/fssm/lib/fssm/support.rb +0 -87
  23. data/vendor/fssm/lib/fssm/tree.rb +0 -176
  24. data/vendor/fssm/lib/fssm/version.rb +0 -3
  25. data/vendor/fssm/profile/prof-cache.rb +0 -40
  26. data/vendor/fssm/profile/prof-fssm-pathname.html +0 -1231
  27. data/vendor/fssm/profile/prof-pathname-rubinius.rb +0 -35
  28. data/vendor/fssm/profile/prof-pathname.rb +0 -68
  29. data/vendor/fssm/profile/prof-plain-pathname.html +0 -988
  30. data/vendor/fssm/profile/prof.html +0 -2379
  31. data/vendor/fssm/spec/count_down_latch.rb +0 -151
  32. data/vendor/fssm/spec/monitor_spec.rb +0 -202
  33. data/vendor/fssm/spec/path_spec.rb +0 -96
  34. data/vendor/fssm/spec/root/duck/quack.txt +0 -0
  35. data/vendor/fssm/spec/root/file.css +0 -0
  36. data/vendor/fssm/spec/root/file.rb +0 -0
  37. data/vendor/fssm/spec/root/file.yml +0 -0
  38. data/vendor/fssm/spec/root/moo/cow.txt +0 -0
  39. data/vendor/fssm/spec/spec_helper.rb +0 -14
data/REVISION CHANGED
@@ -1 +1 @@
1
- 05235ac9be0f69c6449fef65485e0707c24d7235
1
+ cc58837719de20019aad61d466f4af4f1e665de8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0.alpha.102
1
+ 3.2.0.alpha.103
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: 592303057
4
+ hash: 592303059
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
9
  - 0
10
10
  - alpha
11
- - 102
12
- version: 3.2.0.alpha.102
11
+ - 103
12
+ version: 3.2.0.alpha.103
13
13
  platform: ruby
14
14
  authors:
15
15
  - Nathan Weizenbaum
@@ -91,11 +91,11 @@ files:
91
91
  - lib/sass/plugin/compiler.rb
92
92
  - lib/sass/plugin/configuration.rb
93
93
  - lib/sass/plugin/generic.rb
94
+ - lib/sass/plugin/listener.rb
94
95
  - lib/sass/plugin/merb.rb
95
96
  - lib/sass/plugin/rack.rb
96
97
  - lib/sass/plugin/rails.rb
97
98
  - lib/sass/plugin/staleness_checker.rb
98
- - lib/sass/plugin/listener.rb
99
99
  - lib/sass/railtie.rb
100
100
  - lib/sass/repl.rb
101
101
  - lib/sass/root.rb
@@ -153,7 +153,6 @@ files:
153
153
  - lib/sass/tree/root_node.rb
154
154
  - lib/sass/tree/content_node.rb
155
155
  - lib/sass/tree/css_import_node.rb
156
- - lib/sass/tree/supports_node.rb
157
156
  - lib/sass/tree/variable_node.rb
158
157
  - lib/sass/tree/visitors/base.rb
159
158
  - lib/sass/tree/visitors/check_nesting.rb
@@ -165,47 +164,12 @@ files:
165
164
  - lib/sass/tree/visitors/to_css.rb
166
165
  - lib/sass/tree/warn_node.rb
167
166
  - lib/sass/tree/while_node.rb
167
+ - lib/sass/tree/supports_node.rb
168
168
  - lib/sass/tree/trace_node.rb
169
169
  - lib/sass/util/multibyte_string_scanner.rb
170
170
  - lib/sass/util/subset_map.rb
171
171
  - lib/sass/version.rb
172
172
  - lib/sass/supports.rb
173
- - vendor/fssm/Gemfile
174
- - vendor/fssm/LICENSE
175
- - vendor/fssm/README.markdown
176
- - vendor/fssm/Rakefile
177
- - vendor/fssm/example.rb
178
- - vendor/fssm/ext/rakefile.rb
179
- - vendor/fssm/fssm.gemspec
180
- - vendor/fssm/lib/fssm.rb
181
- - vendor/fssm/lib/fssm/backends/fsevents.rb
182
- - vendor/fssm/lib/fssm/backends/inotify.rb
183
- - vendor/fssm/lib/fssm/backends/polling.rb
184
- - vendor/fssm/lib/fssm/backends/rbfsevent.rb
185
- - vendor/fssm/lib/fssm/backends/rubycocoa/fsevents.rb
186
- - vendor/fssm/lib/fssm/monitor.rb
187
- - vendor/fssm/lib/fssm/path.rb
188
- - vendor/fssm/lib/fssm/pathname.rb
189
- - vendor/fssm/lib/fssm/state/directory.rb
190
- - vendor/fssm/lib/fssm/state/file.rb
191
- - vendor/fssm/lib/fssm/support.rb
192
- - vendor/fssm/lib/fssm/tree.rb
193
- - vendor/fssm/lib/fssm/version.rb
194
- - vendor/fssm/profile/prof-cache.rb
195
- - vendor/fssm/profile/prof-fssm-pathname.html
196
- - vendor/fssm/profile/prof-pathname-rubinius.rb
197
- - vendor/fssm/profile/prof-pathname.rb
198
- - vendor/fssm/profile/prof-plain-pathname.html
199
- - vendor/fssm/profile/prof.html
200
- - vendor/fssm/spec/count_down_latch.rb
201
- - vendor/fssm/spec/monitor_spec.rb
202
- - vendor/fssm/spec/path_spec.rb
203
- - vendor/fssm/spec/root/duck/quack.txt
204
- - vendor/fssm/spec/root/file.css
205
- - vendor/fssm/spec/root/file.rb
206
- - vendor/fssm/spec/root/file.yml
207
- - vendor/fssm/spec/root/moo/cow.txt
208
- - vendor/fssm/spec/spec_helper.rb
209
173
  - vendor/listen/CHANGELOG.md
210
174
  - vendor/listen/Gemfile
211
175
  - vendor/listen/Guardfile
data/vendor/fssm/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gemspec
data/vendor/fssm/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2011 Travis Tilley
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,83 +0,0 @@
1
- # FSSM ![project status](http://stillmaintained.com/ttilley/fssm.png) #
2
-
3
- Monitor API
4
- ===========
5
-
6
- There are three ways you can run the monitor.
7
-
8
- 1. call monitor with a path parameter, and define callbacks in a block
9
- 2. call monitor with a block to configure multiple paths and callbacks
10
- 3. create a monitor object and run each step manually
11
-
12
- Monitor with path
13
- -----------------
14
-
15
- This form watches one path, and enters the run loop automatically. The first parameter is the path to watch, and the second parameter is an optional glob pattern or array of glob patterns that a file must match in order to trigger a callback. The default glob, if ommitted, is `'**/*'`.
16
-
17
- FSSM.monitor('/some/directory/', '**/*') do
18
- update {|base, relative|}
19
- delete {|base, relative|}
20
- create {|base, relative|}
21
- end
22
-
23
- Monitor with block
24
- ------------------
25
-
26
- This form watches one or more paths, and enters the run loop automatically. The glob configuration call can be ommitted, and defaults to `'**/*'`.
27
-
28
- FSSM.monitor do
29
- path '/some/directory/' do
30
- glob '**/*.yml'
31
-
32
- update {|base, relative|}
33
- delete {|base, relative|}
34
- create {|base, relative|}
35
- end
36
-
37
- path '/some/other/directory/' do
38
- update {|base, relative|}
39
- delete {|base, relative|}
40
- create {|base, relative|}
41
- end
42
- end
43
-
44
- Monitor object
45
- --------------
46
-
47
- This form doesn't enter the run loop automatically.
48
-
49
- monitor = FSSM::Monitor.new
50
-
51
- monitor.path '/some/directory/' do
52
- update {|base, relative|}
53
- delete {|base, relative|}
54
- create {|base, relative|}
55
- end
56
-
57
- monitor.run
58
-
59
- Monitoring directories
60
- ----------------------
61
-
62
- By default, FSSM monitors changes in files only. To enable monitoring of files and directories, pass option `directories => true` in a hash to the monitor. Please note that this may not work as expected in all backends. For example:
63
-
64
- FSSM::Monitor.new(:directories => true)
65
- FSSM.monitor(dir, file_glob, :directories => true)
66
-
67
- When directories are monitored, there's an additional third argument to the callbacks. Instead of
68
-
69
- FSSM.monitor('/some/directory/', '**/*') do
70
- update {|base, relative|}
71
- delete {|base, relative|}
72
- create {|base, relative|}
73
- end
74
-
75
- you get this:
76
-
77
- FSSM.monitor('/some/directory/', '**/*', :directories => true) do
78
- update {|base, relative, type|}
79
- delete {|base, relative, type|}
80
- create {|base, relative, type|}
81
- end
82
-
83
- The value of `type` argument is either `:file` or `:directory`.
data/vendor/fssm/Rakefile DELETED
@@ -1,11 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- Bundler::GemHelper.install_tasks
4
-
5
- require 'rspec/core/rake_task'
6
- RSpec::Core::RakeTask.new(:spec) do |spec|
7
- spec.rspec_opts = ["--color", "--backtrace", "--format", "documentation"]
8
- spec.verbose = true
9
- end
10
-
11
- task :default => :spec
@@ -1,12 +0,0 @@
1
- $:.unshift(File.join(File.dirname(__FILE__), 'lib'))
2
-
3
- # for rb-inotify/rb-fsevent
4
- require 'rubygems'
5
-
6
- require 'fssm'
7
-
8
- FSSM.monitor('.', '**/*') do
9
- update { |b, r| puts "Update in #{b} to #{r}" }
10
- delete { |b, r| puts "Delete in #{b} to #{r}" }
11
- create { |b, r| puts "Create in #{b} to #{r}" }
12
- end
@@ -1,14 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $LOAD_PATH.unshift(File.expand_path('../lib', File.dirname(__FILE__)))
3
-
4
- require 'rubygems/dependency_installer'
5
- require 'fssm'
6
-
7
- # semi-elegant solution or hack? *shrug*
8
- task :default do
9
- name, version = FSSM::Support.optimal_backend_dependency
10
- if name and version
11
- installer = Gem::DependencyInstaller.new({:domain => :both, :env_shebang => true})
12
- installer.install name, version
13
- end
14
- end
@@ -1,27 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "fssm/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "fssm"
7
- s.version = FSSM::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.authors = ["Travis Tilley", "Nathan Weizenbaum", "Chris Eppstein",
10
- "Jonathan Castello", "Tuomas Kareinen"]
11
- s.email = ["ttilley@gmail.com"]
12
- s.homepage = "https://github.com/ttilley/fssm"
13
- s.summary = %q{File System State Monitor}
14
- s.description = %q{The File System State Monitor keeps track of the state of any number of paths and will fire events when said state changes (create/update/delete). FSSM supports using FSEvents on MacOS, Inotify on GNU/Linux, and polling anywhere else.}
15
-
16
- s.rubyforge_project = "fssm"
17
-
18
- s.files = `git ls-files`.split("\n")
19
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
- s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
21
- s.require_paths = ["lib"]
22
-
23
- # s.extensions = 'ext/rakefile.rb'
24
-
25
- s.add_development_dependency "rake"
26
- s.add_development_dependency "rspec", ">= 2.4.0"
27
- end
@@ -1,74 +0,0 @@
1
- dir = File.expand_path(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
3
-
4
- require 'thread'
5
-
6
- module FSSM
7
-
8
- FSSMError = Class.new(StandardError)
9
- FileNotFoundError = Class.new(FSSMError)
10
- FileNotRealError = Class.new(FSSMError)
11
- CallbackError = Class.new(FSSMError)
12
-
13
- autoload :VERSION, 'fssm/version'
14
- autoload :Pathname, 'fssm/pathname'
15
- autoload :Support, 'fssm/support'
16
- autoload :Tree, 'fssm/tree'
17
- autoload :Path, 'fssm/path'
18
- autoload :Monitor, 'fssm/monitor'
19
-
20
- module State
21
- autoload :Directory, 'fssm/state/directory'
22
- autoload :File, 'fssm/state/file'
23
- end
24
-
25
- module Backends
26
- autoload :Polling, 'fssm/backends/polling'
27
- autoload :FSEvents, 'fssm/backends/fsevents'
28
- autoload :RBFSEvent, 'fssm/backends/rbfsevent'
29
- autoload :Inotify, 'fssm/backends/inotify'
30
-
31
- class << self
32
- def set_backend(const_symbol=nil, value=nil)
33
- const_symbol ||= :Default
34
- value ||= ::FSSM::Support.backend
35
-
36
- if (value.is_a?(Symbol) || value.is_a?(String))
37
- unless const_defined?(value)
38
- raise NameError,
39
- "uninitialized constant FSSM::Backends::#{value}"
40
- end
41
- value = const_get(value)
42
- end
43
-
44
- unless value.is_a?(Class)
45
- raise ArgumentError,
46
- "value must be a class or the symbol of an existing backend"
47
- end
48
-
49
- remove_const(const_symbol) if const_defined?(const_symbol)
50
- const_set(const_symbol, value)
51
- end
52
-
53
- def const_missing(symbol)
54
- symbol == :Default ? set_backend(symbol, FSSM::Support.backend) : super
55
- end
56
-
57
- end
58
- end
59
-
60
- class << self
61
- def dbg(msg=nil)
62
- STDERR.puts("FSSM -> #{msg}")
63
- end
64
-
65
- def monitor(*args, &block)
66
- options = args[-1].is_a?(Hash) ? args.pop : {}
67
- monitor = FSSM::Monitor.new(options)
68
- FSSM::Support.use_block(args.empty? ? monitor : monitor.path(*args), block)
69
-
70
- monitor.run
71
- end
72
- end
73
-
74
- end
@@ -1,36 +0,0 @@
1
- require File.join(File.dirname(__FILE__), 'rubycocoa/fsevents')
2
-
3
- module FSSM::Backends
4
- class FSEvents
5
- def initialize
6
- @handlers = {}
7
- @fsevents = []
8
- end
9
-
10
- def add_handler(handler, preload=true)
11
- @handlers[handler.path.to_s] = handler
12
-
13
- fsevent = Rucola::FSEvents.new(handler.path.to_s, {:latency => 0.5}) do |events|
14
- events.each do |event|
15
- handler.refresh(event.path)
16
- end
17
- end
18
-
19
- fsevent.create_stream
20
- handler.refresh(nil, true) if preload
21
- fsevent.start
22
- @fsevents << fsevent
23
- end
24
-
25
- def run
26
- begin
27
- OSX.CFRunLoopRun
28
- rescue Interrupt
29
- @fsevents.each do |fsev|
30
- fsev.stop
31
- end
32
- end
33
- end
34
-
35
- end
36
- end
@@ -1,26 +0,0 @@
1
- module FSSM::Backends
2
- class Inotify
3
- def initialize
4
- @notifier = INotify::Notifier.new
5
- end
6
-
7
- def add_handler(handler, preload=true)
8
- @notifier.watch(handler.path.to_s, :recursive, :attrib, :close_write, :create,
9
- :delete, :delete_self, :moved_from, :moved_to, :move_self) do |event|
10
- path = FSSM::Pathname.for(event.absolute_name)
11
- path = path.dirname unless event.name == "" # Event on root directory
12
- handler.refresh(path)
13
- end
14
-
15
- handler.refresh(nil, true) if preload
16
- end
17
-
18
- def run
19
- begin
20
- @notifier.run
21
- rescue Interrupt
22
- end
23
- end
24
-
25
- end
26
- end
@@ -1,25 +0,0 @@
1
- module FSSM::Backends
2
- class Polling
3
- def initialize(options={})
4
- @handlers = []
5
- @latency = options[:latency] || 1.5
6
- end
7
-
8
- def add_handler(handler, preload=true)
9
- handler.refresh(nil, true) if preload
10
- @handlers << handler
11
- end
12
-
13
- def run
14
- begin
15
- loop do
16
- start = Time.now.to_f
17
- @handlers.each { |handler| handler.refresh }
18
- nap_time = @latency - (Time.now.to_f - start)
19
- sleep nap_time if nap_time > 0
20
- end
21
- rescue Interrupt
22
- end
23
- end
24
- end
25
- end