guard-sass 0.2.4 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -71,16 +71,14 @@ end
71
71
  # default: true
72
72
  :shallow => true # Whether to output nested directories or just put css
73
73
  # directly in output folder, default: false
74
+ :style => :nested # Controls the output style, by default :nested
75
+ # accepted options are :nested, :compact, :compressed and :expanded
74
76
  :load_paths => ['sass/partials'] # Paths for sass to find imported sass files from,
75
77
  # default: all directories under current
76
78
  ```
77
79
 
78
80
 
79
- ## Contributors
80
-
81
- - snappycode (http://github.com/snappycode)
82
- - sauliusg (http://github.com/sauliusg)
83
-
81
+ ## [Contributors](https://github.com/hawx/guard-sass/contributors)
84
82
 
85
83
 
86
84
  [gcs]: http://github.com/netzpirat/guard-coffeescript "guard-coffeescript"
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  class SassVersion
3
- VERSION = '0.2.4'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
data/lib/guard/sass.rb CHANGED
@@ -11,6 +11,7 @@ module Guard
11
11
  :output => 'css', # Output directory
12
12
  :notification => true, # Enable notifications?
13
13
  :shallow => false, # Output nested directories?
14
+ :style => :nested, # Nested output
14
15
  :load_paths => Dir.glob('**/**').find_all {|i| File.directory?(i) }
15
16
  }
16
17
 
@@ -34,7 +35,12 @@ module Guard
34
35
  content = File.new(file).read
35
36
  # sass or scss?
36
37
  type = file[-4..-1].to_sym
37
- engine = ::Sass::Engine.new(content, {:syntax => type, :load_paths => options[:load_paths]})
38
+ sass_options = {
39
+ :syntax => type,
40
+ :load_paths => options[:load_paths],
41
+ :style => options[:style].to_sym,
42
+ }
43
+ engine = ::Sass::Engine.new(content, sass_options)
38
44
  engine.render
39
45
  end
40
46
 
@@ -105,4 +111,4 @@ module Guard
105
111
  end
106
112
 
107
113
  end
108
- end
114
+ 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.2.4
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,23 +9,23 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-14 00:00:00.000000000 +01:00
12
+ date: 2011-08-12 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: &2156139580 !ruby/object:Gem::Requirement
17
+ requirement: &2156767600 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.2.1
22
+ version: 0.4.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2156139580
25
+ version_requirements: *2156767600
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: sass
28
- requirement: &2156138820 !ruby/object:Gem::Requirement
28
+ requirement: &2156767080 !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: *2156138820
36
+ version_requirements: *2156767080
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bundler
39
- requirement: &2156138040 !ruby/object:Gem::Requirement
39
+ requirement: &2156766500 !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: *2156138040
47
+ version_requirements: *2156766500
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec
50
- requirement: &2156153600 !ruby/object:Gem::Requirement
50
+ requirement: &2156765920 !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: *2156153600
58
+ version_requirements: *2156765920
59
59
  description: Guard::Sass automatically rebuilds sass (like sass --watch)
60
60
  email:
61
61
  - m@hawx.me