moromi-apns 0.5.0 → 0.6.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: 46457f65e621ad1920c61769fccf393382299610
4
- data.tar.gz: b62b0602c8a9c9ce2321d0956d19b9024f275472
3
+ metadata.gz: 72b75c279e442226d162346a27168c773e101cf0
4
+ data.tar.gz: 836a37e735f7cf9b715ef579fa47d7e5cb44e333
5
5
  SHA512:
6
- metadata.gz: e02f66ec6d185c0a28d8ac27fcc84dcf83b47c923fe89a0142bc68e531feef1be908082f535cb13f82ebd0ccfa0668122e1b084fa899a4b9d1b76497192e0bb2
7
- data.tar.gz: 417c785322811f74a3071b2a905c3d2bd0ea0a476a0068a1e0817da123522b2bf3aefbf9b4c4269282a9bf1409ad2a2b9380eec1b27ee71dbb1dccd1dac1e812
6
+ metadata.gz: a756477640606abe4fc44c057097a13f5292f3df1e51b4c8e52f0060146f90ea73c459f65d7f2adecc089ed45e4a087210348743c73100de6fd52cd4f5165de7
7
+ data.tar.gz: de81c262daf1e3f1d302b4a51140c1274a75ab3310c4e0b6b67d39b1cf277e5fc1f40e1957219b22292aac51ab68e36de78db9eb3b579bbb46b275d466a4ee40
@@ -6,7 +6,7 @@ module Moromi::Apns::Message
6
6
 
7
7
  attr_reader :parameter
8
8
 
9
- def_delegators :@parameter, :alert, :badge, :sound, :content_available, :category, :priority
9
+ def_delegators :@parameter, :alert, :badge, :sound, :content_available, :mutable_content, :category, :priority
10
10
 
11
11
  # @param [Moromi::Apns::Parameter] parameter
12
12
  def initialize(parameter:)
@@ -8,15 +8,17 @@ module Moromi
8
8
  attr_reader :badge
9
9
  attr_reader :sound
10
10
  attr_reader :content_available
11
+ attr_reader :mutable_content
11
12
  attr_reader :category
12
13
  attr_reader :priority
13
14
  attr_reader :custom_data
14
15
 
15
- def initialize(alert:, badge:, sound: 'default', content_available: 1, category: nil, priority: 10, custom_data: {})
16
+ def initialize(alert:, badge:, sound: 'default', content_available: 1, mutable_content: 0, category: nil, priority: 10, custom_data: {})
16
17
  @alert = alert
17
18
  @badge = badge
18
19
  @sound = sound
19
20
  @content_available = content_available
21
+ @mutable_content = mutable_content
20
22
  @category = category
21
23
  @priority = priority
22
24
  @custom_data = custom_data
@@ -36,6 +38,7 @@ module Moromi
36
38
  badge: @badge,
37
39
  sound: @sound,
38
40
  content_available: @content_available,
41
+ mutable_content: @mutable_content,
39
42
  category: @category,
40
43
  priority: @priority,
41
44
  custom_data: @custom_data
@@ -49,6 +52,7 @@ module Moromi
49
52
  badge: hash[:badge],
50
53
  sound: hash[:sound],
51
54
  content_available: hash[:content_available],
55
+ mutable_content: hash[:mutable_content],
52
56
  category: hash[:category],
53
57
  priority: hash[:priority],
54
58
  custom_data: hash[:custom_data]
@@ -1,5 +1,5 @@
1
1
  module Moromi
2
2
  module Apns
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.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.5.0
4
+ version: 0.6.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: 2016-12-06 00:00:00.000000000 Z
11
+ date: 2017-05-09 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.5.2
123
+ rubygems_version: 2.4.5
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: APNS model