lorkhan 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23daf29883ee93536930aa2d5cada06d7419b942d5c4099c65706b533175df5f
4
- data.tar.gz: b41be9cea0484074eb0fcb527071922b95a2821cc106e3236385744cf7d186da
3
+ metadata.gz: c2320ebc2128f7dfa3eac18acb934c615e0910594bf3b527dd901ef39862e052
4
+ data.tar.gz: 41184343bac05ba454db151772cb6b97e5cb6f07b9e0d58275def41367740f46
5
5
  SHA512:
6
- metadata.gz: a7cc2a1253d9a62d65a646f0277295a91ebe23a8bc8ce81e864d6e7772852ba461b2c393e371670d2b3bc5ae781dc601733010db87cf3f51df080b4c6aabb3da
7
- data.tar.gz: 000d0a24c85ebfcd7bf639bb0f0044846c739b61aa06758a7a11477aaef5b35a7699119b424d943a73e274f2a3be65b221826657b74b8e7fe40c917ed34adb71
6
+ metadata.gz: e9735617fb0099a61ec6f9a429ed6bc6743c50f4ad2edf64dabcd9fed30ccb0c26d497831ca6894c2a7d4bb8eb92dbe99761ffaa2bd8d00ba99e669f14b284a9
7
+ data.tar.gz: deb56863983aa8caa2c687c8d74db8f5226b18fab66a3fffa0da8cbe700a24afddefe0d3caaa54bf159f9d5d038a1e66aab0ab95a6de1aa4e33292d846806e72
@@ -20,6 +20,7 @@ module Lorkhan
20
20
  # Optional attributes
21
21
  #
22
22
  # - alert: The message displayed to the user.
23
+ # - title: Title of the notification displayed to the user.
23
24
  # - badge: The badge number displayed on the app icon.
24
25
  # - category: The category for the notification. Used to provide direct notification actions.
25
26
  # - collapse_id: Used to group multiple notifications on the screen.
@@ -50,7 +51,7 @@ module Lorkhan
50
51
  DEFAULT_SOUND_NAME = 'default'.freeze
51
52
 
52
53
  attr_reader :token, :apns_id, :priority, :alert, :content_available, :topic
53
- attr_accessor :custom_payload, :badge, :sound, :category, :url_args, :mutable_content
54
+ attr_accessor :custom_payload, :badge, :sound, :category, :url_args, :mutable_content, :title
54
55
  attr_accessor :expiration, :collapse_id
55
56
 
56
57
  ##
@@ -92,6 +93,7 @@ module Lorkhan
92
93
  {}.tap do |root|
93
94
  root[:aps] = {}.tap do |aps|
94
95
  aps[:alert] = alert if alert
96
+ aps[:title] = title if title
95
97
  aps[:badge] = badge if badge
96
98
  aps[:sound] = sound if sound
97
99
  aps[:category] = category if category
@@ -1,3 +1,3 @@
1
1
  module Lorkhan
2
- VERSION = '3.1.0'.freeze
2
+ VERSION = '3.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lorkhan
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maddie Schipper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-22 00:00:00.000000000 Z
11
+ date: 2020-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool