guard-sass 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -40,7 +40,7 @@ output to `styles/forms/buttons.css` because `forms` would be matched with the p
40
40
  This can be disabled by passing `:shallow => true` so that it would be written to
41
41
  `styles/buttons.css` instead.
42
42
 
43
- guard-sass also has a short notation like [guard-coffeescript][gcs], this let's you define
43
+ guard-sass also has a short notation like [guard-coffeescript][gcs], this let's you define
44
44
  an input folder (with an optional output folder) and the watcher is defined for you.
45
45
 
46
46
  ```ruby
@@ -75,6 +75,7 @@ end
75
75
  # accepted options are :nested, :compact, :compressed and :expanded
76
76
  :load_paths => ['sass/partials'] # Paths for sass to find imported sass files from,
77
77
  # default: all directories under current
78
+ :debug_info_ => true # File and line number info for FireSass, default: false
78
79
  ```
79
80
 
80
81
 
data/lib/guard/sass.rb CHANGED
@@ -12,6 +12,7 @@ module Guard
12
12
  :notification => true, # Enable notifications?
13
13
  :shallow => false, # Output nested directories?
14
14
  :style => :nested, # Nested output
15
+ :debug_info => false, # File and line number info for FireSass
15
16
  :load_paths => Dir.glob('**/**').find_all {|i| File.directory?(i) }
16
17
  }
17
18
 
@@ -31,6 +32,7 @@ module Guard
31
32
  # @param file [String] path to file to build
32
33
  # @return [String] the output css
33
34
  #
35
+
34
36
  def build_sass(file)
35
37
  content = File.new(file).read
36
38
  # sass or scss?
@@ -39,6 +41,7 @@ module Guard
39
41
  :syntax => type,
40
42
  :load_paths => options[:load_paths],
41
43
  :style => options[:style].to_sym,
44
+ :debug_info => options[:debug_info],
42
45
  }
43
46
  engine = ::Sass::Engine.new(content, sass_options)
44
47
  engine.render
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  class SassVersion
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
- end
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: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-12 00:00:00.000000000 +01:00
12
+ date: 2011-08-19 00:00:00.000000000 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: guard
17
- requirement: &2156767600 !ruby/object:Gem::Requirement
17
+ requirement: &2156458040 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 0.4.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2156767600
25
+ version_requirements: *2156458040
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: sass
28
- requirement: &2156767080 !ruby/object:Gem::Requirement
28
+ requirement: &2156457580 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '3.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2156767080
36
+ version_requirements: *2156457580
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bundler
39
- requirement: &2156766500 !ruby/object:Gem::Requirement
39
+ requirement: &2156457120 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.0.2
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2156766500
47
+ version_requirements: *2156457120
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec
50
- requirement: &2156765920 !ruby/object:Gem::Requirement
50
+ requirement: &2156456660 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>'
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: 2.0.0.rc
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2156765920
58
+ version_requirements: *2156456660
59
59
  description: Guard::Sass automatically rebuilds sass (like sass --watch)
60
60
  email:
61
61
  - m@hawx.me