referer_tracking 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (21) hide show
  1. checksums.yaml +4 -4
  2. data/lib/referer_tracking/version.rb +1 -1
  3. data/test/dummy/db/test.sqlite3 +0 -0
  4. data/test/dummy/log/test.log +248 -0
  5. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  6. data/test/dummy/tmp/cache/assets/test/sprockets/2061465cdaa4af5682ef172a297ff369 +0 -0
  7. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  8. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  9. data/test/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  10. data/test/dummy/tmp/cache/assets/test/sprockets/4050a4e5062ab95c9f32e9b6940821ea +0 -0
  11. data/test/dummy/tmp/cache/assets/test/sprockets/4c04c5d3c4c4970598b78b1362270ed6 +0 -0
  12. data/test/dummy/tmp/cache/assets/test/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174 +0 -0
  13. data/test/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/87b209c0c9da28094a8d5581a21262c6 +0 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/9aaa89030775346d168ace83765eb46a +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/b0c12099afcf1845441fc62fc3c0f731 +0 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/f56253b5f374fff1a33fbbc9881c9124 +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  21. metadata +13 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac2ed7db67e7f5c71064e79a40e9e52467485612
4
- data.tar.gz: 1ec8f8e1cd5444e29038e1edd0451fdb66e70390
3
+ metadata.gz: 356dac126dad74ad063890ac8851947fa4ae89ed
4
+ data.tar.gz: 07c7475f65caa07e28863e02043d3b76fcf5a942
5
5
  SHA512:
6
- metadata.gz: 2db91242366d65cd2e9e1fa4071e335484518e9a914a342cf33b41be31bedb9c6360cb972c447ddc55e9800a2bcacedc301f7968e93dbc88356c690ee9c12997
7
- data.tar.gz: 81ad384a4c01686d844ed595dea4fc7d3c803c1509d6b7a1a9617bb46772b0c9a405c58e5deabffe42b89d242d366323548892aaa8b0b8dfc11ca447b6d81825
6
+ metadata.gz: 433d5868ee3e8cf9caaf9f4338995bb60c29ae1162aa4445b2e26526a550a4608bf1ad181cf1d87dc1437bda6a0a267a9a97b9c10e678791e1b88a2edf062fc5
7
+ data.tar.gz: a2db59067dfc85be6aa32e9a51b7c6b408cd0c7ef38bfb803b55ff03537fa28ecf056c95e4636b8415f54543de278d7039c6909676353c00ea74fe954af8d98b
@@ -1,3 +1,3 @@
1
1
  module RefererTracking
2
- VERSION = "4.0.0"
2
+ VERSION = "4.0.1"
3
3
  end
Binary file
@@ -12706,3 +12706,251 @@ Redirected to http://www.example.com/users/980190963
12706
12706
  Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
12707
12707
  RefererTracking::RefererTracking Load (0.1ms) SELECT "referer_trackings".* FROM "referer_trackings" ORDER BY "referer_trackings"."id" ASC LIMIT 1
12708
12708
   (0.1ms) rollback transaction
