letter_bomb 0.0.2 → 0.0.3

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: ca88daac8b46e5920ae83fb0df5232d37deab93d
4
- data.tar.gz: e01a4819e6c2717b49db1a82f7c34590b29d5804
3
+ metadata.gz: 9991dbcaffe0d0867991bb6042a614092d9f3c87
4
+ data.tar.gz: 6c98d12dd142a1d7e3d2957a3f76d4fcb223457e
5
5
  SHA512:
6
- metadata.gz: df503fcfd3a2406b40c15dc87780c24b8ae38c6c0ae575cf48fb0389ca9b086f1b3995240f000651a38defc82f5f40f19ecac5dcaec39f7b138dd61fdc01c2ea
7
- data.tar.gz: b063d82333e4db87cd7560265921d64e3bfb3046b021f9d607b5ccd83de8e41b9e1a9d865ba5967bd6e9213efe484536046efbef8fb06d89e5e6ba87fb95c071
6
+ metadata.gz: c14a6965718ee08b188073aa169693b383638350bef15c49f0a5164548ce1b8ca69f9526d10aa15972291b2fa5fd24a4763b8823fa2cd725268a674ac4a7a00f
7
+ data.tar.gz: 42fd06f8d046c24bdde371cc807949282c37b2de382d7bf86ba7a3aaac34826a61d11d014e7a3d864685edf1b23a38dfba9f91fdad2784395b682ffe73395a0f
data/README.md CHANGED
@@ -20,7 +20,9 @@ Usage
20
20
  Mount the engine in your `routes.rb`:
21
21
 
22
22
  ```ruby
23
- mount LetterBomb::Engine, at: '/letter_bomb'
23
+ if Rails.env.development?
24
+ mount LetterBomb::Engine, at: '/letter_bomb'
25
+ end
24
26
  ```
25
27
 
26
28
  and hit `/letter_bomb` for a list of previews.
@@ -10,6 +10,8 @@ module LetterBomb
10
10
  @action = params[:mailer_action]
11
11
  @mail = klass.constantize.preview_action(@action)
12
12
 
13
+ params[:format] ||= @mail.multipart? ? "html" : "text"
14
+
13
15
  respond_to do |format|
14
16
  format.html
15
17
  format.text { render formats: [:html], content_type: 'text/html' }
@@ -5,7 +5,7 @@
5
5
 
6
6
  <ul>
7
7
  <% mailer.mailer_actions.each do |action| %>
8
- <li><%= link_to action, mailer_path(mailer.to_s, action, format: :html) %></li>
8
+ <li><%= link_to action, mailer_path(mailer.to_s, action) %></li>
9
9
  <% end %>
10
10
  </ul>
11
11
 
@@ -91,5 +91,7 @@
91
91
  <% if html_template? %>
92
92
  <%= body_part.body.to_s.html_safe %>
93
93
  <% else %>
94
- <pre id="message_body"><%= body_part.body %></pre>
94
+ <pre id="message_body">
95
+ <%= body_part.body %>
96
+ </pre>
95
97
  <% end %>
@@ -26,6 +26,11 @@ module LetterBomb
26
26
  @@factory_girl = true
27
27
  end
28
28
 
29
+ # TODO when we have refinements, refine String
30
+ def self.lchomp(target, removable)
31
+ target.to_s.reverse.chomp(removable.to_s.reverse).reverse
32
+ end
33
+
29
34
  def initialize
30
35
  if defined?(@@factory_girl) && !defined?(FactoryGirl)
31
36
  require 'factory_girl'
@@ -33,9 +38,5 @@ module LetterBomb
33
38
  end
34
39
  end
35
40
 
36
- def self.lchomp(base, arg)
37
- base.to_s.reverse.chomp(arg.to_s.reverse).reverse
38
- end
39
-
40
41
  end
41
42
  end
@@ -1,3 +1,3 @@
1
1
  module LetterBomb
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -10566,3 +10566,153 @@ ActionController::RoutingError (No route matches [GET] "/login"):
10566
10566
 
10567
10567
 
10568
10568
  Rendered /Users/ags/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
