!RBIX 0 x M 1 n n x 10 __script__ i 73 5 7 0 64 47 49 1 1 15 99 7 2 45 3 4 43 5 65 49 6 3 13 99 12 7 7 12 7 8 12 65 12 49 9 4 15 49 7 0 15 99 7 10 45 3 11 43 12 65 49 6 3 13 99 12 7 7 12 7 13 12 65 12 49 9 4 15 49 7 0 15 2 11 I 6 I 0 I 0 I 0 n p 14 s 16 test/test_helper x 7 require x 19 UseVanityController x 16 ActionController n x 4 Base x 10 open_class x 14 __class_init__ M 1 n n x 19 UseVanityController i 24 5 66 5 7 0 47 49 1 1 15 99 7 2 7 3 65 67 49 4 0 49 5 4 11 I 5 I 0 I 0 I 0 n p 6 x 12 current_user x 13 attr_accessor x 5 index M 1 n n x 5 index i 27 5 44 43 0 79 49 1 1 13 7 2 5 7 3 47 49 4 1 49 5 2 15 47 49 6 1 11 I 6 I 0 I 0 I 0 n p 7 x 4 Hash x 16 new_from_literal x 4 text x 11 pie_or_cake x 7 ab_test x 3 []= x 6 render p 5 I 0 I 6 I 0 I 7 I 1b x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 17 method_visibility x 15 add_defn_method p 5 I 2 I 4 I a I 6 I 18 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 13 attach_method x 13 UseVanityTest n x 8 TestCase M 1 n n x 13 UseVanityTest i 305 5 66 5 45 0 1 47 49 2 1 15 99 7 3 7 4 65 67 49 5 0 49 6 4 15 99 7 7 7 8 65 67 49 5 0 49 6 4 15 99 7 9 7 10 65 67 49 5 0 49 6 4 15 99 7 11 7 12 65 67 49 5 0 49 6 4 15 99 7 13 7 14 65 67 49 5 0 49 6 4 15 99 7 15 7 16 65 67 49 5 0 49 6 4 15 99 7 17 7 18 65 67 49 5 0 49 6 4 15 99 7 19 7 20 65 67 49 5 0 49 6 4 15 99 7 21 7 22 65 67 49 5 0 49 6 4 15 99 7 23 7 24 65 67 49 5 0 49 6 4 15 99 7 25 7 26 65 67 49 5 0 49 6 4 15 99 7 27 7 28 65 67 49 5 0 49 6 4 15 99 7 29 7 30 65 67 49 5 0 49 6 4 15 99 7 31 7 32 65 67 49 5 0 49 6 4 15 99 7 33 7 34 65 67 49 5 0 49 6 4 15 99 7 35 7 36 65 67 49 5 0 49 6 4 15 99 7 37 7 38 65 67 49 5 0 49 6 4 15 99 7 39 7 40 65 67 49 5 0 49 6 4 15 99 7 41 7 42 65 67 49 5 0 49 6 4 15 99 7 43 7 44 65 67 49 5 0 49 6 4 15 99 7 45 7 46 65 67 49 5 0 49 6 4 11 I 5 I 0 I 0 I 0 n p 47 x 19 UseVanityController n x 5 tests x 5 setup M 1 n n x 5 setup i 31 54 89 0 15 5 7 1 47 49 2 1 15 5 7 3 56 4 47 50 5 1 15 45 6 7 56 8 50 9 0 11 I 3 I 0 I 0 I 0 n p 10 x 5 setup x 10 sugar_high x 6 metric x 11 pie_or_cake M 1 p 2 x 9 for_block t n x 5 setup i 8 5 7 0 47 49 1 1 11 I 3 I 0 I 0 I 0 I -2 p 2 x 10 sugar_high x 7 metrics p 5 I 0 I 12 I 0 I 13 I 8 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 11 new_ab_test x 19 UseVanityController n M 1 p 2 x 9 for_block t n x 5 setup i 8 5 7 0 47 49 1 1 11 I 3 I 0 I 0 I 0 I -2 p 2 x 12 current_user x 10 use_vanity p 5 I 0 I 15 I 0 I 16 I 8 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 10 class_eval p 11 I 0 I f I 0 I 10 I 4 I 11 I c I 12 I 16 I 15 I 1f x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 17 method_visibility x 15 add_defn_method x 32 test_vanity_cookie_is_persistent M 1 n n x 32 test_vanity_cookie_is_persistent i 91 5 7 0 47 49 1 1 15 5 39 2 7 3 64 49 4 1 56 5 50 6 0 19 0 47 49 7 1 15 5 20 0 7 8 13 70 9 50 15 44 43 9 7 10 78 49 11 2 6 8 79 49 4 2 19 1 47 49 7 1 15 5 45 12 13 20 1 49 14 1 45 12 15 49 16 0 79 49 17 0 81 18 79 49 19 0 47 49 20 3 11 I 7 I 2 I 0 I 0 n p 21 x 5 index x 3 get x 9 @response s 10 Set-Cookie x 2 [] M 1 p 2 x 9 for_block t n x 32 test_vanity_cookie_is_persistent i 28 57 19 0 15 20 0 7 0 13 70 9 24 15 44 43 1 7 2 78 49 3 2 6 0 49 4 1 11 I 6 I 1 I 1 I 1 n p 5 n x 6 Regexp s 11 ^vanity_id= x 3 new x 2 [] p 3 I 0 I 1c I 1c x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 1 x 1 c x 4 find x 6 assert n x 6 Regexp s 50 vanity_id=[a-f0-9]{32}; path=\/; expires=(.*)(;|$) x 3 new x 4 Time n x 5 parse n x 3 now x 5 month x 1 + x 6 minute x 15 assert_in_delta p 11 I 0 I 1a I 0 I 1b I 8 I 1c I 1d I 1d I 3d I 1e I 5b x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 2 x 6 cookie x 7 expires x 29 test_vanity_cookie_default_id M 1 n n x 29 test_vanity_cookie_default_id i 44 5 7 0 47 49 1 1 15 5 5 48 2 7 3 64 49 4 1 7 5 13 70 9 36 15 44 43 6 7 7 78 49 8 2 6 5 49 9 1 47 49 10 1 11 I 5 I 0 I 0 I 0 n p 11 x 5 index x 3 get x 7 cookies s 9 vanity_id x 2 [] n x 6 Regexp s 14 ^[a-f0-9]{32}$ x 3 new x 2 =~ x 6 assert p 7 I 0 I 21 I 0 I 22 I 8 I 23 I 2c x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 29 test_vanity_cookie_retains_id M 1 n n x 29 test_vanity_cookie_retains_id i 45 39 0 49 1 0 7 2 64 7 3 64 13 18 3 49 4 2 15 15 5 7 5 47 49 6 1 15 5 7 3 64 5 48 1 7 2 64 49 7 1 47 49 8 2 11 I 4 I 0 I 0 I 0 n p 9 x 8 @request x 7 cookies s 9 vanity_id s 14 from_last_time x 3 []= x 5 index x 3 get x 2 [] x 12 assert_equal p 9 I 0 I 26 I 0 I 27 I 13 I 28 I 1b I 29 I 2d x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 36 test_vanity_identity_set_from_cookie M 1 n n x 36 test_vanity_identity_set_from_cookie i 43 39 0 49 1 0 7 2 64 7 3 64 13 18 3 49 4 2 15 15 5 7 5 47 49 6 1 15 5 7 3 64 39 7 7 8 49 9 1 47 49 10 2 11 I 4 I 0 I 0 I 0 n p 11 x 8 @request x 7 cookies s 9 vanity_id s 14 from_last_time x 3 []= x 5 index x 3 get x 11 @controller x 15 vanity_identity x 4 send x 12 assert_equal p 9 I 0 I 2c I 0 I 2d I 13 I 2e I 1b I 2f I 2b x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 34 test_vanity_identity_set_from_user M 1 n n x 34 test_vanity_identity_set_from_user i 59 39 0 5 7 1 64 44 43 2 79 49 3 1 13 7 4 7 5 64 49 6 2 15 47 49 7 2 13 18 2 49 8 1 15 15 5 7 9 47 49 10 1 15 5 7 5 64 39 0 7 11 49 12 1 47 49 13 2 11 I 7 I 0 I 0 I 0 n p 14 x 11 @controller s 4 user x 4 Hash x 16 new_from_literal x 2 id s 7 user_id x 3 []= x 4 mock x 13 current_user= x 5 index x 3 get x 15 vanity_identity x 4 send x 12 assert_equal p 9 I 0 I 32 I 0 I 33 I 23 I 34 I 2b I 35 I 3b x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 39 test_vanity_identity_with_no_user_model M 1 n n x 39 test_vanity_identity_with_no_user_model i 87 45 0 1 56 2 50 3 0 15 39 4 45 5 6 13 71 7 47 9 32 47 49 8 0 13 47 49 9 0 15 8 35 49 7 0 13 18 2 49 10 1 15 15 5 7 11 47 49 12 1 15 5 5 48 13 7 14 64 49 15 1 7 16 13 70 9 79 15 44 43 17 7 18 78 49 7 2 6 16 49 19 1 47 49 20 1 11 I 5 I 0 I 0 I 0 n p 21 x 19 UseVanityController n M 1 p 2 x 9 for_block t n x 39 test_vanity_identity_with_no_user_model i 7 5 1 47 49 0 1 11 I 3 I 0 I 0 I 0 I -2 p 1 x 10 use_vanity p 5 I 0 I 39 I 0 I 3a I 7 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 10 class_eval x 11 @controller x 6 Object n x 3 new x 8 allocate x 10 initialize x 13 current_user= x 5 index x 3 get x 7 cookies s 9 vanity_id x 2 [] n x 6 Regexp s 14 ^[a-f0-9]{32}$ x 2 =~ x 6 assert p 11 I 0 I 38 I 0 I 39 I 9 I 3c I 2b I 3d I 33 I 3e I 57 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 35 test_vanity_identity_set_with_block M 1 n n x 35 test_vanity_identity_set_with_block i 46 45 0 1 56 2 50 3 0 15 39 4 7 5 64 13 18 2 49 6 1 15 15 5 7 7 47 49 8 1 15 5 7 5 64 39 4 7 9 49 10 1 47 49 11 2 11 I 4 I 0 I 0 I 0 n p 12 x 19 UseVanityController n M 1 p 2 x 9 for_block t n x 35 test_vanity_identity_set_with_block i 16 5 7 0 47 49 1 1 15 5 56 2 47 50 3 0 11 I 3 I 0 I 0 I 0 I -2 p 4 x 10 project_id x 13 attr_accessor M 1 p 2 x 9 for_block t n x 35 test_vanity_identity_set_with_block i 10 57 19 0 15 20 0 49 0 0 11 I 3 I 1 I 1 I 1 n p 1 x 10 project_id p 3 I 0 I 44 I a x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 1 x 10 controller x 10 use_vanity p 7 I 0 I 42 I 0 I 43 I 8 I 44 I 10 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 10 class_eval x 11 @controller s 3 576 x 11 project_id= x 5 index x 3 get x 15 vanity_identity x 4 send x 12 assert_equal p 11 I 0 I 41 I 0 I 42 I 9 I 46 I 16 I 47 I 1e I 48 I 2e x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 47 test_redirects_and_loses_vanity_query_parameter M 1 n n x 47 test_redirects_and_loses_vanity_query_parameter i 44 5 7 0 44 43 1 80 49 2 1 13 7 3 7 4 64 49 5 2 15 13 7 6 7 7 64 49 5 2 15 47 49 8 2 15 5 7 9 64 47 49 10 1 11 I 6 I 0 I 0 I 0 n p 11 x 5 index x 4 Hash x 16 new_from_literal x 3 foo s 3 bar x 3 []= x 7 _vanity s 3 567 x 3 get s 19 /use_vanity?foo=bar x 20 assert_redirected_to p 7 I 0 I 4d I 0 I 4e I 23 I 4f I 2c x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 45 test_sets_choices_from_vanity_query_parameter M 1 n n x 45 test_sets_choices_from_vanity_query_parameter i 24 5 7 0 47 49 1 1 49 2 0 49 3 0 19 0 15 4 10 56 4 50 5 0 11 I 3 I 1 I 0 I 0 n p 6 x 11 pie_or_cake x 10 experiment x 12 alternatives x 5 first M 1 p 2 x 9 for_block t n x 45 test_sets_choices_from_vanity_query_parameter i 74 1 38 0 15 5 48 1 15 5 7 2 44 43 3 79 49 4 1 13 7 5 7 6 64 49 7 2 15 47 49 8 2 15 5 5 7 9 47 49 10 1 49 11 0 10 49 2 8 50 3 47 49 12 1 15 5 5 7 9 47 49 10 1 21 1 0 49 13 1 47 49 12 1 11 I 7 I 0 I 0 I 0 I -2 p 14 x 11 @controller x 37 setup_controller_request_and_response x 5 index x 4 Hash x 16 new_from_literal x 7 _vanity s 10 aae9ff8081 x 3 []= x 3 get x 11 pie_or_cake x 10 experiment x 6 choose x 6 assert x 8 showing? p 11 I 0 I 55 I 0 I 56 I 8 I 57 I 21 I 58 I 37 I 59 I 4a x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 5 times p 7 I 0 I 52 I 0 I 53 I 10 I 55 I 18 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 1 x 5 first x 55 test_does_nothing_with_vanity_query_parameter_for_posts M 1 n n x 55 test_does_nothing_with_vanity_query_parameter_for_posts i 83 5 7 0 47 49 1 1 49 2 0 49 3 0 19 0 15 5 7 4 44 43 5 80 49 6 1 13 7 7 7 8 64 49 9 2 15 13 7 10 7 11 64 49 9 2 15 47 49 12 2 15 5 7 13 47 49 14 1 15 5 5 7 0 47 49 1 1 20 0 49 15 1 10 77 2 8 78 3 47 49 16 1 11 I 7 I 1 I 0 I 0 n p 17 x 11 pie_or_cake x 10 experiment x 12 alternatives x 5 first x 5 index x 4 Hash x 16 new_from_literal x 3 foo s 3 bar x 3 []= x 7 _vanity s 3 567 x 4 post x 7 success x 15 assert_response x 8 showing? x 6 assert p 11 I 0 I 5d I 0 I 5e I 10 I 5f I 33 I 60 I 3b I 61 I 53 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 1 x 5 first x 14 test_load_path M 1 n n x 14 test_load_path i 23 5 45 0 1 7 2 64 49 3 1 5 7 4 64 47 49 5 1 47 49 6 2 11 I 4 I 0 I 0 I 0 n p 7 x 4 File n s 15 tmp/experiments x 11 expand_path s 68 initializer.after_initialize $stdout << Vanity.playground.load_path x 10 load_rails x 12 assert_equal p 5 I 0 I 67 I 0 I 68 I 17 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 23 test_settable_load_path M 1 n n x 23 test_settable_load_path i 23 5 45 0 1 7 2 64 49 3 1 5 7 4 64 47 49 5 1 47 49 6 2 11 I 4 I 0 I 0 I 0 n p 7 x 4 File n s 15 tmp/predictions x 11 expand_path s 112 Vanity.playground.load_path = "predictions" initializer.after_initialize $stdout << Vanity.playground.load_path x 10 load_rails x 12 assert_equal p 5 I 0 I 6e I 0 I 6f I 17 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 23 test_absolute_load_path M 1 n n x 23 test_absolute_load_path i 23 5 45 0 1 7 2 64 49 3 1 5 7 4 64 47 49 5 1 47 49 6 2 11 I 4 I 0 I 0 I 0 n p 7 x 4 File n s 8 /tmp/var x 11 expand_path s 109 Vanity.playground.load_path = "/tmp/var" initializer.after_initialize $stdout << Vanity.playground.load_path x 10 load_rails x 12 assert_equal p 5 I 0 I 76 I 0 I 77 I 17 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 23 test_default_connection M 1 n n x 23 test_default_connection i 17 5 7 0 64 5 7 1 64 47 49 2 1 47 49 3 2 11 I 4 I 0 I 0 I 0 n p 4 s 24 redis://localhost:6379/0 s 67 initializer.after_initialize $stdout << Vanity.playground.redis.id x 10 load_rails x 12 assert_equal p 5 I 0 I 81 I 0 I 82 I 11 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 26 test_configured_connection M 1 n n x 26 test_configured_connection i 17 5 7 0 64 5 7 1 64 47 49 2 1 47 49 3 2 11 I 4 I 0 I 0 I 0 n p 4 s 24 redis://127.0.0.1:6379/0 s 110 Vanity.playground.redis = "127.0.0.1:6379" initializer.after_initialize $stdout << Vanity.playground.redis.id x 10 load_rails x 12 assert_equal p 5 I 0 I 88 I 0 I 89 I 11 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 20 test_test_connection M 1 n n x 20 test_test_connection i 17 5 7 0 64 5 7 1 64 47 49 2 1 47 49 3 2 11 I 4 I 0 I 0 I 0 n p 4 s 17 Vanity::MockRedis s 94 Vanity.playground.test! initializer.after_initialize $stdout << Vanity.playground.redis.class x 10 load_rails x 12 assert_equal p 5 I 0 I 90 I 0 I 91 I 11 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 25 test_connection_from_yaml M 1 n n x 25 test_connection_from_yaml i 94 29 66 1 26 93 0 15 45 0 1 7 2 64 49 3 1 15 45 4 5 7 6 64 7 7 64 49 8 2 19 0 15 20 0 7 9 64 49 10 1 15 20 0 49 11 0 15 5 7 12 64 5 7 13 64 47 49 14 1 47 49 15 2 30 8 81 26 45 4 16 20 0 49 17 0 49 18 1 15 27 34 45 4 19 20 0 49 17 0 49 18 1 15 11 I 6 I 1 I 0 I 0 n p 20 x 9 FileUtils n s 10 tmp/config x 6 mkpath x 4 File n s 20 tmp/config/redis.yml s 1 w x 4 open s 32 production: internal.local:6379 x 2 << x 5 flush s 29 redis://internal.local:6379/0 s 67 initializer.after_initialize $stdout << Vanity.playground.redis.id x 10 load_rails x 12 assert_equal n x 4 path x 6 unlink n p 15 I 0 I 98 I 0 I 99 I 11 I 9a I 20 I 9b I 29 I 9c I 2f I 9d I 43 I a2 I 5e x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 1 x 3 yml x 33 test_connection_from_yaml_missing M 1 n n x 33 test_connection_from_yaml_missing i 94 29 66 1 26 93 0 15 45 0 1 7 2 64 49 3 1 15 45 4 5 7 6 64 7 7 64 49 8 2 19 0 15 20 0 7 9 64 49 10 1 15 20 0 49 11 0 15 5 7 12 64 5 7 13 64 47 49 14 1 47 49 15 2 30 8 81 26 45 4 16 20 0 49 17 0 49 18 1 15 27 34 45 4 19 20 0 49 17 0 49 18 1 15 11 I 6 I 1 I 0 I 0 n p 20 x 9 FileUtils n s 10 tmp/config x 6 mkpath x 4 File n s 20 tmp/config/redis.yml s 1 w x 4 open s 33 development: internal.local:6379 x 2 << x 5 flush s 24 redis://localhost:6379/0 s 67 initializer.after_initialize $stdout << Vanity.playground.redis.id x 10 load_rails x 12 assert_equal n x 4 path x 6 unlink n p 15 I 0 I a5 I 0 I a6 I 11 I a7 I 20 I a8 I 29 I a9 I 2f I aa I 43 I af I 5e x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 1 x 3 yml x 10 load_rails M 1 n n x 10 load_rails i 91 26 93 0 15 29 56 0 45 0 1 7 2 64 49 3 1 19 1 15 20 1 7 4 64 49 5 1 15 20 1 20 0 49 5 1 15 20 1 49 6 0 15 45 7 8 7 9 64 56 10 50 11 1 30 8 87 26 93 1 15 24 13 45 12 13 12 49 14 1 10 73 8 82 15 20 1 49 15 0 25 8 87 15 92 1 27 34 92 0 27 11 I 7 I 2 I 1 I 1 n p 16 x 8 Tempfile n s 7 test.rb x 4 open s 415 begin require "bundler" ; Bundler.setup ; rescue LoadError ; end $:.delete_if { |path| path[/gems\/vanity-\d/] } $:.unshift File.expand_path("../lib") RAILS_ROOT = File.expand_path(".") RAILS_ENV = "production" require "initializer" require "active_support" Rails.configuration = Rails::Configuration.new initializer = Rails::Initializer.new(Rails.configuration) initializer.check_gem_dependencies require "vanity" x 5 write x 5 flush x 3 Dir n s 3 tmp M 1 p 2 x 9 for_block t n x 10 load_rails i 23 5 7 0 21 1 1 49 1 0 47 49 2 0 63 2 47 49 3 1 49 4 0 11 I 4 I 0 I 0 I 0 I -2 p 5 s 6 |ruby x 4 path x 4 to_s x 4 open x 4 read p 5 I 0 I c4 I 0 I c5 I 17 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 x 5 chdir x 13 StandardError n x 3 === x 6 close! p 15 I 0 I b3 I 0 I b4 I 13 I b5 I 1c I c2 I 24 I c3 I 2a I c4 I 3d I c8 I 5b x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 2 x 4 code x 3 tmp x 8 teardown M 1 n n x 8 teardown i 16 54 89 0 15 45 1 2 7 3 49 4 1 49 5 0 11 I 2 I 0 I 0 I 0 n p 6 x 8 teardown x 19 UseVanityController n x 12 filter_chain x 4 send x 5 clear p 7 I 0 I cc I 0 I cd I 4 I ce I 10 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 p 45 I 2 I d I b I f I 19 I 1a I 27 I 21 I 35 I 26 I 43 I 2c I 51 I 32 I 5f I 38 I 6d I 41 I 7b I 4d I 89 I 52 I 97 I 5d I a5 I 67 I b3 I 6e I c1 I 76 I cf I 81 I dd I 88 I eb I 90 I f9 I 98 I 107 I a5 I 115 I b3 I 123 I cc I 131 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0 p 7 I 0 I 1 I 9 I 3 I 28 I c I 49 x 47 /Users/assaf/projects/vanity/test/rails_test.rb p 0