guard-compass 0.0.8 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 392583dbb2cb95a232f982ea4112ba107e1b964b
4
- data.tar.gz: 89c2c4163fb44ba6ac6430f9a347456461ccf9d0
3
+ metadata.gz: 22303961918442a9070fc891856e1fc317b01ac0
4
+ data.tar.gz: bee90451ab5d1a1b524416f8dbf453b3aaaaa2dd
5
5
  SHA512:
6
- metadata.gz: 9732f96f9c9d65eaede347bfe373dbe971cf394d9147714ef743f7a49e569535f1f32a58a3f5db75979dfe07f2f8991fedb43387662fda6c8dce1a9b48635b53
7
- data.tar.gz: 4522bb4b9addfa2c2622da61442431072311631ec9a97b0a0287210ba50f4aad421982b49f91d177a87d1de038b02f7a25b62da43c842281a0186da740a74ce7
6
+ metadata.gz: b2642b20c4c6c7697b7374bfdd7918a128c44a07b5f7ebc073425661b544254091b7b7be7644d9ddb183346f828688d854b22fba55724742eba0182cd456ca23
7
+ data.tar.gz: 5baee35ef05dce152892dd50a78c23e55906711343f4e92d53c185272a49e3cdb1299abe1cad22c4cda62c88111dd740dd33341c88d6f09b0342f0b842e6eb0e
data/CHANGELOG.md CHANGED
@@ -1,41 +1 @@
1
- ## Unreleased Changes
2
-
3
- No changes.
4
-
5
- ## 0.0.8 - Jul 12, 2013
6
-
7
- ### Bug fix
8
-
9
- * [#11][] New `:compile_on_start` option to compile stylesheets when Guard is started. ([@mhayes][])
10
- * [#7][] Fix crash on Sass syntax failure by displaying Growl notification instead. ([@bradphelan][])
11
- * [#4][] Changed awkward reporter.announce text . ([@adamnbowen][])
12
- * [#3][] Added compass syntax success/error notifications. ([@stefanoverna][])
13
- * [#2][] Fix gemspec preventing `bundle install`. ([@rymai][])
14
- * [#1][] You can now define the options `:project_path` and `:configuration_file` to
15
- find and run Compass Compiler (see README for more information). This was a problem with
16
- non-standard deployment. ([@oliamb][])
17
-
18
- ### Improvement
19
-
20
- * Create a watch rules based on the compass config (no more need to create watchers).
21
-
22
- ## 0.0.6 - Oct 25, 2010
23
-
24
- * Guard quit on ctrl-c when `guard-compass` is in.
25
-
26
- ## 0.0.5 - Oct 24, 2010
27
-
28
- * Initial release
29
- <!--- The following link definition list is generated by PimpMyChangelog --->
30
- [#1]: https://github.com/guard/guard-compass/issues/1
31
- [#2]: https://github.com/guard/guard-compass/issues/2
32
- [#3]: https://github.com/guard/guard-compass/issues/3
33
- [#4]: https://github.com/guard/guard-compass/issues/4
34
- [#7]: https://github.com/guard/guard-compass/issues/7
35
- [#11]: https://github.com/guard/guard-compass/issues/11
36
- [@adamnbowen]: https://github.com/adamnbowen
37
- [@bradphelan]: https://github.com/bradphelan
38
- [@mhayes]: https://github.com/mhayes
39
- [@oliamb]: https://github.com/oliamb
40
- [@rymai]: https://github.com/rymai
41
- [@stefanoverna]: https://github.com/stefanoverna
1
+ # Moved to [GitHub releases](https://github.com/guard/guard-compass/releases) page.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Thibaud Guillaume-Gentil
1
+ Copyright (c) 2013 Olivier Amblet, Rémy Coutable
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
17
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
18
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
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.
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -5,7 +5,8 @@
5
5
  Guard::Compass allows to automatically run [Compass](https://github.com/chriseppstein/compass)
6
6
  whenever a stylesheet file is modified.
7
7
 
8
- * Tested against Ruby 1.8.7, 1.9.3, 2.0.0, JRuby (1.8 mode & 1.9 mode) & Rubinius (1.8 mode & 1.9 mode).
8
+ * Compatible with Compass >= 0.10.5.
9
+ * Tested against Ruby 1.9.3, 2.0.0, Rubinius & JRuby (1.9 mode only).
9
10
 
10
11
  ## Install
11
12
 
@@ -30,13 +31,20 @@ $ bundle
30
31
  Add guard definition to your Guardfile by running the following command:
31
32
 
32
33
  ```bash
33
- guard init compass
34
+ $ guard init compass
34
35
  ```
35
36
 
36
37
  ## Usage
37
38
 
38
39
  Please read [Guard usage doc](http://github.com/guard/guard#readme)
39
40
 
41
+ ```ruby
42
+ guard :compass, configuration_file: 'config/compass_config.rb', project_path: 'public',
43
+ compile_on_start: true do
44
+ watch(%r{..\/foo\/bar\/sass\/.*\.sass$})
45
+ end
46
+ ```
47
+
40
48
  ## Configure Guard::Compass plug-in
41
49
 
42
50
  The default configuration generated by 'guard init compass' looks like this
@@ -50,8 +58,9 @@ guard :compass
50
58
  ### List of available options
51
59
 
52
60
  ```ruby
53
- :project_path => '../foo/bar' # path to the compass project directory (from guard working directory)
54
- :configuration_file => '../compass_config.rb' # path to your compass configuration file (from guard working directory)
61
+ project_path: 'public' # path to the compass project directory (from guard working directory)
62
+ configuration_file: 'config/compass_config.rb' # path to your compass configuration file (from guard working directory)
63
+ compile_on_start: true # compile stylesheets when guard starts
55
64
  ```
56
65
 
57
66
  By default, the project path is equal to the guard working directory (the folder from where you start Guard).
@@ -79,8 +88,12 @@ For questions please join us in our [Google group](http://groups.google.com/grou
79
88
 
80
89
  ## Maintainer
81
90
 
82
- [Rémy Coutable](https://github.com/rymai) ([@rymai](http://twitter.com/rymai), [rymai.me](http://rymai.me))
91
+ [Rémy Coutable](https://github.com/rymai) ([@rymai](http://twitter.com/rymai), [rym.ai](http://rym.ai))
83
92
 
84
93
  ## Author
85
94
 
86
95
  [Olivier Amblet](https://github.com/oliamb)
96
+
97
+ ## Contributors
98
+
99
+ [https://github.com/guard/guard-compass/graphs/contributors](https://github.com/guard/guard-compass/graphs/contributors)
data/lib/guard/compass.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'guard'
2
- require 'guard/guard'
2
+ require 'guard/plugin'
3
3
  require 'guard/watcher'
4
4
  require 'guard/reporter'
5
5
  require 'guard/compass_helper'
@@ -21,11 +21,11 @@ module Compass
21
21
  end
22
22
 
23
23
  module Guard
24
- class Compass < Guard
24
+ class Compass < Plugin
25
25
  attr_reader :updater, :working_path
26
26
  attr_accessor :reporter
27
27
 
28
- def initialize(watchers = [], options = {})
28
+ def initialize(options = {})
29
29
  super
30
30
  @reporter = Reporter.new
31
31
  @working_path = Pathname.pwd # the Guard base path is the current working_path
@@ -136,10 +136,10 @@ module Guard
136
136
  @updater.execute
137
137
  rescue Sass::SyntaxError => e
138
138
  msg = "#{e.sass_backtrace_str}"
139
- ::Guard::Notifier.notify msg, :title => "Guard Compass", :image => :failed
139
+ ::Guard::Notifier.notify msg, title: "Guard Compass", image: :failed
140
140
  return false
141
141
  rescue Exception => e
142
- ::Guard::Notifier.notify e.to_s, :title => "Guard Compass", :image => :failed
142
+ ::Guard::Notifier.notify e.to_s, title: "Guard Compass", image: :failed
143
143
  return false
144
144
  end
145
145
  true
@@ -6,10 +6,10 @@
6
6
  #
7
7
  # Available options:
8
8
  #
9
- # * :workging_directory => Define the Compass working directory, relative to the Guardfile directory
10
- # * :configuration_file => Path to the Compass configuration file, relative to :project_path
9
+ # * working_directory: Define the Compass working directory, relative to the Guardfile directory
10
+ # * configuration_file: Path to the Compass configuration file, relative to :project_path
11
11
  #
12
12
  # Like usual, the Compass configuration path are relative to the :project_path
13
13
 
14
- # guard 'compass', :project_path => 'not_current_dir', :configuration_file => 'path/to/my/compass_config.rb'
14
+ # guard 'compass', project_path: 'not_current_dir', configuration_file: 'path/to/my/compass_config.rb'
15
15
  guard :compass
@@ -1,5 +1,7 @@
1
1
  module Guard
2
2
  module CompassVersion
3
- VERSION = '0.0.8'
3
+
4
+ VERSION = '1.0.0'
5
+
4
6
  end
5
7
  end
@@ -35,9 +35,9 @@ module Guard
35
35
 
36
36
  def new_compiler_instance(working_path)
37
37
  compiler_opts = ::Compass.sass_engine_options
38
- compiler_opts.merge!(:quiet => options[:quiet],
39
- :force => options[:force],
40
- :dry_run => options[:dry_run])
38
+ compiler_opts.merge!(quiet: options[:quiet],
39
+ force: options[:force],
40
+ dry_run: options[:dry_run])
41
41
  ::Compass::Compiler.new(working_path,
42
42
  ::Compass.configuration.sass_path,
43
43
  ::Compass.configuration.css_path,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-compass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Amblet
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-11 00:00:00.000000000 Z
12
+ date: 2013-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: '1.8'
20
+ version: '2.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: '1.8'
27
+ version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: compass
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -53,6 +53,20 @@ dependencies:
53
53
  - - '>='
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rspec
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
56
70
  description: Guard::Compass automatically rebuilds scss|sass files when a modification
57
71
  occurs taking in account your compass configuration.
58
72
  email:
@@ -69,8 +83,9 @@ files:
69
83
  - CHANGELOG.md
70
84
  - LICENSE
71
85
  - README.md
72
- homepage: https://github.com/guard/guard-compass
73
- licenses: []
86
+ homepage: https://rubygems.org/gems/guard-compass
87
+ licenses:
88
+ - MIT
74
89
  metadata: {}
75
90
  post_install_message:
76
91
  rdoc_options: []
@@ -80,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
95
  requirements:
81
96
  - - '>='
82
97
  - !ruby/object:Gem::Version
83
- version: '0'
98
+ version: 1.9.2
84
99
  required_rubygems_version: !ruby/object:Gem::Requirement
85
100
  requirements:
86
101
  - - '>='
@@ -88,8 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
103
  version: '0'
89
104
  requirements: []
90
105
  rubyforge_project:
91
- rubygems_version: 2.0.3
106
+ rubygems_version: 2.0.7
92
107
  signing_key:
93
108
  specification_version: 4
94
- summary: Guard gem for Compass
109
+ summary: Guard plugin for Compass
95
110
  test_files: []