growl-ampelmaennchen 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.rdoc +38 -0
- data/Rakefile +1 -0
- data/assets/blue.png +0 -0
- data/assets/green.png +0 -0
- data/assets/grey.png +0 -0
- data/assets/red.png +0 -0
- data/assets/yellow.png +0 -0
- data/growl-ampelmaennchen.gemspec +25 -0
- data/lib/growl-ampelmaennchen.rb +17 -0
- data/lib/growl-ampelmaennchen/version.rb +5 -0
- data/spec/command_line_spec.rb +8 -0
- data/spec/growl-ampelmaennchen_spec.rb +22 -0
- data/spec/spec_helper.rb +4 -0
- metadata +91 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
== USAGE:
|
2
|
+
# general
|
3
|
+
Growl::Ampelmaennchen.<blue,green,grey,red,yellow> => <path/to/file.png>
|
4
|
+
|
5
|
+
# with growlnotify command line tool
|
6
|
+
require "rubygems"
|
7
|
+
require "growl-ampelmaennchen"
|
8
|
+
|
9
|
+
system(%(growlnotify -m "Message" -t "Title" --image #{Growl::Ampelmaennchen.green}))
|
10
|
+
|
11
|
+
|
12
|
+
== THANX:
|
13
|
+
Sven Schwyn (http://www.bitcetera.com) (for creating the icons for https://github.com/svoop/autotest-growl)
|
14
|
+
|
15
|
+
== LICENSE:
|
16
|
+
|
17
|
+
(The MIT License)
|
18
|
+
|
19
|
+
Copyright (c) 2012 Tobias Schwab
|
20
|
+
|
21
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
22
|
+
a copy of this software and associated documentation files (the
|
23
|
+
'Software'), to deal in the Software without restriction, including
|
24
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
25
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
26
|
+
permit persons to whom the Software is furnished to do so, subject to
|
27
|
+
the following conditions:
|
28
|
+
|
29
|
+
The above copyright notice and this permission notice shall be
|
30
|
+
included in all copies or substantial portions of the Software.
|
31
|
+
|
32
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
33
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
34
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
35
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
36
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
37
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
38
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/assets/blue.png
ADDED
Binary file
|
data/assets/green.png
ADDED
Binary file
|
data/assets/grey.png
ADDED
Binary file
|
data/assets/red.png
ADDED
Binary file
|
data/assets/yellow.png
ADDED
Binary file
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "growl-ampelmaennchen/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "growl-ampelmaennchen"
|
7
|
+
s.version = Growl::Ampelmaennchen::VERSION
|
8
|
+
s.authors = ["Tobias Schwab"]
|
9
|
+
s.email = ["tobias.schwab@dynport.de"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{Simple ampelmaennchen icons to be used with growl}
|
12
|
+
s.description = %q{Simple ampelmaennchen icons to be used with growl (extracted from https://github.com/svoop/autotest-growlr)}
|
13
|
+
|
14
|
+
s.rubyforge_project = "growl-ampelmaennchen"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
s.add_development_dependency "rspec", '2.8.0'
|
23
|
+
s.add_development_dependency "rake", "0.9.2"
|
24
|
+
# s.add_runtime_dependency "rest-client"
|
25
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require "growl-ampelmaennchen/version"
|
2
|
+
|
3
|
+
module Growl
|
4
|
+
module Ampelmaennchen
|
5
|
+
class << self
|
6
|
+
def asset_root
|
7
|
+
File.expand_path("../../assets", __FILE__)
|
8
|
+
end
|
9
|
+
|
10
|
+
[:blue, :green, :grey, :red, :yellow].each do |method|
|
11
|
+
define_method(method) do
|
12
|
+
"#{asset_root}/#{method}.png"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "growl-ampelmaennchen"
|
3
|
+
|
4
|
+
describe "Growl::Ampelmaennchen" do
|
5
|
+
describe "asset_root" do
|
6
|
+
it "returns a String" do
|
7
|
+
Growl::Ampelmaennchen.asset_root.should be_kind_of(String)
|
8
|
+
end
|
9
|
+
|
10
|
+
it "returns the correct String" do
|
11
|
+
Growl::Ampelmaennchen.asset_root.should == File.expand_path("../../assets", __FILE__)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
%w(blue green grey red yellow).each do |key|
|
16
|
+
describe "##{key}" do
|
17
|
+
it "returns the correct string" do
|
18
|
+
Growl::Ampelmaennchen.send(key).should == File.expand_path("../../assets/#{key}.png", __FILE__)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: growl-ampelmaennchen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tobias Schwab
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-02 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: &70201871943360 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - =
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.8.0
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70201871943360
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &70201871935960 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - =
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.9.2
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70201871935960
|
36
|
+
description: Simple ampelmaennchen icons to be used with growl (extracted from https://github.com/svoop/autotest-growlr)
|
37
|
+
email:
|
38
|
+
- tobias.schwab@dynport.de
|
39
|
+
executables: []
|
40
|
+
extensions: []
|
41
|
+
extra_rdoc_files: []
|
42
|
+
files:
|
43
|
+
- .gitignore
|
44
|
+
- Gemfile
|
45
|
+
- README.rdoc
|
46
|
+
- Rakefile
|
47
|
+
- assets/blue.png
|
48
|
+
- assets/green.png
|
49
|
+
- assets/grey.png
|
50
|
+
- assets/red.png
|
51
|
+
- assets/yellow.png
|
52
|
+
- growl-ampelmaennchen.gemspec
|
53
|
+
- lib/growl-ampelmaennchen.rb
|
54
|
+
- lib/growl-ampelmaennchen/version.rb
|
55
|
+
- spec/command_line_spec.rb
|
56
|
+
- spec/growl-ampelmaennchen_spec.rb
|
57
|
+
- spec/spec_helper.rb
|
58
|
+
homepage: ''
|
59
|
+
licenses: []
|
60
|
+
post_install_message:
|
61
|
+
rdoc_options: []
|
62
|
+
require_paths:
|
63
|
+
- lib
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
segments:
|
71
|
+
- 0
|
72
|
+
hash: 3930713606417395234
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
segments:
|
80
|
+
- 0
|
81
|
+
hash: 3930713606417395234
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project: growl-ampelmaennchen
|
84
|
+
rubygems_version: 1.8.10
|
85
|
+
signing_key:
|
86
|
+
specification_version: 3
|
87
|
+
summary: Simple ampelmaennchen icons to be used with growl
|
88
|
+
test_files:
|
89
|
+
- spec/command_line_spec.rb
|
90
|
+
- spec/growl-ampelmaennchen_spec.rb
|
91
|
+
- spec/spec_helper.rb
|