moromi-apns 0.6.0 → 0.7.0

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: 72b75c279e442226d162346a27168c773e101cf0
4
- data.tar.gz: 836a37e735f7cf9b715ef579fa47d7e5cb44e333
3
+ metadata.gz: 05bc31e586bb7a3d93019962fb4be84487487b35
4
+ data.tar.gz: 2faac8ede4e600fbf33c889633c510b1a56bfd5c
5
5
  SHA512:
6
- metadata.gz: a756477640606abe4fc44c057097a13f5292f3df1e51b4c8e52f0060146f90ea73c459f65d7f2adecc089ed45e4a087210348743c73100de6fd52cd4f5165de7
7
- data.tar.gz: de81c262daf1e3f1d302b4a51140c1274a75ab3310c4e0b6b67d39b1cf277e5fc1f40e1957219b22292aac51ab68e36de78db9eb3b579bbb46b275d466a4ee40
6
+ metadata.gz: d2e2046ee8130935dbd750d9b5b4e47484812ca07ab0715d3be524284090c58e8e3589ddbb09a3a8a9626fc6d10b42cbbe0920b0b00552ab9ff4d0eb8d5c1a9a
7
+ data.tar.gz: 22f75d95951edb6dc5e004d9535e5dfc5f83bddc3888fa30891aabd1fa26351d862d346573cd09ad7457c8b99a0c48b34aca7da47b75dc76a45a34188c34b1f3
@@ -28,6 +28,20 @@ module Moromi::Apns::Message
28
28
  }
29
29
  end
30
30
 
31
+ def to_hash
32
+ base = {
33
+ aps: {
34
+ badge: badge,
35
+ alert: alert,
36
+ sound: sound,
37
+ 'content-available' => content_available,
38
+ 'mutable-content' => mutable_content,
39
+ priority: priority
40
+ }
41
+ }
42
+ custom_data.merge(base)
43
+ end
44
+
31
45
  # @param [Hash] params
32
46
  def self.unserialize(params)
33
47
  parameter = ::Moromi::Apns::Parameter.unserialize(params[:parameter])
@@ -1,5 +1,5 @@
1
1
  module Moromi
2
2
  module Apns
3
- VERSION = '0.6.0'
3
+ VERSION = '0.7.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moromi-apns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Ooishi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-09 00:00:00.000000000 Z
11
+ date: 2017-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.4.5
123
+ rubygems_version: 2.6.13
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: APNS model