onesignal-ruby 0.4.0 → 0.5.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
  SHA256:
3
- metadata.gz: fbdc9957b425cbf4fb59d85942f6d7be87790d02f0a4237055f823a577560a52
4
- data.tar.gz: 6d9574b931d87cf0b2a0dd86574b949724214354af2da600ffe5d27ed1a26ea9
3
+ metadata.gz: 7cc04a0b28c94e926c36f1edde7ed3d651474f2aebf47f2361b612beb329bb01
4
+ data.tar.gz: 1d2eb9bddde95ce61315bdc5913e035305ad1b8e507c0d6fcc6a68be16a92702
5
5
  SHA512:
6
- metadata.gz: 6f50a8a69677315005a6a531e059c9a6c8662979598c355a1f8f82d9c75751c6944586649c980f57b4891db14bf587c5e0c6341878b036018ca507bc44b964ac
7
- data.tar.gz: b12f3005a9a65eec9cc7ed982975f8e2a176f1f8c0580410742bf879838baeb9e9091a72082933199bed464cc60d7f3511d4c43e4c9d9fea4493fccc6f882fe4
6
+ metadata.gz: 528ff50448ce553e2bdc2c2f920dcd160208db6648caf1c2c0ad635279bce099c965c33b7930503a274d2cd7c05c42a498f873dfa4fd365ae69beae970c06b5c
7
+ data.tar.gz: '0083d2a4996ef9cba0bcbbac3de6cb1dbe32ded69777e8512e0665be5647a4d5f349c272a781115bf814d987f108f7ed49f80942a29d7f7127b8870cd1ee0f61'
@@ -6,7 +6,8 @@ require 'onesignal/notification/headings'
6
6
  module OneSignal
7
7
  class Notification
8
8
  attr_reader :contents, :headings, :template_id, :included_segments, :excluded_segments,
9
- :included_targets, :send_after, :attachments, :sounds, :buttons
9
+ :included_targets, :email_subject, :send_after, :attachments, :sounds, :buttons,
10
+ :email_body
10
11
 
11
12
  def initialize **params
12
13
  unless params.include?(:contents) || params.include?(:template_id)
@@ -19,6 +20,8 @@ module OneSignal
19
20
  @included_segments = params[:included_segments]
20
21
  @excluded_segments = params[:excluded_segments]
21
22
  @included_targets = params[:included_targets]
23
+ @email_subject = params[:email_subject]
24
+ @email_body = params[:email_body]
22
25
  @send_after = params[:send_after].to_s
23
26
  @attachments = params[:attachments]
24
27
  @filters = params[:filters]
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OneSignal
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  API_VERSION = 'v1'
6
6
  end
@@ -43,6 +43,6 @@ Gem::Specification.new do |spec|
43
43
  spec.add_development_dependency 'webmock', '~> 3.4'
44
44
 
45
45
  spec.add_runtime_dependency 'activesupport', '>= 5.0.0', '< 7'
46
- spec.add_runtime_dependency 'faraday', '~> 0.15', '>= 0.15.4'
46
+ spec.add_runtime_dependency 'faraday', '~> 1.0', '>= 1.0'
47
47
  spec.add_runtime_dependency 'simple_command', '~> 0', '>= 0.0.9'
48
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onesignal-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Joliveau
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-19 00:00:00.000000000 Z
11
+ date: 2021-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -154,20 +154,20 @@ dependencies:
154
154
  requirements:
155
155
  - - "~>"
156
156
  - !ruby/object:Gem::Version
157
- version: '0.15'
157
+ version: '1.0'
158
158
  - - ">="
159
159
  - !ruby/object:Gem::Version
160
- version: 0.15.4
160
+ version: '1.0'
161
161
  type: :runtime
162
162
  prerelease: false
163
163
  version_requirements: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - "~>"
166
166
  - !ruby/object:Gem::Version
167
- version: '0.15'
167
+ version: '1.0'
168
168
  - - ">="
169
169
  - !ruby/object:Gem::Version
170
- version: 0.15.4
170
+ version: '1.0'
171
171
  - !ruby/object:Gem::Dependency
172
172
  name: simple_command
173
173
  requirement: !ruby/object:Gem::Requirement