10569
+
10570
+
10571
+ Started GET "/UserMailer::Preview/welcome.html" for 127.0.0.1 at 2013-05-01 22:30:32 +1000
10572
+ Processing by LetterBomb::MailersController#show as HTML
10573
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10574
+  (0.1ms) begin transaction
10575
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:32 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:32 UTC +00:00]]
10576
+ Rendered user_mailer/welcome.html.erb (0.4ms)
10577
+ Rendered user_mailer/welcome.text.erb (0.2ms)
10578
+  (0.6ms) rollback transaction
10579
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.8ms)
10580
+ Completed 200 OK in 17ms (Views: 2.2ms | ActiveRecord: 1.0ms)
10581
+
10582
+
10583
+ Started GET "/UserMailer::Preview/welcome.html" for 127.0.0.1 at 2013-05-01 22:30:33 +1000
10584
+ Processing by LetterBomb::MailersController#show as HTML
10585
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10586
+  (0.1ms) begin transaction
10587
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:33 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:33 UTC +00:00]]
10588
+ Rendered user_mailer/welcome.html.erb (0.0ms)
10589
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10590
+  (1.4ms) rollback transaction
10591
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.8ms)
10592
+ Completed 200 OK in 16ms (Views: 2.2ms | ActiveRecord: 1.9ms)
10593
+
10594
+
10595
+ Started GET "/UserMailer::Preview/welcome.txt" for 127.0.0.1 at 2013-05-01 22:30:34 +1000
10596
+ Processing by LetterBomb::MailersController#show as TEXT
10597
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10598
+  (0.1ms) begin transaction
10599
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:34 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:34 UTC +00:00]]
10600
+ Rendered user_mailer/welcome.html.erb (0.0ms)
10601
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10602
+  (1.5ms) rollback transaction
10603
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.8ms)
10604
+ Completed 200 OK in 17ms (Views: 2.3ms | ActiveRecord: 2.0ms)
10605
+
10606
+
10607
+ Started GET "/UserMailer::Preview/welcome.html" for 127.0.0.1 at 2013-05-01 22:30:34 +1000
10608
+ Processing by LetterBomb::MailersController#show as HTML
10609
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10610
+  (0.1ms) begin transaction
10611
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:34 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:34 UTC +00:00]]
10612
+ Rendered user_mailer/welcome.html.erb (0.0ms)
10613
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10614
+  (1.4ms) rollback transaction
10615
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.8ms)
10616
+ Completed 200 OK in 17ms (Views: 2.3ms | ActiveRecord: 1.9ms)
10617
+
10618
+
10619
+ Started GET "/UserMailer::Preview/welcome.txt" for 127.0.0.1 at 2013-05-01 22:30:35 +1000
10620
+ Processing by LetterBomb::MailersController#show as TEXT
10621
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10622
+  (0.1ms) begin transaction
10623
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:35 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:35 UTC +00:00]]
10624
+ Rendered user_mailer/welcome.html.erb (0.0ms)
10625
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10626
+  (1.6ms) rollback transaction
10627
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.8ms)
10628
+ Completed 200 OK in 17ms (Views: 2.3ms | ActiveRecord: 2.1ms)
10629
+
10630
+
10631
+ Started GET "/UserMailer::Preview/welcome.html" for 127.0.0.1 at 2013-05-01 22:30:35 +1000
10632
+ Processing by LetterBomb::MailersController#show as HTML
10633
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10634
+  (0.1ms) begin transaction
10635
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:35 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:35 UTC +00:00]]
10636
+ Rendered user_mailer/welcome.html.erb (0.0ms)
10637
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10638
+  (1.7ms) rollback transaction
10639
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.9ms)
10640
+ Completed 200 OK in 17ms (Views: 2.4ms | ActiveRecord: 2.2ms)
10641
+
10642
+
10643
+ Started GET "/UserMailer::Preview/welcome.txt" for 127.0.0.1 at 2013-05-01 22:30:36 +1000
10644
+ Processing by LetterBomb::MailersController#show as TEXT
10645
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10646
+  (0.0ms) begin transaction
10647
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:36 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:36 UTC +00:00]]
10648
+ Rendered user_mailer/welcome.html.erb (0.0ms)
10649
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10650
+  (1.6ms) rollback transaction
10651
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.8ms)
10652
+ Completed 200 OK in 17ms (Views: 2.2ms | ActiveRecord: 2.0ms)
10653
+
10654
+
10655
+ Started GET "/UserMailer::Preview/welcome.html" for 127.0.0.1 at 2013-05-01 22:30:36 +1000
10656
+ Processing by LetterBomb::MailersController#show as HTML
10657
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10658
+  (0.1ms) begin transaction
10659
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:36 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:36 UTC +00:00]]
10660
+ Rendered user_mailer/welcome.html.erb (0.0ms)
10661
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10662
+  (0.4ms) rollback transaction
10663
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.8ms)
10664
+ Completed 200 OK in 15ms (Views: 2.2ms | ActiveRecord: 0.8ms)
10665
+
10666
+
10667
+ Started GET "/UserMailer::Preview/welcome.txt" for 127.0.0.1 at 2013-05-01 22:30:37 +1000
10668
+ Processing by LetterBomb::MailersController#show as TEXT
10669
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10670
+  (0.1ms) begin transaction
10671
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:37 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:37 UTC +00:00]]
10672
+ Rendered user_mailer/welcome.html.erb (0.0ms)
10673
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10674
+  (1.5ms) rollback transaction
10675
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.9ms)
10676
+ Completed 200 OK in 17ms (Views: 2.5ms | ActiveRecord: 2.0ms)
10677
+
10678
+
10679
+ Started GET "/UserMailer::Preview/welcome.html" for 127.0.0.1 at 2013-05-01 22:30:37 +1000
10680
+ Processing by LetterBomb::MailersController#show as HTML
10681
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10682
+  (0.1ms) begin transaction
10683
+ SQL (24.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:37 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:37 UTC +00:00]]
10684
+ Rendered user_mailer/welcome.html.erb (0.0ms)
10685
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10686
+  (1.7ms) rollback transaction
10687
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.9ms)
10688
+ Completed 200 OK in 41ms (Views: 2.6ms | ActiveRecord: 25.9ms)
10689
+
10690
+
10691
+ Started GET "/UserMailer::Preview/welcome.txt" for 127.0.0.1 at 2013-05-01 22:30:38 +1000
10692
+ Processing by LetterBomb::MailersController#show as TEXT
10693
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10694
+  (0.1ms) begin transaction
10695
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:38 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:38 UTC +00:00]]
10696
+ Rendered user_mailer/welcome.html.erb (0.0ms)
10697
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10698
+  (1.7ms) rollback transaction
10699
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.9ms)
10700
+ Completed 200 OK in 18ms (Views: 2.5ms | ActiveRecord: 2.1ms)
10701
+
10702
+
10703
+ Started GET "/UserMailer::Preview/welcome.html" for 127.0.0.1 at 2013-05-01 22:30:38 +1000
10704
+ Processing by LetterBomb::MailersController#show as HTML
10705
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
10706
+  (0.1ms) begin transaction
10707
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:30:38 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:30:38 UTC +00:00]]
10708
+ Rendered user_mailer/welcome.html.erb (0.1ms)
10709
+ Rendered user_mailer/welcome.text.erb (0.0ms)
10710
+  (1.6ms) rollback transaction
10711
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (0.9ms)
10712
+ Completed 200 OK in 18ms (Views: 2.3ms | ActiveRecord: 2.0ms)
10713
+
10714
+
10715
+ Started GET "/" for 127.0.0.1 at 2013-05-02 01:54:34 +1000
10716
+ Processing by LetterBomb::MailersController#index as HTML
10717
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/index.html.erb within layouts/letter_bomb/application (1.4ms)
10718
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
@@ -911,3 +911,445 @@ Started GET "/" for 127.0.0.1 at 2013-05-01 21:00:47 +1000
911
911
  Processing by LetterBomb::MailersController#index as HTML
