ios_push_notifications 0.5 → 0.6
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.
- data/CHANGELOG +3 -0
- data/README.rdoc +5 -4
- data/lib/ios_push_notifications/device.rb +8 -5
- metadata +2 -3
- data/MIT-LICENSE +0 -20
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -11,9 +11,7 @@ IosPushNotifications
|
|
11
11
|
|
12
12
|
To use ios_push_notifications with Rails 3 you will need to include it in your Gemfile.
|
13
13
|
|
14
|
-
|
15
|
-
gem "ios_push_notifications"
|
16
|
-
end
|
14
|
+
gem "ios_push_notifications"
|
17
15
|
|
18
16
|
== Usage
|
19
17
|
* rails g iospn : Will name the migration files (iospn_devices and iospn_notifications) combined with the initializer
|
@@ -38,7 +36,7 @@ end
|
|
38
36
|
== Certificates
|
39
37
|
TODO
|
40
38
|
|
41
|
-
Copyright (c) 2011
|
39
|
+
Copyright (c) 2011 Seifvan Heifdari af Awesomeness Von Cheeseburger
|
42
40
|
|
43
41
|
Permission is hereby granted, free of charge, to any person obtaining
|
44
42
|
a copy of this software and associated documentation files (the
|
@@ -58,3 +56,6 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
58
56
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
59
57
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
60
58
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
59
|
+
By reading this fine print your soul is now the exclusive property of WeDoBDD Productions and its Subsidiaries.
|
60
|
+
Unauthorized use of seivan gems, images, materials, souls, odors and oxygen is strongly discouraged. We know where you sleep.
|
61
|
+
Also, your mum & bring back prop8
|
@@ -4,17 +4,20 @@ module IOSPN
|
|
4
4
|
has_many :notifications
|
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
|
-
# before_save :set_last_registered_at
|
8
|
-
# private
|
9
|
-
# def self.set_last_registered_at
|
10
|
-
# self.last_registered_at = Time.now if self.last_registered_at.nil?
|
11
|
-
# end
|
12
7
|
|
13
8
|
def save
|
14
9
|
self.last_registered_at = Time.now if self.last_registered_at.nil?
|
10
|
+
self.token = self.token
|
15
11
|
super()
|
16
12
|
end
|
17
13
|
|
14
|
+
# before_save :set_last_registered_at
|
15
|
+
# private
|
16
|
+
# def self.set_last_registered_at
|
17
|
+
# self.last_registered_at = Time.now if self.last_registered_at.nil?
|
18
|
+
# self.token = self.token
|
19
|
+
# end
|
20
|
+
|
18
21
|
def token=(token)
|
19
22
|
res = token.scan(/\<(.+)\>/).first
|
20
23
|
unless res.nil? || res.empty?
|
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.6"
|
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-02-
|
13
|
+
date: 2011-02-12 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -63,7 +63,6 @@ files:
|
|
63
63
|
- test/test_helper.rb
|
64
64
|
- CHANGELOG
|
65
65
|
- Gemfile
|
66
|
-
- MIT-LICENSE
|
67
66
|
- Rakefile
|
68
67
|
- README.rdoc
|
69
68
|
has_rdoc: true
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2011 [name of plugin creator]
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|