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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a1e54e45f4a3b6bed44aee9c110e26d5c297f47
4
- data.tar.gz: 1848c6bdb6b0f445d52517f41c07725933881d46
3
+ metadata.gz: 1bbe8d5f164223c0110d52415191bcc0a0f878af
4
+ data.tar.gz: 53c4aded10782f4207c25e782491183027f181fa
5
5
  SHA512:
6
- metadata.gz: ca963fd3b6d4e46d12d37e4dd85b3c17f53b035dbc2b269b1a6c95b046f4c8ec206efe5021c3cd4269be314f2bbc1e53bdd81bfe44c36d1f0d44df6e0c29457e
7
- data.tar.gz: ce3c2a2b9cc64155b92e0fa546c1e4a108ca4d3f40806f8592afa47d40f40b6e7a4351a64df8a13d0fee44e7c98159e2e288f7cc0ccaa892741af843efb61bf3
6
+ metadata.gz: bf4b0d8ca8be6609e34083da33dac203699e6bc14cad7110709f5070fd7ca065b563d6fda2afcb10354e0f6c773d756832bb7ce23ddeb4b2d36f499a38bf15b5
7
+ data.tar.gz: da7099f3ecf9ab549c4ae73af0f65c58b947ae407f7a9d02d0585c12b0718d8e7ff9c7ddbdf08bc948581832f8e1f23ab6481872724c786f0474295142db3d1f
@@ -44,7 +44,7 @@ class ActiveRecord::Base
44
44
  inserts << "INTO #{self.table_name} (#{key_list.join(", ")}) VALUES (#{rec.join(", ")})"
45
45
  end
46
46
 
47
- "INSERT ALL #{inserts.join(' ')}"
47
+ "INSERT ALL #{inserts.join(' ')} SELECT 1 FROM DUAL;"
48
48
  end
49
49
 
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.19.4"
2
+ VERSION = "0.19.5"
3
3
  end
@@ -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
@@ -298293,3 +298293,44 @@ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
298293
298293
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298294
298294
   (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298295
298295
   (0.8ms) rollback transaction
298296
+  (0.4ms) begin transaction
298297
+  (0.0ms) SAVEPOINT active_record_1
298298
+ SQL (2.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298300
+  (0.1ms) SAVEPOINT active_record_1
298301
+ SQL (1.0ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298303
+  (0.1ms) SAVEPOINT active_record_1
298304
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298306
+  (0.0ms) SAVEPOINT active_record_1
298307
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298309
+  (0.0ms) SAVEPOINT active_record_1
298310
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298312
+  (0.0ms) SAVEPOINT active_record_1
298313
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298315
+  (0.0ms) SAVEPOINT active_record_1
298316
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298318
+  (0.0ms) SAVEPOINT active_record_1
298319
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298321
+  (0.1ms) DELETE FROM "users";
298322
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298323
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
298324
+  (0.0ms) DELETE FROM "notifiable_apps";
298325
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298326
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298327
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298328
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298329
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298330
+  (0.0ms) DELETE FROM "notifiable_notifications";
298331
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298332
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298333
+  (0.1ms) DELETE FROM "notifiable_statuses";
298334
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298335
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298336
+  (0.6ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.4
4
+ version: 0.19.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Kocemba