912
912
  Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)
913
913
   (0.0ms) rollback transaction
914
+ Connecting to database specified by database.yml
915
+  (0.2ms) begin transaction
916
+ Started GET "/" for 127.0.0.1 at 2013-05-01 22:09:44 +1000
917
+ Processing by LetterBomb::MailersController#index as HTML
918
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/index.html.erb within layouts/letter_bomb/application (1.8ms)
919
+ Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
920
+  (0.1ms) rollback transaction
921
+  (0.0ms) begin transaction
922
+  (0.0ms) SELECT COUNT(*) FROM "users"
923
+  (0.0ms) SAVEPOINT active_record_1
924
+ SQL (2.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:09:44 UTC +00:00], ["name", "bob"], ["updated_at", Wed, 01 May 2013 12:09:44 UTC +00:00]]
925
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
926
+  (0.0ms) SELECT COUNT(*) FROM "users"
927
+  (0.5ms) rollback transaction
928
+  (0.0ms) begin transaction
929
+  (0.0ms) SAVEPOINT active_record_1
930
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:09:44 UTC +00:00], ["name", "bob"], ["updated_at", Wed, 01 May 2013 12:09:44 UTC +00:00]]
931
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
932
+  (0.3ms) rollback transaction
933
+  (0.0ms) begin transaction
934
+  (0.0ms) rollback transaction
935
+  (0.0ms) begin transaction
936
+  (0.1ms) rollback transaction
937
+  (0.1ms) begin transaction
938
+  (0.0ms) rollback transaction
939
+  (0.0ms) begin transaction
940
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-01 22:09:44 +1000
941
+ Processing by LetterBomb::MailersController#show as HTML
942
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
943
+  (0.1ms) SAVEPOINT active_record_1
944
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:09:44 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:09:44 UTC +00:00]]
945
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
946
+ Completed 200 OK in 20ms (Views: 3.7ms | ActiveRecord: 0.5ms)
947
+  (0.4ms) rollback transaction
948
+  (0.0ms) begin transaction
949
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-01 22:09:44 +1000
950
+ Processing by LetterBomb::MailersController#show as HTML
951
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
952
+  (0.0ms) SAVEPOINT active_record_1
953
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:09:44 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:09:44 UTC +00:00]]
954
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
955
+ Completed 200 OK in 12ms (Views: 1.1ms | ActiveRecord: 0.4ms)
956
+  (0.4ms) rollback transaction
957
+  (0.0ms) begin transaction
958
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-01 22:09:44 +1000
959
+ Processing by LetterBomb::MailersController#show as HTML
960
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
961
+  (0.0ms) SAVEPOINT active_record_1
962
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:09:44 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:09:44 UTC +00:00]]
963
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
964
+ Completed 200 OK in 63ms (Views: 1.2ms | ActiveRecord: 0.5ms)
965
+  (0.4ms) rollback transaction
966
+  (0.0ms) begin transaction
967
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-01 22:09:44 +1000
968
+ Processing by LetterBomb::MailersController#show as HTML
969
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
970
+  (0.0ms) SAVEPOINT active_record_1
971
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 12:09:44 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 12:09:44 UTC +00:00]]
972
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
973
+ Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 0.4ms)
974
+  (0.5ms) rollback transaction
975
+ Connecting to database specified by database.yml
976
+  (0.3ms) begin transaction
977
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-02 01:25:09 +1000
978
+ Processing by LetterBomb::MailersController#show as HTML
979
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
980
+  (0.1ms) SAVEPOINT active_record_1
981
+ SQL (3.9ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 15:25:09 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 15:25:09 UTC +00:00]]
982
+ Rendered user_mailer/welcome.html.erb (0.9ms)
983
+ Rendered user_mailer/welcome.text.erb (0.3ms)
984
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
985
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (2.9ms)
986
+ Completed 200 OK in 37ms (Views: 5.7ms | ActiveRecord: 5.3ms)
987
+  (0.4ms) rollback transaction
988
+  (0.0ms) begin transaction
989
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-02 01:25:09 +1000
990
+ Processing by LetterBomb::MailersController#show as HTML
991
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
992
+  (0.0ms) SAVEPOINT active_record_1
993
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 15:25:09 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 15:25:09 UTC +00:00]]
994
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
995
+ Completed 200 OK in 13ms (Views: 1.2ms | ActiveRecord: 0.5ms)
996
+  (0.5ms) rollback transaction
997
+  (0.0ms) begin transaction
998
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-02 01:25:09 +1000
999
+ Processing by LetterBomb::MailersController#show as HTML
1000
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1001
+  (0.0ms) SAVEPOINT active_record_1
1002
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 15:25:09 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 15:25:09 UTC +00:00]]
1003
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1004
+ Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 0.5ms)
1005
+  (0.5ms) rollback transaction
1006
+  (0.0ms) begin transaction
1007
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-02 01:25:09 +1000
1008
+ Processing by LetterBomb::MailersController#show as HTML
1009
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1010
+  (0.0ms) SAVEPOINT active_record_1
1011
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 15:25:09 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 15:25:09 UTC +00:00]]
1012
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1013
+ Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 0.4ms)
1014
+  (0.6ms) rollback transaction
1015
+  (0.0ms) begin transaction
1016
+  (0.1ms) rollback transaction
1017
+  (0.0ms) begin transaction
1018
+  (0.0ms) rollback transaction
1019
+  (0.0ms) begin transaction
1020
+  (0.1ms) SELECT COUNT(*) FROM "users"
1021
+  (0.0ms) SAVEPOINT active_record_1
1022
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 15:25:09 UTC +00:00], ["name", "bob"], ["updated_at", Wed, 01 May 2013 15:25:09 UTC +00:00]]
1023
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1024
+  (0.0ms) SELECT COUNT(*) FROM "users"
1025
+  (0.5ms) rollback transaction
1026
+  (0.0ms) begin transaction
1027
+  (0.1ms) SAVEPOINT active_record_1
1028
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 15:25:09 UTC +00:00], ["name", "bob"], ["updated_at", Wed, 01 May 2013 15:25:09 UTC +00:00]]
1029
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1030
+  (0.5ms) rollback transaction
1031
+  (0.0ms) begin transaction
1032
+  (0.0ms) rollback transaction
1033
+  (0.0ms) begin transaction
1034
+ Started GET "/" for 127.0.0.1 at 2013-05-02 01:25:09 +1000
1035
+ Processing by LetterBomb::MailersController#index as HTML
1036
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
1037
+  (0.1ms) rollback transaction
1038
+ Connecting to database specified by database.yml
1039
+  (0.2ms) begin transaction
1040
+  (0.4ms) rollback transaction
1041
+  (0.1ms) begin transaction
1042
+  (0.5ms) SELECT COUNT(*) FROM "users"
1043
+  (0.0ms) SAVEPOINT active_record_1
1044
+ SQL (2.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 23:33:37 UTC +00:00], ["name", "bob"], ["updated_at", Wed, 01 May 2013 23:33:37 UTC +00:00]]
1045
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1046
+  (0.1ms) SELECT COUNT(*) FROM "users"
1047
+  (0.4ms) rollback transaction
1048
+  (0.0ms) begin transaction
1049
+  (0.0ms) SAVEPOINT active_record_1
1050
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 23:33:37 UTC +00:00], ["name", "bob"], ["updated_at", Wed, 01 May 2013 23:33:37 UTC +00:00]]
1051
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1052
+  (0.5ms) rollback transaction
1053
+  (0.0ms) begin transaction
1054
+  (0.0ms) rollback transaction
1055
+  (0.0ms) begin transaction
1056
+  (0.1ms) rollback transaction
1057
+  (0.0ms) begin transaction
1058
+  (0.0ms) rollback transaction
1059
+ Connecting to database specified by database.yml
1060
+  (0.2ms) begin transaction
1061
+  (0.0ms) SELECT COUNT(*) FROM "users"
1062
+  (0.0ms) SAVEPOINT active_record_1
1063
+ SQL (3.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 23:42:23 UTC +00:00], ["name", "bob"], ["updated_at", Wed, 01 May 2013 23:42:23 UTC +00:00]]
1064
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1065
+  (0.0ms) SELECT COUNT(*) FROM "users"
1066
+  (8.5ms) rollback transaction
1067
+  (0.1ms) begin transaction
1068
+  (0.0ms) SAVEPOINT active_record_1
1069
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 23:42:23 UTC +00:00], ["name", "bob"], ["updated_at", Wed, 01 May 2013 23:42:23 UTC +00:00]]
1070
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1071
+  (1.6ms) rollback transaction
1072
+  (0.1ms) begin transaction
1073
+  (0.0ms) rollback transaction
1074
+  (0.0ms) begin transaction
1075
+  (0.0ms) rollback transaction
1076
+  (0.0ms) begin transaction
1077
+  (0.0ms) rollback transaction
1078
+  (0.0ms) begin transaction
1079
+  (0.0ms) rollback transaction
1080
+  (0.0ms) begin transaction
1081
+  (0.0ms) rollback transaction
1082
+  (0.0ms) begin transaction
1083
+  (0.1ms) rollback transaction
1084
+ Connecting to database specified by database.yml
1085
+  (0.2ms) begin transaction
1086
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-02 09:44:41 +1000
1087
+ Processing by LetterBomb::MailersController#show as HTML
1088
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1089
+  (0.0ms) SAVEPOINT active_record_1
1090
+ SQL (2.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 23:44:41 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 23:44:41 UTC +00:00]]
1091
+ Rendered user_mailer/welcome.html.erb (0.9ms)
1092
+ Rendered user_mailer/welcome.text.erb (0.2ms)
1093
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1094
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (2.8ms)
1095
+ Completed 200 OK in 33ms (Views: 5.3ms | ActiveRecord: 3.0ms)
1096
+  (0.5ms) rollback transaction
1097
+  (0.0ms) begin transaction
1098
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-02 09:44:41 +1000
1099
+ Processing by LetterBomb::MailersController#show as HTML
1100
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1101
+  (0.0ms) SAVEPOINT active_record_1
1102
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 23:44:41 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 23:44:41 UTC +00:00]]
1103
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1104
+ Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 0.5ms)
1105
+  (0.5ms) rollback transaction
1106
+  (0.0ms) begin transaction
1107
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-02 09:44:41 +1000
1108
+ Processing by LetterBomb::MailersController#show as HTML
1109
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1110
+  (0.0ms) SAVEPOINT active_record_1
1111
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 23:44:41 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 23:44:41 UTC +00:00]]
1112
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1113
+ Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 0.4ms)
1114
+  (0.4ms) rollback transaction
1115
+  (0.3ms) begin transaction
1116
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-02 09:44:41 +1000
1117
+ Processing by LetterBomb::MailersController#show as HTML
1118
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1119
+  (0.0ms) SAVEPOINT active_record_1
1120
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 23:44:41 UTC +00:00], ["name", "john"], ["updated_at", Wed, 01 May 2013 23:44:41 UTC +00:00]]
1121
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1122
+ Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 0.4ms)
1123
+  (0.4ms) rollback transaction
1124
+  (0.0ms) begin transaction
1125
+ Started GET "/" for 127.0.0.1 at 2013-05-02 09:44:41 +1000
1126
+ Processing by LetterBomb::MailersController#index as HTML
1127
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
1128
+  (0.0ms) rollback transaction
1129
+  (0.0ms) begin transaction
1130
+  (0.0ms) rollback transaction
1131
+  (0.0ms) begin transaction
1132
+  (0.0ms) rollback transaction
1133
+  (0.0ms) begin transaction
1134
+  (0.0ms) rollback transaction
1135
+  (0.0ms) begin transaction
1136
+  (0.0ms) rollback transaction
1137
+  (0.0ms) begin transaction
1138
+  (0.0ms) rollback transaction
1139
+  (0.0ms) begin transaction
1140
+  (0.0ms) rollback transaction
1141
+  (0.0ms) begin transaction
1142
+  (0.1ms) SELECT COUNT(*) FROM "users"
1143
+  (0.0ms) SAVEPOINT active_record_1
1144
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 23:44:41 UTC +00:00], ["name", "bob"], ["updated_at", Wed, 01 May 2013 23:44:41 UTC +00:00]]
1145
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1146
+  (0.0ms) SELECT COUNT(*) FROM "users"
1147
+  (0.3ms) rollback transaction
1148
+  (0.0ms) begin transaction
1149
+  (0.0ms) SAVEPOINT active_record_1
1150
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 01 May 2013 23:44:41 UTC +00:00], ["name", "bob"], ["updated_at", Wed, 01 May 2013 23:44:41 UTC +00:00]]
1151
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1152
+  (0.3ms) rollback transaction
1153
+ Connecting to database specified by database.yml
1154
+  (0.2ms) begin transaction
1155
+  (0.4ms) SELECT COUNT(*) FROM "users"
1156
+  (0.0ms) SAVEPOINT active_record_1
1157
+ SQL (2.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 09:17:54 UTC +00:00], ["name", "bob"], ["updated_at", Thu, 30 May 2013 09:17:54 UTC +00:00]]
1158
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1159
+  (0.0ms) SELECT COUNT(*) FROM "users"
1160
+  (0.5ms) rollback transaction
1161
+  (0.0ms) begin transaction
1162
+  (0.0ms) SAVEPOINT active_record_1
1163
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 09:17:54 UTC +00:00], ["name", "bob"], ["updated_at", Thu, 30 May 2013 09:17:54 UTC +00:00]]
1164
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1165
+  (0.4ms) rollback transaction
1166
+  (0.0ms) begin transaction
1167
+  (0.0ms) rollback transaction
1168
+  (0.0ms) begin transaction
1169
+  (0.0ms) rollback transaction
1170
+  (0.0ms) begin transaction
1171
+  (0.0ms) rollback transaction
1172
+  (0.0ms) begin transaction
1173
+  (0.0ms) rollback transaction
1174
+  (0.0ms) begin transaction
1175
+  (0.0ms) rollback transaction
1176
+  (0.0ms) begin transaction
1177
+  (0.1ms) rollback transaction
1178
+  (0.0ms) begin transaction
1179
+ Started GET "/" for 127.0.0.1 at 2013-05-30 19:17:54 +1000
1180
+ Processing by LetterBomb::MailersController#index as HTML
1181
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/index.html.erb within layouts/letter_bomb/application (2.2ms)
1182
+ Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms)
1183
+  (0.1ms) rollback transaction
1184
+  (0.0ms) begin transaction
1185
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 19:17:54 +1000
1186
+ Processing by LetterBomb::MailersController#show as HTML
1187
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1188
+  (0.0ms) SAVEPOINT active_record_1
1189
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 09:17:54 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 09:17:54 UTC +00:00]]
1190
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1191
+ Completed 200 OK in 22ms (Views: 4.7ms | ActiveRecord: 0.4ms)
1192
+  (0.4ms) rollback transaction
1193
+  (0.0ms) begin transaction
1194
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 19:17:54 +1000
1195
+ Processing by LetterBomb::MailersController#show as HTML
1196
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1197
+  (0.0ms) SAVEPOINT active_record_1
1198
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 09:17:54 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 09:17:54 UTC +00:00]]
1199
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1200
+ Completed 200 OK in 12ms (Views: 1.1ms | ActiveRecord: 0.4ms)
1201
+  (0.3ms) rollback transaction
1202
+  (0.0ms) begin transaction
1203
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 19:17:54 +1000
1204
+ Processing by LetterBomb::MailersController#show as HTML
1205
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1206
+  (0.0ms) SAVEPOINT active_record_1
1207
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 09:17:54 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 09:17:54 UTC +00:00]]
1208
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1209
+ Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 0.4ms)
1210
+  (0.6ms) rollback transaction
1211
+  (0.0ms) begin transaction
1212
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 19:17:54 +1000
1213
+ Processing by LetterBomb::MailersController#show as HTML
1214
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1215
+  (0.0ms) SAVEPOINT active_record_1
1216
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 09:17:54 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 09:17:54 UTC +00:00]]
1217
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1218
+ Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 0.4ms)
1219
+  (0.4ms) rollback transaction
1220
+ Connecting to database specified by database.yml
1221
+  (0.2ms) begin transaction
1222
+  (0.0ms) rollback transaction
1223
+  (0.0ms) begin transaction
1224
+  (0.0ms) rollback transaction
1225
+  (0.0ms) begin transaction
1226
+  (0.1ms) rollback transaction
1227
+  (0.0ms) begin transaction
1228
+  (0.6ms) SELECT COUNT(*) FROM "users"
1229
+  (0.0ms) SAVEPOINT active_record_1
1230
+ SQL (2.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:07 UTC +00:00], ["name", "bob"], ["updated_at", Thu, 30 May 2013 10:59:07 UTC +00:00]]
1231
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1232
+  (0.0ms) SELECT COUNT(*) FROM "users"
1233
+  (0.5ms) rollback transaction
1234
+  (0.0ms) begin transaction
1235
+  (0.0ms) SAVEPOINT active_record_1
1236
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:07 UTC +00:00], ["name", "bob"], ["updated_at", Thu, 30 May 2013 10:59:07 UTC +00:00]]
1237
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1238
+  (0.4ms) rollback transaction
1239
+  (0.0ms) begin transaction
1240
+  (0.0ms) rollback transaction
1241
+  (0.0ms) begin transaction
1242
+  (0.0ms) rollback transaction
1243
+  (0.0ms) begin transaction
1244
+  (0.0ms) rollback transaction
1245
+  (0.0ms) begin transaction
1246
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 20:59:07 +1000
1247
+ Processing by LetterBomb::MailersController#show as HTML
1248
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1249
+  (0.0ms) SAVEPOINT active_record_1
1250
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:07 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 10:59:07 UTC +00:00]]
1251
+ Rendered user_mailer/welcome.html.erb (0.9ms)
1252
+ Rendered user_mailer/welcome.text.erb (0.3ms)
1253
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1254
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/show.html.erb within layouts/letter_bomb/application (3.5ms)
1255
+ Completed 200 OK in 28ms (Views: 5.8ms | ActiveRecord: 0.4ms)
1256
+  (0.4ms) rollback transaction
1257
+  (0.0ms) begin transaction
1258
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 20:59:07 +1000
1259
+ Processing by LetterBomb::MailersController#show as HTML
1260
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1261
+  (0.0ms) SAVEPOINT active_record_1
1262
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:07 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 10:59:07 UTC +00:00]]
1263
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1264
+ Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 0.5ms)
1265
+  (0.4ms) rollback transaction
1266
+  (0.0ms) begin transaction
1267
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 20:59:07 +1000
1268
+ Processing by LetterBomb::MailersController#show as HTML
1269
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1270
+  (0.0ms) SAVEPOINT active_record_1
1271
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:07 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 10:59:07 UTC +00:00]]
1272
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1273
+ Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 0.4ms)
1274
+  (0.5ms) rollback transaction
1275
+  (0.0ms) begin transaction
1276
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 20:59:07 +1000
1277
+ Processing by LetterBomb::MailersController#show as HTML
1278
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1279
+  (0.0ms) SAVEPOINT active_record_1
1280
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:07 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 10:59:07 UTC +00:00]]
1281
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1282
+ Completed 200 OK in 12ms (Views: 1.1ms | ActiveRecord: 0.4ms)
1283
+  (0.4ms) rollback transaction
1284
+  (0.0ms) begin transaction
1285
+ Started GET "/" for 127.0.0.1 at 2013-05-30 20:59:07 +1000
1286
+ Processing by LetterBomb::MailersController#index as HTML
1287
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1288
+  (0.1ms) rollback transaction
1289
+ Connecting to database specified by database.yml
1290
+  (0.2ms) begin transaction
1291
+  (0.0ms) rollback transaction
1292
+  (0.0ms) begin transaction
1293
+  (0.1ms) rollback transaction
1294
+  (0.0ms) begin transaction
1295
+  (0.0ms) SELECT COUNT(*) FROM "users"
1296
+  (0.0ms) SAVEPOINT active_record_1
1297
+ SQL (2.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:11 UTC +00:00], ["name", "bob"], ["updated_at", Thu, 30 May 2013 10:59:11 UTC +00:00]]
1298
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1299
+  (0.1ms) SELECT COUNT(*) FROM "users"
1300
+  (1.4ms) rollback transaction
1301
+  (0.0ms) begin transaction
1302
+  (0.0ms) SAVEPOINT active_record_1
1303
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:11 UTC +00:00], ["name", "bob"], ["updated_at", Thu, 30 May 2013 10:59:11 UTC +00:00]]
1304
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1305
+  (0.3ms) rollback transaction
1306
+  (0.0ms) begin transaction
1307
+  (0.0ms) rollback transaction
1308
+  (0.0ms) begin transaction
1309
+  (0.0ms) rollback transaction
1310
+  (0.0ms) begin transaction
1311
+  (0.0ms) rollback transaction
1312
+  (0.0ms) begin transaction
1313
+  (0.0ms) rollback transaction
1314
+  (0.0ms) begin transaction
1315
+ Started GET "/" for 127.0.0.1 at 2013-05-30 20:59:11 +1000
1316
+ Processing by LetterBomb::MailersController#index as HTML
1317
+ Rendered /Users/ags/code/letter_bomb/app/views/letter_bomb/mailers/index.html.erb within layouts/letter_bomb/application (1.8ms)
1318
+ Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)
1319
+  (0.1ms) rollback transaction
1320
+  (0.1ms) begin transaction
1321
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 20:59:11 +1000
1322
+ Processing by LetterBomb::MailersController#show as HTML
1323
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1324
+  (0.0ms) SAVEPOINT active_record_1
1325
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:11 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 10:59:11 UTC +00:00]]
1326
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1327
+ Completed 200 OK in 53ms (Views: 3.7ms | ActiveRecord: 0.5ms)
1328
+  (0.5ms) rollback transaction
1329
+  (0.1ms) begin transaction
1330
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 20:59:11 +1000
1331
+ Processing by LetterBomb::MailersController#show as HTML
1332
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1333
+  (0.0ms) SAVEPOINT active_record_1
1334
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:11 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 10:59:11 UTC +00:00]]
1335
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1336
+ Completed 200 OK in 14ms (Views: 1.2ms | ActiveRecord: 0.5ms)
1337
+  (0.3ms) rollback transaction
1338
+  (0.0ms) begin transaction
1339
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 20:59:11 +1000
1340
+ Processing by LetterBomb::MailersController#show as HTML
1341
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1342
+  (0.0ms) SAVEPOINT active_record_1
1343
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:11 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 10:59:11 UTC +00:00]]
1344
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1345
+ Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 0.4ms)
1346
+  (0.5ms) rollback transaction
1347
+  (0.0ms) begin transaction
1348
+ Started GET "/UserMailer::Preview/welcome" for 127.0.0.1 at 2013-05-30 20:59:11 +1000
1349
+ Processing by LetterBomb::MailersController#show as HTML
1350
+ Parameters: {"mailer_class"=>"UserMailer::Preview", "mailer_action"=>"welcome"}
1351
+  (0.0ms) SAVEPOINT active_record_1
1352
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 30 May 2013 10:59:11 UTC +00:00], ["name", "john"], ["updated_at", Thu, 30 May 2013 10:59:11 UTC +00:00]]
1353
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1354
+ Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 0.5ms)
1355
+  (0.3ms) rollback transaction
@@ -36,4 +36,20 @@ describe LetterBomb::Preview do
36
36
  end
