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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75f876084825a8cc70b8977e26afa6133f0191a0
4
- data.tar.gz: acb351fdfc895185361b55e0e756d3488e2a2ea0
3
+ metadata.gz: 16a362ac38ab2baeae75e81be2badff2ea0b5023
4
+ data.tar.gz: 075c7a3057a847aaa6bd5662f196979d5e68e11e
5
5
  SHA512:
6
- metadata.gz: 8ed9a0819c09b29f2bfe2fccf03d3234acaf1dec62ef29eeb5387894c2ab20bfa7b6daeeee684ef8b2e044096136fa85cfd7558bba17bcd0ad82ae5434f3b1fa
7
- data.tar.gz: cf953ff845781e4320197f6a62c76f49b422514cdc73066ebded9fd2d07716865bb4183f346548b3a12ffa855e989d0435f51134f3e67f9c5a18820c8e822243
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.com/Betterment/webvalve.svg?token=6b6DErRMUHX47kEoBZ3t&branch=master)](https://travis-ci.com/Betterment/webvalve)
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 servies working properly in tests, you
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
 
@@ -1,3 +1,3 @@
1
1
  module WebValve
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
@@ -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
 
@@ -3936,3 +3936,61 @@
3936
3936
   (0.0ms) rollback transaction
3937
3937
   (0.0ms) begin transaction
3938
3938
   (0.0ms) rollback transaction
3939
+  (0.0ms) begin transaction
3940
+  (0.1ms) rollback transaction
3941
+  (0.0ms) begin transaction
3942
+  (0.1ms) rollback transaction
3943
+  (0.0ms) begin transaction
3944
+  (0.0ms) rollback transaction
3945
+  (0.0ms) begin transaction
3946
+  (0.0ms) rollback transaction
3947
+  (0.0ms) begin transaction
3948
+  (0.2ms) rollback transaction
3949
+  (0.2ms) begin transaction
3950
+  (0.2ms) rollback transaction
3951
+  (0.1ms) begin transaction
3952
+  (0.0ms) rollback transaction
3953
+  (0.0ms) begin transaction
3954
+  (0.1ms) rollback transaction
3955
+  (0.0ms) begin transaction
3956
+  (0.1ms) rollback transaction
3957
+  (0.0ms) begin transaction
3958
+  (0.0ms) rollback transaction
3959
+  (0.0ms) begin transaction
3960
+  (0.1ms) rollback transaction
3961
+  (0.1ms) begin transaction
3962
+  (0.0ms) rollback transaction
3963
+  (0.1ms) begin transaction
3964
+  (0.0ms) rollback transaction
3965
+  (0.0ms) begin transaction
3966
+  (0.0ms) rollback transaction
3967
+  (0.0ms) begin transaction
3968
+  (0.0ms) rollback transaction
3969
+  (0.0ms) begin transaction
3970
+  (0.0ms) rollback transaction
3971
+  (0.0ms) begin transaction
3972
+  (0.0ms) rollback transaction
3973
+  (0.1ms) begin transaction
3974
+  (0.0ms) rollback transaction
3975
+  (0.0ms) begin transaction
3976
+  (0.0ms) rollback transaction
3977
+  (0.1ms) begin transaction
3978
+  (0.1ms) rollback transaction
3979
+  (0.1ms) begin transaction
3980
+  (0.0ms) rollback transaction
3981
+  (0.0ms) begin transaction
3982
+  (0.0ms) rollback transaction
3983
+  (0.1ms) begin transaction
3984
+  (0.0ms) rollback transaction
3985
+  (0.0ms) begin transaction
3986
+  (0.0ms) rollback transaction
3987
+  (0.0ms) begin transaction
3988
+  (0.0ms) rollback transaction
3989
+  (0.0ms) begin transaction
3990
+  (0.0ms) rollback transaction
3991
+  (0.0ms) begin transaction
3992
+ WebValve Request Captured (0.5ms) dummy.dev GET /foos []
3993
+  (0.1ms) rollback transaction
3994
+  (0.0ms) begin transaction
3995
+ WebValve Request Captured (3.8ms) dummy.dev GET /widgets [200]
3996
+  (0.1ms) rollback transaction
@@ -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.00176 seconds |
4
- ./spec/webvalve/fake_service_config_spec.rb[1:1:1:2] | passed | 0.00061 seconds |
5
- ./spec/webvalve/fake_service_config_spec.rb[1:1:2:1] | passed | 0.0005 seconds |
6
- ./spec/webvalve/fake_service_config_spec.rb[1:1:2:2] | passed | 0.00061 seconds |
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.00054 seconds |
9
- ./spec/webvalve/fake_service_config_spec.rb[1:1:3:2] | passed | 0.0024 seconds |
10
- ./spec/webvalve/fake_service_config_spec.rb[1:2:1] | passed | 0.001 seconds |
11
- ./spec/webvalve/fake_service_config_spec.rb[1:2:2] | passed | 0.00067 seconds |
12
- ./spec/webvalve/fake_service_config_spec.rb[1:2:3] | passed | 0.00061 seconds |
13
- ./spec/webvalve/fake_service_spec.rb[1:1] | passed | 0.00162 seconds |
14
- ./spec/webvalve/fake_service_spec.rb[1:2:1] | passed | 0.01159 seconds |
15
- ./spec/webvalve/fake_service_spec.rb[1:2:2] | passed | 0.00863 seconds |
16
- ./spec/webvalve/manager_spec.rb[1:1] | passed | 0.00048 seconds |
17
- ./spec/webvalve/manager_spec.rb[1:2:1] | passed | 0.0009 seconds |
18
- ./spec/webvalve/manager_spec.rb[1:3:1] | passed | 0.00063 seconds |
19
- ./spec/webvalve/manager_spec.rb[1:4:1] | passed | 0.00057 seconds |
20
- ./spec/webvalve/manager_spec.rb[1:5:1] | passed | 0.00155 seconds |
21
- ./spec/webvalve/manager_spec.rb[1:5:2] | passed | 0.00286 seconds |
22
- ./spec/webvalve/manager_spec.rb[1:5:3] | passed | 0.01329 seconds |
23
- ./spec/webvalve/manager_spec.rb[1:5:4:1] | passed | 0.00184 seconds |
24
- ./spec/webvalve/manager_spec.rb[1:5:5:1] | passed | 0.00182 seconds |
25
- ./spec/webvalve/manager_spec.rb[1:5:5:2] | passed | 0.00243 seconds |
26
- ./spec/webvalve/manager_spec.rb[1:5:5:3] | passed | 0.00334 seconds |
27
- ./spec/webvalve_spec.rb[1:1] | passed | 0.00046 seconds |
28
- ./spec/webvalve_spec.rb[1:2] | passed | 0.00048 seconds |
29
- ./spec/webvalve_spec.rb[1:3] | passed | 0.00398 seconds |
30
- ./spec/webvalve_spec.rb[1:4] | passed | 0.00047 seconds |
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.0
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-02-21 00:00:00.000000000 Z
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: 3.beta
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: 3.beta
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: 3.beta
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: 3.beta
54
+ version: '2.0'
73
55
  - !ruby/object:Gem::Dependency
74
56
  name: webmock
75
57
  requirement: !ruby/object:Gem::Requirement