guard-compass 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +20 -0
- data/README.textile +24 -0
- data/lib/guard/compass.rb +54 -0
- data/lib/guard/compass/templates/Guardfile +3 -0
- metadata +153 -0
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2010 Thibaud Guillaume-Gentil
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.textile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
h1. Guard Compass Plug-in
|
2
|
+
|
3
|
+
Let you configure a Guard that will run compass whenever a stylesheet is updated.
|
4
|
+
|
5
|
+
h2. Quick Start
|
6
|
+
|
7
|
+
$ (sudo) gem install compass
|
8
|
+
$ compass -f blueprint my_compass_project
|
9
|
+
$ cd my_compass_project
|
10
|
+
$ bundle init
|
11
|
+
|
12
|
+
Then, edit the Gemfile for it to looks like:
|
13
|
+
|
14
|
+
source "http://rubygems.org"
|
15
|
+
|
16
|
+
gem 'guard-compass'
|
17
|
+
|
18
|
+
$ bundle install
|
19
|
+
$ guard init
|
20
|
+
$ guard init compass
|
21
|
+
$ guard
|
22
|
+
|
23
|
+
Your scss(or sass) stylesheets are now guarded.
|
24
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'guard'
|
2
|
+
require 'guard/guard'
|
3
|
+
|
4
|
+
require 'compass'
|
5
|
+
require 'compass/commands'
|
6
|
+
require 'compass/logger'
|
7
|
+
|
8
|
+
module Guard
|
9
|
+
class Compass < Guard
|
10
|
+
attr_reader :updater
|
11
|
+
|
12
|
+
VERSION = '0.0.5'
|
13
|
+
|
14
|
+
def initialize(watchers = [], options = {})
|
15
|
+
@watchers, @options = watchers, options
|
16
|
+
super
|
17
|
+
@options.merge!(:path => File.expand_path(File.dirname(".")) )
|
18
|
+
end
|
19
|
+
|
20
|
+
# Guard Interface Implementation
|
21
|
+
|
22
|
+
# Compile all the sass|scss stylesheets
|
23
|
+
def start
|
24
|
+
super
|
25
|
+
create_updater
|
26
|
+
end
|
27
|
+
|
28
|
+
def stop
|
29
|
+
super
|
30
|
+
@updater = nil
|
31
|
+
end
|
32
|
+
|
33
|
+
# Reload the configuration
|
34
|
+
def reload
|
35
|
+
super
|
36
|
+
create_updater
|
37
|
+
end
|
38
|
+
|
39
|
+
# Compile all the sass|scss stylesheets
|
40
|
+
def run_all
|
41
|
+
@updater.execute
|
42
|
+
end
|
43
|
+
|
44
|
+
# Compile the changed stylesheets
|
45
|
+
def run_on_change(paths)
|
46
|
+
@updater.execute
|
47
|
+
end
|
48
|
+
|
49
|
+
private
|
50
|
+
def create_updater
|
51
|
+
@updater = ::Compass::Commands::UpdateProject.new(@options[:path], @options)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
metadata
ADDED
@@ -0,0 +1,153 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: guard-compass
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 21
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Olivier Amblet
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-10-25 00:00:00 +02:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 21
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 2
|
31
|
+
- 1
|
32
|
+
version: 0.2.1
|
33
|
+
prerelease: false
|
34
|
+
type: :runtime
|
35
|
+
name: guard
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 61
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
- 10
|
47
|
+
- 5
|
48
|
+
version: 0.10.5
|
49
|
+
prerelease: false
|
50
|
+
type: :runtime
|
51
|
+
name: compass
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ~>
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 19
|
60
|
+
segments:
|
61
|
+
- 1
|
62
|
+
- 0
|
63
|
+
- 2
|
64
|
+
version: 1.0.2
|
65
|
+
prerelease: false
|
66
|
+
type: :development
|
67
|
+
name: bundler
|
68
|
+
version_requirements: *id003
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
hash: 7712058
|
76
|
+
segments:
|
77
|
+
- 2
|
78
|
+
- 0
|
79
|
+
- 0
|
80
|
+
- rc
|
81
|
+
version: 2.0.0.rc
|
82
|
+
prerelease: false
|
83
|
+
type: :development
|
84
|
+
name: rspec
|
85
|
+
version_requirements: *id004
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
hash: 19
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
- 1
|
96
|
+
- 4
|
97
|
+
version: 0.1.4
|
98
|
+
prerelease: false
|
99
|
+
type: :development
|
100
|
+
name: guard-rspec
|
101
|
+
version_requirements: *id005
|
102
|
+
description: Guard::Compass automatically rebuilds scss|sass files when a modification occurs taking in account your compass configuration.
|
103
|
+
email:
|
104
|
+
- olivier@amblet.net
|
105
|
+
executables: []
|
106
|
+
|
107
|
+
extensions: []
|
108
|
+
|
109
|
+
extra_rdoc_files: []
|
110
|
+
|
111
|
+
files:
|
112
|
+
- lib/guard/compass/templates/Guardfile
|
113
|
+
- lib/guard/compass.rb
|
114
|
+
- LICENSE
|
115
|
+
- README.textile
|
116
|
+
has_rdoc: true
|
117
|
+
homepage: http://rubygems.org/gems/guard-compass
|
118
|
+
licenses: []
|
119
|
+
|
120
|
+
post_install_message:
|
121
|
+
rdoc_options: []
|
122
|
+
|
123
|
+
require_paths:
|
124
|
+
- lib
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
hash: 3
|
131
|
+
segments:
|
132
|
+
- 0
|
133
|
+
version: "0"
|
134
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
|
+
none: false
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
hash: 23
|
140
|
+
segments:
|
141
|
+
- 1
|
142
|
+
- 3
|
143
|
+
- 6
|
144
|
+
version: 1.3.6
|
145
|
+
requirements: []
|
146
|
+
|
147
|
+
rubyforge_project: guard-compass
|
148
|
+
rubygems_version: 1.3.7
|
149
|
+
signing_key:
|
150
|
+
specification_version: 3
|
151
|
+
summary: Guard gem for Compass
|
152
|
+
test_files: []
|
153
|
+
|