37
37
  end
38
38
 
39
+ describe "#lchomp" do
40
+ it "removes a given string from the start of a target string" do
41
+ LetterBomb::Preview.lchomp('abcd/edfg/abcd', 'abcd').should == '/edfg/abcd'
42
+ end
43
+ context "when the target string does not begin with the removable string" do
44
+ it "returns the target string" do
45
+ LetterBomb::Preview.lchomp('edfg/abcd', 'abcd').should == 'edfg/abcd'
46
+ end
47
+ end
48
+ context "when the target string does not contain the removable string" do
49
+ it "returns the target string" do
50
+ LetterBomb::Preview.lchomp('edfg', 'abcd').should == 'edfg'
51
+ end
52
+ end
53
+ end
54
+
39
55
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: letter_bomb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-01 00:00:00.000000000 Z
11
+ date: 2013-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -129,7 +129,6 @@ files:
129
129
  - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
130
130
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
131
131
  - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
132
- - spec/dummy/tmp/pids/server.pid
133
132
  - spec/lib/letter_bomb/preview_spec.rb
134
133
  - spec/requests/mailer_preview_listing_spec.rb
135
134
  - spec/requests/mailer_preview_showing_spec.rb
@@ -202,7 +201,6 @@ test_files:
202
201
  - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
203
202
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
204
203
  - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
205
- - spec/dummy/tmp/pids/server.pid
206
204
  - spec/lib/letter_bomb/preview_spec.rb
207
205
  - spec/requests/mailer_preview_listing_spec.rb
208
206
  - spec/requests/mailer_preview_showing_spec.rb
@@ -1 +0,0 @@
1
- 53551