jirapong-apn_on_rails 0.4.9 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -81,7 +81,7 @@ class APN::Notification < APN::Base
|
|
81
81
|
def message_for_sending
|
82
82
|
json = self.to_apple_json
|
83
83
|
c = "\0".encode('UTF-8')
|
84
|
-
message = "#{c}#{c} #{self.device.to_hexa.
|
84
|
+
message = "#{c}#{c} #{self.device.to_hexa.force_encoding('UTF-8')}#{c}#{json.length.chr.force_encoding('UTF-8')}#{json.force_encoding('UTF-8')}"
|
85
85
|
raise APN::Errors::ExceededMessageSizeError.new(message) if message.size.to_i > 256
|
86
86
|
message
|
87
87
|
end
|
data/lib/apn_on_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jirapong-apn_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-06-
|
13
|
+
date: 2012-06-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: configatron
|