notifiable-rails 0.19.4 → 0.19.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifiable/active_record.rb +1 -1
- data/lib/notifiable/version.rb +1 -1
- data/spec/active_record_spec.rb +1 -1
- data/spec/test_app/log/test.log +41 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bbe8d5f164223c0110d52415191bcc0a0f878af
|
4
|
+
data.tar.gz: 53c4aded10782f4207c25e782491183027f181fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf4b0d8ca8be6609e34083da33dac203699e6bc14cad7110709f5070fd7ca065b563d6fda2afcb10354e0f6c773d756832bb7ce23ddeb4b2d36f499a38bf15b5
|
7
|
+
data.tar.gz: da7099f3ecf9ab549c4ae73af0f65c58b947ae407f7a9d02d0585c12b0718d8e7ff9c7ddbdf08bc948581832f8e1f23ab6481872724c786f0474295142db3d1f
|
data/lib/notifiable/version.rb
CHANGED
data/spec/active_record_spec.rb
CHANGED
@@ -11,6 +11,6 @@ describe ActiveRecord::Base do
|
|
11
11
|
[{notification_id: notification_status.notification.id, device_token_id: notification_status.device_token.id, status: 0, created_at: date},
|
12
12
|
{notification_id: notification_status2.notification.id, device_token_id: notification_status2.device_token.id, status: 0, created_at: date}])
|
13
13
|
|
14
|
-
sql.should eql "INSERT ALL INTO notifiable_statuses (created_at, device_token_id, notification_id, status) VALUES (#{ActiveRecord::Base.connection.quote(date)}, 1, 1, 0) INTO notifiable_statuses (created_at, device_token_id, notification_id, status) VALUES (#{ActiveRecord::Base.connection.quote(date)}, 2, 2, 0)"
|
14
|
+
sql.should eql "INSERT ALL INTO notifiable_statuses (created_at, device_token_id, notification_id, status) VALUES (#{ActiveRecord::Base.connection.quote(date)}, 1, 1, 0) INTO notifiable_statuses (created_at, device_token_id, notification_id, status) VALUES (#{ActiveRecord::Base.connection.quote(date)}, 2, 2, 0) SELECT 1 FROM DUAL;"
|
15
15
|
end
|
16
16
|
end
|
data/spec/test_app/log/test.log
CHANGED
@@ -298293,3 +298293,44 @@ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
|
|
298293
298293
|
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298294
298294
|
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298295
298295
|
[1m[35m (0.8ms)[0m rollback transaction
|
298296
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
298297
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298298
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 15:57:52 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 15:57:52 UTC +00:00]]
|
298299
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298300
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298301
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 15:57:52 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 15:57:52 UTC +00:00]]
|
298302
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298303
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298304
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00]]
|
298305
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298306
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298307
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00]]
|
298308
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298309
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298310
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00]]
|
298311
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298312
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298313
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00]]
|
298314
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298315
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298316
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00]]
|
298317
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298318
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298319
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 16 Jun 2014 15:57:53 UTC +00:00]]
|
298320
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298321
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
298322
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298323
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
298324
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
298325
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298326
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
298327
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
298328
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298329
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
298330
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
298331
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298332
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
298333
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
298334
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298335
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
298336
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|