guard-sass 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guard/sass.rb +8 -2
- data/lib/guard/sass/version.rb +1 -1
- metadata +10 -10
data/lib/guard/sass.rb
CHANGED
@@ -63,6 +63,9 @@ module Guard
|
|
63
63
|
r << '.css'
|
64
64
|
end
|
65
65
|
|
66
|
+
def ignored?(path)
|
67
|
+
File.basename(path) == "_"
|
68
|
+
end
|
66
69
|
|
67
70
|
# ================
|
68
71
|
# = Guard method =
|
@@ -70,12 +73,15 @@ module Guard
|
|
70
73
|
|
71
74
|
# Build all files being watched
|
72
75
|
def run_all
|
73
|
-
run_on_change(Watcher.match_files(self, Dir.glob(File.join('**', '*.*'))))
|
76
|
+
run_on_change(Watcher.match_files(self, Dir.glob(File.join('**', '[^_]*.*'))))
|
74
77
|
end
|
75
78
|
|
76
79
|
# Build the files given
|
77
80
|
def run_on_change(paths)
|
78
|
-
|
81
|
+
partials = paths.select { |f| ignored?(f) }
|
82
|
+
return run_all unless partials.empty?
|
83
|
+
|
84
|
+
changed_files = paths.reject{ |f| ignored?(f) }.map do |file|
|
79
85
|
css_file = get_output(file)
|
80
86
|
begin
|
81
87
|
File.open(css_file, 'w') {|f| f.write(build_sass(file)) }
|
data/lib/guard/sass/version.rb
CHANGED
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
|
+
version: 0.2.2
|
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-
|
12
|
+
date: 2011-07-08 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: &
|
17
|
+
requirement: &2156123160 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 0.2.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2156123160
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: sass
|
28
|
-
requirement: &
|
28
|
+
requirement: &2156122500 !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: *
|
36
|
+
version_requirements: *2156122500
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: bundler
|
39
|
-
requirement: &
|
39
|
+
requirement: &2156121860 !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: *
|
47
|
+
version_requirements: *2156121860
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rspec
|
50
|
-
requirement: &
|
50
|
+
requirement: &2156121340 !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: *
|
58
|
+
version_requirements: *2156121340
|
59
59
|
description: Guard::Sass automatically rebuilds sass (like sass --watch)
|
60
60
|
email:
|
61
61
|
- m@hawx.me
|