wireframe-apn_on_rails 0.3.0.20100830174035 → 0.3.0.20110210133345

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.
@@ -84,11 +84,10 @@ class APN::Notification < APN::Base
84
84
  APN::Connection.open_for_delivery do |conn, sock|
85
85
  notifications.each do |noty|
86
86
  conn.write(noty.message_for_sending)
87
- noty.sent_at = Time.now
88
- noty.save
89
87
  end
90
88
  end
91
89
 
90
+ APN::Notification.update_all ['sent_at = ?', Time.now.utc], ['id in (?)', notifications.collect(&:id)]
92
91
  end
93
92
  end
94
93
 
metadata CHANGED
@@ -1,22 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wireframe-apn_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 40201660348145
5
- prerelease: false
4
+ hash: 40220420266645
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
9
  - 0
10
- - 20100830174035
11
- version: 0.3.0.20100830174035
10
+ - 20110210133345
11
+ version: 0.3.0.20110210133345
12
12
  platform: ruby
13
13
  authors:
14
- - root
14
+ - ryan
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-08-30 00:00:00 -05:00
19
+ date: 2011-02-10 00:00:00 -06:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -33,7 +33,21 @@ dependencies:
33
33
  version: "0"
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
- description: "apn_on_rails was developed by: root"
36
+ - !ruby/object:Gem::Dependency
37
+ name: activerecord
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ type: :runtime
49
+ version_requirements: *id002
50
+ description: "apn_on_rails was developed by: ryan"
37
51
  email: mark@markbates.com
38
52
  executables: []
39
53
 
@@ -90,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
104
  requirements: []
91
105
 
92
106
  rubyforge_project: magrathea
93
- rubygems_version: 1.3.7
107
+ rubygems_version: 1.5.0
94
108
  signing_key:
95
109
  specification_version: 3
96
110
  summary: apn_on_rails