robocall 0.1.2 → 0.1.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: 73e86470b67cf4916713789d3d8943b613d81db7
4
- data.tar.gz: 92712ee7f00f9ca3ea0aacc7c60af12178fa55a2
3
+ metadata.gz: de8b7c6ccbdbef8711962847d95c15db239b7d43
4
+ data.tar.gz: 0f9f8f02e99524d84ea1d7fd65789a3882fd8ad7
5
5
  SHA512:
6
- metadata.gz: 1be78a01a9319c1bad3e1bb59eb99f4312c2b0f20204733dd24f139d8a5fe4b30a7ea6d5bd6d785d53903ede51a276e90c010424c5e85a70cb3706b49c59cda9
7
- data.tar.gz: 7c4d9846a2fdcfabaf7de8b73e14f9e3161bfb25d2056c38837dc64864bfde0025bfd1ae149255acf224f137f05a8e895e40d0be64a72cc7b851d78b2b9f147f
6
+ metadata.gz: e7822bd74dd2458a45ddfd15810068ff2097fcb66a5de79b86bed35df6366cdf1790123d842744dae8a829d8a2e668363b1468d2e11e6d4b11d994b720ae41e7
7
+ data.tar.gz: 44b2a16d44091fa06a742ae53b7c5051057c5b73558114feb83c993cca69576b0372d817a1278356a38b77239a3522201a400b9106af470623c88797e89bbf1c
data/lib/robocall.rb CHANGED
@@ -58,7 +58,7 @@ HAML
58
58
  end
59
59
 
60
60
  def cleanup(minutes_old: 360)
61
- Robocall.delete_all("\"updated_at\" < \"#{minutes_old.minutes.ago}\"")
61
+ Robocall.delete_all(["updated_at < ?", minutes_old.minutes.ago])
62
62
  end
63
63
 
64
64
  private
@@ -1,3 +1,3 @@
1
1
  module Robocall
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
Binary file
@@ -1588,3 +1588,9 @@ Connecting to database specified by database.yml
1588
1588
   (13.5ms) DROP TABLE "robocall_robocalls"
1589
1589
   (1.3ms) CREATE TABLE "robocall_robocalls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "xml" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1590
1590
   (0.1ms) SELECT version FROM "schema_migrations"
1591
+ Connecting to database specified by database.yml
1592
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1593
+  (0.4ms) select sqlite_version(*)
1594
+  (2.8ms) DROP TABLE "robocall_robocalls"
1595
+  (1.9ms) CREATE TABLE "robocall_robocalls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "xml" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1596
+  (0.2ms) SELECT version FROM "schema_migrations"
@@ -4304,3 +4304,37 @@ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
4304
4304
   (0.5ms) rollback transaction
4305
4305
   (0.1ms) begin transaction
4306
4306
   (0.1ms) rollback transaction
4307
+ Connecting to database specified by database.yml
4308
+  (0.1ms) begin transaction
4309
+ SQL (4.8ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 22:07:45 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 22:07:45 UTC +00:00], ["xml", "<foo>"]]
4310
+  (1.4ms) commit transaction
4311
+  (0.1ms) begin transaction
4312
+  (0.1ms) rollback transaction
4313
+  (0.1ms) begin transaction
4314
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" 
4315
+  (0.1ms) SAVEPOINT active_record_1
4316
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 22:07:45 UTC +00:00], ["token", "6b1055b6e13ece02eafc680e783ab140"], ["updated_at", Tue, 13 Aug 2013 22:07:45 UTC +00:00], ["xml", "<?xml version='1.0' encoding='utf-8' ?>\n<Response>\n <Say language='en-US' voice='alice'>\n Hello you there\n </Say>\n</Response>\n"]]
4317
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4318
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" 
4319
+  (0.6ms) rollback transaction
4320
+  (0.1ms) begin transaction
4321
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" LIMIT 1
4322
+  (0.0ms) SAVEPOINT active_record_1
4323
+  (0.4ms) UPDATE "robocall_robocalls" SET "updated_at" = '2013-08-10 22:07:45.464497' WHERE "robocall_robocalls"."id" = 1
4324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4325
+ Robocall::Robocall Load (0.1ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls"
4326
+ SQL (0.1ms) DELETE FROM "robocall_robocalls" WHERE (updated_at < '2013-08-13 16:07:45.468541')
4327
+ Robocall::Robocall Load (0.1ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls"
4328
+  (0.6ms) rollback transaction
4329
+  (0.1ms) begin transaction
4330
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4331
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4332
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4333
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4334
+  (0.1ms) rollback transaction
4335
+  (0.1ms) begin transaction
4336
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4337
+ Parameters: {"token"=>"warble", "id"=>"1"}
4338
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4339
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
4340
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robocall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reto Stamm