zumobi 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zumobi/exception_handler.rb +2 -4
- data/lib/zumobi/notifier.rb +3 -3
- data/lib/zumobi/version.rb +1 -1
- metadata +4 -4
@@ -48,10 +48,8 @@ class ExceptionHandler
|
|
48
48
|
|
49
49
|
def self.message(message)
|
50
50
|
Rails.logger.info(message)
|
51
|
-
Airbrake.notify(nil, {
|
52
|
-
:
|
53
|
-
:session => {"IP Address" => "#{ExceptionHandler.ip_address}"}
|
54
|
-
})
|
51
|
+
Airbrake.notify(nil, {:error_message => message,
|
52
|
+
:session => {"IP Address" => "#{ExceptionHandler.ip_address}"}})
|
55
53
|
end
|
56
54
|
|
57
55
|
end
|
data/lib/zumobi/notifier.rb
CHANGED
@@ -9,8 +9,8 @@ class Notifier
|
|
9
9
|
def initialize
|
10
10
|
@logger = Zumobi::NotificationsLogger.new
|
11
11
|
end
|
12
|
-
|
13
|
-
def
|
12
|
+
|
13
|
+
def push(notification)
|
14
14
|
config = SimpleConfig.for(:ua)
|
15
15
|
if (config.application_key.blank? || config.application_secret.blank? || config.master_secret.blank?)
|
16
16
|
raise "You must include a simple config :ua config with :application_key, :application_secret and :master_secret for this application."
|
@@ -20,7 +20,7 @@ class Notifier
|
|
20
20
|
Urbanairship.master_secret = config.master_secret
|
21
21
|
Urbanairship.logger = @logger
|
22
22
|
Urbanairship.request_timeout = 15
|
23
|
-
response = Urbanairship.
|
23
|
+
response = Urbanairship.push(notification)
|
24
24
|
rescue Exception => e
|
25
25
|
ExceptionHandler.error e
|
26
26
|
end
|
data/lib/zumobi/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zumobi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 11
|
10
|
+
version: 0.0.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alx Dark
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-03-
|
18
|
+
date: 2013-03-11 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: curb
|