blertr 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile.lock +2 -2
- data/blertr.gemspec +1 -1
- data/lib/blertr/control.rb +2 -0
- data/lib/blertr/growl_notifier.rb +1 -2
- data/lib/blertr/notify_send_notifier.rb +19 -0
- data/lib/blertr/version.rb +1 -1
- metadata +14 -13
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
blertr (0.1.
|
4
|
+
blertr (0.1.1)
|
5
5
|
twitter (~> 1.6.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
faraday (0.6.1)
|
13
13
|
addressable (~> 2.2.4)
|
14
14
|
multipart-post (~> 1.1.0)
|
15
|
-
rack (>= 1.1.0
|
15
|
+
rack (< 2, >= 1.1.0)
|
16
16
|
faraday_middleware (0.6.5)
|
17
17
|
faraday (~> 0.6.0)
|
18
18
|
hashie (1.0.0)
|
data/blertr.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.add_development_dependency "simplecov", "~> 0.4"
|
9
9
|
s.add_dependency "twitter", "~> 1.6.0"
|
10
10
|
s.authors = ['Jim Vallandingham']
|
11
|
-
s.description = %q{
|
11
|
+
s.description = %q{Automatic alerts for when bash scripts and commands complete}
|
12
12
|
s.email = 'vvv@gmail.com'
|
13
13
|
s.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
14
14
|
s.extra_rdoc_files = ['LICENSE.textile', 'README.textile']
|
data/lib/blertr/control.rb
CHANGED
@@ -2,6 +2,7 @@ require 'blertr/message'
|
|
2
2
|
require 'blertr/mail_notifier'
|
3
3
|
require 'blertr/growl_notifier'
|
4
4
|
require 'blertr/twitter_notifier'
|
5
|
+
require 'blertr/notify_send_notifier'
|
5
6
|
require 'blertr/time_parser'
|
6
7
|
require 'blertr/blacklist.rb'
|
7
8
|
|
@@ -33,6 +34,7 @@ module Blertr
|
|
33
34
|
noters << MailNotifier.new
|
34
35
|
noters << GrowlNotifier.new
|
35
36
|
noters << TwitterNotifier.new
|
37
|
+
noters << NotifySendNotifier.new
|
36
38
|
noters
|
37
39
|
end
|
38
40
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'blertr/notifier'
|
2
|
+
|
3
|
+
module Blertr
|
4
|
+
class NotifySendNotifier < Notifier
|
5
|
+
def initialize
|
6
|
+
super
|
7
|
+
@names = ["notify_send"]
|
8
|
+
end
|
9
|
+
|
10
|
+
def alert message
|
11
|
+
#TODO: look to supporting other growl frameworks on other OSs
|
12
|
+
system("notify-send \"#{message.command}\" \"took #{message.time_string}\"")
|
13
|
+
end
|
14
|
+
|
15
|
+
def can_alert?
|
16
|
+
system("which notify-send > /dev/null 2>&1")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/blertr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blertr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-07-15 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
|
-
requirement: &
|
16
|
+
requirement: &2812600 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2812600
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rdoc
|
27
|
-
requirement: &
|
27
|
+
requirement: &2812290 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '2.5'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2812290
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &2812010 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '2.3'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2812010
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: simplecov
|
49
|
-
requirement: &
|
49
|
+
requirement: &2811760 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0.4'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2811760
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: twitter
|
60
|
-
requirement: &
|
60
|
+
requirement: &2811470 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,8 +65,8 @@ dependencies:
|
|
65
65
|
version: 1.6.0
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
69
|
-
description:
|
68
|
+
version_requirements: *2811470
|
69
|
+
description: Automatic alerts for when bash scripts and commands complete
|
70
70
|
email: vvv@gmail.com
|
71
71
|
executables:
|
72
72
|
- blert
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- lib/blertr/mail_notifier.rb
|
99
99
|
- lib/blertr/message.rb
|
100
100
|
- lib/blertr/notifier.rb
|
101
|
+
- lib/blertr/notify_send_notifier.rb
|
101
102
|
- lib/blertr/options.rb
|
102
103
|
- lib/blertr/time_parser.rb
|
103
104
|
- lib/blertr/twitter_notifier.rb
|
@@ -138,7 +139,7 @@ rubyforge_project:
|
|
138
139
|
rubygems_version: 1.8.5
|
139
140
|
signing_key:
|
140
141
|
specification_version: 3
|
141
|
-
summary:
|
142
|
+
summary: Automatic alerts for when bash scripts and commands complete
|
142
143
|
test_files:
|
143
144
|
- spec/blacklist_spec.rb
|
144
145
|
- spec/control_spec.rb
|