webvalve 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -2
- data/lib/webvalve/version.rb +1 -1
- data/spec/dummy/config/application.rb +0 -3
- data/spec/dummy/log/test.log +58 -0
- data/spec/examples.txt +27 -27
- metadata +10 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16a362ac38ab2baeae75e81be2badff2ea0b5023
|
4
|
+
data.tar.gz: 075c7a3057a847aaa6bd5662f196979d5e68e11e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37b8e856fe3c7d4226a2d8d2244d0014486e6e6ba91afe9bbc79b8fc9355b5a4aa182d0979a0e3678b35acf1a8744ca9b46b928a44891f5b6cec1906e25584a8
|
7
|
+
data.tar.gz: fc0b7b285d4be0c8cec073a19c97bc181bd45499d52e31d292c12eeee903cea82618d431c212a77f23d9fd2e652fccdbf1c403c58e427e7d8c7f89927e40b556
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
WebValve
|
2
2
|
========
|
3
3
|
|
4
|
-
[![Build Status](https://travis-ci.
|
4
|
+
[![Build Status](https://travis-ci.org/Betterment/webvalve.svg?branch=master)](https://travis-ci.org/Betterment/webvalve)
|
5
5
|
|
6
6
|
WebValve is a tool for defining and registering fake implementations of
|
7
7
|
HTTP services and toggling between the real services and the fake ones
|
@@ -11,6 +11,11 @@ This library is made possible by the incredible gems
|
|
11
11
|
[WebMock](https://github.com/bblimke/webmock) and
|
12
12
|
[Sinatra](https://github.com/sinatra/sinatra).
|
13
13
|
|
14
|
+
Check out [the Rails at Scale talk](https://www.youtube.com/watch?v=Nd9hnffxCP8) for some background on why we built it and some of the key design decisions behind WebValve:
|
15
|
+
|
16
|
+
[![Rails @ Scale Talk](https://img.youtube.com/vi/Nd9hnffxCP8/0.jpg)](https://www.youtube.com/watch?v=Nd9hnffxCP8)
|
17
|
+
|
18
|
+
|
14
19
|
## Getting Started
|
15
20
|
|
16
21
|
### Network connections disabled by default
|
@@ -120,7 +125,7 @@ runtime concern.
|
|
120
125
|
|
121
126
|
## Configuring fakes in tests
|
122
127
|
|
123
|
-
In order to get WebValve fake
|
128
|
+
In order to get WebValve fake services working properly in tests, you
|
124
129
|
have to configure WebValve at the beginning of each test. For RSpec, there
|
125
130
|
is a configuration provided.
|
126
131
|
|
data/lib/webvalve/version.rb
CHANGED
@@ -23,9 +23,6 @@ module Dummy
|
|
23
23
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
24
24
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
25
25
|
# config.i18n.default_locale = :de
|
26
|
-
|
27
|
-
# Do not swallow errors in after_commit/after_rollback callbacks.
|
28
|
-
config.active_record.raise_in_transactional_callbacks = true
|
29
26
|
end
|
30
27
|
end
|
31
28
|
|
data/spec/dummy/log/test.log
CHANGED
@@ -3936,3 +3936,61 @@
|
|
3936
3936
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3937
3937
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3938
3938
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3939
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3940
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3941
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3942
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3943
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3944
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3945
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3946
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3947
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3948
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
3949
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
3950
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
3951
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3952
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3953
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3954
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3955
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3956
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3957
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3958
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3959
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3960
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3961
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3962
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3963
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3964
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3965
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3966
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3967
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3968
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3969
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3970
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3971
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3972
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3973
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3974
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3975
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3976
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3977
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3978
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3979
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3980
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3981
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3982
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3983
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3984
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3985
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3986
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3987
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3988
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3989
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3990
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3991
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3992
|
+
[1m[33mWebValve Request Captured (0.5ms)[0m [1m[1mdummy.dev GET /foos [][0m
|
3993
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3994
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3995
|
+
[1m[33mWebValve Request Captured (3.8ms)[0m [1m[1mdummy.dev GET /widgets [200][0m
|
3996
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
data/spec/examples.txt
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
---------------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/webvalve/fake_service_config_spec.rb[1:1:1:1] | passed | 0.
|
4
|
-
./spec/webvalve/fake_service_config_spec.rb[1:1:1:2] | passed | 0.
|
5
|
-
./spec/webvalve/fake_service_config_spec.rb[1:1:2:1] | passed | 0.
|
6
|
-
./spec/webvalve/fake_service_config_spec.rb[1:1:2:2] | passed | 0.
|
3
|
+
./spec/webvalve/fake_service_config_spec.rb[1:1:1:1] | passed | 0.00065 seconds |
|
4
|
+
./spec/webvalve/fake_service_config_spec.rb[1:1:1:2] | passed | 0.0006 seconds |
|
5
|
+
./spec/webvalve/fake_service_config_spec.rb[1:1:2:1] | passed | 0.00064 seconds |
|
6
|
+
./spec/webvalve/fake_service_config_spec.rb[1:1:2:2] | passed | 0.00782 seconds |
|
7
7
|
./spec/webvalve/fake_service_config_spec.rb[1:1:2:3] | passed | 0.00093 seconds |
|
8
|
-
./spec/webvalve/fake_service_config_spec.rb[1:1:3:1] | passed | 0.
|
9
|
-
./spec/webvalve/fake_service_config_spec.rb[1:1:3:2] | passed | 0.
|
10
|
-
./spec/webvalve/fake_service_config_spec.rb[1:2:1] | passed | 0.
|
11
|
-
./spec/webvalve/fake_service_config_spec.rb[1:2:2] | passed | 0.
|
12
|
-
./spec/webvalve/fake_service_config_spec.rb[1:2:3] | passed | 0.
|
13
|
-
./spec/webvalve/fake_service_spec.rb[1:1] | passed | 0.
|
14
|
-
./spec/webvalve/fake_service_spec.rb[1:2:1] | passed | 0.
|
15
|
-
./spec/webvalve/fake_service_spec.rb[1:2:2] | passed | 0.
|
16
|
-
./spec/webvalve/manager_spec.rb[1:1] | passed | 0.
|
17
|
-
./spec/webvalve/manager_spec.rb[1:2:1] | passed | 0.
|
18
|
-
./spec/webvalve/manager_spec.rb[1:3:1] | passed | 0.
|
19
|
-
./spec/webvalve/manager_spec.rb[1:4:1] | passed | 0.
|
20
|
-
./spec/webvalve/manager_spec.rb[1:5:1] | passed | 0.
|
21
|
-
./spec/webvalve/manager_spec.rb[1:5:2] | passed | 0.
|
22
|
-
./spec/webvalve/manager_spec.rb[1:5:3] | passed | 0.
|
23
|
-
./spec/webvalve/manager_spec.rb[1:5:4:1] | passed | 0.
|
24
|
-
./spec/webvalve/manager_spec.rb[1:5:5:1] | passed | 0.
|
25
|
-
./spec/webvalve/manager_spec.rb[1:5:5:2] | passed | 0.
|
26
|
-
./spec/webvalve/manager_spec.rb[1:5:5:3] | passed | 0.
|
27
|
-
./spec/webvalve_spec.rb[1:1] | passed | 0.
|
28
|
-
./spec/webvalve_spec.rb[1:2] | passed | 0.
|
29
|
-
./spec/webvalve_spec.rb[1:3] | passed | 0.
|
30
|
-
./spec/webvalve_spec.rb[1:4] | passed | 0.
|
8
|
+
./spec/webvalve/fake_service_config_spec.rb[1:1:3:1] | passed | 0.00061 seconds |
|
9
|
+
./spec/webvalve/fake_service_config_spec.rb[1:1:3:2] | passed | 0.00062 seconds |
|
10
|
+
./spec/webvalve/fake_service_config_spec.rb[1:2:1] | passed | 0.00071 seconds |
|
11
|
+
./spec/webvalve/fake_service_config_spec.rb[1:2:2] | passed | 0.00066 seconds |
|
12
|
+
./spec/webvalve/fake_service_config_spec.rb[1:2:3] | passed | 0.00078 seconds |
|
13
|
+
./spec/webvalve/fake_service_spec.rb[1:1] | passed | 0.00172 seconds |
|
14
|
+
./spec/webvalve/fake_service_spec.rb[1:2:1] | passed | 0.01186 seconds |
|
15
|
+
./spec/webvalve/fake_service_spec.rb[1:2:2] | passed | 0.00753 seconds |
|
16
|
+
./spec/webvalve/manager_spec.rb[1:1] | passed | 0.00609 seconds |
|
17
|
+
./spec/webvalve/manager_spec.rb[1:2:1] | passed | 0.00372 seconds |
|
18
|
+
./spec/webvalve/manager_spec.rb[1:3:1] | passed | 0.00069 seconds |
|
19
|
+
./spec/webvalve/manager_spec.rb[1:4:1] | passed | 0.00063 seconds |
|
20
|
+
./spec/webvalve/manager_spec.rb[1:5:1] | passed | 0.00253 seconds |
|
21
|
+
./spec/webvalve/manager_spec.rb[1:5:2] | passed | 0.02012 seconds |
|
22
|
+
./spec/webvalve/manager_spec.rb[1:5:3] | passed | 0.00124 seconds |
|
23
|
+
./spec/webvalve/manager_spec.rb[1:5:4:1] | passed | 0.00132 seconds |
|
24
|
+
./spec/webvalve/manager_spec.rb[1:5:5:1] | passed | 0.00133 seconds |
|
25
|
+
./spec/webvalve/manager_spec.rb[1:5:5:2] | passed | 0.00238 seconds |
|
26
|
+
./spec/webvalve/manager_spec.rb[1:5:5:3] | passed | 0.00281 seconds |
|
27
|
+
./spec/webvalve_spec.rb[1:1] | passed | 0.00052 seconds |
|
28
|
+
./spec/webvalve_spec.rb[1:2] | passed | 0.0023 seconds |
|
29
|
+
./spec/webvalve_spec.rb[1:3] | passed | 0.00053 seconds |
|
30
|
+
./spec/webvalve_spec.rb[1:4] | passed | 0.00057 seconds |
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webvalve
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.2'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '6'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,49 +24,34 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '4.2'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '6'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: sinatra
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - "
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1.4'
|
40
|
-
- - "<"
|
31
|
+
- - "~>"
|
41
32
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
33
|
+
version: '2.0'
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
46
37
|
requirements:
|
47
|
-
- - "
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '1.4'
|
50
|
-
- - "<"
|
38
|
+
- - "~>"
|
51
39
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
40
|
+
version: '2.0'
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: sinatra-contrib
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
56
44
|
requirements:
|
57
|
-
- - "
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '1.4'
|
60
|
-
- - "<"
|
45
|
+
- - "~>"
|
61
46
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
47
|
+
version: '2.0'
|
63
48
|
type: :runtime
|
64
49
|
prerelease: false
|
65
50
|
version_requirements: !ruby/object:Gem::Requirement
|
66
51
|
requirements:
|
67
|
-
- - "
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '1.4'
|
70
|
-
- - "<"
|
52
|
+
- - "~>"
|
71
53
|
- !ruby/object:Gem::Version
|
72
|
-
version:
|
54
|
+
version: '2.0'
|
73
55
|
- !ruby/object:Gem::Dependency
|
74
56
|
name: webmock
|
75
57
|
requirement: !ruby/object:Gem::Requirement
|