c2dm_on_rails 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{c2dm_on_rails}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Julius de Bruijn"]
@@ -1,9 +1,5 @@
1
1
  module C2dm
2
2
  class Base < ActiveRecord::Base # :nodoc:
3
-
4
- def self.table_name # :nodoc:
5
- self.to_s.gsub("::", "_").tableize
6
- end
7
-
3
+ self.abstract_class = true
8
4
  end
9
5
  end
@@ -9,6 +9,7 @@
9
9
  # Example:
10
10
  # Device.create(:registration_id => 'FOOBAR')
11
11
  class C2dm::Device < C2dm::Base
12
+ self.table_name= "c2dm_devices"
12
13
 
13
14
  has_many :notifications, :class_name => 'C2dm::Notification', :dependent => :destroy
14
15
 
@@ -16,10 +16,14 @@ require 'uri'
16
16
  # As each C2dm::Notification is sent the <tt>sent_at</tt> column will be timestamped,
17
17
  # so as to not be sent again.
18
18
  class C2dm::Notification < C2dm::Base
19
+ self.table_name= "c2dm_notifications"
20
+
19
21
  include ::ActionView::Helpers::TextHelper
20
22
  extend ::ActionView::Helpers::TextHelper
21
23
  serialize :data
22
24
 
25
+
26
+
23
27
  belongs_to :device, :class_name => 'C2dm::Device'
24
28
 
25
29
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c2dm_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jeweler
16
- requirement: &18227280 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18227280
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: configatron
27
- requirement: &18226540 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *18226540
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: gdata
38
- requirement: &18274340 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,7 +53,12 @@ dependencies:
43
53
  version: '0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *18274340
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  description: ! 'C2DM on Rails is a Ruby on Rails gem that allows you to
48
63
 
49
64
  easily add Android Cloud to Device Messaging support to your Rails application.
@@ -96,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
111
  version: '0'
97
112
  requirements: []
98
113
  rubyforge_project:
99
- rubygems_version: 1.8.11
114
+ rubygems_version: 1.8.23
100
115
  signing_key:
101
116
  specification_version: 3
102
117
  summary: Android Cloud to Device Messaging (push notifications) on Rails