katgut 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: a57a09535cda768a300edc694860e33f76b2747b
4
- data.tar.gz: f1a687027012bef0079b6a7abb7ec1900632e879
3
+ metadata.gz: a9e0af4382b30f4ec050991c18ef8518e2bfdd2b
4
+ data.tar.gz: 3f15c268cbe282e31b9d8309488209b823f6ba9b
5
5
  SHA512:
6
- metadata.gz: 92e6e9d63586eeef0d5b2260c20b31bf77ba11162c1e2c452aed0357c112c1a87b73d25b8290442c7b568e41ab508fc784a6958261e9f8e43ea76b2c5d29ffb0
7
- data.tar.gz: 48eaec213322cab781a5b47107382ebb2eafc81b42b5a8341323c8ca88475540790184e69acd4aff6c1093badf7ff3b0998742519348a00e24f290b919851866
6
+ metadata.gz: 3c5858465324662443c5e0a797bcfbfd74bc887caf8a712f790ab96f112a4626f91c411c2e68d179b72b1e3aeb0c61f46803e3680a399f76af2026c7d2dccbcf
7
+ data.tar.gz: 2c3c5dfbba597a2f256c8153f8eb9d7c96b9ad0118c4bda6a1baedd289bd1b64111136760d574c24d323543d68cf756e37d2bdfd79eb90304bd5537ca7c2fac5
data/README.md CHANGED
@@ -42,22 +42,11 @@ end
42
42
  ## Defining the redirection rules
43
43
  The redirection rules will be stored in `katgut_rules` table. A rule is a set of following parameters:
44
44
 
45
- Example:
46
-
47
- ```ruby
48
- # Define a rule...
49
- Katgut::Rule.new(source: "go-to-google", destination: "https://www.google.co.jp/").save
50
-
51
- # ... to create this redirection
52
- # GET /katgut/go-to-google => GET https://www.google.co.jp/
53
- ```
54
-
55
- You can set these 3 attributes to each redirection rule.
56
-
57
45
  * source
58
46
  * destination
59
47
  * active
60
48
 
49
+
61
50
  ### `source`
62
51
  Set a unique key to determine which rule should be used to redirect the request.
63
52
  Only word characters and hyphens\(`[^a-zA-Z0-9_\-]`) are allowed and at least 5 characters needed.
@@ -76,6 +65,16 @@ Set the desination url.
76
65
  ### `active`
77
66
  Set `false` to ignore the rule.
78
67
 
68
+ ## Example
69
+
70
+ ```ruby
71
+ # Define a rule...
72
+ Katgut::Rule.new(source: "go-to-google", destination: "https://www.google.co.jp/").save
73
+
74
+ # ... to create this redirection
75
+ # GET /katgut/go-to-google => GET https://www.google.co.jp/
76
+ ```
77
+
79
78
  ## Customization
80
79
  You can customize the behavour of the gem through the initializer script.
81
80
 
@@ -100,8 +99,9 @@ The `rule` will be `nil` when the specified source url on the request was not va
100
99
 
101
100
  ```ruby
102
101
  Katgut.configure do |config|
103
- config.after_refirection_callback = do |request, parameters, rule|
102
+ config.after_refirection_callback = proc do |request, parameters, rule|
104
103
  # add custom behaviour here, such as logging, overwriting the rule, etc...
104
+ # this block will be called in the context of Katgut::RulesController.
105
105
  end
106
106
  end
107
107
  ```
data/lib/katgut/engine.rb CHANGED
@@ -6,9 +6,5 @@ module Katgut
6
6
  g.test_framework :rspec, fixture: false
7
7
  g.fixture_replacement :factory_girl, dir: "spec/factories"
8
8
  end
9
-
10
- initializer "static assets" do |app|
11
- app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
12
- end
13
9
  end
14
10
  end
