notifiable-rails 0.26.1 → 0.26.3

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
  SHA1:
3
- metadata.gz: 96d2eea79d8e0d96946ba2a72593dac2281074a5
4
- data.tar.gz: 8b309f03bfc74a78f772a5e2736f492ceced0c8b
3
+ metadata.gz: 576a41eee1f24c4719b31f12bc9a4d31d985b4e2
4
+ data.tar.gz: 495b191d587753c72e9ec6f6b36b7bba0b6719db
5
5
  SHA512:
6
- metadata.gz: dd59ee70d70bed9ea3715c9f8d42bc657ecc7f84644ed0d7f5e2fd1662ef654f2e3e0c2b95f34b603a4909c6c844b09bb3c1d4f29153bdfdef6d4c9dbf37edfd
7
- data.tar.gz: 899e8497825a01fcb378e9171734d0a60061cd6fdf836f8784618b1efe2044306d526f4ecf372787381ee926db5db2012f22fc602f1ca11f98c287f2bf6137f1
6
+ metadata.gz: f12033113099fadf82dd6e1a7bda23b7aa8cdb9c88334585023a6b2753384c9da5bcf2d04dfd98f417d429101f6f0f0d2cb7c881678fc97f9989ae5781d89bd6
7
+ data.tar.gz: abb9c4601a4943288a38ca7c06f86f66d1e6eaedd7455d242ae8c0601e7b0cacac328a1532f9489c61eee75700dac7a327ad419eb490d84b52dfac07a67c511d
@@ -1,4 +1,4 @@
1
- class CreateNotifiableApps < ActiveRecord::Migration
1
+ class CreateNotifiableApps < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :notifiable_apps do |t|
4
4
  t.string :name
@@ -1,4 +1,4 @@
1
- class CreateNotifiableDeviceTokens < ActiveRecord::Migration
1
+ class CreateNotifiableDeviceTokens < ActiveRecord::Migration[4.2]
2
2
 
3
3
  def change
4
4
  create_table :notifiable_device_tokens do |t|
@@ -1,4 +1,4 @@
1
- class CreateNotifiableNotifications < ActiveRecord::Migration
1
+ class CreateNotifiableNotifications < ActiveRecord::Migration[4.2]
2
2
 
3
3
  def change
4
4
  create_table :notifiable_notifications do |t|
@@ -1,4 +1,4 @@
1
- class CreateNotifiableStatuses < ActiveRecord::Migration
1
+ class CreateNotifiableStatuses < ActiveRecord::Migration[4.2]
2
2
 
3
3
  def change
4
4
  create_table :notifiable_statuses do |t|
@@ -1,4 +1,4 @@
1
- class AddNameToNotifiableDeviceTokens < ActiveRecord::Migration
1
+ class AddNameToNotifiableDeviceTokens < ActiveRecord::Migration[4.2]
2
2
 
3
3
  def change
4
4
  add_column :notifiable_device_tokens, :name, :string
@@ -1,4 +1,4 @@
1
- class AddBadgeCountToNotifiableNotifications < ActiveRecord::Migration
1
+ class AddBadgeCountToNotifiableNotifications < ActiveRecord::Migration[4.2]
2
2
 
3
3
  def change
4
4
  add_column :notifiable_notifications, :badge_count, :integer
@@ -1,4 +1,4 @@
1
- class RemoveIsValidFromNotifiableDeviceTokens < ActiveRecord::Migration
1
+ class RemoveIsValidFromNotifiableDeviceTokens < ActiveRecord::Migration[4.2]
2
2
 
3
3
  def change
4
4
  remove_column :notifiable_device_tokens, :is_valid, :boolean, default: true
@@ -1,4 +1,4 @@
1
- class AddAppIdTokenIndexToNotifiableDeviceTokens < ActiveRecord::Migration
1
+ class AddAppIdTokenIndexToNotifiableDeviceTokens < ActiveRecord::Migration[4.2]
2
2
 
3
3
  def change
4
4
  add_index :notifiable_device_tokens, [:app_id, :token], unique: true
@@ -1,4 +1,4 @@
1
- class AddLatLonToNotifiableDeviceTokens < ActiveRecord::Migration
1
+ class AddLatLonToNotifiableDeviceTokens < ActiveRecord::Migration[4.2]
2
2
 
3
3
  def change
4
4
  enable_extension "postgis"
@@ -1,4 +1,4 @@
1
- class AddLastErrorMessageToNotifications < ActiveRecord::Migration
1
+ class AddLastErrorMessageToNotifications < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :notifiable_notifications, :last_error_message, :text
4
4
  end
@@ -0,0 +1,5 @@
1
+ class AddTitleToNotifications < ActiveRecord::Migration[4.2]
2
+ def change
3
+ add_column :notifiable_notifications, :title, :string
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.26.1"
2
+ VERSION = "0.26.3"
3
3
  end
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  # This file is auto-generated from the current state of the database. Instead
3
2
  # of editing this file, please use the migrations feature of Active Record to
4
3
  # incrementally modify your database, and then regenerate this schema definition.
@@ -11,56 +10,56 @@
11
10
  #
12
11
  # It's strongly recommended that you check this file into your version control system.
13
12
 
14
- ActiveRecord::Schema.define(version: 20180302212641) do
13
+ ActiveRecord::Schema.define(version: 201803142135000) do
15
14
 
16
15
  # These are extensions that must be enabled in order to support this database
17
16
  enable_extension "plpgsql"
