notifiable-core 0.3.3 → 0.4.1

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: acad06382fb686e4e653715d2e904374f7dab04f99b006e81932fb76d75bfdbf
4
- data.tar.gz: 46370294c1211f9c76ffbe640ff176bc04518668b2a15f4d4372f362ab384ece
3
+ metadata.gz: a1b571cfa050c15fe83d36cdf3d3c67aacfe259048513f943c378513a2b376ee
4
+ data.tar.gz: a87b624144a4ceca2896dceb540526c3b290a845c03cc453c1b3a5c4dd70a161
5
5
  SHA512:
6
- metadata.gz: f944fadb29442956b2650327eed1850714d4cebabf7479ad2ffb1896e27f61e18f94d6d24be6ceb5c1cba6bd484617cfb901f69b964cd298b2de0b04cbaa0116
7
- data.tar.gz: 3b64ee5536914591990cafd6ce716aebb8ec87f41a4fcbc82a134a018dce3805cf9ed756ffd545345adae2e3f9b0af16cd4473efb9970fb918f435d041107a74
6
+ metadata.gz: 32368c5699453f328a4e1d5decbd6c8725bf7f6e92afbc44650f6598309244668ff2e9f0779afcf1100f006d65f3fe15d397b5b0c64936861a47e7942fff2f8a
7
+ data.tar.gz: 9b1ec475326ce82f73ee27989c8ff185077432111e46c8c72cfa99ad86062f0e83b68ee0679a3a83decfd1972352cc1af63944fd996d394be4782017a0b4adf8
@@ -0,0 +1,7 @@
1
+ class AddStatsToUsers < ActiveRecord::Migration[4.2]
2
+ def change
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
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ class AddStatsToUsers < 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.3'.freeze
2
+ VERSION = '0.4.1'.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.3
4
+ version: 0.4.1
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: 2018-10-09 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: []
@@ -221,6 +221,8 @@ files:
221
221
  - db/migrate/201810082235000_create_notifiable_users.rb
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
+ - db/migrate/201901032235001_add_stats_to_users.rb
225
+ - db/migrate/202008062235002_add_priority_to_notification.rb
224
226
  - lib/notifiable.rb
225
227
  - lib/notifiable/app.rb
226
228
  - lib/notifiable/device_token.rb
@@ -235,7 +237,7 @@ homepage: https://github.com/FutureWorkshops/notifiable
235
237
  licenses:
236
238
  - MIT
237
239
  metadata: {}
238
- post_install_message:
240
+ post_install_message:
239
241
  rdoc_options: []
240
242
  require_paths:
241
243
  - lib
@@ -250,9 +252,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
252
  - !ruby/object:Gem::Version
251
253
  version: '0'
252
254
  requirements: []
253
- rubyforge_project:
254
- rubygems_version: 2.7.3
255
- signing_key:
255
+ rubygems_version: 3.0.8
256
+ signing_key:
256
257
  specification_version: 4
257
258
  summary: Notifiable core classes.
258
259
  test_files: []