guard-sass 1.0.6 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/guard/sass.rb CHANGED
@@ -108,18 +108,18 @@ module Guard
108
108
  begin
109
109
  # Get dependencies of file
110
110
  deps = ::Sass::Engine.for_file(file, @options).dependencies.collect! {|dep| dep.options[:filename] }
111
-
111
+
112
112
  rescue ::Sass::SyntaxError => e
113
113
  message = "Resolving partial owners of #{file} failed"
114
114
  @formatter.error "Sass > #{e.sass_backtrace_str(file)}", :notification => message
115
115
  end
116
-
116
+
117
117
  # Find intersection with paths
118
118
  deps_in_paths = deps.intersection paths
119
119
  # Any paths in the dependencies?
120
120
  !deps_in_paths.empty?
121
121
  end
122
-
122
+
123
123
  # Return our resolved set of paths to recompile
124
124
  owners
125
125
  end
@@ -143,8 +143,7 @@ module Guard
143
143
  return run_with_partials(paths) if paths.any? {|f| partial?(f) }
144
144
 
145
145
  changed_files, success = @runner.run(paths)
146
- notify changed_files
147
-
146
+
148
147
  throw :task_has_failed unless success
149
148
  end
150
149
 
@@ -154,17 +153,6 @@ module Guard
154
153
 
155
154
  end
156
155
 
157
- # Notify other guards about files that have been changed so that other guards can
158
- # work on the changed files.
159
- #
160
- # @param changed_files [Array<String>]
161
- def notify(changed_files)
162
- ::Guard.guards.each do |guard|
163
- paths = Watcher.match_files(guard, changed_files)
164
- guard.run_on_changes(paths) unless paths.empty?
165
- end
166
- end
167
-
168
156
  # @return Whether +path+ is a partial
169
157
  def partial?(path)
170
158
  File.basename(path).start_with? '_'
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  class SassVersion
3
- VERSION = '1.0.6'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-23 00:00:00.000000000 Z
12
+ date: 2013-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard