vcr_cable 0.1.3 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/lib/vcr_cable/railtie.rb +6 -4
- data/lib/vcr_cable/version.rb +1 -1
- data/lib/vcr_cable.rb +29 -10
- data/test/dummy/config/database.yml +4 -1
- data/test/dummy/config/environments/no_vcr.rb +37 -0
- data/test/dummy/log/no_vcr.log +3 -0
- data/test/dummy/log/no_vcr_cable.log +0 -0
- data/test/dummy/log/test.log +674 -0
- data/test/vcr_cable_test.rb +33 -4
- metadata +10 -4
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# VcrCable
|
2
2
|
|
3
|
+
[![Build Status](https://secure.travis-ci.org/spaghetticode/vcr_cable.png)](http://travis-ci.org/spaghetticode/vcr_cable)
|
4
|
+
|
3
5
|
This gem allows to use VCR in development. This is quite handy when your app
|
4
6
|
interacts frequently with external services and you're on a sloppy connection,
|
5
7
|
or when you want to save bandwidth, or when you happent to have no connection
|
@@ -37,6 +39,8 @@ file and edit its params:
|
|
37
39
|
bundle exec rails generate vcr_cable
|
38
40
|
```
|
39
41
|
|
42
|
+
You will find the generated file in the ```config``` folder of your rails
|
43
|
+
application.
|
40
44
|
|
41
45
|
## Contributing
|
42
46
|
|
data/lib/vcr_cable/railtie.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
module VcrCable
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
initializer 'vcr_cable.insert_middleware' do |app|
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
if VcrCable.enabled?
|
5
|
+
app.config.middleware.use VCR::Middleware::Rack do |cassette|
|
6
|
+
cassette.name 'vcr_cable_cassette'
|
7
|
+
cassette.options :record => :new_episodes
|
8
|
+
end
|
9
|
+
VcrCable.configure_vcr
|
7
10
|
end
|
8
|
-
VcrCable.configure_vcr
|
9
11
|
end
|
10
12
|
end
|
11
13
|
end
|
data/lib/vcr_cable/version.rb
CHANGED
data/lib/vcr_cable.rb
CHANGED
@@ -6,9 +6,11 @@ module VcrCable
|
|
6
6
|
|
7
7
|
CONFIG_FILE = 'vcr_cable.yml'
|
8
8
|
DEFAULT_CONFIG = {
|
9
|
-
'
|
10
|
-
|
11
|
-
|
9
|
+
'development' => {
|
10
|
+
'hook_into' => :fakeweb,
|
11
|
+
'cassette_library_dir' => 'development_cassettes',
|
12
|
+
'allow_http_connections_when_no_cassette' => true
|
13
|
+
}
|
12
14
|
}
|
13
15
|
|
14
16
|
def configure_vcr
|
@@ -20,13 +22,30 @@ module VcrCable
|
|
20
22
|
end
|
21
23
|
|
22
24
|
def config
|
23
|
-
@config ||=
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
25
|
+
@config ||= global_config[env] || {}
|
26
|
+
end
|
27
|
+
|
28
|
+
def enabled?
|
29
|
+
config.present?
|
30
|
+
end
|
31
|
+
|
32
|
+
def reset_config
|
33
|
+
%w[global_config env_config config_file config].each do |name|
|
34
|
+
instance_variable_set "@#{name}", nil
|
30
35
|
end
|
31
36
|
end
|
37
|
+
|
38
|
+
def global_config
|
39
|
+
@global_config ||= File.file?(config_file) ? YAML.load_file(config_file) : DEFAULT_CONFIG
|
40
|
+
end
|
41
|
+
|
42
|
+
private
|
43
|
+
|
44
|
+
def env
|
45
|
+
Rails.env
|
46
|
+
end
|
47
|
+
|
48
|
+
def config_file
|
49
|
+
@config_file ||= Rails.root.join 'config', CONFIG_FILE
|
50
|
+
end
|
32
51
|
end
|
@@ -12,7 +12,7 @@ development:
|
|
12
12
|
# Warning: The database defined as "test" will be erased and
|
13
13
|
# re-generated from your development database when you run "rake".
|
14
14
|
# Do not set this db to the same as development or production.
|
15
|
-
test:
|
15
|
+
test: &test
|
16
16
|
adapter: sqlite3
|
17
17
|
database: db/test.sqlite3
|
18
18
|
pool: 5
|
@@ -23,3 +23,6 @@ production:
|
|
23
23
|
database: db/production.sqlite3
|
24
24
|
pool: 5
|
25
25
|
timeout: 5000
|
26
|
+
|
27
|
+
no_vcr:
|
28
|
+
<<: *test
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Raise exception on mass assignment protection for Active Record models
|
33
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
+
|
35
|
+
# Print deprecation notices to the stderr
|
36
|
+
config.active_support.deprecation = :stderr
|
37
|
+
end
|
File without changes
|
data/test/dummy/log/test.log
CHANGED
@@ -432,3 +432,677 @@ Connecting to database specified by database.yml
|
|
432
432
|
[1m[35m (0.1ms)[0m rollback transaction
|
433
433
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
434
434
|
[1m[35m (0.1ms)[0m rollback transaction
|
435
|
+
Connecting to database specified by database.yml
|
436
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
437
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
438
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
439
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
440
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
441
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
442
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
443
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
444
|
+
Connecting to database specified by database.yml
|
445
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
446
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
447
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
448
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
449
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
450
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
451
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
452
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
453
|
+
Connecting to database specified by database.yml
|
454
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
455
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
456
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
457
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
458
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
459
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
460
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
461
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
462
|
+
Connecting to database specified by database.yml
|
463
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
464
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
465
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
466
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
467
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
468
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
469
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
470
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
471
|
+
Connecting to database specified by database.yml
|
472
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
473
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
474
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
475
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
476
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
477
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
478
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
479
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
480
|
+
Connecting to database specified by database.yml
|
481
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
482
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
483
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
484
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
485
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
486
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
487
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
488
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
489
|
+
Connecting to database specified by database.yml
|
490
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
491
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
492
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
493
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
494
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
495
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
496
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
497
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
498
|
+
Connecting to database specified by database.yml
|
499
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
500
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
501
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
502
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
503
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
504
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
505
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
506
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
507
|
+
Connecting to database specified by database.yml
|
508
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
509
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
510
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
511
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
512
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
513
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
514
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
515
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
516
|
+
Connecting to database specified by database.yml
|
517
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
518
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
519
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
520
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
521
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
522
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
523
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
524
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
525
|
+
Connecting to database specified by database.yml
|
526
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
527
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
528
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
529
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
530
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
531
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
532
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
533
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
534
|
+
Connecting to database specified by database.yml
|
535
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
536
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
537
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
538
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
539
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
540
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
541
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
542
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
543
|
+
Connecting to database specified by database.yml
|
544
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
545
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
546
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
547
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
548
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
549
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
550
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
551
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
552
|
+
Connecting to database specified by database.yml
|
553
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
554
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
555
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
556
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
557
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
558
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
559
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
560
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
561
|
+
Connecting to database specified by database.yml
|
562
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
563
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
564
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
565
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
566
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
567
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
568
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
569
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
570
|
+
Connecting to database specified by database.yml
|
571
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
572
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
573
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
574
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
575
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
576
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
577
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
578
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
579
|
+
Connecting to database specified by database.yml
|
580
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
581
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
582
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
583
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
584
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
585
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
586
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
587
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
588
|
+
Connecting to database specified by database.yml
|
589
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
590
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
591
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
592
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
593
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
594
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
595
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
596
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
597
|
+
Connecting to database specified by database.yml
|
598
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
599
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
600
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
601
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
602
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
603
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
604
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
605
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
606
|
+
Connecting to database specified by database.yml
|
607
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
608
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
609
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
610
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
611
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
612
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
613
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
614
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
615
|
+
Connecting to database specified by database.yml
|
616
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
617
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
618
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
619
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
620
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
621
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
622
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
623
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
624
|
+
Connecting to database specified by database.yml
|
625
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
626
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
627
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
628
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
629
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
630
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
631
|
+
[1m[36m (0.9ms)[0m [1mbegin transaction[0m
|
632
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
633
|
+
Connecting to database specified by database.yml
|
634
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
635
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
636
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
637
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
638
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
639
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
640
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
641
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
642
|
+
Connecting to database specified by database.yml
|
643
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
644
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
645
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
646
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
647
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
648
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
649
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
650
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
651
|
+
Connecting to database specified by database.yml
|
652
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
653
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
654
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
655
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
656
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
657
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
658
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
659
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
660
|
+
Connecting to database specified by database.yml
|
661
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
662
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
663
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
664
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
665
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
666
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
667
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
668
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
669
|
+
Connecting to database specified by database.yml
|
670
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
671
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
672
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
673
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
674
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
675
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
676
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
677
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
678
|
+
Connecting to database specified by database.yml
|
679
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
680
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
681
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
682
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
683
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
684
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
685
|
+
Connecting to database specified by database.yml
|
686
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
687
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
688
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
689
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
690
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
691
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
692
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
693
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
694
|
+
Connecting to database specified by database.yml
|
695
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
696
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
697
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
698
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
699
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
700
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
701
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
702
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
703
|
+
Connecting to database specified by database.yml
|
704
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
705
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
706
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
707
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
708
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
709
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
710
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
711
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
712
|
+
Connecting to database specified by database.yml
|
713
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
714
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
715
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
716
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
717
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
718
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
719
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
720
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
721
|
+
Connecting to database specified by database.yml
|
722
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
723
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
724
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
725
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
726
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
727
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
728
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
729
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
730
|
+
Connecting to database specified by database.yml
|
731
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
732
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
733
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
734
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
735
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
736
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
737
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
738
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
739
|
+
Connecting to database specified by database.yml
|
740
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
741
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
742
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
743
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
744
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
745
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
746
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
747
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
748
|
+
Connecting to database specified by database.yml
|
749
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
750
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
751
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
752
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
753
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
754
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
755
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
756
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
757
|
+
Connecting to database specified by database.yml
|
758
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
759
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
760
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
761
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
762
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
763
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
764
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
765
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
766
|
+
Connecting to database specified by database.yml
|
767
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
768
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
769
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
770
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
771
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
772
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
773
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
774
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
775
|
+
Connecting to database specified by database.yml
|
776
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
777
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
778
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
779
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
780
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
781
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
782
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
783
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
784
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
785
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
786
|
+
Connecting to database specified by database.yml
|
787
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
788
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
789
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
790
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
791
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
792
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
793
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
794
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
795
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
796
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
797
|
+
Connecting to database specified by database.yml
|
798
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
799
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
800
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
801
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
802
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
803
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
804
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
805
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
806
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
807
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
808
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
809
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
810
|
+
Connecting to database specified by database.yml
|
811
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
812
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
813
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
814
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
815
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
816
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
817
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
818
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
819
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
820
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
821
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
822
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
823
|
+
Connecting to database specified by database.yml
|
824
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
825
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
826
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
827
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
828
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
829
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
830
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
831
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
832
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
833
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
834
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
835
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
836
|
+
Connecting to database specified by database.yml
|
837
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
838
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
839
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
840
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
841
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
842
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
843
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
844
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
845
|
+
Connecting to database specified by database.yml
|
846
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
847
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
848
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
849
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
850
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
851
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
852
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
853
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
854
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
855
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
856
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
857
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
858
|
+
Connecting to database specified by database.yml
|
859
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
860
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
861
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
862
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
863
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
864
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
865
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
866
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
867
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
868
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
869
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
870
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
871
|
+
Connecting to database specified by database.yml
|
872
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
873
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
874
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
875
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
876
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
877
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
878
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
879
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
880
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
881
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
882
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
883
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
884
|
+
Connecting to database specified by database.yml
|
885
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
886
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
887
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
888
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
889
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
890
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
891
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
892
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
894
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
895
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
896
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
897
|
+
Connecting to database specified by database.yml
|
898
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
899
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
900
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
901
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
902
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
903
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
904
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
905
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
906
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
907
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
908
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
909
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
910
|
+
Connecting to database specified by database.yml
|
911
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
912
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
913
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
914
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
915
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
916
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
917
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
918
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
919
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
920
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
921
|
+
Connecting to database specified by database.yml
|
922
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
923
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
924
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
925
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
926
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
927
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
928
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
929
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
930
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
931
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
932
|
+
Connecting to database specified by database.yml
|
933
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
934
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
935
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
936
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
937
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
938
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
939
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
940
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
941
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
942
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
943
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
944
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
945
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
946
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
947
|
+
Connecting to database specified by database.yml
|
948
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
949
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
950
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
951
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
952
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
953
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
954
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
955
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
956
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
957
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
958
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
959
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
960
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
961
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
962
|
+
Connecting to database specified by database.yml
|
963
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
964
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
965
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
966
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
967
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
968
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
969
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
970
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
971
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
972
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
973
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
974
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
975
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
976
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
977
|
+
Connecting to database specified by database.yml
|
978
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
979
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
980
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
981
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
982
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
983
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
984
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
985
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
986
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
987
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
988
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
989
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
990
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
991
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
992
|
+
Connecting to database specified by database.yml
|
993
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
994
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
995
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
996
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
997
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
998
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
999
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1000
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1001
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1002
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1003
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1004
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1005
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1006
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1007
|
+
Connecting to database specified by database.yml
|
1008
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1009
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1010
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1011
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1012
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1013
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1014
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1015
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1016
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1017
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1018
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1019
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1020
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1021
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1022
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1023
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1024
|
+
Connecting to database specified by database.yml
|
1025
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1026
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1027
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1028
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1029
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1030
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1031
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1032
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1033
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1034
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1035
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1036
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1037
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1038
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1039
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1040
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1041
|
+
Connecting to database specified by database.yml
|
1042
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1043
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1044
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1045
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1046
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1047
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1048
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1049
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1050
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1051
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1052
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1053
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1054
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1055
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1056
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1057
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1058
|
+
Connecting to database specified by database.yml
|
1059
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1060
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1061
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1062
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1063
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1064
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1065
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1066
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1067
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1068
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1069
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1070
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1071
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1072
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1073
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1074
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1075
|
+
Connecting to database specified by database.yml
|
1076
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1077
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1078
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1079
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1080
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1081
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1082
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1083
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1084
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1085
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1086
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1087
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1088
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1089
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1090
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1091
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1092
|
+
Connecting to database specified by database.yml
|
1093
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1094
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1095
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1096
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1097
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1098
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1099
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1100
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1101
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1102
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1103
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1104
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1105
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1106
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1108
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
data/test/vcr_cable_test.rb
CHANGED
@@ -1,19 +1,48 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
class VcrCableTest < ActiveSupport::TestCase
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
setup { VcrCable.reset_config }
|
5
|
+
|
6
|
+
test 'is enabled when config is present' do
|
7
|
+
VcrCable.stubs(:config).returns({:some => :conf})
|
8
|
+
assert VcrCable.enabled?
|
9
|
+
end
|
10
|
+
|
11
|
+
test 'is not enabled when config is not present' do
|
12
|
+
VcrCable.stubs(:config).returns({})
|
13
|
+
assert !VcrCable.enabled?
|
14
|
+
end
|
15
|
+
|
16
|
+
test 'loads the default config when current env has configuration' do
|
17
|
+
File.stubs(:file?).returns(false)
|
18
|
+
VcrCable.stubs(:env).returns('development')
|
7
19
|
VcrCable.configure_vcr
|
8
20
|
assert_match /development_cassettes$/, VCR.configuration.cassette_library_dir
|
9
21
|
end
|
10
22
|
|
11
|
-
test '
|
23
|
+
test 'has no config when the current env has no configuration' do
|
24
|
+
VcrCable.stubs(:env).returns('without_vcr_cable')
|
25
|
+
assert !VcrCable.config.present?
|
26
|
+
end
|
27
|
+
|
28
|
+
test 'config in config/vcr_cable.yml overwrites default values' do
|
12
29
|
VcrCable.configure_vcr
|
13
30
|
assert_match /custom_named_cassettes$/, VCR.configuration.cassette_library_dir
|
14
31
|
end
|
15
32
|
|
33
|
+
test 'global_config contains all env specific configs' do
|
34
|
+
%w[test development].each do |env_name|
|
35
|
+
VcrCable.global_config.keys.include?(env_name)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
16
39
|
test 'adds VCR::Middleware::Rack to the middleware stack' do
|
17
40
|
assert Rails.configuration.middleware.any? {|name| name == 'VCR::Middleware::Rack'}
|
18
41
|
end
|
42
|
+
|
43
|
+
test 'it does not add VCR::Middleware::Rack to environments that are not enabled' do
|
44
|
+
list = Dir.chdir(Rails.root) {`bundle exec rake middleware RAILS_ENV=no_vcr`}
|
45
|
+
assert_not_match /VCR::Middleware::Rack/, list
|
46
|
+
end
|
47
|
+
|
19
48
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcr_cable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- test/dummy/config/database.yml
|
134
134
|
- test/dummy/config/environment.rb
|
135
135
|
- test/dummy/config/environments/development.rb
|
136
|
+
- test/dummy/config/environments/no_vcr.rb
|
136
137
|
- test/dummy/config/environments/production.rb
|
137
138
|
- test/dummy/config/environments/test.rb
|
138
139
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
@@ -149,6 +150,8 @@ files:
|
|
149
150
|
- test/dummy/db/schema.rb
|
150
151
|
- test/dummy/db/test.sqlite3
|
151
152
|
- test/dummy/log/development.log
|
153
|
+
- test/dummy/log/no_vcr.log
|
154
|
+
- test/dummy/log/no_vcr_cable.log
|
152
155
|
- test/dummy/log/test.log
|
153
156
|
- test/dummy/public/404.html
|
154
157
|
- test/dummy/public/422.html
|
@@ -173,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
176
|
version: '0'
|
174
177
|
segments:
|
175
178
|
- 0
|
176
|
-
hash: -
|
179
|
+
hash: -2234079835404851201
|
177
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
181
|
none: false
|
179
182
|
requirements:
|
@@ -182,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
185
|
version: '0'
|
183
186
|
segments:
|
184
187
|
- 0
|
185
|
-
hash: -
|
188
|
+
hash: -2234079835404851201
|
186
189
|
requirements: []
|
187
190
|
rubyforge_project:
|
188
191
|
rubygems_version: 1.8.24
|
@@ -200,6 +203,7 @@ test_files:
|
|
200
203
|
- test/dummy/config/database.yml
|
201
204
|
- test/dummy/config/environment.rb
|
202
205
|
- test/dummy/config/environments/development.rb
|
206
|
+
- test/dummy/config/environments/no_vcr.rb
|
203
207
|
- test/dummy/config/environments/production.rb
|
204
208
|
- test/dummy/config/environments/test.rb
|
205
209
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
@@ -216,6 +220,8 @@ test_files:
|
|
216
220
|
- test/dummy/db/schema.rb
|
217
221
|
- test/dummy/db/test.sqlite3
|
218
222
|
- test/dummy/log/development.log
|
223
|
+
- test/dummy/log/no_vcr.log
|
224
|
+
- test/dummy/log/no_vcr_cable.log
|
219
225
|
- test/dummy/log/test.log
|
220
226
|
- test/dummy/public/404.html
|
221
227
|
- test/dummy/public/422.html
|