c2dm_on_rails 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/c2dm_on_rails.gemspec +1 -1
- data/lib/c2dm_on_rails/app/models/c2dm/notification.rb +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('c2dm_on_rails', '0.1.
|
5
|
+
Echoe.new('c2dm_on_rails', '0.1.8') do |p|
|
6
6
|
p.description = "Android push notifications on Rails."
|
7
7
|
p.url = "http://github.com/pimeys/c2dm_on_rails"
|
8
8
|
p.author = "Julius de Bruijn"
|
data/c2dm_on_rails.gemspec
CHANGED
@@ -36,7 +36,7 @@ class C2dm::Notification < C2dm::Base
|
|
36
36
|
#
|
37
37
|
# This can be run from the following Rake task:
|
38
38
|
# $ rake c2dm:notifications:deliver
|
39
|
-
def send_notifications(notifications = C2dm::Notification.all(:conditions => {:sent_at => nil}, :joins => :device))
|
39
|
+
def send_notifications(notifications = C2dm::Notification.all(:conditions => {:sent_at => nil}, :joins => :device, :readonly => false))
|
40
40
|
unless notifications.nil? || notifications.empty?
|
41
41
|
C2dm::Connection.open do |token|
|
42
42
|
notifications.each do |noty|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: c2dm_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Julius de Bruijn
|