web-push-notification-rails 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 744e3ab7ba1b876eec5744b19a4ae38bf7ae4b26
|
4
|
+
data.tar.gz: 6bfcbc786789f97025f182764403a5ddbc973d5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 505ae3e302d885a8e0d93ade7cf0cd03bb08784a86dda5aafa7060f769bd82c9a7fb6fd3f26ea45e482db2dc939b8496e55128117e7f2eaac030d2328f9aca02
|
7
|
+
data.tar.gz: 80b297052ad5516a6b53102b0f078cfa6638878f2ec0247ceac5e69a2e9dcb72b57e6c466e556853fca7f40026d6c81575a1884f0a16dee9d117439975fea904
|
data/lib/rails/generators/web_notification/notification_package/notification_package_generator.rb
CHANGED
@@ -16,8 +16,8 @@ module WebNotification
|
|
16
16
|
template 'web_notification_package_initializer.rb', File.join('config', 'initializers', "web_notification_package_initializer.rb")
|
17
17
|
template 'apple_web_notifications_controller.rb', File.join('app', 'controllers', "apple_web_notifications_controller.rb")
|
18
18
|
template 'index.html.erb', File.join('app', 'views', 'apple_web_notifications', 'index.html.erb')
|
19
|
-
route "delete '/v1/devices/:device_token/registrations/:web_push_id', :controller => :apple_web_notifications, :action => :
|
20
|
-
route "post '/v1/devices/:device_token/registrations/:web_push_id', :controller => :apple_web_notifications, :action => :
|
19
|
+
route "delete '/v1/devices/:device_token/registrations/:web_push_id', :controller => :apple_web_notifications, :action => :delete_device, :constraints => { :web_push_id => /[^\\/]+/ }"
|
20
|
+
route "post '/v1/devices/:device_token/registrations/:web_push_id', :controller => :apple_web_notifications, :action => :add_device, :constraints => { :web_push_id => /[^\\/]+/ }"
|
21
21
|
route "post '/v1/pushPackages/:web_push_id', :controller => :apple_web_notifications, :action => :package, :constraints => { :web_push_id => /[^\\/]+/ }"
|
22
22
|
route "post '/v1/log', :controller => :apple_web_notifications, :action => :log"
|
23
23
|
route "get '/apple_web_notifications', :controller => :apple_web_notifications, :action => :index"
|