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 +4 -4
- data/lib/onesignal/notification.rb +4 -1
- data/lib/onesignal/version.rb +1 -1
- data/onesignal-ruby.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cc04a0b28c94e926c36f1edde7ed3d651474f2aebf47f2361b612beb329bb01
|
4
|
+
data.tar.gz: 1d2eb9bddde95ce61315bdc5913e035305ad1b8e507c0d6fcc6a68be16a92702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]
|
data/lib/onesignal/version.rb
CHANGED
data/onesignal-ruby.gemspec
CHANGED
@@ -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
|
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
|
+
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-
|
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
|
157
|
+
version: '1.0'
|
158
158
|
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version: 0
|
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
|
167
|
+
version: '1.0'
|
168
168
|
- - ">="
|
169
169
|
- !ruby/object:Gem::Version
|
170
|
-
version: 0
|
170
|
+
version: '1.0'
|
171
171
|
- !ruby/object:Gem::Dependency
|
172
172
|
name: simple_command
|
173
173
|
requirement: !ruby/object:Gem::Requirement
|