12709
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12710
+  (0.1ms) begin transaction
12711
+ Fixture Delete (0.1ms) DELETE FROM "users"
12712
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Agent Smith', '2014-12-30 09:49:12', '2014-12-30 09:49:12', 980190962)
12713
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Agent Born', '2014-12-30 09:49:12', '2014-12-30 09:49:12', 298486374)
12714
+  (32.8ms) commit transaction
12715
+  (0.2ms) begin transaction
12716
+ -----------------------------------------------------------------------------
12717
+ RefererSessionTest: test_error_in_sweeper_should_not_result_error_in_response
12718
+ -----------------------------------------------------------------------------
12719
+ Started GET "/users" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12720
+ Processing by UsersController#index as HTML
12721
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| www.some-source-forward.com ||| http://www.example.com/users
12722
+ Rendered users/index.html.erb within layouts/application (0.9ms)
12723
+ Completed 200 OK in 40ms (Views: 32.8ms | ActiveRecord: 0.0ms)
12724
+ Started POST "/users" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12725
+ Processing by UsersController#create as HTML
12726
+ Parameters: {"user"=>{"name"=>"test name"}}
12727
+  (0.1ms) SAVEPOINT active_record_1
12728
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 09:49:12.553345"], ["name", "test name"], ["updated_at", "2014-12-30 09:49:12.553345"]]
12729
+ RefererTracking::Sweeper.after_create problem with creating record: Exception
12730
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12731
+ Redirected to http://www.example.com/users/980190963
12732
+ Completed 302 Found in 13ms (ActiveRecord: 0.6ms)
12733
+  (0.1ms) rollback transaction
12734
+  (0.0ms) begin transaction
12735
+ --------------------------------------------------------------------------------------------
12736
+ RefererSessionTest: test_should_be_able_to_save_models_and_safe_referer_tracking_at_the_same
12737
+ --------------------------------------------------------------------------------------------
12738
+ Started GET "/users?gclib=some_keyword&password=[FILTERED]&more=things" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12739
+ Processing by UsersController#index as HTML
12740
+ Parameters: {"gclib"=>"some_keyword", "password"=>"[FILTERED]", "more"=>"things"}
12741
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| www.some-source-forward.com ||| http://www.example.com/users?gclib=some_keyword&pass=xxxx&more=things
12742
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12743
+  (0.1ms) SELECT COUNT(*) FROM "referer_trackings"
12744
+ Started POST "/users" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12745
+ Processing by UsersController#create as HTML
12746
+ Parameters: {"user"=>{"name"=>"test name"}}
12747
+  (0.0ms) SAVEPOINT active_record_1
12748
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 09:49:12.569060"], ["name", "test name"], ["updated_at", "2014-12-30 09:49:12.569060"]]
12749
+ SQL (0.2ms) INSERT INTO "referer_trackings" ("cookie_first_url", "cookie_referer_url", "cookie_time", "cookies_yaml", "created_at", "current_request_referer_url", "current_request_url", "infos_request", "infos_session", "ip", "request_added", "session_added", "session_first_url", "session_id", "session_referer_url", "trackable_id", "trackable_type", "updated_at", "user_agent") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cookie_first_url", "http://www.example.com/users?gclib=some_keyword&pass=xxxx&more=things"], ["cookie_referer_url", "www.some-source-forward.com"], ["cookie_time", "2014-12-30 09:49:12.000000"], ["cookies_yaml", "---\n_dummy_session: U25iYzlKb3ZTRW1YaXBjWjVoaC9zRFJVODQ3Q2VTVFZsTUtiWW5aRFUxOVFLUXRzUHMxZ25tR0FzdDBKZTE2dEZMQzFsejhMUHhKQWhTZ2ZoNStXc1BFSk95WUNId0szSko2NitTL25zVUNTVElHYzAzL2VDcFRmcW5uYTdRc05jNkZPUmRPR25jYXJ0M2VrZUdMSmVzK3FSY29rQStTaENUdWNoaEY3YkRKK3lwREVYVVN0UHFpNklqNC9iS1BLQTZBMUU0dlFxSnpOaWc0aW54WVVhQ1JBZ2ZHdStsNFNSc2loN2MrbDk1dnhBVXJVNWhLSk8vR2lTTTRYSVdYUGJRVy9Sc1ZkdjhDV2hwY1B4dFR6Q3FvaGxoV1U0dG9uSzU0UnZJRDJjN0djNXJ2SWN5Q0Y2dFVHK3NHR21kTjB5VG5oRXBXOTViYkc0ZjdVMFJsOHFyS25zTFZ6K2RFQloxUDVoOTZlYjE2bkRnTjY0bk9NUmt5NU5peEs0TFZlTG9oUXpGSXJsWitZb3hQaUwvSUJ3VXBuUTN4TUcrR0R2WlhyYS9DUTU2cUduNVZMMGVkSy9EcWdhYzdXRUkzeVhQaGkxV1hXYnBRNGVkalZkVU9mbFE9PS0teHlVdE9FSGwwS0NUSGN3bGErQWJrdz09--7e080dd16f1ff47c78522f1aebeb39b8b27e4753\nref_track: v01|||1419932952|||http://www.example.com/users?gclib=some_keyword&pass=xxxx&more=things|||www.some-source-forward.com\n"], ["created_at", "2014-12-30 09:49:12.570460"], ["current_request_referer_url", "localhost.inv/request_from_this_page"], ["current_request_url", "http://www.example.com/users"], ["infos_request", "---\n:request_added: testing_request_add\n:request_added_hash: testing_request_add_without_db_column\n"], ["infos_session", "---\n:session_added: testing_session_add\n:session_added_hash: testing_session_add_without_db_column\n"], ["ip", "127.0.0.1"], ["request_added", "testing_request_add"], ["session_added", "testing_session_add"], ["session_first_url", "http://www.example.com/users?gclib=some_keyword&pass=xxxx&more=things"], ["session_id", "e88adcbf92f4a6b64dc24d4822deb2cd"], ["session_referer_url", "www.some-source-forward.com"], ["trackable_id", 980190963], ["trackable_type", "User"], ["updated_at", "2014-12-30 09:49:12.570460"], ["user_agent", "som user agent"]]
12750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12751
+ Redirected to http://www.example.com/users/980190963
12752
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
12753
+  (0.0ms) SELECT COUNT(*) FROM "referer_trackings"
12754
+ RefererTracking::RefererTracking Load (0.1ms) SELECT "referer_trackings".* FROM "referer_trackings" ORDER BY "referer_trackings"."created_at" DESC LIMIT 1
12755
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'test name' ORDER BY "users"."id" ASC LIMIT 1
12756
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
12757
+ RefererTracking::RefererTracking Load (0.1ms) SELECT "referer_trackings".* FROM "referer_trackings" WHERE "referer_trackings"."trackable_id" = ? AND "referer_trackings"."trackable_type" = ? LIMIT 1 [["trackable_id", 980190963], ["trackable_type", "User"]]
12758
+ Started PUT "/users/980190963" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12759
+ Processing by UsersController#update as HTML
12760
+ Parameters: {"user"=>{"name"=>"test name"}, "id"=>"980190963"}
12761
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
12762
+  (0.0ms) SAVEPOINT active_record_1
12763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12764
+ Redirected to http://www.example.com/users/980190963
12765
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
12766
+  (0.1ms) SELECT COUNT(*) FROM "referer_trackings"
12767
+  (0.1ms) rollback transaction
12768
+  (0.0ms) begin transaction
12769
+ ---------------------------------------------------------------------
12770
+ RefererSessionTest: test_should_not_update_session_in_second_requests
12771
+ ---------------------------------------------------------------------
12772
+ Started GET "/users" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12773
+ Processing by UsersController#index as HTML
12774
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| www.some-source-forward.com ||| http://www.example.com/users
12775
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12776
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
12777
+ Started GET "/users/298486374" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12778
+ Processing by UsersController#show as HTML
12779
+ Parameters: {"id"=>"298486374"}
12780
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 298486374]]
12781
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms)
12782
+  (0.1ms) rollback transaction
12783
+  (0.0ms) begin transaction
12784
+ -------------------------------------------------------
12785
+ RefererSessionTest: test_should_save_referer_to_session
12786
+ -------------------------------------------------------
12787
+ Started GET "/users" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12788
+ Processing by UsersController#index as HTML
12789
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| www.some-source-forward.com ||| http://www.example.com/users
12790
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12791
+  (0.0ms) rollback transaction
12792
+  (0.0ms) begin transaction
12793
+ ----------------------------------------------------------------------------------------------
12794
+ RefererSessionTest: test_should_stop_trying_and_return_the_original_if_url_appears_unparseable
12795
+ ----------------------------------------------------------------------------------------------
12796
+ Started GET "/users" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12797
+ Processing by UsersController#index as HTML
12798
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| httpim_actually€Not-Aparseable&URL% ||| http://www.example.com/users
12799
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12800
+ Started POST "/users" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12801
+ Processing by UsersController#create as HTML
12802
+  (0.0ms) SAVEPOINT active_record_1
12803
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 09:49:12.601408"], ["updated_at", "2014-12-30 09:49:12.601408"]]
12804
+ SQL (0.1ms) INSERT INTO "referer_trackings" ("cookie_first_url", "cookie_referer_url", "cookie_time", "created_at", "current_request_url", "infos_request", "infos_session", "ip", "request_added", "session_added", "session_first_url", "session_id", "session_referer_url", "trackable_id", "trackable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cookie_first_url", "http://www.example.com/users"], ["cookie_referer_url", "httpim_actually€Not-Aparseable&URL%"], ["cookie_time", "2014-12-30 09:49:12.000000"], ["created_at", "2014-12-30 09:49:12.602562"], ["current_request_url", "http://www.example.com/users"], ["infos_request", "---\n:request_added: testing_request_add\n:request_added_hash: testing_request_add_without_db_column\n"], ["infos_session", "---\n:session_added: testing_session_add\n:session_added_hash: testing_session_add_without_db_column\n"], ["ip", "127.0.0.1"], ["request_added", "testing_request_add"], ["session_added", "testing_session_add"], ["session_first_url", "http://www.example.com/users"], ["session_id", "f371a9562f5f20db634de1f95917bbf7"], ["session_referer_url", "httpim_actually€Not-Aparseable&URL%"], ["trackable_id", 980190963], ["trackable_type", "User"], ["updated_at", "2014-12-30 09:49:12.602562"]]
12805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12806
+ Redirected to http://www.example.com/users/980190963
12807
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
12808
+ RefererTracking::RefererTracking Load (0.1ms) SELECT "referer_trackings".* FROM "referer_trackings" ORDER BY "referer_trackings"."id" ASC LIMIT 1
12809
+  (0.1ms) rollback transaction
12810
+  (0.0ms) begin transaction
12811
+ ------------------------------------------------------------------------
12812
+ RefererSessionTest: test_should_try_to_make_urls_parseable_before_saving
12813
+ ------------------------------------------------------------------------
12814
+ Started GET "/users" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12815
+ Processing by UsersController#index as HTML
12816
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| http://test.xd/?url=http%3A%2F%2Ftest.inv%2Ftest%2Ftest ||| http://www.example.com/users
12817
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12818
+ Started POST "/users" for 127.0.0.1 at 2014-12-30 11:49:12 +0200
12819
+ Processing by UsersController#create as HTML
12820
+  (0.0ms) SAVEPOINT active_record_1
12821
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 09:49:12.610087"], ["updated_at", "2014-12-30 09:49:12.610087"]]
12822
+ SQL (0.1ms) INSERT INTO "referer_trackings" ("cookie_first_url", "cookie_referer_url", "cookie_time", "created_at", "current_request_url", "infos_request", "infos_session", "ip", "request_added", "session_added", "session_first_url", "session_id", "session_referer_url", "trackable_id", "trackable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cookie_first_url", "http://www.example.com/users"], ["cookie_referer_url", "http://test.xd/?url=http%3A%2F%2Ftest.inv%2Ftest"], ["cookie_time", "2014-12-30 09:49:12.000000"], ["created_at", "2014-12-30 09:49:12.611235"], ["current_request_url", "http://www.example.com/users"], ["infos_request", "---\n:request_added: testing_request_add\n:request_added_hash: testing_request_add_without_db_column\n"], ["infos_session", "---\n:session_added: testing_session_add\n:session_added_hash: testing_session_add_without_db_column\n"], ["ip", "127.0.0.1"], ["request_added", "testing_request_add"], ["session_added", "testing_session_add"], ["session_first_url", "http://www.example.com/users"], ["session_id", "9a7e8885837419476bc2c222162c055c"], ["session_referer_url", "http://test.xd/?url=http%3A%2F%2Ftest.inv%2Ftest%2Ftest"], ["trackable_id", 980190963], ["trackable_type", "User"], ["updated_at", "2014-12-30 09:49:12.611235"]]
12823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12824
+ Redirected to http://www.example.com/users/980190963
12825
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
12826
+ RefererTracking::RefererTracking Load (0.2ms) SELECT "referer_trackings".* FROM "referer_trackings" ORDER BY "referer_trackings"."id" ASC LIMIT 1
12827
+  (0.1ms) rollback transaction
12828
+  (0.1ms) begin transaction
12829
+ -------------------------------
12830
+ RefererTrackingTest: test_truth
12831
+ -------------------------------
12832
+  (0.0ms) rollback transaction
12833
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12834
+  (0.1ms) begin transaction
12835
+ Fixture Delete (0.1ms) DELETE FROM "users"
12836
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Agent Smith', '2014-12-30 09:49:56', '2014-12-30 09:49:56', 980190962)
12837
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Agent Born', '2014-12-30 09:49:56', '2014-12-30 09:49:56', 298486374)
12838
+  (54.9ms) commit transaction
12839
+  (0.1ms) begin transaction
12840
+ -----------------------------------------------------------------------------
12841
+ RefererSessionTest: test_error_in_sweeper_should_not_result_error_in_response
12842
+ -----------------------------------------------------------------------------
12843
+ Started GET "/users" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12844
+ Processing by UsersController#index as HTML
12845
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| www.some-source-forward.com ||| http://www.example.com/users
12846
+ Rendered users/index.html.erb within layouts/application (0.7ms)
12847
+ Completed 200 OK in 20ms (Views: 10.4ms | ActiveRecord: 0.0ms)
12848
+ Started POST "/users" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12849
+ Processing by UsersController#create as HTML
12850
+ Parameters: {"user"=>{"name"=>"test name"}}
12851
+  (0.1ms) SAVEPOINT active_record_1
12852
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 09:49:56.604379"], ["name", "test name"], ["updated_at", "2014-12-30 09:49:56.604379"]]
12853
+ RefererTracking::Sweeper.after_create problem with creating record: Exception
12854
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12855
+ Redirected to http://www.example.com/users/980190963
12856
+ Completed 302 Found in 13ms (ActiveRecord: 0.6ms)
12857
+  (0.1ms) rollback transaction
12858
+  (0.0ms) begin transaction
12859
+ --------------------------------------------------------------------------------------------
12860
+ RefererSessionTest: test_should_be_able_to_save_models_and_safe_referer_tracking_at_the_same
12861
+ --------------------------------------------------------------------------------------------
12862
+ Started GET "/users?gclib=some_keyword&password=[FILTERED]&more=things" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12863
+ Processing by UsersController#index as HTML
12864
+ Parameters: {"gclib"=>"some_keyword", "password"=>"[FILTERED]", "more"=>"things"}
12865
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| www.some-source-forward.com ||| http://www.example.com/users?gclib=some_keyword&pass=xxxx&more=things
12866
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12867
+  (0.1ms) SELECT COUNT(*) FROM "referer_trackings"
12868
+ Started POST "/users" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12869
+ Processing by UsersController#create as HTML
12870
+ Parameters: {"user"=>{"name"=>"test name"}}
12871
+  (0.0ms) SAVEPOINT active_record_1
12872
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 09:49:56.620369"], ["name", "test name"], ["updated_at", "2014-12-30 09:49:56.620369"]]
12873
+ SQL (0.1ms) INSERT INTO "referer_trackings" ("cookie_first_url", "cookie_referer_url", "cookie_time", "cookies_yaml", "created_at", "current_request_referer_url", "current_request_url", "infos_request", "infos_session", "ip", "request_added", "session_added", "session_first_url", "session_id", "session_referer_url", "trackable_id", "trackable_type", "updated_at", "user_agent") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cookie_first_url", "http://www.example.com/users?gclib=some_keyword&pass=xxxx&more=things"], ["cookie_referer_url", "www.some-source-forward.com"], ["cookie_time", "2014-12-30 09:49:56.000000"], ["cookies_yaml", "---\n_dummy_session: bFhsM0IvWG9rdlh5Q0ExL3ZmNmIvZUdIdlRyQ0F0em4xVnNPTDRsU0s5eWFxNk55S2NYRXo5dmNodnlKTDFYRVVTZm5KS0JYc3ZGdlR5NUZWeGw1eUx3YWwxT2JEZHdzcFRKeGZRdWpCajRnSlNkRXQzcTRMS0ZiUlROa1lLd084eXpKaVE3dWVFWnVlV3lMY2VhUVY5b25jVG5IT08zYnBTU0Y1d2lrbWJLSGdhWk45OXFPU2I3UkRCNktvZXpsYTNMNW9hMGZ5eXdValZrOGxnVVlTZmdjN1NCOEYzSlJNdTVhQlJLc2syVnd5S0dyQUdtdm1WeE54NDA0ME5lemN5UVNBQm4zOXpwNGg2MVJ0QzV6Z3lwSU0wSFVFM1ZpTnlTQkhFQ1VOUXBMbldyekN1MUFuZFZHaFkxL1dMV2Y4QWwrWGk2MGt4cXd6dHpadEw2T0tsQnAyNEc0V1Q2OVM5M3Y0YS82MmtBL1BZY3FKQzRYZ1hHdi8rZmVjcDJnc2tOSVlCd3ltWDY5dnlGYWhpcFJkcXAwUnpnOVBPYVpWbS8zbmxVaGM5MnBmSWU4UXZyM281N1d3cFZEdEh6VVB3RjRQd1RJb2Z0Tlh1MnNCOFZENlE9PS0tV3NyenpaMWFzVTRmL01DbUJqM1NyZz09--052683ff7100a1cecb660aebf6b01d031b2b85f2\nref_track: v01|||1419932996|||http://www.example.com/users?gclib=some_keyword&pass=xxxx&more=things|||www.some-source-forward.com\n"], ["created_at", "2014-12-30 09:49:56.621794"], ["current_request_referer_url", "localhost.inv/request_from_this_page"], ["current_request_url", "http://www.example.com/users"], ["infos_request", "---\n:request_added: testing_request_add\n:request_added_hash: testing_request_add_without_db_column\n"], ["infos_session", "---\n:session_added: testing_session_add\n:session_added_hash: testing_session_add_without_db_column\n"], ["ip", "127.0.0.1"], ["request_added", "testing_request_add"], ["session_added", "testing_session_add"], ["session_first_url", "http://www.example.com/users?gclib=some_keyword&pass=xxxx&more=things"], ["session_id", "f355db45c44c58140622a6950574c317"], ["session_referer_url", "www.some-source-forward.com"], ["trackable_id", 980190963], ["trackable_type", "User"], ["updated_at", "2014-12-30 09:49:56.621794"], ["user_agent", "som user agent"]]
12874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12875
+ Redirected to http://www.example.com/users/980190963
12876
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
12877
+  (0.1ms) SELECT COUNT(*) FROM "referer_trackings"
12878
+ RefererTracking::RefererTracking Load (0.1ms) SELECT "referer_trackings".* FROM "referer_trackings" ORDER BY "referer_trackings"."created_at" DESC LIMIT 1
12879
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'test name' ORDER BY "users"."id" ASC LIMIT 1
12880
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
12881
+ RefererTracking::RefererTracking Load (0.2ms) SELECT "referer_trackings".* FROM "referer_trackings" WHERE "referer_trackings"."trackable_id" = ? AND "referer_trackings"."trackable_type" = ? LIMIT 1 [["trackable_id", 980190963], ["trackable_type", "User"]]
12882
+ Started PUT "/users/980190963" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12883
+ Processing by UsersController#update as HTML
12884
+ Parameters: {"user"=>{"name"=>"test name"}, "id"=>"980190963"}
12885
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
12886
+  (0.0ms) SAVEPOINT active_record_1
12887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12888
+ Redirected to http://www.example.com/users/980190963
12889
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
12890
+  (0.1ms) SELECT COUNT(*) FROM "referer_trackings"
12891
+  (0.1ms) rollback transaction
12892
+  (0.0ms) begin transaction
12893
+ ---------------------------------------------------------------------
12894
+ RefererSessionTest: test_should_not_update_session_in_second_requests
12895
+ ---------------------------------------------------------------------
12896
+ Started GET "/users" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12897
+ Processing by UsersController#index as HTML
12898
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| www.some-source-forward.com ||| http://www.example.com/users
12899
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12900
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
12901
+ Started GET "/users/298486374" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12902
+ Processing by UsersController#show as HTML
12903
+ Parameters: {"id"=>"298486374"}
12904
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 298486374]]
12905
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
12906
+  (0.1ms) rollback transaction
12907
+  (0.0ms) begin transaction
12908
+ -------------------------------------------------------
12909
+ RefererSessionTest: test_should_save_referer_to_session
12910
+ -------------------------------------------------------
12911
+ Started GET "/users" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12912
+ Processing by UsersController#index as HTML
12913
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| www.some-source-forward.com ||| http://www.example.com/users
12914
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12915
+  (0.0ms) rollback transaction
12916
+  (0.0ms) begin transaction
12917
+ ----------------------------------------------------------------------------------------------
12918
+ RefererSessionTest: test_should_stop_trying_and_return_the_original_if_url_appears_unparseable
12919
+ ----------------------------------------------------------------------------------------------
12920
+ Started GET "/users" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12921
+ Processing by UsersController#index as HTML
12922
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| httpim_actually€Not-Aparseable&URL% ||| http://www.example.com/users
12923
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12924
+ Started POST "/users" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12925
+ Processing by UsersController#create as HTML
12926
+  (0.0ms) SAVEPOINT active_record_1
12927
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 09:49:56.650190"], ["updated_at", "2014-12-30 09:49:56.650190"]]
12928
+ SQL (0.1ms) INSERT INTO "referer_trackings" ("cookie_first_url", "cookie_referer_url", "cookie_time", "created_at", "current_request_url", "infos_request", "infos_session", "ip", "request_added", "session_added", "session_first_url", "session_id", "session_referer_url", "trackable_id", "trackable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cookie_first_url", "http://www.example.com/users"], ["cookie_referer_url", "httpim_actually€Not-Aparseable&URL%"], ["cookie_time", "2014-12-30 09:49:56.000000"], ["created_at", "2014-12-30 09:49:56.651474"], ["current_request_url", "http://www.example.com/users"], ["infos_request", "---\n:request_added: testing_request_add\n:request_added_hash: testing_request_add_without_db_column\n"], ["infos_session", "---\n:session_added: testing_session_add\n:session_added_hash: testing_session_add_without_db_column\n"], ["ip", "127.0.0.1"], ["request_added", "testing_request_add"], ["session_added", "testing_session_add"], ["session_first_url", "http://www.example.com/users"], ["session_id", "40142ad0681bbb3a26d66f9cff6b8327"], ["session_referer_url", "httpim_actually€Not-Aparseable&URL%"], ["trackable_id", 980190963], ["trackable_type", "User"], ["updated_at", "2014-12-30 09:49:56.651474"]]
12929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12930
+ Redirected to http://www.example.com/users/980190963
12931
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
12932
+ RefererTracking::RefererTracking Load (0.1ms) SELECT "referer_trackings".* FROM "referer_trackings" ORDER BY "referer_trackings"."id" ASC LIMIT 1
12933
+  (0.1ms) rollback transaction
12934
+  (0.0ms) begin transaction
12935
+ ------------------------------------------------------------------------
12936
+ RefererSessionTest: test_should_try_to_make_urls_parseable_before_saving
12937
+ ------------------------------------------------------------------------
12938
+ Started GET "/users" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12939
+ Processing by UsersController#index as HTML
12940
+ REFERER_TRACKING_FIRST: ver04 (ref|first) ||| http://test.xd/?url=http%3A%2F%2Ftest.inv%2Ftest%2Ftest ||| http://www.example.com/users
12941
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
12942
+ Started POST "/users" for 127.0.0.1 at 2014-12-30 11:49:56 +0200
12943
+ Processing by UsersController#create as HTML
12944
+  (0.0ms) SAVEPOINT active_record_1
12945
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 09:49:56.658614"], ["updated_at", "2014-12-30 09:49:56.658614"]]
12946
+ SQL (0.1ms) INSERT INTO "referer_trackings" ("cookie_first_url", "cookie_referer_url", "cookie_time", "created_at", "current_request_url", "infos_request", "infos_session", "ip", "request_added", "session_added", "session_first_url", "session_id", "session_referer_url", "trackable_id", "trackable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cookie_first_url", "http://www.example.com/users"], ["cookie_referer_url", "http://test.xd/?url=http%3A%2F%2Ftest.inv%2Ftest"], ["cookie_time", "2014-12-30 09:49:56.000000"], ["created_at", "2014-12-30 09:49:56.659742"], ["current_request_url", "http://www.example.com/users"], ["infos_request", "---\n:request_added: testing_request_add\n:request_added_hash: testing_request_add_without_db_column\n"], ["infos_session", "---\n:session_added: testing_session_add\n:session_added_hash: testing_session_add_without_db_column\n"], ["ip", "127.0.0.1"], ["request_added", "testing_request_add"], ["session_added", "testing_session_add"], ["session_first_url", "http://www.example.com/users"], ["session_id", "a0f1edc360002d12d4b110e6f148c4ce"], ["session_referer_url", "http://test.xd/?url=http%3A%2F%2Ftest.inv%2Ftest%2Ftest"], ["trackable_id", 980190963], ["trackable_type", "User"], ["updated_at", "2014-12-30 09:49:56.659742"]]
12947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12948
+ Redirected to http://www.example.com/users/980190963
12949
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
12950
+ RefererTracking::RefererTracking Load (0.1ms) SELECT "referer_trackings".* FROM "referer_trackings" ORDER BY "referer_trackings"."id" ASC LIMIT 1
12951
+  (0.1ms) rollback transaction
12952
+  (0.0ms) begin transaction
12953
+ -------------------------------
12954
+ RefererTrackingTest: test_truth
12955
+ -------------------------------
12956
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: referer_tracking
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olli Huotari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-13 00:00:00.000000000 Z
11
+ date: 2014-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.0
19
+ version: '4.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.0
26
+ version: '4.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails-observers
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -170,17 +170,21 @@ files:
170
170
  - test/dummy/tmp/cache/assets/D9A/830/sprockets%2F97b0ba4e6b920af1eb0c96a299f28b3b
