notifiable-core 0.3.4 → 0.4.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd88b591380a39d90d309ca1fc409cdbd46eeb7f1936965658207b9dbee696c3
|
|
4
|
+
data.tar.gz: bc9cae33b6e395a80179fd47bcce04228439effcaa4a31b79568bfae37a41e3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c264c9e9b81059dd220564b4a07e0a26d39cf4c20f0856bb80890d152bf3d6ea852cb0ec2a15fc3c516b166d05e0355991059176ddd5f08038f1dcd820b18e6c
|
|
7
|
+
data.tar.gz: 1cb88cc089ad9a3a45aef7e3416f99c92cac9fc9fbc22ed67fdea738caae34215a62b022937107aaa1e09eb7f4d30f740a105ded9594b8970388a3a8614d0950
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
class AddStatsToUsers < ActiveRecord::Migration[4.2]
|
|
2
2
|
def change
|
|
3
|
-
add_column :notifiable_users, :
|
|
4
|
-
add_column :notifiable_users, :
|
|
3
|
+
add_column :notifiable_users, :sent_count, :integer, default: 0
|
|
4
|
+
add_column :notifiable_users, :delivered_percent, :float, default: 0
|
|
5
|
+
add_column :notifiable_users, :opened_percent, :float, default: 0
|
|
5
6
|
end
|
|
6
7
|
end
|
|
@@ -6,7 +6,7 @@ module Notifiable
|
|
|
6
6
|
belongs_to :user, class_name: 'Notifiable::User', optional: true
|
|
7
7
|
has_many :notification_statuses, class_name: 'Notifiable::NotificationStatus'
|
|
8
8
|
|
|
9
|
-
validates :token, presence: true, uniqueness: { scope: :app }
|
|
9
|
+
validates :token, presence: true, uniqueness: { scope: :app, case_sensitive: false }
|
|
10
10
|
validates :provider, presence: true
|
|
11
11
|
validates :app, presence: true
|
|
12
12
|
validates :language, length: { in: 2..3 }, allow_blank: true # ISO 639-1 or ISO 6369-2 language code
|
data/lib/notifiable/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: notifiable-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Brooke-Smith
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -192,7 +192,7 @@ dependencies:
|
|
|
192
192
|
- - ">="
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
194
|
version: '0'
|
|
195
|
-
description:
|
|
195
|
+
description:
|
|
196
196
|
email:
|
|
197
197
|
- matt@futureworkshops.com
|
|
198
198
|
executables: []
|
|
@@ -222,6 +222,7 @@ files:
|
|
|
222
222
|
- db/migrate/201810082235001_add_user_id_to_notifiable_device_tokens.rb
|
|
223
223
|
- db/migrate/201810090108000_remove_user_alias_from_notifiable_device_tokens.rb
|
|
224
224
|
- db/migrate/201901032235001_add_stats_to_users.rb
|
|
225
|
+
- db/migrate/202008062235002_add_priority_to_notifications.rb
|
|
225
226
|
- lib/notifiable.rb
|
|
226
227
|
- lib/notifiable/app.rb
|
|
227
228
|
- lib/notifiable/device_token.rb
|
|
@@ -236,7 +237,7 @@ homepage: https://github.com/FutureWorkshops/notifiable
|
|
|
236
237
|
licenses:
|
|
237
238
|
- MIT
|
|
238
239
|
metadata: {}
|
|
239
|
-
post_install_message:
|
|
240
|
+
post_install_message:
|
|
240
241
|
rdoc_options: []
|
|
241
242
|
require_paths:
|
|
242
243
|
- lib
|
|
@@ -251,9 +252,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
251
252
|
- !ruby/object:Gem::Version
|
|
252
253
|
version: '0'
|
|
253
254
|
requirements: []
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
signing_key:
|
|
255
|
+
rubygems_version: 3.0.8
|
|
256
|
+
signing_key:
|
|
257
257
|
specification_version: 4
|
|
258
258
|
summary: Notifiable core classes.
|
|
259
259
|
test_files: []
|