guard-compass 0.0.5 → 0.0.6

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.
Files changed (3) hide show
  1. data/README.textile +11 -10
  2. data/lib/guard/compass.rb +9 -7
  3. metadata +4 -4
@@ -4,21 +4,22 @@ Let you configure a Guard that will run compass whenever a stylesheet is updated
4
4
 
5
5
  h2. Quick Start
6
6
 
7
- $ (sudo) gem install compass
8
- $ compass -f blueprint my_compass_project
9
- $ cd my_compass_project
10
- $ bundle init
7
+ bc. $ (sudo) gem install compass
8
+ $ compass -f blueprint my_compass_project
9
+ $ cd my_compass_project
10
+ $ bundle init
11
11
 
12
12
  Then, edit the Gemfile for it to looks like:
13
13
 
14
- source "http://rubygems.org"
14
+ bc. source "http://rubygems.org"
15
+ gem 'guard-compass'
15
16
 
16
- gem 'guard-compass'
17
+ You can now download missing gems and initialize the guard
17
18
 
18
- $ bundle install
19
- $ guard init
20
- $ guard init compass
21
- $ guard
19
+ bc. $ bundle install
20
+ $ guard init
21
+ $ guard init compass
22
+ $ guard
22
23
 
23
24
  Your scss(or sass) stylesheets are now guarded.
24
25
 
@@ -9,46 +9,48 @@ module Guard
9
9
  class Compass < Guard
10
10
  attr_reader :updater
11
11
 
12
- VERSION = '0.0.5'
12
+ VERSION = '0.0.6'
13
13
 
14
14
  def initialize(watchers = [], options = {})
15
- @watchers, @options = watchers, options
16
15
  super
17
- @options.merge!(:path => File.expand_path(File.dirname(".")) )
16
+ @options[:workdir] = File.expand_path(File.dirname("."))
18
17
  end
19
18
 
20
19
  # Guard Interface Implementation
21
20
 
22
21
  # Compile all the sass|scss stylesheets
23
22
  def start
24
- super
25
23
  create_updater
24
+ UI.info "Guard::Compass is watching at your stylesheets."
25
+ true
26
26
  end
27
27
 
28
28
  def stop
29
- super
30
29
  @updater = nil
30
+ true
31
31
  end
32
32
 
33
33
  # Reload the configuration
34
34
  def reload
35
- super
36
35
  create_updater
36
+ true
37
37
  end
38
38
 
39
39
  # Compile all the sass|scss stylesheets
40
40
  def run_all
41
41
  @updater.execute
42
+ true
42
43
  end
43
44
 
44
45
  # Compile the changed stylesheets
45
46
  def run_on_change(paths)
46
47
  @updater.execute
48
+ true
47
49
  end
48
50
 
49
51
  private
50
52
  def create_updater
51
- @updater = ::Compass::Commands::UpdateProject.new(@options[:path], @options)
53
+ @updater = ::Compass::Commands::UpdateProject.new(@options[:workdir] , @options)
52
54
  end
53
55
  end
54
56
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-compass
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Olivier Amblet
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-25 00:00:00 +02:00
18
+ date: 2010-10-26 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency