wireframe-apn_on_rails 0.3.0.201201301700 → 0.3.0.201302051600

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ class APN::Device < APN::Base
13
13
  has_many :notifications, :class_name => 'APN::Notification'
14
14
 
15
15
  validates_uniqueness_of :token
16
- 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}$/
16
+ validates_format_of :token, :with => /\A[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}\z/
17
17
 
18
18
  before_save :set_last_registered_at
19
19
 
@@ -45,4 +45,4 @@ class APN::Device < APN::Base
45
45
  self.last_registered_at = Time.now if self.last_registered_at.nil?
46
46
  end
47
47
 
48
- end
48
+ end
@@ -106,7 +106,7 @@ class APN::Notification < APN::Base
106
106
  self.message_for_sending
107
107
  break
108
108
  rescue APN::Errors::ExceededMessageSizeError => e
109
- self.alert = truncate(self.alert, :length => self.alert.mb_chars.length - 1)
109
+ self.alert = truncate(self.alert, :escape => false, :length => self.alert.mb_chars.length - 1)
110
110
  end
111
111
  end
112
112
  end
metadata CHANGED
@@ -1,61 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: wireframe-apn_on_rails
3
- version: !ruby/object:Gem::Version
4
- hash: 402402603487
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0.201302051600
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 0
10
- - 201201301700
11
- version: 0.3.0.201201301700
12
6
  platform: ruby
13
- authors:
7
+ authors:
14
8
  - ryan
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2011-02-14 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-02-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: configatron
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: activerecord
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: activerecord
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
47
38
  type: :runtime
48
- version_requirements: *id002
49
- description: "apn_on_rails was developed by: ryan"
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: ! 'apn_on_rails was developed by: ryan'
50
47
  email: mark@markbates.com
51
48
  executables: []
52
-
53
49
  extensions: []
54
-
55
- extra_rdoc_files:
50
+ extra_rdoc_files:
56
51
  - README
57
52
  - LICENSE
58
- files:
53
+ files:
59
54
  - lib/apn_on_rails/apn_on_rails.rb
60
55
  - lib/apn_on_rails/app/models/apn/base.rb
61
56
  - lib/apn_on_rails/app/models/apn/device.rb
@@ -75,36 +70,26 @@ files:
75
70
  - generators/templates/apn_migrations/004_add_payload_to_notifications.rb
76
71
  homepage: http://www.metabates.com
77
72
  licenses: []
78
-
79
73
  post_install_message:
80
74
  rdoc_options: []
81
-
82
- require_paths:
75
+ require_paths:
83
76
  - lib
84
- required_ruby_version: !ruby/object:Gem::Requirement
77
+ required_ruby_version: !ruby/object:Gem::Requirement
85
78
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
- version: "0"
93
- required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
84
  none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- hash: 3
99
- segments:
100
- - 0
101
- version: "0"
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
102
89
  requirements: []
103
-
104
90
  rubyforge_project: magrathea
105
- rubygems_version: 1.8.10
91
+ rubygems_version: 1.8.24
106
92
  signing_key:
107
93
  specification_version: 3
108
94
  summary: apn_on_rails
109
95
  test_files: []
110
-