18
17
  enable_extension "postgis"
19
18
 
20
- create_table "notifiable_apps", force: :cascade do |t|
21
- t.string "name"
22
- t.text "configuration"
19
+ create_table "notifiable_apps", id: :serial, force: :cascade do |t|
20
+ t.string "name"
21
+ t.text "configuration"
23
22
  t.datetime "created_at"
24
23
  t.datetime "updated_at"
25
24
  end
26
25
 
27
- create_table "notifiable_device_tokens", force: :cascade do |t|
28
- t.string "token"
29
- t.string "provider"
30
- t.string "locale"
31
- t.string "user_alias"
32
- t.integer "app_id"
33
- t.datetime "created_at"
34
- t.datetime "updated_at"
35
- t.string "name"
36
- t.geography "lonlat", limit: {:srid=>4326, :type=>"point", :geographic=>true}
26
+ create_table "notifiable_device_tokens", id: :serial, force: :cascade do |t|
27
+ t.string "token"
28
+ t.string "provider"
29
+ t.string "locale"
30
+ t.string "user_alias"
31
+ t.integer "app_id"
32
+ t.datetime "created_at"
33
+ t.datetime "updated_at"
34
+ t.string "name"
35
+ t.geography "lonlat", limit: {:srid=>4326, :type=>"st_point", :geographic=>true}
36
+ t.index ["app_id", "token"], name: "index_notifiable_device_tokens_on_app_id_and_token", unique: true
37
+ t.index ["user_alias"], name: "index_notifiable_device_tokens_on_user_alias"
37
38
  end
38
39
 
39
- add_index "notifiable_device_tokens", ["app_id", "token"], name: "index_notifiable_device_tokens_on_app_id_and_token", unique: true, using: :btree
40
- add_index "notifiable_device_tokens", ["user_alias"], name: "index_notifiable_device_tokens_on_user_alias", using: :btree
41
-
42
- create_table "notifiable_notifications", force: :cascade do |t|
43
- t.integer "app_id"
44
- t.integer "sent_count", default: 0
45
- t.integer "gateway_accepted_count", default: 0
46
- t.integer "opened_count", default: 0
47
- t.text "message"
48
- t.text "parameters"
49
- t.string "sound"
50
- t.string "identifier"
40
+ create_table "notifiable_notifications", id: :serial, force: :cascade do |t|
41
+ t.integer "app_id"
42
+ t.integer "sent_count", default: 0
43
+ t.integer "gateway_accepted_count", default: 0
44
+ t.integer "opened_count", default: 0
45
+ t.text "message"
46
+ t.text "parameters"
47
+ t.string "sound"
48
+ t.string "identifier"
51
49
  t.datetime "expiry"
52
- t.boolean "content_available"
53
- t.boolean "mutable_content"
50
+ t.boolean "content_available"
51
+ t.boolean "mutable_content"
54
52
  t.datetime "created_at"
55
53
  t.datetime "updated_at"
56
- t.integer "badge_count"
57
- t.text "last_error_message"
54
+ t.integer "badge_count"
55
+ t.text "last_error_message"
56
+ t.string "title"
58
57
  end
59
58
 
60
- create_table "notifiable_statuses", force: :cascade do |t|
61
- t.integer "notification_id"
62
- t.integer "device_token_id"
63
- t.integer "status"
59
+ create_table "notifiable_statuses", id: :serial, force: :cascade do |t|
60
+ t.integer "notification_id"
61
+ t.integer "device_token_id"
62
+ t.integer "status"
64
63
  t.datetime "created_at"
65
64
  end
66
65
 
@@ -214,3 +214,4 @@ WHERE c.contype = 'f'
214
214
  AND t3.nspname = ANY (current_schemas(false))
215
215
  ORDER BY c.conname
216
216
 
217
+  (4.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
@@ -1153,3 +1153,17 @@ ORDER BY c.conname
1153
1153
   (13.2ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
1154
1154
   (0.5ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
1155
1155
   (4.1ms) ROLLBACK
1156
+  (49.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1157
+  (2.5ms) SELECT pg_try_advisory_lock(5131134053504291175)
1158
+  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1159
+ Migrating to AddTitleToNotifications (201803142135000)
1160
+  (5.6ms) BEGIN
1161
+  (19.4ms) ALTER TABLE "notifiable_notifications" ADD "title" character varying
1162
+ SQL (2.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "201803142135000"]]
1163
+  (0.7ms) COMMIT
1164
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1165
+  (0.3ms) BEGIN
1166
+ SQL (1.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2018-03-21 05:51:03.711472"], ["updated_at", "2018-03-21 05:51:03.711472"]]
1167
+  (0.5ms) COMMIT
1168
+  (0.3ms) SELECT pg_advisory_unlock(5131134053504291175)
1169
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.1
4
+ version: 0.26.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brooke-Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-14 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -197,6 +197,7 @@ files:
197
197
  - db/migrate/20170108221432_add_app_id_token_index_to_notifiable_device_tokens.rb
198
198
  - db/migrate/20170116212641_add_lat_lon_to_notifiable_device_tokens.rb
199
199
  - db/migrate/20180302212641_add_last_error_message_to_notifications.rb
200
+ - db/migrate/201803142135000_add_title_to_notifications.rb
200
201
  - lib/generators/notifiable/install/install_generator.rb
201
202
  - lib/generators/notifiable/install/templates/initializer.rb
202
203
  - lib/notifiable.rb