robocall 0.1.1 → 0.1.2

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: eb0616d410b6527ecdeb0225d75f483a075ff9d8
4
- data.tar.gz: 7ff5fa2c5136e512db9421bb512cce8e0004b907
3
+ metadata.gz: 73e86470b67cf4916713789d3d8943b613d81db7
4
+ data.tar.gz: 92712ee7f00f9ca3ea0aacc7c60af12178fa55a2
5
5
  SHA512:
6
- metadata.gz: 16b54888bf544d17256e4a3ea3fbca7628c9bf2398cfcdba9add04fc547605586408d64945368e3815554bb570f39b823797cd069a5ef6453abee0d45cf967cd
7
- data.tar.gz: add8172a1012111d9380aa4b5e70b637a9ba37017b5e9018bc2c85264dcded60d808fdac65c5494e4cd51d485af14d67d751bf9af7619b2104444d0ac73706fe
6
+ metadata.gz: 1be78a01a9319c1bad3e1bb59eb99f4312c2b0f20204733dd24f139d8a5fe4b30a7ea6d5bd6d785d53903ede51a276e90c010424c5e85a70cb3706b49c59cda9
7
+ data.tar.gz: 7c4d9846a2fdcfabaf7de8b73e14f9e3161bfb25d2056c38837dc64864bfde0025bfd1ae149255acf224f137f05a8e895e40d0be64a72cc7b851d78b2b9f147f
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
1
  ![Gem Version](https://badge.fury.io/rb/robocall.png)
2
- ![CircleCI](https://circleci.com/gh/Originate/robocall.png)
3
-
2
+ ![CircleCI](https://circleci.com/gh/Originate/robocall.png?circle-token=f5b18cbae4729bcb1b41cccb7f20415c57318b15)
4
3
 
5
4
  ## About
6
5
 
7
- A rails gem to easily add sending synthesized messages from Rails to any phone number.
6
+ A rails gem to easily add sending synthesized messages from Rails to any phone number.
8
7
 
9
8
  ## Install
10
9
 
@@ -33,12 +32,23 @@ Robocall.base_path = 'http://example.com'
33
32
  Now, you can send calls and texts easily using:
34
33
  ``` ruby
35
34
  Robocall.send_text(to: '555 555 5555', text: 'Hey you!')
36
- Robocall.send_robocall(to: '555 555 5555', text: 'This is an bad joke alert.')
35
+ Robocall.send_robocall(to: '555 555 5555', text: 'This is a bad joke alert.')
37
36
  Robocall.send_robocall(to: '555 555 5555', text: 'Hola', lanugage: :spanish)
37
+
38
38
  # Send a twiml xml message as defined here: http://www.twilio.com/docs/api/twiml
39
39
  Robocall.send_robocall_xml(to: '555 555 5555', xml: xml)
40
+
41
+ # Returns the TwilioRuby twilio object for fancyer things
42
+ # See https://github.com/twilio/twilio-ruby
43
+ Robocall.get_twilio()
44
+
45
+ # Deletes any callback record older than 6 hours
46
+ # You may want to run this once a day
47
+ Robocall.cleanup
40
48
  ```
41
49
 
42
- Note: that texts are sent out pretty much from anywhere, but robocalls require the system to be set up on a publically accessible server, because Twilio wants to talk to you.
50
+ Note: that texts are sent out pretty much from anywhere, but robocalls require the system to be set up on a publically accessible server, because Twilio wants to talk to you.
51
+
52
+
43
53
 
44
54
 
@@ -18,16 +18,8 @@ module Robocall
18
18
  error = "No token provided" unless params[:token]
19
19
  error = "The token was invalid" unless @r && @r.token == params[:token]
20
20
  if error != ''
21
- @error = error
22
- template = <<'HAML'
23
- <?xml version='1.0' encoding='UTF-8'?>
24
- %Response
25
- %Say{:voice => 'alice'}
26
- An error has occured retreieveing your automatic message.
27
- Specifically,
28
- = error
29
- HAML
30
- xml = Haml::Engine.new(template).to_html(Object.new, {:error => error} )
21
+ xml = ::Robocall.render_say(text: "An error has occured retrieving your automatic message. "+
22
+ "Specifically, #{error}.")
31
23
  render :xml => xml, :content_type => 'application/xml'
32
24
  else
33
25
  render :xml => @r.xml, :content_type => 'application/xml'
@@ -32,28 +32,37 @@ module Robocall
32
32
  )
33
33
  end
34
34
 
35
- def send_robocall(to: to, text: text, language: 'en-US', from: from_phone_number)
35
+ def send_robocall(to: to, text: text, language: 'en-US', voice: 'alice', from: from_phone_number)
36
36
  # Render XML
37
+ xml = render_say(text: text, language: language, voice: voice)
38
+ send_robocall_xml(to: to, xml: xml, from: from)
39
+ end
40
+
41
+ def get_twilio
42
+ verify_configuration_values(:sid, :auth_token, :from_phone_number, :base_path)
43
+ return Twilio::REST::Client.new sid, auth_token
44
+ end
45
+
46
+ def render_say(text: text, language: 'en-US', voice: 'alice')
37
47
  template = <<'HAML'
38
48
  <?xml version='1.0' encoding='utf-8' ?>
39
49
  %Response
40
- %Say{:voice => 'alice', :language => language}
50
+ %Say{:voice => voice, :language => language}
41
51
  = text
42
52
  HAML
43
53
  data = {}
44
54
  data['text'] = text
45
55
  data['language'] = language
56
+ data['voice'] = voice
46
57
  xml = Haml::Engine.new(template).to_html(Object.new, data )
47
- send_robocall_xml(to: to, xml: xml, from: from)
48
58
  end
49
59
 
50
- private
51
-
52
- def get_twilio
53
- verify_configuration_values(:sid, :auth_token, :from_phone_number, :base_path)
54
- return Twilio::REST::Client.new sid, auth_token
60
+ def cleanup(minutes_old: 360)
61
+ Robocall.delete_all("\"updated_at\" < \"#{minutes_old.minutes.ago}\"")
55
62
  end
56
63
 
64
+ private
65
+
57
66
  def verify_configuration_values(*symbols)
58
67
  absent_values = symbols.select{|symbol| instance_variable_get("@#{symbol}").nil? }
59
68
  raise("Must configure #{absent_values.join(", ")} before making this request.") unless absent_values.empty?
@@ -1,3 +1,3 @@
1
1
  module Robocall
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
Binary file
@@ -1462,3 +1462,129 @@ Connecting to database specified by database.yml
1462
1462
   (2.6ms) DROP TABLE "robocall_robocalls"
1463
1463
   (1.8ms) 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)
1464
1464
   (0.1ms) SELECT version FROM "schema_migrations"
1465
+ Connecting to database specified by database.yml
1466
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1467
+  (0.4ms) select sqlite_version(*)
1468
+  (1.7ms) DROP TABLE "robocall_robocalls"
1469
+  (1.7ms) 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)
1470
+  (0.1ms) SELECT version FROM "schema_migrations"
1471
+ Connecting to database specified by database.yml
1472
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1473
+  (0.3ms) select sqlite_version(*)
1474
+  (3.4ms) DROP TABLE "robocall_robocalls"
1475
+  (1.8ms) 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)
1476
+  (0.1ms) SELECT version FROM "schema_migrations"
1477
+ Connecting to database specified by database.yml
1478
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1479
+  (0.3ms) select sqlite_version(*)
1480
+  (2.7ms) DROP TABLE "robocall_robocalls"
1481
+  (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)
1482
+  (0.1ms) SELECT version FROM "schema_migrations"
1483
+ Connecting to database specified by database.yml
1484
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1485
+  (0.4ms) select sqlite_version(*)
1486
+  (2.7ms) DROP TABLE "robocall_robocalls"
1487
+  (2.0ms) 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)
1488
+  (0.1ms) SELECT version FROM "schema_migrations"
1489
+ Connecting to database specified by database.yml
1490
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1491
+  (0.4ms) select sqlite_version(*)
1492
+  (2.7ms) DROP TABLE "robocall_robocalls"
1493
+  (1.7ms) 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)
1494
+  (0.1ms) SELECT version FROM "schema_migrations"
1495
+ Connecting to database specified by database.yml
1496
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1497
+  (0.4ms) select sqlite_version(*)
1498
+  (2.8ms) DROP TABLE "robocall_robocalls"
1499
+  (1.5ms) 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)
1500
+  (0.1ms) SELECT version FROM "schema_migrations"
1501
+ Connecting to database specified by database.yml
1502
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1503
+  (0.3ms) select sqlite_version(*)
1504
+  (3.0ms) DROP TABLE "robocall_robocalls"
1505
+  (1.8ms) 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)
1506
+  (0.2ms) SELECT version FROM "schema_migrations"
1507
+ Connecting to database specified by database.yml
1508
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1509
+  (0.3ms) select sqlite_version(*)
1510
+  (2.4ms) DROP TABLE "robocall_robocalls"
1511
+  (1.4ms) 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)
1512
+  (0.1ms) SELECT version FROM "schema_migrations"
1513
+ Connecting to database specified by database.yml
1514
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1515
+  (0.4ms) select sqlite_version(*)
1516
+  (2.9ms) DROP TABLE "robocall_robocalls"
1517
+  (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)
1518
+  (0.1ms) SELECT version FROM "schema_migrations"
1519
+ Connecting to database specified by database.yml
1520
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1521
+  (0.4ms) select sqlite_version(*)
1522
+  (3.0ms) DROP TABLE "robocall_robocalls"
1523
+  (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)
1524
+  (0.2ms) SELECT version FROM "schema_migrations"
1525
+ Connecting to database specified by database.yml
1526
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1527
+  (0.3ms) select sqlite_version(*)
1528
+  (2.7ms) DROP TABLE "robocall_robocalls"
1529
+  (2.1ms) 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)
1530
+  (0.2ms) SELECT version FROM "schema_migrations"
1531
+ Connecting to database specified by database.yml
1532
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1533
+  (0.4ms) select sqlite_version(*)
1534
+  (1.8ms) DROP TABLE "robocall_robocalls"
1535
+  (1.7ms) 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)
1536
+  (0.1ms) SELECT version FROM "schema_migrations"
1537
+ Connecting to database specified by database.yml
1538
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1539
+  (0.3ms) select sqlite_version(*)
1540
+  (2.9ms) DROP TABLE "robocall_robocalls"
1541
+  (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)
1542
+  (0.1ms) SELECT version FROM "schema_migrations"
1543
+ Connecting to database specified by database.yml
1544
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1545
+  (0.4ms) select sqlite_version(*)
1546
+  (2.8ms) DROP TABLE "robocall_robocalls"
1547
+  (2.0ms) 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)
1548
+  (0.1ms) SELECT version FROM "schema_migrations"
1549
+ Connecting to database specified by database.yml
1550
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1551
+  (0.3ms) select sqlite_version(*)
1552
+  (2.8ms) DROP TABLE "robocall_robocalls"
1553
+  (1.8ms) 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)
1554
+  (0.1ms) SELECT version FROM "schema_migrations"
1555
+ Connecting to database specified by database.yml
1556
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1557
+  (0.4ms) select sqlite_version(*)
1558
+  (1.5ms) DROP TABLE "robocall_robocalls"
1559
+  (2.0ms) 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)
1560
+  (0.1ms) SELECT version FROM "schema_migrations"
1561
+ Connecting to database specified by database.yml
1562
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1563
+  (0.3ms) select sqlite_version(*)
1564
+  (3.1ms) DROP TABLE "robocall_robocalls"
1565
+  (2.0ms) 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)
1566
+  (0.1ms) SELECT version FROM "schema_migrations"
1567
+ Connecting to database specified by database.yml
1568
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1569
+  (0.4ms) select sqlite_version(*)
1570
+  (2.7ms) DROP TABLE "robocall_robocalls"
1571
+  (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)
1572
+  (0.2ms) SELECT version FROM "schema_migrations"
1573
+ Connecting to database specified by database.yml
1574
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1575
+  (0.3ms) select sqlite_version(*)
1576
+  (2.8ms) DROP TABLE "robocall_robocalls"
1577
+  (1.8ms) 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)
1578
+  (0.1ms) SELECT version FROM "schema_migrations"
1579
+ Connecting to database specified by database.yml
1580
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1581
+  (0.3ms) select sqlite_version(*)
1582
+  (3.5ms) DROP TABLE "robocall_robocalls"
1583
+  (1.8ms) 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)
1584
+  (0.1ms) SELECT version FROM "schema_migrations"
1585
+ Connecting to database specified by database.yml
1586
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1587
+  (0.4ms) select sqlite_version(*)
1588
+  (13.5ms) DROP TABLE "robocall_robocalls"
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
+  (0.1ms) SELECT version FROM "schema_migrations"
@@ -3762,3 +3762,545 @@ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
3762
3762
  SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Mon, 12 Aug 2013 20:48:25 UTC +00:00], ["token", "5f8b65b32ca0558eecab7bf8e66731ac"], ["updated_at", Mon, 12 Aug 2013 20:48:25 UTC +00:00], ["xml", "<?xml version='1.0' encoding='utf-8' ?>\n<Say language='en-US' voice='alice'>\n Hello you there\n</Say>\n"]]
