notifiable-core 0.3.4 → 0.4.2

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: fa8ce965fd0801c2e4fef8ef5f6014b2de87c2169d1ee401393560a86b93aeec
4
- data.tar.gz: 9a37e237d99fb015bc9fa91f0ae743fdd63e901b3ae72d14d06f4ee45c022e40
3
+ metadata.gz: dd88b591380a39d90d309ca1fc409cdbd46eeb7f1936965658207b9dbee696c3
4
+ data.tar.gz: bc9cae33b6e395a80179fd47bcce04228439effcaa4a31b79568bfae37a41e3b
5
5
  SHA512:
6
- metadata.gz: b5677564869ea2d04dca70f319c89a137e07def6c22bce6e0c23849ea4702a95a18e6f1875f09fb021361df31c5b8875ef6542448b782652cc41f444244d0767
7
- data.tar.gz: 6fb7f8a0836507e16c4ce20c99b59bef0fed48ca20c8b96479d5929c9dc69a67f453bbc0eb4a95eb5cd99c70b5e02a10ea220f7cf7f2f01ca68fdca6a2eba542
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, :delivered_count, :integer
4
- add_column :notifiable_users, :opened_count, :integer
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
@@ -0,0 +1,5 @@
1
+ class AddPriorityToNotifications < ActiveRecord::Migration[4.2]
2
+ def change
3
+ add_column :notifiable_notifications, :priority, :integer
4
+ end
5
+ 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
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = '0.3.4'.freeze
2
+ VERSION = '0.4.2'.freeze
3
3
  end
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.3.4
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: 2019-01-03 00:00:00.000000000 Z
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
- rubyforge_project:
255
- rubygems_version: 2.7.3
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: []