notify_user 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 739ef2d70addfc2533a3015ec00bec7914af1096
|
4
|
+
data.tar.gz: 0c22d9b251d3d00782b7d6d4e61d5e1b3f464b93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c8c3dec5b853fc3d2fcd5bf474c5afd1d3c758cfa2448b82f750d6649c3a75a35ce8603b593fd05338b973952368270fc93dd7508bb7c7756ea8d0807c0e53e
|
7
|
+
data.tar.gz: 5ec3a7ccb5e0855ddd10aee77285de19c57ee5a6185f0cc75e74e3d69639a7293d6cbe5879441c9d3cd066cd3075728b54cfb8c04b955e232959922dd2c4ffe7
|
@@ -26,10 +26,10 @@ module NotifyUser
|
|
26
26
|
|
27
27
|
response = Urbanairship.push(payload)
|
28
28
|
if response.success?
|
29
|
-
|
29
|
+
logger.info "Push notification sent successfully."
|
30
30
|
return true
|
31
31
|
else
|
32
|
-
|
32
|
+
logger.info "Push notification failed."
|
33
33
|
return false
|
34
34
|
end
|
35
35
|
end
|
@@ -125,15 +125,15 @@ module NotifyUser
|
|
125
125
|
|
126
126
|
## Channels
|
127
127
|
|
128
|
-
|
129
|
-
|
128
|
+
class_attribute :channels
|
129
|
+
self.channels = {
|
130
130
|
action_mailer: {description: 'Email notifications'}
|
131
131
|
}
|
132
132
|
|
133
133
|
# Not sure about this. The JSON and web feeds don't fit into channels, because nothing is broadcast through
|
134
134
|
# them. Not sure if they really need another concept though, they could just be formats on the controller.
|
135
|
-
|
136
|
-
|
135
|
+
class_attribute :views
|
136
|
+
self.views = {
|
137
137
|
mobile_sdk: {
|
138
138
|
template_path: Proc.new {|n| "notify_user/#{n.class.name.underscore}/mobile_sdk/notification" }
|
139
139
|
}
|
@@ -20,7 +20,7 @@ class ApnsChannel
|
|
20
20
|
|
21
21
|
NotifyUser::Apns.push_notification(notification)
|
22
22
|
|
23
|
-
#sets the api keys
|
23
|
+
#sets the api keys back to their original state
|
24
24
|
|
25
25
|
Urbanairship.application_key = ENV['UA_APPLICATION_KEY']
|
26
26
|
Urbanairship.application_secret = ENV['UA_APPLICATION_SECRET']
|
data/lib/notify_user/version.rb
CHANGED