171
171
  - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
172
172
  - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
173
+ - test/dummy/tmp/cache/assets/test/sprockets/2061465cdaa4af5682ef172a297ff369
173
174
  - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
174
175
  - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
175
176
  - test/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212
176
177
  - test/dummy/tmp/cache/assets/test/sprockets/4050a4e5062ab95c9f32e9b6940821ea
178
+ - test/dummy/tmp/cache/assets/test/sprockets/4c04c5d3c4c4970598b78b1362270ed6
177
179
  - test/dummy/tmp/cache/assets/test/sprockets/5652340e6744eb036df1049edad63537
178
180
  - test/dummy/tmp/cache/assets/test/sprockets/593b93ec1ad4cc8ce7600f8e12d88cc9
179
181
  - test/dummy/tmp/cache/assets/test/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174
180
182
  - test/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2
181
183
  - test/dummy/tmp/cache/assets/test/sprockets/707a1c711633514ec09e3b0db7af6a5a
182
184
  - test/dummy/tmp/cache/assets/test/sprockets/87b209c0c9da28094a8d5581a21262c6
185
+ - test/dummy/tmp/cache/assets/test/sprockets/9aaa89030775346d168ace83765eb46a
183
186
  - test/dummy/tmp/cache/assets/test/sprockets/a13866390005bb0cb0260ff16310f297
