ios_push_notifications 0.7 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ios_push_notifications/device.rb +5 -5
- metadata +2 -2
@@ -5,11 +5,11 @@ module IOSPN
|
|
5
5
|
validates_uniqueness_of :token
|
6
6
|
validates_format_of :token, :with => /^[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}$/
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
def save
|
9
|
+
self.last_registered_at = Time.now if self.last_registered_at.nil?
|
10
|
+
self.token = self.token
|
11
|
+
super()
|
12
|
+
end
|
13
13
|
|
14
14
|
# before_save :set_last_registered_at
|
15
15
|
# private
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ios_push_notifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: "0.
|
5
|
+
version: "0.9"
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Seivan Heidari
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-10 00:00:00 +08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|