@@ -1,3 +1,3 @@
1
1
  module Katgut
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
Binary file
@@ -6695,3 +6695,718 @@ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
6695
6695
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6696
6696
   (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6697
6697
   (0.5ms) rollback transaction
6698
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6699
+  (1.1ms) DELETE FROM "katgut_rules";
6700
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6701
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6702
+  (0.1ms) begin transaction
6703
+  (0.1ms) SAVEPOINT active_record_1
6704
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_1' LIMIT 1
6705
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_1"], ["destination", "/advice"], ["active", "t"], ["created_at", "2016-07-21 07:24:04.052071"], ["updated_at", "2016-07-21 07:24:04.052071"]]
6706
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6707
+ Processing by Katgut::RulesController#show as HTML
6708
+ Parameters: {"id"=>"advice"}
6709
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "advice"]]
6710
+ Redirected to http://test.host/
6711
+ Completed 302 Found in 17ms (ActiveRecord: 0.1ms)
6712
+  (0.1ms) DELETE FROM "katgut_rules";
6713
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6714
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6715
+  (0.5ms) rollback transaction
6716
+  (0.1ms) begin transaction
6717
+  (0.1ms) SAVEPOINT active_record_1
6718
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_2' LIMIT 1
6719
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_2"], ["destination", "/advice"], ["active", "t"], ["created_at", "2016-07-21 07:24:04.084638"], ["updated_at", "2016-07-21 07:24:04.084638"]]
6720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6721
+ Processing by Katgut::RulesController#show as HTML
6722
+ Parameters: {"id"=>"advice"}
6723
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "advice"]]
6724
+ Redirected to http://test.host/
6725
+ Completed in 1ms (ActiveRecord: 0.1ms)
6726
+  (0.1ms) DELETE FROM "katgut_rules";
6727
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6728
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6729
+  (0.4ms) rollback transaction
6730
+  (0.1ms) begin transaction
6731
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_3' LIMIT 1
6732
+  (0.2ms) DELETE FROM "katgut_rules";
6733
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6734
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6735
+  (0.4ms) rollback transaction
6736
+  (0.1ms) begin transaction
6737
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" IS NULL LIMIT 1
6738
+  (0.3ms) DELETE FROM "katgut_rules";
6739
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6740
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6741
+  (0.4ms) rollback transaction
6742
+  (0.1ms) begin transaction
6743
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_5' LIMIT 1
6744
+  (0.2ms) DELETE FROM "katgut_rules";
6745
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6746
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6747
+  (0.5ms) rollback transaction
6748
+  (0.1ms) begin transaction
6749
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'test' LIMIT 1
6750
+  (0.2ms) DELETE FROM "katgut_rules";
6751
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6752
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6753
+  (0.4ms) rollback transaction
6754
+  (0.1ms) begin transaction
6755
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = '@@test@@' LIMIT 1
6756
+  (0.2ms) DELETE FROM "katgut_rules";
6757
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6758
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6759
+  (0.4ms) rollback transaction
6760
+  (0.1ms) begin transaction
6761
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_8' LIMIT 1
6762
+  (0.2ms) DELETE FROM "katgut_rules";
6763
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6764
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6765
+  (0.4ms) rollback transaction
6766
+  (0.0ms) begin transaction
6767
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_9' LIMIT 1
6768
+  (0.3ms) DELETE FROM "katgut_rules";
6769
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6770
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6771
+  (0.4ms) rollback transaction
6772
+  (0.0ms) begin transaction
6773
+  (0.3ms) DELETE FROM "katgut_rules";
6774
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6775
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6776
+  (0.4ms) rollback transaction
6777
+  (0.1ms) begin transaction
6778
+  (0.3ms) DELETE FROM "katgut_rules";
6779
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6780
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6781
+  (0.4ms) rollback transaction
6782
+  (0.0ms) begin transaction
6783
+  (0.2ms) DELETE FROM "katgut_rules";
6784
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6785
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6786
+  (0.3ms) rollback transaction
6787
+  (0.1ms) begin transaction
6788
+  (0.0ms) SAVEPOINT active_record_1
6789
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_13' LIMIT 1
6790
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_13"], ["destination", "/katgut_success.html"], ["active", "t"], ["created_at", "2016-07-21 07:24:04.213274"], ["updated_at", "2016-07-21 07:24:04.213274"]]
6791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6792
+ Started GET "/katgut/torsitsugi_test_13" for 127.0.0.1 at 2016-07-21 16:24:04 +0900
6793
+ Processing by Katgut::RulesController#show as HTML
6794
+ Parameters: {"id"=>"torsitsugi_test_13"}
6795
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_13"]]
6796
+ Redirected to http://www.example.com/katgut_success.html
6797
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
6798
+  (0.1ms) DELETE FROM "katgut_rules";
6799
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6800
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6801
+  (0.6ms) rollback transaction
6802
+  (0.1ms) begin transaction
6803
+  (0.0ms) SAVEPOINT active_record_1
6804
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_14' LIMIT 1
6805
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_14"], ["destination", "https://httpbin.org/"], ["active", "t"], ["created_at", "2016-07-21 07:24:04.241833"], ["updated_at", "2016-07-21 07:24:04.241833"]]
6806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6807
+ Started GET "/katgut/torsitsugi_test_14" for 127.0.0.1 at 2016-07-21 16:24:04 +0900
6808
+ Processing by Katgut::RulesController#show as HTML
6809
+ Parameters: {"id"=>"torsitsugi_test_14"}
6810
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_14"]]
6811
+ Redirected to https://httpbin.org/
6812
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
6813
+  (0.1ms) DELETE FROM "katgut_rules";
6814
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6815
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6816
+  (0.4ms) rollback transaction
6817
+  (0.1ms) begin transaction
6818
+  (0.1ms) SAVEPOINT active_record_1
6819
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_15' LIMIT 1
6820
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_15"], ["destination", "httpbin.org/"], ["active", "t"], ["created_at", "2016-07-21 07:24:04.251349"], ["updated_at", "2016-07-21 07:24:04.251349"]]
6821
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6822
+ Started GET "/katgut/torsitsugi_test_15" for 127.0.0.1 at 2016-07-21 16:24:04 +0900
6823
+ Processing by Katgut::RulesController#show as HTML
6824
+ Parameters: {"id"=>"torsitsugi_test_15"}
6825
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_15"]]
6826
+ Redirected to http://httpbin.org/
6827
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
6828
+  (0.1ms) DELETE FROM "katgut_rules";
6829
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6830
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6831
+  (0.7ms) rollback transaction
6832
+  (0.1ms) begin transaction
6833
+ Started GET "/katgut/not-existing-source-keyword" for 127.0.0.1 at 2016-07-21 16:24:04 +0900
6834
+ Processing by Katgut::RulesController#show as HTML
6835
+ Parameters: {"id"=>"not-existing-source-keyword"}
6836
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "not-existing-source-keyword"]]
6837
+ Redirected to http://www.example.com/
6838
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
6839
+  (0.2ms) DELETE FROM "katgut_rules";
6840
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6841
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6842
+  (0.4ms) rollback transaction
6843
+  (0.1ms) begin transaction
6844
+  (0.0ms) SAVEPOINT active_record_1
6845
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_16' LIMIT 1
6846
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["source", "torsitsugi_test_16"], ["destination", "https://httpbin.org/"], ["created_at", "2016-07-21 07:24:04.267996"], ["updated_at", "2016-07-21 07:24:04.267996"]]
6847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6848
+ Started GET "/katgut/torsitsugi_test_16" for 127.0.0.1 at 2016-07-21 16:24:04 +0900
6849
+ Processing by Katgut::RulesController#show as HTML
6850
+ Parameters: {"id"=>"torsitsugi_test_16"}
6851
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_16"]]
6852
+ Redirected to http://www.example.com/
6853
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
6854
+  (0.1ms) DELETE FROM "katgut_rules";
6855
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6856
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6857
+  (0.5ms) rollback transaction
6858
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6859
+  (9.0ms) DELETE FROM "katgut_rules";
6860
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6861
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6862
+  (0.1ms) begin transaction
6863
+  (0.1ms) SAVEPOINT active_record_1
6864
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_1' LIMIT 1
6865
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_1"], ["destination", "/advice"], ["active", "t"], ["created_at", "2016-07-21 07:24:36.219848"], ["updated_at", "2016-07-21 07:24:36.219848"]]
6866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6867
+ Processing by Katgut::RulesController#show as HTML
6868
+ Parameters: {"id"=>"advice"}
6869
+ Katgut::Rule Load (0.2ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "advice"]]
6870
+ Redirected to http://test.host/
6871
+ Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
6872
+  (0.1ms) DELETE FROM "katgut_rules";
6873
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6874
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6875
+  (0.9ms) rollback transaction
6876
+  (0.2ms) begin transaction
6877
+  (0.1ms) SAVEPOINT active_record_1
6878
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_2' LIMIT 1
6879
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_2"], ["destination", "/advice"], ["active", "t"], ["created_at", "2016-07-21 07:24:36.242884"], ["updated_at", "2016-07-21 07:24:36.242884"]]
6880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6881
+ Processing by Katgut::RulesController#show as HTML
6882
+ Parameters: {"id"=>"advice"}
6883
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "advice"]]
6884
+ Redirected to http://test.host/
6885
+ Completed in 1ms (ActiveRecord: 0.1ms)
6886
+  (0.1ms) DELETE FROM "katgut_rules";
6887
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6888
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6889
+  (0.5ms) rollback transaction
6890
+  (0.1ms) begin transaction
6891
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_3' LIMIT 1
6892
+  (0.2ms) DELETE FROM "katgut_rules";
6893
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6894
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6895
+  (0.8ms) rollback transaction
6896
+  (0.1ms) begin transaction
6897
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" IS NULL LIMIT 1
6898
+  (0.3ms) DELETE FROM "katgut_rules";
6899
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6900
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6901
+  (0.4ms) rollback transaction
6902
+  (0.2ms) begin transaction
6903
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_5' LIMIT 1
6904
+  (0.2ms) DELETE FROM "katgut_rules";
6905
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6906
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6907
+  (0.3ms) rollback transaction
6908
+  (0.0ms) begin transaction
6909
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'test' LIMIT 1
6910
+  (0.2ms) DELETE FROM "katgut_rules";
6911
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6912
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6913
+  (0.4ms) rollback transaction
6914
+  (0.0ms) begin transaction
6915
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = '@@test@@' LIMIT 1
6916
+  (0.3ms) DELETE FROM "katgut_rules";
6917
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6918
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6919
+  (0.4ms) rollback transaction
6920
+  (0.1ms) begin transaction
6921
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_8' LIMIT 1
6922
+  (0.2ms) DELETE FROM "katgut_rules";
6923
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6924
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6925
+  (0.3ms) rollback transaction
6926
+  (0.1ms) begin transaction
6927
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_9' LIMIT 1
6928
+  (0.2ms) DELETE FROM "katgut_rules";
6929
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6930
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6931
+  (0.4ms) rollback transaction
6932
+  (0.0ms) begin transaction
6933
+  (0.2ms) DELETE FROM "katgut_rules";
6934
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6935
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6936
+  (0.3ms) rollback transaction
6937
+  (0.1ms) begin transaction
6938
+  (0.2ms) DELETE FROM "katgut_rules";
6939
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6940
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6941
+  (0.3ms) rollback transaction
6942
+  (0.0ms) begin transaction
6943
+  (0.2ms) DELETE FROM "katgut_rules";
6944
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6945
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6946
+  (0.4ms) rollback transaction
6947
+  (0.1ms) begin transaction
6948
+  (0.0ms) SAVEPOINT active_record_1
6949
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_13' LIMIT 1
6950
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_13"], ["destination", "/katgut_success.html"], ["active", "t"], ["created_at", "2016-07-21 07:24:36.302182"], ["updated_at", "2016-07-21 07:24:36.302182"]]
6951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6952
+ Started GET "/katgut/torsitsugi_test_13" for 127.0.0.1 at 2016-07-21 16:24:36 +0900
6953
+ Processing by Katgut::RulesController#show as HTML
6954
+ Parameters: {"id"=>"torsitsugi_test_13"}
6955
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_13"]]
6956
+ Redirected to http://www.example.com/katgut_success.html
6957
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
6958
+  (0.1ms) DELETE FROM "katgut_rules";
6959
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6960
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6961
+  (0.4ms) rollback transaction
6962
+  (0.0ms) begin transaction
6963
+  (0.0ms) SAVEPOINT active_record_1
6964
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_14' LIMIT 1
6965
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_14"], ["destination", "https://httpbin.org/"], ["active", "t"], ["created_at", "2016-07-21 07:24:36.314484"], ["updated_at", "2016-07-21 07:24:36.314484"]]
6966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6967
+ Started GET "/katgut/torsitsugi_test_14" for 127.0.0.1 at 2016-07-21 16:24:36 +0900
6968
+ Processing by Katgut::RulesController#show as HTML
6969
+ Parameters: {"id"=>"torsitsugi_test_14"}
6970
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_14"]]
6971
+ Redirected to https://httpbin.org/
6972
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
6973
+  (0.1ms) DELETE FROM "katgut_rules";
6974
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6975
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6976
+  (0.4ms) rollback transaction
6977
+  (0.1ms) begin transaction
6978
+  (0.0ms) SAVEPOINT active_record_1
6979
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_15' LIMIT 1
6980
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_15"], ["destination", "httpbin.org/"], ["active", "t"], ["created_at", "2016-07-21 07:24:36.324373"], ["updated_at", "2016-07-21 07:24:36.324373"]]
6981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6982
+ Started GET "/katgut/torsitsugi_test_15" for 127.0.0.1 at 2016-07-21 16:24:36 +0900
6983
+ Processing by Katgut::RulesController#show as HTML
6984
+ Parameters: {"id"=>"torsitsugi_test_15"}
6985
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_15"]]
6986
+ Redirected to http://httpbin.org/
6987
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
6988
+  (0.1ms) DELETE FROM "katgut_rules";
6989
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6990
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
6991
+  (0.5ms) rollback transaction
6992
+  (0.0ms) begin transaction
6993
+ Started GET "/katgut/not-existing-source-keyword" for 127.0.0.1 at 2016-07-21 16:24:36 +0900
6994
+ Processing by Katgut::RulesController#show as HTML
6995
+ Parameters: {"id"=>"not-existing-source-keyword"}
6996
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "not-existing-source-keyword"]]
6997
+ Redirected to http://www.example.com/
6998
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
6999
+  (0.2ms) DELETE FROM "katgut_rules";
7000
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7001
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7002
+  (0.7ms) rollback transaction
7003
+  (0.1ms) begin transaction
7004
+  (0.0ms) SAVEPOINT active_record_1
7005
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_16' LIMIT 1
7006
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["source", "torsitsugi_test_16"], ["destination", "https://httpbin.org/"], ["created_at", "2016-07-21 07:24:36.340502"], ["updated_at", "2016-07-21 07:24:36.340502"]]
7007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7008
+ Started GET "/katgut/torsitsugi_test_16" for 127.0.0.1 at 2016-07-21 16:24:36 +0900
7009
+ Processing by Katgut::RulesController#show as HTML
7010
+ Parameters: {"id"=>"torsitsugi_test_16"}
7011
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_16"]]
7012
+ Redirected to http://www.example.com/
7013
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7014
+  (0.1ms) DELETE FROM "katgut_rules";
7015
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7016
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7017
+  (0.4ms) rollback transaction
7018
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7019
+  (9.0ms) DELETE FROM "katgut_rules";
7020
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7021
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7022
+  (0.1ms) begin transaction
7023
+  (0.0ms) SAVEPOINT active_record_1
7024
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_1' LIMIT 1
7025
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_1"], ["destination", "/advice"], ["active", "t"], ["created_at", "2016-07-21 07:24:41.143149"], ["updated_at", "2016-07-21 07:24:41.143149"]]
7026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7027
+ Processing by Katgut::RulesController#show as HTML
7028
+ Parameters: {"id"=>"advice"}
7029
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "advice"]]
7030
+ Redirected to http://test.host/
7031
+ Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
7032
+  (0.1ms) DELETE FROM "katgut_rules";
7033
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7034
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7035
+  (0.5ms) rollback transaction
7036
+  (0.1ms) begin transaction
7037
+  (0.0ms) SAVEPOINT active_record_1
7038
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_2' LIMIT 1
7039
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_2"], ["destination", "/advice"], ["active", "t"], ["created_at", "2016-07-21 07:24:41.158626"], ["updated_at", "2016-07-21 07:24:41.158626"]]
7040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7041
+ Processing by Katgut::RulesController#show as HTML
7042
+ Parameters: {"id"=>"advice"}
7043
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "advice"]]
7044
+ Redirected to http://test.host/
7045
+ Completed in 1ms (ActiveRecord: 0.1ms)
7046
+  (0.1ms) DELETE FROM "katgut_rules";
7047
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7048
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7049
+  (0.4ms) rollback transaction
7050
+  (0.1ms) begin transaction
7051
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_3' LIMIT 1
7052
+  (0.2ms) DELETE FROM "katgut_rules";
7053
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7054
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7055
+  (0.4ms) rollback transaction
7056
+  (0.0ms) begin transaction
7057
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" IS NULL LIMIT 1
7058
+  (0.2ms) DELETE FROM "katgut_rules";
7059
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7060
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7061
+  (0.4ms) rollback transaction
7062
+  (0.1ms) begin transaction
7063
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_5' LIMIT 1
7064
+  (0.4ms) DELETE FROM "katgut_rules";
7065
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7066
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7067
+  (0.4ms) rollback transaction
7068
+  (0.1ms) begin transaction
7069
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'test' LIMIT 1
7070
+  (0.2ms) DELETE FROM "katgut_rules";
7071
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7072
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7073
+  (0.5ms) rollback transaction
7074
+  (0.1ms) begin transaction
7075
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = '@@test@@' LIMIT 1
7076
+  (0.2ms) DELETE FROM "katgut_rules";
7077
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7078
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7079
+  (0.5ms) rollback transaction
7080
+  (0.1ms) begin transaction
7081
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_8' LIMIT 1
7082
+  (0.2ms) DELETE FROM "katgut_rules";
7083
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7084
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7085
+  (0.4ms) rollback transaction
7086
+  (0.1ms) begin transaction
7087
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_9' LIMIT 1
7088
+  (0.2ms) DELETE FROM "katgut_rules";
7089
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7090
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7091
+  (0.4ms) rollback transaction
7092
+  (0.1ms) begin transaction
7093
+  (0.4ms) DELETE FROM "katgut_rules";
7094
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7095
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7096
+  (0.6ms) rollback transaction
7097
+  (0.1ms) begin transaction
7098
+  (0.2ms) DELETE FROM "katgut_rules";
7099
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7100
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7101
+  (0.4ms) rollback transaction
7102
+  (0.0ms) begin transaction
7103
+  (0.2ms) DELETE FROM "katgut_rules";
7104
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7105
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7106
+  (0.3ms) rollback transaction
7107
+  (0.0ms) begin transaction
7108
+  (0.1ms) SAVEPOINT active_record_1
7109
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_13' LIMIT 1
7110
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_13"], ["destination", "/katgut_success.html"], ["active", "t"], ["created_at", "2016-07-21 07:24:41.220880"], ["updated_at", "2016-07-21 07:24:41.220880"]]
7111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7112
+ Started GET "/katgut/torsitsugi_test_13" for 127.0.0.1 at 2016-07-21 16:24:41 +0900
7113
+ Processing by Katgut::RulesController#show as HTML
7114
+ Parameters: {"id"=>"torsitsugi_test_13"}
7115
+ Katgut::Rule Load (0.2ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_13"]]
7116
+ Redirected to http://www.example.com/katgut_success.html
7117
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
7118
+  (0.1ms) DELETE FROM "katgut_rules";
7119
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7120
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7121
+  (1.0ms) rollback transaction
7122
+  (0.1ms) begin transaction
7123
+  (0.1ms) SAVEPOINT active_record_1
7124
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_14' LIMIT 1
7125
+ SQL (0.4ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_14"], ["destination", "https://httpbin.org/"], ["active", "t"], ["created_at", "2016-07-21 07:24:41.245928"], ["updated_at", "2016-07-21 07:24:41.245928"]]
7126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7127
+ Started GET "/katgut/torsitsugi_test_14" for 127.0.0.1 at 2016-07-21 16:24:41 +0900
7128
+ Processing by Katgut::RulesController#show as HTML
7129
+ Parameters: {"id"=>"torsitsugi_test_14"}
7130
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_14"]]
7131
+ Redirected to https://httpbin.org/
7132
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7133
+  (0.1ms) DELETE FROM "katgut_rules";
7134
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7135
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7136
+  (0.4ms) rollback transaction
7137
+  (0.1ms) begin transaction
7138
+  (0.0ms) SAVEPOINT active_record_1
7139
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_15' LIMIT 1
7140
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_15"], ["destination", "httpbin.org/"], ["active", "t"], ["created_at", "2016-07-21 07:24:41.255576"], ["updated_at", "2016-07-21 07:24:41.255576"]]
7141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7142
+ Started GET "/katgut/torsitsugi_test_15" for 127.0.0.1 at 2016-07-21 16:24:41 +0900
7143
+ Processing by Katgut::RulesController#show as HTML
7144
+ Parameters: {"id"=>"torsitsugi_test_15"}
7145
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_15"]]
7146
+ Redirected to http://httpbin.org/
7147
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7148
+  (0.1ms) DELETE FROM "katgut_rules";
7149
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7150
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7151
+  (0.4ms) rollback transaction
7152
+  (0.1ms) begin transaction
7153
+ Started GET "/katgut/not-existing-source-keyword" for 127.0.0.1 at 2016-07-21 16:24:41 +0900
7154
+ Processing by Katgut::RulesController#show as HTML
7155
+ Parameters: {"id"=>"not-existing-source-keyword"}
7156
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "not-existing-source-keyword"]]
7157
+ Redirected to http://www.example.com/
7158
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7159
+  (0.3ms) DELETE FROM "katgut_rules";
7160
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7161
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7162
+  (0.4ms) rollback transaction
7163
+  (0.0ms) begin transaction
7164
+  (0.0ms) SAVEPOINT active_record_1
7165
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_16' LIMIT 1
7166
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["source", "torsitsugi_test_16"], ["destination", "https://httpbin.org/"], ["created_at", "2016-07-21 07:24:41.271647"], ["updated_at", "2016-07-21 07:24:41.271647"]]
7167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7168
+ Started GET "/katgut/torsitsugi_test_16" for 127.0.0.1 at 2016-07-21 16:24:41 +0900
7169
+ Processing by Katgut::RulesController#show as HTML
7170
+ Parameters: {"id"=>"torsitsugi_test_16"}
7171
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_16"]]
7172
+ Redirected to http://www.example.com/
7173
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7174
+  (0.1ms) DELETE FROM "katgut_rules";
7175
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7176
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7177
+  (0.5ms) rollback transaction
7178
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7179
+  (1.1ms) DELETE FROM "katgut_rules";
7180
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7181
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7182
+  (0.0ms) begin transaction
7183
+  (0.1ms) SAVEPOINT active_record_1
7184
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_1' LIMIT 1
7185
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_1"], ["destination", "/advice"], ["active", "t"], ["created_at", "2016-07-21 07:24:59.264172"], ["updated_at", "2016-07-21 07:24:59.264172"]]
7186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7187
+ Processing by Katgut::RulesController#show as HTML
7188
+ Parameters: {"id"=>"advice"}
7189
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "advice"]]
7190
+ Redirected to http://test.host/
7191
+ Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
7192
+  (0.1ms) DELETE FROM "katgut_rules";
7193
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7194
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7195
+  (0.5ms) rollback transaction
7196
+  (0.0ms) begin transaction
7197
+  (0.0ms) SAVEPOINT active_record_1
7198
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_2' LIMIT 1
7199
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_2"], ["destination", "/advice"], ["active", "t"], ["created_at", "2016-07-21 07:24:59.278785"], ["updated_at", "2016-07-21 07:24:59.278785"]]
7200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7201
+ Processing by Katgut::RulesController#show as HTML
7202
+ Parameters: {"id"=>"advice"}
7203
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "advice"]]
7204
+ Redirected to http://test.host/
7205
+ Completed in 1ms (ActiveRecord: 0.1ms)
7206
+  (0.1ms) DELETE FROM "katgut_rules";
7207
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7208
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7209
+  (0.5ms) rollback transaction
7210
+  (0.0ms) begin transaction
7211
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_3' LIMIT 1
7212
+  (0.2ms) DELETE FROM "katgut_rules";
7213
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7214
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7215
+  (0.3ms) rollback transaction
7216
+  (0.1ms) begin transaction
7217
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" IS NULL LIMIT 1
7218
+  (0.2ms) DELETE FROM "katgut_rules";
7219
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7220
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7221
+  (0.3ms) rollback transaction
7222
+  (0.1ms) begin transaction
7223
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_5' LIMIT 1
7224
+  (0.2ms) DELETE FROM "katgut_rules";
7225
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7226
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7227
+  (0.4ms) rollback transaction
7228
+  (0.1ms) begin transaction
7229
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'test' LIMIT 1
7230
+  (0.2ms) DELETE FROM "katgut_rules";
7231
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7232
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7233
+  (0.4ms) rollback transaction
7234
+  (0.0ms) begin transaction
7235
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = '@@test@@' LIMIT 1
7236
+  (0.2ms) DELETE FROM "katgut_rules";
7237
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7238
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7239
+  (0.6ms) rollback transaction
7240
+  (0.1ms) begin transaction
7241
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_8' LIMIT 1
7242
+  (0.2ms) DELETE FROM "katgut_rules";
7243
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7244
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7245
+  (0.4ms) rollback transaction
7246
+  (0.1ms) begin transaction
7247
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_9' LIMIT 1
7248
+  (0.2ms) DELETE FROM "katgut_rules";
7249
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7250
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7251
+  (0.4ms) rollback transaction
7252
+  (0.1ms) begin transaction
7253
+  (0.2ms) DELETE FROM "katgut_rules";
7254
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7255
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7256
+  (0.4ms) rollback transaction
7257
+  (0.1ms) begin transaction
7258
+  (0.3ms) DELETE FROM "katgut_rules";
7259
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7260
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7261
+  (0.4ms) rollback transaction
7262
+  (0.1ms) begin transaction
7263
+  (0.2ms) DELETE FROM "katgut_rules";
7264
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7265
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7266
+  (0.3ms) rollback transaction
7267
+  (0.0ms) begin transaction
7268
+  (0.0ms) SAVEPOINT active_record_1
7269
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_13' LIMIT 1
7270
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_13"], ["destination", "/katgut_success.html"], ["active", "t"], ["created_at", "2016-07-21 07:24:59.336947"], ["updated_at", "2016-07-21 07:24:59.336947"]]
7271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7272
+ Started GET "/katgut/torsitsugi_test_13" for 127.0.0.1 at 2016-07-21 16:24:59 +0900
7273
+ Processing by Katgut::RulesController#show as HTML
7274
+ Parameters: {"id"=>"torsitsugi_test_13"}
7275
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_13"]]
7276
+ Redirected to http://www.example.com/katgut_success.html
7277
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7278
+  (0.1ms) DELETE FROM "katgut_rules";
7279
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7280
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7281
+  (0.5ms) rollback transaction
7282
+  (0.1ms) begin transaction
7283
+  (0.2ms) SAVEPOINT active_record_1
7284
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_14' LIMIT 1
7285
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_14"], ["destination", "https://httpbin.org/"], ["active", "t"], ["created_at", "2016-07-21 07:24:59.349423"], ["updated_at", "2016-07-21 07:24:59.349423"]]
7286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7287
+ Started GET "/katgut/torsitsugi_test_14" for 127.0.0.1 at 2016-07-21 16:24:59 +0900
7288
+ Processing by Katgut::RulesController#show as HTML
7289
+ Parameters: {"id"=>"torsitsugi_test_14"}
7290
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_14"]]
7291
+ Redirected to https://httpbin.org/
7292
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7293
+  (0.1ms) DELETE FROM "katgut_rules";
7294
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7295
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7296
+  (0.4ms) rollback transaction
7297
+  (0.1ms) begin transaction
7298
+  (0.0ms) SAVEPOINT active_record_1
7299
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_15' LIMIT 1
7300
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_15"], ["destination", "httpbin.org/"], ["active", "t"], ["created_at", "2016-07-21 07:24:59.359749"], ["updated_at", "2016-07-21 07:24:59.359749"]]
7301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7302
+ Started GET "/katgut/torsitsugi_test_15" for 127.0.0.1 at 2016-07-21 16:24:59 +0900
7303
+ Processing by Katgut::RulesController#show as HTML
7304
+ Parameters: {"id"=>"torsitsugi_test_15"}
7305
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_15"]]
7306
+ Redirected to http://httpbin.org/
7307
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7308
+  (0.1ms) DELETE FROM "katgut_rules";
7309
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7310
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7311
+  (0.5ms) rollback transaction
7312
+  (0.1ms) begin transaction
7313
+ Started GET "/katgut/not-existing-source-keyword" for 127.0.0.1 at 2016-07-21 16:24:59 +0900
7314
+ Processing by Katgut::RulesController#show as HTML
7315
+ Parameters: {"id"=>"not-existing-source-keyword"}
7316
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "not-existing-source-keyword"]]
7317
+ Redirected to http://www.example.com/
7318
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7319
+  (0.2ms) DELETE FROM "katgut_rules";
7320
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7321
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7322
+  (0.4ms) rollback transaction
7323
+  (0.0ms) begin transaction
7324
+  (0.0ms) SAVEPOINT active_record_1
7325
+ Katgut::Rule Exists (0.2ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_16' LIMIT 1
7326
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["source", "torsitsugi_test_16"], ["destination", "https://httpbin.org/"], ["created_at", "2016-07-21 07:24:59.375924"], ["updated_at", "2016-07-21 07:24:59.375924"]]
7327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7328
+ Started GET "/katgut/torsitsugi_test_16" for 127.0.0.1 at 2016-07-21 16:24:59 +0900
7329
+ Processing by Katgut::RulesController#show as HTML
7330
+ Parameters: {"id"=>"torsitsugi_test_16"}
7331
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_16"]]
7332
+ Redirected to http://www.example.com/
7333
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7334
+  (0.1ms) DELETE FROM "katgut_rules";
7335
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7336
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7337
+  (0.4ms) rollback transaction
7338
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7339
+  (9.0ms) DELETE FROM "katgut_rules";
7340
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7341
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7342
+  (0.0ms) begin transaction
7343
+  (0.1ms) SAVEPOINT active_record_1
7344
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_1' LIMIT 1
7345
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_1"], ["destination", "/katgut_success.html"], ["active", "t"], ["created_at", "2016-07-21 07:25:06.682048"], ["updated_at", "2016-07-21 07:25:06.682048"]]
7346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7347
+ Started GET "/katgut/torsitsugi_test_1" for 127.0.0.1 at 2016-07-21 16:25:06 +0900
7348
+ Processing by Katgut::RulesController#show as HTML
7349
+ Parameters: {"id"=>"torsitsugi_test_1"}
7350
+ Katgut::Rule Load (0.2ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_1"]]
7351
+ Redirected to http://www.example.com/katgut_success.html
7352
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
7353
+  (0.1ms) DELETE FROM "katgut_rules";
7354
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7355
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7356
+  (0.5ms) rollback transaction
7357
+  (0.1ms) begin transaction
7358
+  (0.0ms) SAVEPOINT active_record_1
7359
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_2' LIMIT 1
7360
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_2"], ["destination", "https://httpbin.org/"], ["active", "t"], ["created_at", "2016-07-21 07:25:06.699453"], ["updated_at", "2016-07-21 07:25:06.699453"]]
7361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7362
+ Started GET "/katgut/torsitsugi_test_2" for 127.0.0.1 at 2016-07-21 16:25:06 +0900
7363
+ Processing by Katgut::RulesController#show as HTML
7364
+ Parameters: {"id"=>"torsitsugi_test_2"}
7365
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_2"]]
7366
+ Redirected to https://httpbin.org/
7367
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7368
+  (0.1ms) DELETE FROM "katgut_rules";
7369
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7370
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7371
+  (0.4ms) rollback transaction
7372
+  (0.0ms) begin transaction
7373
+  (0.0ms) SAVEPOINT active_record_1
7374
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_3' LIMIT 1
7375
+ SQL (0.2ms) INSERT INTO "katgut_rules" ("source", "destination", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["source", "torsitsugi_test_3"], ["destination", "httpbin.org/"], ["active", "t"], ["created_at", "2016-07-21 07:25:06.707956"], ["updated_at", "2016-07-21 07:25:06.707956"]]
7376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7377
+ Started GET "/katgut/torsitsugi_test_3" for 127.0.0.1 at 2016-07-21 16:25:06 +0900
7378
+ Processing by Katgut::RulesController#show as HTML
7379
+ Parameters: {"id"=>"torsitsugi_test_3"}
7380
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_3"]]
7381
+ Redirected to http://httpbin.org/
7382
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7383
+  (0.1ms) DELETE FROM "katgut_rules";
7384
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7385
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7386
+  (0.5ms) rollback transaction
7387
+  (0.1ms) begin transaction
7388
+ Started GET "/katgut/not-existing-source-keyword" for 127.0.0.1 at 2016-07-21 16:25:06 +0900
7389
+ Processing by Katgut::RulesController#show as HTML
7390
+ Parameters: {"id"=>"not-existing-source-keyword"}
7391
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "not-existing-source-keyword"]]
7392
+ Redirected to http://www.example.com/
7393
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7394
+  (5.7ms) DELETE FROM "katgut_rules";
7395
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7396
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7397
+  (0.4ms) rollback transaction
7398
+  (0.1ms) begin transaction
7399
+  (0.0ms) SAVEPOINT active_record_1
7400
+ Katgut::Rule Exists (0.1ms) SELECT 1 AS one FROM "katgut_rules" WHERE "katgut_rules"."source" = 'torsitsugi_test_4' LIMIT 1
7401
+ SQL (0.3ms) INSERT INTO "katgut_rules" ("source", "destination", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["source", "torsitsugi_test_4"], ["destination", "https://httpbin.org/"], ["created_at", "2016-07-21 07:25:06.728758"], ["updated_at", "2016-07-21 07:25:06.728758"]]
7402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7403
+ Started GET "/katgut/torsitsugi_test_4" for 127.0.0.1 at 2016-07-21 16:25:06 +0900
7404
+ Processing by Katgut::RulesController#show as HTML
7405
+ Parameters: {"id"=>"torsitsugi_test_4"}
7406
+ Katgut::Rule Load (0.1ms) SELECT "katgut_rules".* FROM "katgut_rules" WHERE "katgut_rules"."active" = ? AND "katgut_rules"."source" = ? LIMIT 1 [["active", "t"], ["source", "torsitsugi_test_4"]]
7407
+ Redirected to http://www.example.com/
7408
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
7409
+  (0.1ms) DELETE FROM "katgut_rules";
7410
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7411
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'katgut_rules';
7412
+  (0.5ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katgut
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
  - HAMADA Kazuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -154,7 +154,6 @@ files:
154
154
  - spec/dummy/public/422.html
155
155
  - spec/dummy/public/500.html
156
156
  - spec/dummy/public/favicon.ico
157
- - spec/dummy/tmp/pids/server.pid
158
157
  - spec/factories/rules.rb
159
158
  - spec/integration/navigation_test.rb
160
159
  - spec/katgut_test.rb
@@ -229,7 +228,6 @@ test_files:
229
228
  - spec/dummy/public/favicon.ico
230
229
  - spec/dummy/Rakefile
231
230
  - spec/dummy/README.rdoc
232
- - spec/dummy/tmp/pids/server.pid
233
231
  - spec/factories/rules.rb
234
232
  - spec/integration/navigation_test.rb
235
233
  - spec/katgut_test.rb
@@ -1 +0,0 @@
1
- 27548