coalmine 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/coalmine/rails/tasks.rb +10 -0
- data/lib/coalmine/version.rb +1 -1
- metadata +3 -3
data/lib/coalmine/rails/tasks.rb
CHANGED
@@ -10,4 +10,14 @@ namespace :coalmine do
|
|
10
10
|
puts "There was an error while notifying Coalmine. Please check the logs for details."
|
11
11
|
end
|
12
12
|
end
|
13
|
+
|
14
|
+
desc "Send a test notification to Coalmine"
|
15
|
+
task :test => :environment do
|
16
|
+
notification = Coalmine::Notification.new(:message => "Test notification")
|
17
|
+
if Coalmine.send(notification)
|
18
|
+
puts "Successfully sent notification to Coalmine"
|
19
|
+
else
|
20
|
+
puts "There was an error while notifying Coalmine. Please check the logs for details"
|
21
|
+
end
|
22
|
+
end
|
13
23
|
end
|
data/lib/coalmine/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 3
|
9
|
+
version: 0.5.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Brad Seefeld
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-04-
|
18
|
+
date: 2012-04-29 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|