compass-growl 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'http://rubygems.org'
2
+ gemspec
3
+
4
+ gem 'drx'
data/Gemfile.lock ADDED
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ compass-growl (0.0.1)
5
+ growl_notify
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.1.2)
11
+ drx (0.4.5)
12
+ growl_notify (0.0.1)
13
+ rb-appscript
14
+ mocha (0.9.12)
15
+ rb-appscript (0.6.0)
16
+ rspec (2.0.1)
17
+ rspec-core (~> 2.0.1)
18
+ rspec-expectations (~> 2.0.1)
19
+ rspec-mocks (~> 2.0.1)
20
+ rspec-core (2.0.1)
21
+ rspec-expectations (2.0.1)
22
+ diff-lcs (>= 1.1.2)
23
+ rspec-mocks (2.0.1)
24
+ rspec-core (~> 2.0.1)
25
+ rspec-expectations (~> 2.0.1)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ bundler (>= 1.0.0)
32
+ compass-growl!
33
+ drx
34
+ mocha
35
+ rspec (~> 2.0.0)
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Scott Davis
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.md ADDED
@@ -0,0 +1,17 @@
1
+ # Compass Growl plugin
2
+
3
+ ## Usage
4
+
5
+ Just add `gem 'compass-growl'` in your Gemfile after compass or at the top of you compass config
6
+
7
+ ## Aurthor
8
+
9
+ Compass Themes is written by [Scott Davis](http://sdavis.info)
10
+
11
+ Scott is a Developer for the Space Telescope Science Institute in Baltimore, MD - [Hubble Space Telescope](http://hubblesite.org)
12
+
13
+ [Twitter](http://twitter.com/jetviper21)
14
+
15
+ ## Copyright
16
+
17
+ Copyright (c) 2011 Scott Davis. See LICENSE.txt for further details.
Binary file
@@ -0,0 +1,25 @@
1
+ Gem::Specification.new do |s|
2
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
3
+
4
+ s.name = %q{compass-growl}
5
+ s.version = '0.0.2'
6
+ s.platform = Gem::Platform::RUBY
7
+
8
+ s.authors = ["Scott Davis"]
9
+ s.description = %q{Add growl notifications for compass using the growl gem and compass callback api}
10
+ s.summary = %q{Add Growl notifications to compass}
11
+ s.email = %q{jetviper21@gmail.com}
12
+ s.date = Date.today.to_s
13
+ s.files = `git ls-files`.split("\n")
14
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
15
+ s.require_path = 'lib'
16
+ s.homepage = %q{http://github.com/jetviper21/compass-growl}
17
+ s.rdoc_options = ["--charset=UTF-8"]
18
+ s.required_rubygems_version = ">= 1.3.6"
19
+ s.add_development_dependency "bundler", ">= 1.0.0"
20
+ s.add_development_dependency "rspec", "~> 2.0.0"
21
+ s.add_development_dependency "mocha"
22
+ s.add_dependency 'compass', '~> 0.11.beta.3'
23
+ s.add_dependency 'growl_notify'
24
+
25
+ end
@@ -0,0 +1,35 @@
1
+ require "rubygems"
2
+ require "bundler/setup"
3
+ require 'growl_notify'
4
+
5
+ module CompassGrowl
6
+ ICON = File.join(File.expand_path('../', __FILE__), '..', 'assets', 'compass_icon.png')
7
+ end
8
+
9
+ GrowlNotify.config do |config|
10
+ config.notifications = config.default_notifications = ["compass"]
11
+ config.application_name = config.notifications.first
12
+ config.icon = CompassGrowl::ICON
13
+ end
14
+
15
+ GrowlNotify.normal(:title => 'Compass', :description => "Compass Growl Loaded")
16
+
17
+ module Compass
18
+ module Configuration
19
+ class Data
20
+ alias :old_run_callback :run_callback
21
+ def run_callback(event, *args)
22
+ case event
23
+ when :stylesheet_saved
24
+ GrowlNotify.normal(:title => 'Compass', :description => "Stylesheet: #{File.basename(args.first)} saved")
25
+ when :sprite_saved
26
+ GrowlNotify.normal(:title => 'Compass', :description => "Sprite: #{File.basename(args.first)} saved")
27
+ when :stylesheet_error
28
+ GrowlNotify.normal(:title => 'Compass', :description => "Stylesheet Error: #{File.basename(args.first)} \n had the following error:\n #{args.last}")
29
+ end
30
+ old_run_callback(event, *args)
31
+ end
32
+
33
+ end
34
+ end
35
+ end
metadata ADDED
@@ -0,0 +1,152 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: compass-growl
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
11
+ platform: ruby
12
+ authors:
13
+ - Scott Davis
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-25 00:00:00 -04:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: bundler
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 23
30
+ segments:
31
+ - 1
32
+ - 0
33
+ - 0
34
+ version: 1.0.0
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: rspec
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 15
46
+ segments:
47
+ - 2
48
+ - 0
49
+ - 0
50
+ version: 2.0.0
51
+ type: :development
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: mocha
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 3
62
+ segments:
63
+ - 0
64
+ version: "0"
65
+ type: :development
66
+ version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ name: compass
69
+ prerelease: false
70
+ requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ hash: 62196237
76
+ segments:
77
+ - 0
78
+ - 11
79
+ - beta
80
+ - 3
81
+ version: 0.11.beta.3
82
+ type: :runtime
83
+ version_requirements: *id004
84
+ - !ruby/object:Gem::Dependency
85
+ name: growl_notify
86
+ prerelease: false
87
+ requirement: &id005 !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ hash: 3
93
+ segments:
94
+ - 0
95
+ version: "0"
96
+ type: :runtime
97
+ version_requirements: *id005
98
+ description: Add growl notifications for compass using the growl gem and compass callback api
99
+ email: jetviper21@gmail.com
100
+ executables: []
101
+
102
+ extensions: []
103
+
104
+ extra_rdoc_files: []
105
+
106
+ files:
107
+ - .gitignore
108
+ - Gemfile
109
+ - Gemfile.lock
110
+ - LICENSE.txt
111
+ - Readme.md
112
+ - assets/compass_icon.png
113
+ - compass-growl.gemspec
114
+ - lib/compass-growl.rb
115
+ has_rdoc: true
116
+ homepage: http://github.com/jetviper21/compass-growl
117
+ licenses: []
118
+
119
+ post_install_message:
120
+ rdoc_options:
121
+ - --charset=UTF-8
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ hash: 3
130
+ segments:
131
+ - 0
132
+ version: "0"
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ hash: 23
139
+ segments:
140
+ - 1
141
+ - 3
142
+ - 6
143
+ version: 1.3.6
144
+ requirements: []
145
+
146
+ rubyforge_project:
147
+ rubygems_version: 1.6.2
148
+ signing_key:
149
+ specification_version: 3
150
+ summary: Add Growl notifications to compass
151
+ test_files: []
152
+