187
+ - test/dummy/tmp/cache/assets/test/sprockets/b0c12099afcf1845441fc62fc3c0f731
184
188
  - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
185
189
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
186
190
  - test/dummy/tmp/cache/assets/test/sprockets/f56253b5f374fff1a33fbbc9881c9124
@@ -210,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
214
  version: '0'
211
215
  requirements: []
212
216
  rubyforge_project:
213
- rubygems_version: 2.3.0
217
+ rubygems_version: 2.4.2
214
218
  signing_key:
215
219
  specification_version: 4
216
220
  summary: Referer tracking automates better tracking in your Rails app. It tells you
@@ -260,14 +264,17 @@ test_files:
260
264
  - test/dummy/tmp/cache/assets/D73/220/sprockets%2F3dbc0a37f98fb43ec819b85a64d32c55
261
265
  - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
262
266
  - test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
267
+ - test/dummy/tmp/cache/assets/test/sprockets/9aaa89030775346d168ace83765eb46a
263
268
  - test/dummy/tmp/cache/assets/test/sprockets/a13866390005bb0cb0260ff16310f297
264
269
  - test/dummy/tmp/cache/assets/test/sprockets/f56253b5f374fff1a33fbbc9881c9124
270
+ - test/dummy/tmp/cache/assets/test/sprockets/b0c12099afcf1845441fc62fc3c0f731
265
271
  - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