3763
3763
   (0.1ms) RELEASE SAVEPOINT active_record_1
3764
3764
   (0.6ms) rollback transaction
3765
+ Connecting to database specified by database.yml
3766
+  (0.1ms) begin transaction
3767
+ SQL (17.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:30:29 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:30:29 UTC +00:00], ["xml", "<foo>"]]
3768
+  (1.2ms) commit transaction
3769
+  (0.1ms) begin transaction
3770
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3771
+ Parameters: {"token"=>"MyString", "id"=>"1"}
3772
+ Robocall::Robocall Load (0.3ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3773
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.3ms)
3774
+  (0.1ms) rollback transaction
3775
+  (0.1ms) begin transaction
3776
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3777
+ Parameters: {"token"=>"warble", "id"=>"1"}
3778
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3779
+ Completed 500 Internal Server Error in 2ms
3780
+  (0.1ms) rollback transaction
3781
+  (0.1ms) begin transaction
3782
+  (0.1ms) rollback transaction
3783
+  (0.1ms) begin transaction
3784
+  (0.1ms) rollback transaction
3785
+ Connecting to database specified by database.yml
3786
+  (0.1ms) begin transaction
3787
+ SQL (4.4ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:31:38 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:31:38 UTC +00:00], ["xml", "<foo>"]]
3788
+  (3.0ms) commit transaction
3789
+  (0.1ms) begin transaction
3790
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3791
+ Parameters: {"token"=>"MyString", "id"=>"1"}
3792
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3793
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3794
+  (0.1ms) rollback transaction
3795
+  (0.1ms) begin transaction
3796
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3797
+ Parameters: {"token"=>"warble", "id"=>"1"}
3798
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3799
+ Completed 500 Internal Server Error in 2ms
3800
+  (0.1ms) rollback transaction
3801
+  (0.1ms) begin transaction
3802
+  (0.0ms) rollback transaction
3803
+  (0.1ms) begin transaction
3804
+  (0.1ms) rollback transaction
3805
+ Connecting to database specified by database.yml
3806
+  (0.1ms) begin transaction
3807
+ SQL (4.4ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:31:56 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:31:56 UTC +00:00], ["xml", "<foo>"]]
3808
+  (2.2ms) commit transaction
3809
+  (0.1ms) begin transaction
3810
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3811
+ Parameters: {"token"=>"MyString", "id"=>"1"}
3812
+ Robocall::Robocall Load (0.3ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3813
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
3814
+  (0.1ms) rollback transaction
3815
+  (0.1ms) begin transaction
3816
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3817
+ Parameters: {"token"=>"warble", "id"=>"1"}
3818
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3819
+ Completed 500 Internal Server Error in 2ms
3820
+  (0.1ms) rollback transaction
3821
+  (0.1ms) begin transaction
3822
+  (0.1ms) SAVEPOINT active_record_1
3823
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:31:56 UTC +00:00], ["token", "7240c6998232a1dd754d46b340809ae3"], ["updated_at", Tue, 13 Aug 2013 21:31:56 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"]]
3824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3825
+  (0.5ms) rollback transaction
3826
+  (0.1ms) begin transaction
3827
+  (0.1ms) rollback transaction
3828
+ Connecting to database specified by database.yml
3829
+  (0.1ms) begin transaction
3830
+ SQL (4.4ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:34:13 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:34:13 UTC +00:00], ["xml", "<foo>"]]
3831
+  (2.4ms) commit transaction
3832
+  (0.1ms) begin transaction
3833
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3834
+ Parameters: {"token"=>"MyString", "id"=>"1"}
3835
+ Completed 500 Internal Server Error in 0ms
3836
+  (0.1ms) rollback transaction
3837
+  (0.1ms) begin transaction
3838
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3839
+ Parameters: {"token"=>"warble", "id"=>"1"}
3840
+ Completed 500 Internal Server Error in 0ms
3841
+  (0.1ms) rollback transaction
3842
+  (0.1ms) begin transaction
3843
+  (0.1ms) SAVEPOINT active_record_1
3844
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:34:13 UTC +00:00], ["token", "b047c49d3758ed11a26acbda231bfe9e"], ["updated_at", Tue, 13 Aug 2013 21:34:13 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"]]
3845
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3846
+  (0.5ms) rollback transaction
3847
+  (0.1ms) begin transaction
3848
+  (0.1ms) rollback transaction
3849
+ Connecting to database specified by database.yml
3850
+  (0.1ms) begin transaction
3851
+ SQL (5.1ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:34:38 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:34:38 UTC +00:00], ["xml", "<foo>"]]
3852
+  (46.8ms) commit transaction
3853
+  (0.1ms) begin transaction
3854
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3855
+ Parameters: {"token"=>"MyString", "id"=>"1"}
3856
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3857
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3858
+  (0.1ms) rollback transaction
3859
+  (0.1ms) begin transaction
3860
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3861
+ Parameters: {"token"=>"warble", "id"=>"1"}
3862
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3863
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
3864
+  (0.1ms) rollback transaction
3865
+  (0.1ms) begin transaction
3866
+  (0.1ms) SAVEPOINT active_record_1
3867
+ SQL (1.0ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:34:38 UTC +00:00], ["token", "8fed96932c5e76d6005fa5a0cf9b941d"], ["updated_at", Tue, 13 Aug 2013 21:34:38 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"]]
3868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3869
+  (0.5ms) rollback transaction
3870
+  (0.1ms) begin transaction
3871
+  (0.1ms) rollback transaction
3872
+ Connecting to database specified by database.yml
3873
+  (0.1ms) begin transaction
3874
+ SQL (4.8ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:40:11 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:40:11 UTC +00:00], ["xml", "<foo>"]]
3875
+  (1.1ms) commit transaction
3876
+  (0.1ms) begin transaction
3877
+  (0.1ms) rollback transaction
3878
+  (0.1ms) begin transaction
3879
+  (0.1ms) SAVEPOINT active_record_1
3880
+ SQL (0.6ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:40:11 UTC +00:00], ["token", "d9a4175999f8a9fea0e94de257417137"], ["updated_at", Tue, 13 Aug 2013 21:40:11 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"]]
3881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3882
+  (0.5ms) rollback transaction
3883
+  (0.1ms) begin transaction
3884
+  (0.1ms) rollback transaction
3885
+  (0.1ms) begin transaction
3886
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3887
+ Parameters: {"token"=>"MyString", "id"=>"1"}
3888
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3889
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3890
+  (0.1ms) rollback transaction
3891
+  (0.1ms) begin transaction
3892
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3893
+ Parameters: {"token"=>"warble", "id"=>"1"}
3894
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3895
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
3896
+  (0.1ms) rollback transaction
3897
+ Connecting to database specified by database.yml
3898
+  (0.1ms) begin transaction
3899
+ SQL (4.4ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:40:41 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:40:41 UTC +00:00], ["xml", "<foo>"]]
3900
+  (2.6ms) commit transaction
3901
+  (0.1ms) begin transaction
3902
+  (0.1ms) rollback transaction
3903
+  (0.1ms) begin transaction
3904
+  (0.1ms) SAVEPOINT active_record_1
3905
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:40:41 UTC +00:00], ["token", "26a72fc6089c26a9fcf1db2153e11c46"], ["updated_at", Tue, 13 Aug 2013 21:40:41 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"]]
3906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3907
+  (0.5ms) rollback transaction
3908
+  (0.1ms) begin transaction
3909
+  (0.1ms) rollback transaction
3910
+  (0.1ms) begin transaction
3911
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3912
+ Parameters: {"token"=>"MyString", "id"=>"1"}
3913
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3914
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3915
+  (0.1ms) rollback transaction
3916
+  (0.1ms) begin transaction
3917
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3918
+ Parameters: {"token"=>"warble", "id"=>"1"}
3919
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3920
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
3921
+  (0.1ms) rollback transaction
3922
+ Connecting to database specified by database.yml
3923
+  (0.1ms) begin transaction
3924
+ SQL (4.4ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:41:10 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:41:10 UTC +00:00], ["xml", "<foo>"]]
3925
+  (2.4ms) commit transaction
3926
+  (0.1ms) begin transaction
3927
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3928
+ Parameters: {"token"=>"MyString", "id"=>"1"}
3929
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3930
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3931
+  (0.1ms) rollback transaction
3932
+  (0.1ms) begin transaction
3933
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3934
+ Parameters: {"token"=>"warble", "id"=>"1"}
3935
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3936
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3937
+  (0.1ms) rollback transaction
3938
+  (0.1ms) begin transaction
3939
+  (0.1ms) rollback transaction
3940
+  (0.1ms) begin transaction
3941
+  (0.1ms) SAVEPOINT active_record_1
3942
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:41:10 UTC +00:00], ["token", "5efb414f9781449f06ad333f9d45223c"], ["updated_at", Tue, 13 Aug 2013 21:41:10 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"]]
3943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3944
+  (0.5ms) rollback transaction
3945
+  (0.1ms) begin transaction
3946
+  (0.0ms) rollback transaction
3947
+ Connecting to database specified by database.yml
3948
+  (0.1ms) begin transaction
3949
+ SQL (4.1ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:41:41 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:41:41 UTC +00:00], ["xml", "<foo>"]]
3950
+  (1.3ms) commit transaction
3951
+  (0.1ms) begin transaction
3952
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3953
+ Parameters: {"token"=>"warble", "id"=>"1"}
3954
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3955
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3956
+  (0.1ms) rollback transaction
3957
+  (0.1ms) begin transaction
3958
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3959
+ Parameters: {"token"=>"MyString", "id"=>"1"}
3960
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3961
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
3962
+  (0.1ms) rollback transaction
3963
+  (0.1ms) begin transaction
3964
+ SQL (0.3ms) DELETE FROM "robocall_robocalls" WHERE "robocall_robocalls"."conditions" IN ('updated_at < ?', '2013-08-13 15:41:41.976824')
3965
+ SQLite3::SQLException: no such column: robocall_robocalls.conditions: DELETE FROM "robocall_robocalls" WHERE "robocall_robocalls"."conditions" IN ('updated_at < ?', '2013-08-13 15:41:41.976824')
3966
+  (0.1ms) rollback transaction
3967
+  (0.1ms) begin transaction
3968
+  (0.1ms) SAVEPOINT active_record_1
3969
+ SQL (0.6ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:41:41 UTC +00:00], ["token", "869296f81a93bbf27f21280e84cf8304"], ["updated_at", Tue, 13 Aug 2013 21:41:41 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"]]
3970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3971
+  (0.6ms) rollback transaction
3972
+  (0.1ms) begin transaction
3973
+  (0.1ms) rollback transaction
3974
+ Connecting to database specified by database.yml
3975
+  (0.1ms) begin transaction
3976
+ SQL (4.9ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:43:21 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:43:21 UTC +00:00], ["xml", "<foo>"]]
3977
+  (2.5ms) commit transaction
3978
+  (0.1ms) begin transaction
3979
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3980
+ Parameters: {"token"=>"MyString", "id"=>"1"}
3981
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3982
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3983
+  (0.1ms) rollback transaction
3984
+  (0.1ms) begin transaction
3985
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
3986
+ Parameters: {"token"=>"warble", "id"=>"1"}
3987
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
3988
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3989
+  (0.1ms) rollback transaction
3990
+  (0.1ms) begin transaction
3991
+  (0.1ms) rollback transaction
3992
+  (0.1ms) begin transaction
3993
+  (0.1ms) SAVEPOINT active_record_1
3994
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:43:21 UTC +00:00], ["token", "d372a37d7f00bdcfd7a55451450c5137"], ["updated_at", Tue, 13 Aug 2013 21:43:21 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"]]
3995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3996
+  (0.5ms) rollback transaction
3997
+  (0.1ms) begin transaction
3998
+ SQL (0.2ms) DELETE FROM "robocall_robocalls" WHERE "robocall_robocalls"."conditions" IN ('updated_at < ?', '2013-08-13 15:43:21.838828')
3999
+ SQLite3::SQLException: no such column: robocall_robocalls.conditions: DELETE FROM "robocall_robocalls" WHERE "robocall_robocalls"."conditions" IN ('updated_at < ?', '2013-08-13 15:43:21.838828')
4000
+  (0.1ms) rollback transaction
4001
+ Connecting to database specified by database.yml
4002
+  (0.1ms) begin transaction
4003
+ SQL (4.4ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:43:57 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:43:57 UTC +00:00], ["xml", "<foo>"]]
4004
+  (2.6ms) commit transaction
4005
+  (0.1ms) begin transaction
4006
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4007
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4008
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4009
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4010
+  (0.1ms) rollback transaction
4011
+  (0.1ms) begin transaction
4012
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4013
+ Parameters: {"token"=>"warble", "id"=>"1"}
4014
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4015
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4016
+  (0.1ms) rollback transaction
4017
+  (0.1ms) begin transaction
4018
+  (0.1ms) SAVEPOINT active_record_1
4019
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:43:57 UTC +00:00], ["token", "8ca6ab2fa864d5b6d09e09a5d8c4ad4e"], ["updated_at", Tue, 13 Aug 2013 21:43:57 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"]]
4020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4021
+  (0.5ms) rollback transaction
4022
+  (0.1ms) begin transaction
4023
+  (0.1ms) rollback transaction
4024
+  (0.1ms) begin transaction
4025
+  (0.1ms) rollback transaction
4026
+ Connecting to database specified by database.yml
4027
+  (0.1ms) begin transaction
4028
+ SQL (4.3ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:44:45 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:44:45 UTC +00:00], ["xml", "<foo>"]]
4029
+  (2.6ms) commit transaction
4030
+  (0.1ms) begin transaction
4031
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4032
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4033
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4034
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4035
+  (0.1ms) rollback transaction
4036
+  (0.1ms) begin transaction
4037
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4038
+ Parameters: {"token"=>"warble", "id"=>"1"}
4039
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4040
+ Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.2ms)
4041
+  (0.1ms) rollback transaction
4042
+  (0.1ms) begin transaction
4043
+  (0.1ms) SAVEPOINT active_record_1
4044
+ SQL (2.2ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:44:45 UTC +00:00], ["token", "c0c614412ea28772b65c54ed5f0cb236"], ["updated_at", Tue, 13 Aug 2013 21:44: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"]]
4045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4046
+  (0.5ms) rollback transaction
4047
+  (0.1ms) begin transaction
4048
+ SQL (0.2ms) DELETE FROM "robocall_robocalls" WHERE (updated_at < 2013-08-13 15:44:45 UTC)
4049
+ SQLite3::SQLException: near "15": syntax error: DELETE FROM "robocall_robocalls" WHERE (updated_at < 2013-08-13 15:44:45 UTC)
4050
+  (0.1ms) rollback transaction
4051
+  (0.1ms) begin transaction
4052
+  (0.1ms) rollback transaction
4053
+ Connecting to database specified by database.yml
4054
+  (0.1ms) begin transaction
4055
+ SQL (4.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:45:10 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:45:10 UTC +00:00], ["xml", "<foo>"]]
4056
+  (2.5ms) commit transaction
4057
+  (0.1ms) begin transaction
4058
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4059
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4060
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4061
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4062
+  (0.1ms) rollback transaction
4063
+  (0.1ms) begin transaction
4064
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4065
+ Parameters: {"token"=>"warble", "id"=>"1"}
4066
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4067
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
4068
+  (0.1ms) rollback transaction
4069
+  (0.1ms) begin transaction
4070
+  (0.1ms) SAVEPOINT active_record_1
4071
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:45:11 UTC +00:00], ["token", "dd8326fc447588b0fd4c685aa700680d"], ["updated_at", Tue, 13 Aug 2013 21:45:11 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"]]
4072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4073
+  (0.5ms) rollback transaction
4074
+  (0.1ms) begin transaction
4075
+ SQL (0.1ms) DELETE FROM "robocall_robocalls" WHERE ("updated_at" < 2013-08-13 15:45:11 UTC)
4076
+ SQLite3::SQLException: near "15": syntax error: DELETE FROM "robocall_robocalls" WHERE ("updated_at" < 2013-08-13 15:45:11 UTC)
4077
+  (0.1ms) rollback transaction
4078
+  (0.1ms) begin transaction
4079
+  (0.1ms) rollback transaction
4080
+ Connecting to database specified by database.yml
4081
+  (0.1ms) begin transaction
4082
+ SQL (4.2ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:45:30 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:45:30 UTC +00:00], ["xml", "<foo>"]]
4083
+  (2.5ms) commit transaction
4084
+  (0.1ms) begin transaction
4085
+ SQL (0.2ms) DELETE FROM "robocall_robocalls" WHERE ("updated_at" < "2013-08-13 15:45:30 UTC")
4086
+  (0.1ms) rollback transaction
4087
+  (0.1ms) begin transaction
4088
+  (0.1ms) SAVEPOINT active_record_1
4089
+ SQL (0.6ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:45:30 UTC +00:00], ["token", "97aaca31ec58857807c99070c2965ce5"], ["updated_at", Tue, 13 Aug 2013 21:45:30 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"]]
4090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4091
+  (0.5ms) rollback transaction
4092
+  (0.1ms) begin transaction
4093
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4094
+ Parameters: {"token"=>"warble", "id"=>"1"}
4095
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4096
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4097
+  (0.1ms) rollback transaction
4098
+  (0.1ms) begin transaction
4099
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4100
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4101
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4102
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
4103
+  (0.1ms) rollback transaction
4104
+  (0.1ms) begin transaction
4105
+  (0.1ms) rollback transaction
4106
+ Connecting to database specified by database.yml
4107
+  (0.1ms) begin transaction
4108
+ SQL (4.3ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:50:32 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:50:32 UTC +00:00], ["xml", "<foo>"]]
4109
+  (1.4ms) commit transaction
4110
+  (0.1ms) begin transaction
4111
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4112
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4113
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4114
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4115
+  (0.1ms) rollback transaction
4116
+  (0.1ms) begin transaction
4117
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4118
+ Parameters: {"token"=>"warble", "id"=>"1"}
4119
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4120
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4121
+  (0.1ms) rollback transaction
4122
+  (0.1ms) begin transaction
4123
+  (0.1ms) SAVEPOINT active_record_1
4124
+ SQL (0.6ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:50:32 UTC +00:00], ["token", "77b0095ae2422150ef1ea761523c3072"], ["updated_at", Tue, 13 Aug 2013 21:50:32 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"]]
4125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4126
+  (0.5ms) rollback transaction
4127
+  (0.1ms) begin transaction
4128
+ SQL (0.2ms) DELETE FROM "robocall_robocalls" WHERE ("updated_at" < "2013-08-13 15:50:32 UTC")
4129
+  (0.1ms) rollback transaction
4130
+  (0.1ms) begin transaction
4131
+  (0.1ms) rollback transaction
4132
+ Connecting to database specified by database.yml
4133
+  (0.1ms) begin transaction
4134
+ SQL (4.2ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:50:45 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:50:45 UTC +00:00], ["xml", "<foo>"]]
4135
+  (2.5ms) commit transaction
4136
+  (0.1ms) begin transaction
4137
+  (0.1ms) SAVEPOINT active_record_1
4138
+ SQL (0.6ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:50:45 UTC +00:00], ["token", "52eb2dd318eb40ff03455e34845c00e6"], ["updated_at", Tue, 13 Aug 2013 21:50: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"]]
4139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4140
+  (0.5ms) rollback transaction
4141
+  (0.1ms) begin transaction
4142
+ SQL (0.2ms) DELETE FROM "robocall_robocalls" WHERE ("updated_at" < "2013-08-13 15:50:45 UTC")
4143
+  (0.1ms) rollback transaction
4144
+  (0.1ms) begin transaction
4145
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4146
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4147
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4148
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4149
+  (0.1ms) rollback transaction
4150
+  (0.1ms) begin transaction
4151
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4152
+ Parameters: {"token"=>"warble", "id"=>"1"}
4153
+ Robocall::Robocall Load (0.3ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4154
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
4155
+  (0.1ms) rollback transaction
4156
+  (0.1ms) begin transaction
4157
+  (0.1ms) rollback transaction
4158
+ Connecting to database specified by database.yml
4159
+  (0.1ms) begin transaction
4160
+ SQL (4.2ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:51:02 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:51:02 UTC +00:00], ["xml", "<foo>"]]
4161
+  (2.4ms) commit transaction
4162
+  (0.1ms) begin transaction
4163
+  (0.1ms) SAVEPOINT active_record_1
4164
+ SQL (0.6ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:51:02 UTC +00:00], ["token", "cdf53114f03fcddddbe23e6217fa8954"], ["updated_at", Tue, 13 Aug 2013 21:51:02 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"]]
4165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4166
+  (0.5ms) rollback transaction
4167
+  (0.1ms) begin transaction
4168
+ SQL (0.2ms) DELETE FROM "robocall_robocalls" WHERE ("updated_at" < "2013-08-13 15:51:02 UTC")
4169
+  (0.1ms) rollback transaction
4170
+  (0.1ms) begin transaction
4171
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4172
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4173
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4174
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4175
+  (0.1ms) rollback transaction
4176
+  (0.1ms) begin transaction
4177
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4178
+ Parameters: {"token"=>"warble", "id"=>"1"}
4179
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4180
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
4181
+  (0.1ms) rollback transaction
4182
+  (0.1ms) begin transaction
4183
+  (0.1ms) rollback transaction
4184
+ Connecting to database specified by database.yml
4185
+  (0.1ms) begin transaction
4186
+ SQL (4.3ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:51:15 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:51:15 UTC +00:00], ["xml", "<foo>"]]
4187
+  (1.4ms) commit transaction
4188
+  (0.1ms) begin transaction
4189
+  (0.1ms) SAVEPOINT active_record_1
4190
+ SQL (0.6ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:51:15 UTC +00:00], ["token", "195d6fd36c783a4b79a2908c6df09d6e"], ["updated_at", Tue, 13 Aug 2013 21:51:15 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"]]
4191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4192
+ Robocall::Robocall Load (0.1ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls"
4193
+  (0.6ms) rollback transaction
4194
+  (0.1ms) begin transaction
4195
+ SQL (0.2ms) DELETE FROM "robocall_robocalls" WHERE ("updated_at" < "2013-08-13 15:51:15 UTC")
4196
+  (0.1ms) rollback transaction
4197
+  (0.1ms) begin transaction
4198
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4199
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4200
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4201
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4202
+  (0.1ms) rollback transaction
4203
+  (0.1ms) begin transaction
4204
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4205
+ Parameters: {"token"=>"warble", "id"=>"1"}
4206
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4207
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4208
+  (0.1ms) rollback transaction
4209
+  (0.1ms) begin transaction
4210
+  (0.1ms) rollback transaction
4211
+ Connecting to database specified by database.yml
4212
+  (0.1ms) begin transaction
4213
+ SQL (4.2ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:51:43 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:51:43 UTC +00:00], ["xml", "<foo>"]]
4214
+  (2.3ms) commit transaction
4215
+  (0.1ms) begin transaction
4216
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4217
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4218
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4219
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4220
+  (0.1ms) rollback transaction
4221
+  (0.1ms) begin transaction
4222
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4223
+ Parameters: {"token"=>"warble", "id"=>"1"}
4224
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4225
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
4226
+  (0.1ms) rollback transaction
4227
+  (0.1ms) begin transaction
4228
+  (0.1ms) rollback transaction
4229
+  (0.1ms) begin transaction
4230
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" 
4231
+  (0.1ms) SAVEPOINT active_record_1
4232
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:51:43 UTC +00:00], ["token", "0b888c2146545ab2022797774836c164"], ["updated_at", Tue, 13 Aug 2013 21:51:43 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"]]
4233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4234
+ Robocall::Robocall Load (0.1ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" 
4235
+  (0.5ms) rollback transaction
4236
+  (0.1ms) begin transaction
4237
+ SQL (0.2ms) DELETE FROM "robocall_robocalls" WHERE ("updated_at" < "2013-08-13 15:51:43 UTC")
4238
+  (0.1ms) rollback transaction
4239
+ Connecting to database specified by database.yml
4240
+  (0.1ms) begin transaction
4241
+ SQL (4.4ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:52:57 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:52:57 UTC +00:00], ["xml", "<foo>"]]
4242
+  (2.2ms) commit transaction
4243
+  (0.1ms) begin transaction
4244
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4245
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4246
+ Robocall::Robocall Load (0.3ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4247
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
4248
+  (0.1ms) rollback transaction
4249
+  (0.1ms) begin transaction
4250
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4251
+ Parameters: {"token"=>"warble", "id"=>"1"}
4252
+ Robocall::Robocall Load (0.3ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4253
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
4254
+  (0.1ms) rollback transaction
4255
+  (0.1ms) begin transaction
4256
+  (0.1ms) rollback transaction
4257
+  (0.1ms) begin transaction
4258
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" 
4259
+  (0.1ms) SAVEPOINT active_record_1
4260
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:52:57 UTC +00:00], ["token", "a3cfd37992433d7984e78b374e2cc30d"], ["updated_at", Tue, 13 Aug 2013 21:52:57 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"]]
4261
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4262
+ Robocall::Robocall Load (0.1ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" 
4263
+  (0.5ms) rollback transaction
4264
+  (0.1ms) begin transaction
4265
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" LIMIT 1
4266
+  (0.1ms) SAVEPOINT active_record_1
4267
+  (0.5ms) UPDATE "robocall_robocalls" SET "updated_at" = '2013-08-10 21:52:57.385884' WHERE "robocall_robocalls"."id" = 1
4268
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4269
+ Robocall::Robocall Load (0.1ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls"
4270
+ SQL (0.1ms) DELETE FROM "robocall_robocalls" WHERE ("updated_at" < "2013-08-13 15:52:57 UTC")
4271
+ Robocall::Robocall Load (0.1ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls"
4272
+  (0.5ms) rollback transaction
4273
+ Connecting to database specified by database.yml
4274
+  (0.1ms) begin transaction
4275
+ SQL (4.3ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:53:09 UTC +00:00], ["token", "MyString"], ["updated_at", Tue, 13 Aug 2013 21:53:09 UTC +00:00], ["xml", "<foo>"]]
4276
+  (1.6ms) commit transaction
4277
+  (0.1ms) begin transaction
4278
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4279
+ Parameters: {"token"=>"warble", "id"=>"1"}
4280
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4281
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
4282
+  (0.1ms) rollback transaction
4283
+  (0.1ms) begin transaction
4284
+ Processing by Robocall::RobocallsController#connected_to_caller as HTML
4285
+ Parameters: {"token"=>"MyString", "id"=>"1"}
4286
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" WHERE "robocall_robocalls"."id" = 1 LIMIT 1
4287
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
4288
+  (0.1ms) rollback transaction
4289
+  (0.1ms) begin transaction
4290
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" LIMIT 1
4291
+  (0.0ms) SAVEPOINT active_record_1
4292
+  (0.4ms) UPDATE "robocall_robocalls" SET "updated_at" = '2013-08-10 21:53:09.699428' WHERE "robocall_robocalls"."id" = 1
4293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4294
+ Robocall::Robocall Load (0.1ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" 
4295
+ SQL (0.1ms) DELETE FROM "robocall_robocalls" WHERE ("updated_at" < "2013-08-13 15:53:09 UTC")
4296
+ Robocall::Robocall Load (0.1ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls" 
4297
+  (0.5ms) rollback transaction
4298
+  (0.1ms) begin transaction
4299
+ Robocall::Robocall Load (0.2ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls"
4300
+  (0.1ms) SAVEPOINT active_record_1
4301
+ SQL (0.5ms) INSERT INTO "robocall_robocalls" ("created_at", "token", "updated_at", "xml") VALUES (?, ?, ?, ?) [["created_at", Tue, 13 Aug 2013 21:53:09 UTC +00:00], ["token", "60f5d5ddd1e4e7b588b771982d6e1daf"], ["updated_at", Tue, 13 Aug 2013 21:53:09 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"]]
4302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4303
+ Robocall::Robocall Load (0.1ms) SELECT "robocall_robocalls".* FROM "robocall_robocalls"
4304
+  (0.5ms) rollback transaction
4305
+  (0.1ms) begin transaction
4306
+  (0.1ms) rollback transaction
@@ -14,7 +14,18 @@ describe 'robocall' do
14
14
  end
15
15
 
16
16
  it 'should create a record' do
17
+ ::Robocall::Robocall.all.should have(1).item
17
18
  Robocall.send_robocall(to: "555 555 5555", text: "Hello you there")
19
+ ::Robocall::Robocall.all.should have(2).item
20
+ end
21
+
22
+ it 'should delete a record' do
23
+ r = ::Robocall::Robocall.first
24
+ r.updated_at = 3.days.ago
25
+ r.save
26
+ ::Robocall::Robocall.all.should have(1).item
27
+ Robocall.cleanup
28
+ ::Robocall::Robocall.all.should have(0).item
18
29
  end
19
30
 
20
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robocall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reto Stamm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-12 00:00:00.000000000 Z
11
+ date: 2013-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails