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: 086d1f42cbe0570383ffe1a7bb695fdf64b5070f
4
- data.tar.gz: 81e64332739e082a9219361c319eddc118124d6c
3
+ metadata.gz: 739ef2d70addfc2533a3015ec00bec7914af1096
4
+ data.tar.gz: 0c22d9b251d3d00782b7d6d4e61d5e1b3f464b93
5
5
  SHA512:
6
- metadata.gz: a93032a0d421de42e672305ab0ba740febc7768df050eb3062a583ebbaf871e7faa4bcea0774f70c20855a4254fcfe82682b0ae9d40e2b270c284999a1d4eeaa
7
- data.tar.gz: 3ce914c932743f44c758da731dbee28f347d35587786717a59d07680a25818737a54b0fa4b9f58271bf529e46c31196d32782c0f95204ae9f83faa8260ddf21f
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
- puts "Push notification sent successfully."
29
+ logger.info "Push notification sent successfully."
30
30
  return true
31
31
  else
32
- puts "Push notification failed."
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
- mattr_accessor :channels
129
- @@channels = {
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
- mattr_accessor :views
136
- @@views = {
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 bake to their original state
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']
@@ -1,3 +1,3 @@
1
1
  module NotifyUser
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end