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 +4 -4
- data/db/migrate/20131210115648_create_notifiable_apps.rb +1 -1
- data/db/migrate/20131210115649_create_notifiable_device_tokens.rb +1 -1
- data/db/migrate/20131210115650_create_notifiable_notifications.rb +1 -1
- data/db/migrate/20131210115652_create_notifiable_statuses.rb +1 -1
- data/db/migrate/20131210115653_add_name_to_notifiable_device_tokens.rb +1 -1
- data/db/migrate/20161208221332_add_badge_count_to_notifiable_notifications.rb +1 -1
- data/db/migrate/20170108221332_remove_is_valid_from_notifiable_device_tokens.rb +1 -1
- data/db/migrate/20170108221432_add_app_id_token_index_to_notifiable_device_tokens.rb +1 -1
- data/db/migrate/20170116212641_add_lat_lon_to_notifiable_device_tokens.rb +1 -1
- data/db/migrate/20180302212641_add_last_error_message_to_notifications.rb +1 -1
- data/db/migrate/201803142135000_add_title_to_notifications.rb +5 -0
- data/lib/notifiable/version.rb +1 -1
- data/spec/test_app/db/schema.rb +34 -35
- data/spec/test_app/log/development.log +1 -0
- data/spec/test_app/log/test.log +14 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 576a41eee1f24c4719b31f12bc9a4d31d985b4e2
|
4
|
+
data.tar.gz: 495b191d587753c72e9ec6f6b36b7bba0b6719db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f12033113099fadf82dd6e1a7bda23b7aa8cdb9c88334585023a6b2753384c9da5bcf2d04dfd98f417d429101f6f0f0d2cb7c881678fc97f9989ae5781d89bd6
|
7
|
+
data.tar.gz: abb9c4601a4943288a38ca7c06f86f66d1e6eaedd7455d242ae8c0601e7b0cacac328a1532f9489c61eee75700dac7a327ad419eb490d84b52dfac07a67c511d
|
data/lib/notifiable/version.rb
CHANGED
data/spec/test_app/db/schema.rb
CHANGED
@@ -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:
|
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
|
22
|
-
t.text
|
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
|
29
|
-
t.string
|
30
|
-
t.string
|
31
|
-
t.string
|
32
|
-
t.integer
|
33
|
-
t.datetime
|
34
|
-
t.datetime
|
35
|
-
t.string
|
36
|
-
t.geography "lonlat",
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
t.integer
|
44
|
-
t.
|
45
|
-
t.
|
46
|
-
t.
|
47
|
-
t.
|
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
|
53
|
-
t.boolean
|
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
|
57
|
-
t.text
|
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
|
62
|
-
t.integer
|
63
|
-
t.integer
|
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
|
|
data/spec/test_app/log/test.log
CHANGED
@@ -1153,3 +1153,17 @@ ORDER BY c.conname
|
|
1153
1153
|
[1m[35m (13.2ms)[0m TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
|
1154
1154
|
[1m[36m (0.5ms)[0m [1mALTER 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[0m
|
1155
1155
|
[1m[35m (4.1ms)[0m ROLLBACK
|
1156
|
+
[1m[35m (49.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1157
|
+
[1m[35m (2.5ms)[0m [1m[34mSELECT pg_try_advisory_lock(5131134053504291175)[0m
|
1158
|
+
[1m[35m (3.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1159
|
+
Migrating to AddTitleToNotifications (201803142135000)
|
1160
|
+
[1m[35m (5.6ms)[0m [1m[35mBEGIN[0m
|
1161
|
+
[1m[35m (19.4ms)[0m [1m[35mALTER TABLE "notifiable_notifications" ADD "title" character varying[0m
|
1162
|
+
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "201803142135000"]]
|
1163
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
1164
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1165
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1166
|
+
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-03-21 05:51:03.711472"], ["updated_at", "2018-03-21 05:51:03.711472"]]
|
1167
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1168
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(5131134053504291175)[0m
|
1169
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
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.
|
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-
|
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
|