266
272
  - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
267
273
  - test/dummy/tmp/cache/assets/test/sprockets/707a1c711633514ec09e3b0db7af6a5a
268
274
  - test/dummy/tmp/cache/assets/test/sprockets/87b209c0c9da28094a8d5581a21262c6
269
275
  - test/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212
270
276
  - test/dummy/tmp/cache/assets/test/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174
277
+ - test/dummy/tmp/cache/assets/test/sprockets/4c04c5d3c4c4970598b78b1362270ed6
271
278
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
272
279
  - test/dummy/tmp/cache/assets/test/sprockets/593b93ec1ad4cc8ce7600f8e12d88cc9
273
280
  - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
@@ -275,6 +282,7 @@ test_files:
275
282
  - test/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2
276
283
  - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
277
284
  - test/dummy/tmp/cache/assets/test/sprockets/4050a4e5062ab95c9f32e9b6940821ea
285
+ - test/dummy/tmp/cache/assets/test/sprockets/2061465cdaa4af5682ef172a297ff369
278
286
  - test/dummy/tmp/cache/assets/test/sprockets/5652340e6744eb036df1049edad63537
279
287
  - test/dummy/tmp/cache/assets/D46/650/sprockets%2Ff56253b5f374fff1a33fbbc9881c9124
280
288
  - test/dummy/tmp/cache/assets/D9A/830/sprockets%2F97b0ba4e6b920af1eb0c96a299f28b3b