guard-sass 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/guard/sass.rb +8 -6
  2. metadata +3 -3
data/lib/guard/sass.rb CHANGED
@@ -6,8 +6,14 @@ require 'sass'
6
6
  module Guard
7
7
  class Sass < Guard
8
8
 
9
- VERSION = '0.0.2'
9
+ VERSION = '0.0.3'
10
10
  attr_accessor :options
11
+
12
+ def initialize(watchers = [], options = {})
13
+ @watchers, @options = watchers, options
14
+ @options[:output] ||= 'css'
15
+ @options[:load_paths] ||= Dir.glob('*')
16
+ end
11
17
 
12
18
 
13
19
  # Builds the sass or scss. Determines engine to use by extension
@@ -41,11 +47,6 @@ module Guard
41
47
  # ================
42
48
  # = Guard method =
43
49
  # ================
44
-
45
- def start
46
- @options[:output] = options[:output] || 'css'
47
- @options[:load_paths] = Dir.glob('*')
48
- end
49
50
 
50
51
  # Build the files given
51
52
  def run_on_change(paths)
@@ -53,6 +54,7 @@ module Guard
53
54
  unless File.basename(file)[0] == "_"
54
55
  File.open(get_output(file), 'w') {|f| f.write(build_sass(file)) }
55
56
  end
57
+ puts "-> rebuilt #{file}"
56
58
  end
57
59
  end
58
60
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joshua Hawxwell
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-17 00:00:00 +01:00
17
+ date: 2010-10-21 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency