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 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.7') do |p|
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"
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{c2dm_on_rails}
5
- s.version = "0.1.7"
5
+ s.version = "0.1.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Julius de Bruijn}]
@@ -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: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Julius de Bruijn