apns_simple 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8d3ce67428d291516b75022a6ee5529c8b0b2fb
4
- data.tar.gz: cf94350fa0378fbb269a430fd26f225294e34741
3
+ metadata.gz: af84d5bd9fa18a32957e9eb0008b56ed89a9bda3
4
+ data.tar.gz: 7a119bf86cc8bb29c224e85f0f2dd20432914491
5
5
  SHA512:
6
- metadata.gz: ddcc8b6ec117379829ad469bfac0f41a452c2474ba88ea45d73633ae262d9537b21af78287625212c0d22469795d040d545ca9fbf65d09d64b1fa0d17c0079cd
7
- data.tar.gz: 805088137b1bec19c635668d1bb3795c6c9aab16b80fd65ebd920c38ef6243b8fee5c1262dfaa65562c8f0ecf2f234d9bd2a862075884306d682463bfff29b1d
6
+ metadata.gz: 0256e15adc51a8feda1f0eef23bd6d861da6b13badf79c4c5bafeac68970814304b68bafb9488914dff331ad1f01cfeaa7ca919ad3843b177aaa565d212dcd2c
7
+ data.tar.gz: a8dd256f9aaeae21b8bb9d380856ff81a7f8793ffbe5bfaef82abe7d5131b226f65214c7e5a0d52a200af740db3e768f32cd851ed75c9f0166937300b68f1da7
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /pkg/
9
9
  /spec/reports/
10
10
  /tmp/
11
+ *.gem
@@ -19,7 +19,7 @@ module ApnsSimple
19
19
  payload[:aps][:alert] = alert if alert
20
20
  payload[:aps][:badge] = badge if badge
21
21
  payload[:aps][:sound] = sound if sound
22
- payload[:aps][:content_available] = 1 if content_available
22
+ payload[:aps]['content-available'] = 1 if content_available
23
23
 
24
24
  packed_message = payload.to_json.gsub(/\\u([\da-fA-F]{4})/) {|m| [$1].pack("H*").unpack("n*").pack("U*")}
25
25
  packed_token = [token.gsub(/[\s|<|>]/,'')].pack('H*')
@@ -1,3 +1,3 @@
1
1
  module ApnsSimple
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apns_simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Voronkov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.4.6
83
+ rubygems_version: 2.4.8
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Simple Apple Push Notifications sender