webvalve 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +67 -15
- data/lib/webvalve/fake_service.rb +1 -0
- data/lib/webvalve/version.rb +1 -1
- data/spec/examples.txt +100 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63dc05757b97ae68be8dcb8f4722d6b3ef87ce8024da3280031f076f330ea4a9
|
4
|
+
data.tar.gz: 3201762abfa6d184bc6a999f5f559fb2c191fd03b4b2fa2a2a31d504c57de8cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d88117d531f16e3f009bc4c7d88fc8737a9ff1fe0b9613c5304aa7692b3311809fdc1852e833973c6b3cd2af28c0a1b2e6fb266b092fb7181271c0aa3f81f3e3
|
7
|
+
data.tar.gz: e4e7d1ccfe11495664ab71f6c826754f3d41719b9297aab5c03007fbe5d805ac8df480df0a839ba45110eb57f2de237227be581e76dd9af403d3a9b7491b396f
|
data/CHANGELOG.md
CHANGED
@@ -1,111 +1,163 @@
|
|
1
1
|
# Changelog
|
2
|
+
|
2
3
|
All notable changes to this project will be documented in this file.
|
3
4
|
|
4
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
6
|
and this project aims to adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
7
|
|
7
8
|
## [Unreleased]
|
9
|
+
|
8
10
|
### Changed
|
11
|
+
|
9
12
|
### Added
|
13
|
+
|
10
14
|
### Removed
|
11
15
|
|
16
|
+
## [2.0.3] - 2024-11-26
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
|
20
|
+
- fix support for sinatra 4.1 (<https://github.com/Betterment/webvalve/pull/82>) (thanks @aburgel)
|
21
|
+
|
12
22
|
## [2.0.2] - 2024-06-10
|
23
|
+
|
13
24
|
### Changed
|
25
|
+
|
14
26
|
- Fix file permissions in bundled gem
|
15
27
|
|
16
28
|
## [2.0.1] - 2024-05-21
|
29
|
+
|
17
30
|
### Changed
|
31
|
+
|
18
32
|
- Remove constraint on sinatra < 3 to allow for newer rack and sinatra
|
19
|
-
usages (https://github.com/Betterment/webvalve/pull/65) (thanks @co-vladimir-ya)
|
33
|
+
usages (<https://github.com/Betterment/webvalve/pull/65>) (thanks @co-vladimir-ya)
|
20
34
|
|
21
35
|
## [2.0.0] - 2023-07-20
|
36
|
+
|
22
37
|
### Added
|
38
|
+
|
23
39
|
- Dynamic URL support via wildcards, Regexps, and Addressable::Templates
|
24
40
|
|
25
41
|
## [1.3.1] - 2023-07-20
|
42
|
+
|
26
43
|
### Changed
|
44
|
+
|
27
45
|
- Replace usage of deprecated `File.exists?` in generator
|
28
|
-
(https://github.com/Betterment/webvalve/pull/57) (thanks @tmnsun)
|
46
|
+
(<https://github.com/Betterment/webvalve/pull/57>) (thanks @tmnsun)
|
29
47
|
|
30
48
|
## [1.3.0] - 2023-07-18
|
49
|
+
|
31
50
|
### Added
|
51
|
+
|
32
52
|
- Official support for Ruby 3.1 and 3.2
|
53
|
+
|
33
54
|
### Removed
|
55
|
+
|
34
56
|
- Drops support for Rails < 6.1
|
35
57
|
- Drops support for Ruby < 3.0
|
36
58
|
|
37
59
|
## [1.2.0] - 2021-12-16
|
60
|
+
|
38
61
|
### Added
|
62
|
+
|
39
63
|
- Official support for Ruby 2.7 and 3.0
|
40
64
|
- Official support for Rails 6.1 and 7.0
|
65
|
+
|
41
66
|
### Removed
|
67
|
+
|
42
68
|
- Drops support for Rails < 5.2
|
43
69
|
- Drops support for Ruby < 2.6
|
44
70
|
|
45
71
|
## [1.1.0] - 2020-04-27
|
72
|
+
|
46
73
|
### Changed
|
74
|
+
|
47
75
|
- Allow the same URL for services as long as basic auth is different
|
48
|
-
(https://github.com/Betterment/webvalve/pull/46)
|
76
|
+
(<https://github.com/Betterment/webvalve/pull/46>)
|
49
77
|
- Introduce `reset!` and `clear!` to replace `reset`
|
50
|
-
https://github.com/Betterment/webvalve/pull/45)
|
78
|
+
<https://github.com/Betterment/webvalve/pull/45>)
|
51
79
|
|
52
80
|
## [1.0.2] - 2020-04-27
|
81
|
+
|
53
82
|
### Changed
|
83
|
+
|
54
84
|
- Fix an issue with setup / reset
|
55
|
-
(https://github.com/Betterment/webvalve/pull/44)
|
85
|
+
(<https://github.com/Betterment/webvalve/pull/44>)
|
56
86
|
|
57
87
|
## [1.0.1] - 2020-04-24
|
88
|
+
|
58
89
|
### Changed
|
90
|
+
|
59
91
|
- Fix an issue in rspec setup / usage of `WebValve.reset`
|
60
|
-
(https://github.com/Betterment/webvalve/pull/43)
|
92
|
+
(<https://github.com/Betterment/webvalve/pull/43>)
|
61
93
|
|
62
94
|
## [1.0.0] - 2020-04-22
|
95
|
+
|
63
96
|
### Changed
|
97
|
+
|
64
98
|
- Support API_URLs that include path
|
65
|
-
(https://github.com/Betterment/webvalve/pull/41)
|
99
|
+
(<https://github.com/Betterment/webvalve/pull/41>)
|
66
100
|
|
67
101
|
## [0.12.0] - 2020-02-22
|
102
|
+
|
68
103
|
### Changed
|
104
|
+
|
69
105
|
- raise an error on setup when multiple services are registered to the
|
70
|
-
same url. (https://github.com/Betterment/webvalve/pull/40)
|
106
|
+
same url. (<https://github.com/Betterment/webvalve/pull/40>)
|
71
107
|
|
72
108
|
## [0.11.0] - 2019-11-04
|
109
|
+
|
73
110
|
### Changed
|
111
|
+
|
74
112
|
- rework configuration so that WebValve has 3 operating modes: off,
|
75
113
|
on+allowing, and on+intercepting. support toggling the latter two
|
76
114
|
modes with
|
77
115
|
`WEBVALVED_ENABLED=1`+`WEBVALVE_SERVICE_ENABLED_DEFAULT=1` and
|
78
116
|
`WEBVALVED_ENABLED=1`+`WEBVALVE_SERVICE_ENABLED_DEFAULT=0`.
|
79
|
-
(https://github.com/Betterment/webvalve/pull/34)
|
117
|
+
(<https://github.com/Betterment/webvalve/pull/34>)
|
80
118
|
|
81
119
|
## [0.10.0] - 2019-09-23
|
120
|
+
|
82
121
|
### Changed
|
83
|
-
|
122
|
+
|
123
|
+
- `Webvalve.register` no longer accepts classes; you must provide class names as strings. Fixes a Rails 6 deprecation warning. (<https://github.com/Betterment/webvalve/pull/35>)
|
84
124
|
|
85
125
|
## [0.9.10] - 2019-09-09
|
126
|
+
|
86
127
|
### Changed
|
87
|
-
|
128
|
+
|
129
|
+
- rename `whitelist_url` to `allow_url` (<https://github.com/Betterment/webvalve/pull/33>)
|
88
130
|
|
89
131
|
## [0.9.9] - 2019-05-24
|
132
|
+
|
90
133
|
### Changed
|
91
|
-
|
134
|
+
|
135
|
+
- fix integration with `webdrivers` gem so Rails 6 should work out of the box (<https://github.com/Betterment/webvalve/pull/32>)
|
92
136
|
|
93
137
|
## [0.9.8] - 2019-01-22
|
138
|
+
|
94
139
|
### Changed
|
95
|
-
|
140
|
+
|
141
|
+
- fix load order of webvalve initializer from @jmileham (<https://github.com/Betterment/webvalve/pull/26>)
|
96
142
|
- drop support for rails 4.2 and jruby
|
97
143
|
|
98
144
|
## [0.9.7] - 2018-09-30
|
145
|
+
|
99
146
|
### Changed
|
100
|
-
|
147
|
+
|
148
|
+
- Improved WEBVALVED_ENABLED behavior from @haffla (<https://github.com/Betterment/webvalve/pull/24>)
|
101
149
|
|
102
150
|
## [0.9.6] - 2018-06-27
|
151
|
+
|
103
152
|
### Changed
|
153
|
+
|
104
154
|
- fix changelog links
|
105
155
|
|
106
156
|
## [0.9.5] - 2018-06-27
|
157
|
+
|
107
158
|
### Changed
|
108
|
-
|
159
|
+
|
160
|
+
- WebMock 3+ support from @messanjah (<https://github.com/Betterment/webvalve/pull/22>)
|
109
161
|
|
110
162
|
[Unreleased]: https://github.com/Betterment/webvalve/compare/v1.2.0...HEAD
|
111
163
|
[1.2.0]: https://github.com/Betterment/webvalve/compare/v1.1.0...v1.2.0
|
data/lib/webvalve/version.rb
CHANGED
data/spec/examples.txt
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
example_id | status | run_time |
|
2
|
+
------------------------------------------------------- | ------ | --------------- |
|
3
|
+
./spec/webvalve/fake_service_config_spec.rb[1:1:1] | passed | 0.00004 seconds |
|
4
|
+
./spec/webvalve/fake_service_config_spec.rb[1:1:2] | passed | 0.00007 seconds |
|
5
|
+
./spec/webvalve/fake_service_config_spec.rb[1:2:1] | passed | 0.00005 seconds |
|
6
|
+
./spec/webvalve/fake_service_config_spec.rb[1:2:2] | passed | 0.00008 seconds |
|
7
|
+
./spec/webvalve/fake_service_config_spec.rb[1:3:1] | passed | 0.00006 seconds |
|
8
|
+
./spec/webvalve/fake_service_config_spec.rb[1:3:2] | passed | 0.00009 seconds |
|
9
|
+
./spec/webvalve/fake_service_config_spec.rb[1:3:3] | passed | 0.00005 seconds |
|
10
|
+
./spec/webvalve/fake_service_config_spec.rb[1:4:1] | passed | 0.00005 seconds |
|
11
|
+
./spec/webvalve/fake_service_config_spec.rb[1:4:2] | passed | 0.00005 seconds |
|
12
|
+
./spec/webvalve/fake_service_config_spec.rb[1:4:3] | passed | 0.00006 seconds |
|
13
|
+
./spec/webvalve/fake_service_spec.rb[1:1] | passed | 0.00099 seconds |
|
14
|
+
./spec/webvalve/fake_service_spec.rb[1:2:1:1] | passed | 0.00076 seconds |
|
15
|
+
./spec/webvalve/fake_service_spec.rb[1:2:1:2] | passed | 0.00081 seconds |
|
16
|
+
./spec/webvalve/fake_service_spec.rb[1:2:2:1] | passed | 0.02469 seconds |
|
17
|
+
./spec/webvalve/fake_service_spec.rb[1:2:2:2] | passed | 0.00588 seconds |
|
18
|
+
./spec/webvalve/manager_spec.rb[1:1] | passed | 0.00002 seconds |
|
19
|
+
./spec/webvalve/manager_spec.rb[1:2:1] | passed | 0.00069 seconds |
|
20
|
+
./spec/webvalve/manager_spec.rb[1:3:1] | passed | 0.00016 seconds |
|
21
|
+
./spec/webvalve/manager_spec.rb[1:4:1] | passed | 0.00009 seconds |
|
22
|
+
./spec/webvalve/manager_spec.rb[1:5:1:1] | passed | 0.00014 seconds |
|
23
|
+
./spec/webvalve/manager_spec.rb[1:5:2:1] | passed | 0.0001 seconds |
|
24
|
+
./spec/webvalve/manager_spec.rb[1:5:2:2] | passed | 0.00018 seconds |
|
25
|
+
./spec/webvalve/manager_spec.rb[1:5:2:3] | passed | 0.00018 seconds |
|
26
|
+
./spec/webvalve/manager_spec.rb[1:5:2:4] | passed | 0.00022 seconds |
|
27
|
+
./spec/webvalve/manager_spec.rb[1:5:2:5] | passed | 0.00027 seconds |
|
28
|
+
./spec/webvalve/manager_spec.rb[1:5:2:6] | passed | 0.00017 seconds |
|
29
|
+
./spec/webvalve/manager_spec.rb[1:5:2:7] | passed | 0.00014 seconds |
|
30
|
+
./spec/webvalve/manager_spec.rb[1:5:2:8] | passed | 0.00031 seconds |
|
31
|
+
./spec/webvalve/manager_spec.rb[1:5:3:1:1] | passed | 0.00012 seconds |
|
32
|
+
./spec/webvalve/manager_spec.rb[1:5:3:2:1] | passed | 0.00021 seconds |
|
33
|
+
./spec/webvalve/manager_spec.rb[1:5:3:2:2] | passed | 0.00038 seconds |
|
34
|
+
./spec/webvalve/manager_spec.rb[1:5:3:2:3] | passed | 0.001 seconds |
|
35
|
+
./spec/webvalve/manager_spec.rb[1:5:4:1] | passed | 0.00018 seconds |
|
36
|
+
./spec/webvalve/manager_spec.rb[1:5:4:2] | passed | 0.00037 seconds |
|
37
|
+
./spec/webvalve/manager_spec.rb[1:6:1:1] | passed | 0.00004 seconds |
|
38
|
+
./spec/webvalve/manager_spec.rb[1:6:1:2] | passed | 0.00013 seconds |
|
39
|
+
./spec/webvalve/manager_spec.rb[1:6:2:1] | passed | 0.00003 seconds |
|
40
|
+
./spec/webvalve/manager_spec.rb[1:6:2:2] | passed | 0.00012 seconds |
|
41
|
+
./spec/webvalve/manager_spec.rb[1:6:2:3] | passed | 0.00005 seconds |
|
42
|
+
./spec/webvalve/manager_spec.rb[1:6:3:1] | passed | 0.00004 seconds |
|
43
|
+
./spec/webvalve/manager_spec.rb[1:6:3:2] | passed | 0.00005 seconds |
|
44
|
+
./spec/webvalve/manager_spec.rb[1:6:3:3] | passed | 0.00004 seconds |
|
45
|
+
./spec/webvalve/manager_spec.rb[1:6:3:4] | passed | 0.00004 seconds |
|
46
|
+
./spec/webvalve/manager_spec.rb[1:6:3:5] | passed | 0.00004 seconds |
|
47
|
+
./spec/webvalve/manager_spec.rb[1:7:1:1] | passed | 0.00003 seconds |
|
48
|
+
./spec/webvalve/manager_spec.rb[1:7:1:2] | passed | 0.00013 seconds |
|
49
|
+
./spec/webvalve/manager_spec.rb[1:7:2:1] | passed | 0.00004 seconds |
|
50
|
+
./spec/webvalve/manager_spec.rb[1:7:2:2] | passed | 0.00382 seconds |
|
51
|
+
./spec/webvalve/manager_spec.rb[1:7:2:3] | passed | 0.00004 seconds |
|
52
|
+
./spec/webvalve/manager_spec.rb[1:7:3:1] | passed | 0.00003 seconds |
|
53
|
+
./spec/webvalve/manager_spec.rb[1:7:3:2] | passed | 0.00007 seconds |
|
54
|
+
./spec/webvalve/manager_spec.rb[1:7:3:3] | passed | 0.00005 seconds |
|
55
|
+
./spec/webvalve/manager_spec.rb[1:7:3:4] | passed | 0.00005 seconds |
|
56
|
+
./spec/webvalve/manager_spec.rb[1:7:3:5] | passed | 0.00009 seconds |
|
57
|
+
./spec/webvalve/manager_spec.rb[1:8:1:1] | passed | 0.00004 seconds |
|
58
|
+
./spec/webvalve/manager_spec.rb[1:8:1:2] | passed | 0.00012 seconds |
|
59
|
+
./spec/webvalve/manager_spec.rb[1:8:2:1] | passed | 0.00004 seconds |
|
60
|
+
./spec/webvalve/manager_spec.rb[1:8:2:2] | passed | 0.00012 seconds |
|
61
|
+
./spec/webvalve/manager_spec.rb[1:8:3:1] | passed | 0.00004 seconds |
|
62
|
+
./spec/webvalve/manager_spec.rb[1:8:3:2] | passed | 0.00006 seconds |
|
63
|
+
./spec/webvalve/manager_spec.rb[1:8:3:3] | passed | 0.00004 seconds |
|
64
|
+
./spec/webvalve/manager_spec.rb[1:8:3:4] | passed | 0.00004 seconds |
|
65
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:1] | passed | 0.00041 seconds |
|
66
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:2:1] | passed | 0.00038 seconds |
|
67
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:3:1] | passed | 0.00004 seconds |
|
68
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:3:2] | passed | 0.00004 seconds |
|
69
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:3:3] | passed | 0.00003 seconds |
|
70
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:4:1] | passed | 0.00004 seconds |
|
71
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:5:1] | passed | 0.00004 seconds |
|
72
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:5:2] | passed | 0.00011 seconds |
|
73
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:6:1] | passed | 0.00003 seconds |
|
74
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:6:2] | passed | 0.00004 seconds |
|
75
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:6:3] | passed | 0.00004 seconds |
|
76
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:6:4] | passed | 0.00005 seconds |
|
77
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:7:1] | passed | 0.00004 seconds |
|
78
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:7:2] | passed | 0.00005 seconds |
|
79
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:7:3] | passed | 0.00004 seconds |
|
80
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:8:1] | passed | 0.00005 seconds |
|
81
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:8:2] | passed | 0.00004 seconds |
|
82
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:9:1] | passed | 0.00004 seconds |
|
83
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:10:1] | passed | 0.00004 seconds |
|
84
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:10:2] | passed | 0.00004 seconds |
|
85
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:11:1] | passed | 0.00005 seconds |
|
86
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:11:2] | passed | 0.00004 seconds |
|
87
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:11:3] | passed | 0.00004 seconds |
|
88
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:12:1] | passed | 0.00005 seconds |
|
89
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:12:2] | passed | 0.00005 seconds |
|
90
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:13:1] | passed | 0.00006 seconds |
|
91
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:13:2] | passed | 0.00004 seconds |
|
92
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:13:3] | passed | 0.00004 seconds |
|
93
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:14:1] | passed | 0.00007 seconds |
|
94
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:14:2] | passed | 0.00048 seconds |
|
95
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:15:1] | passed | 0.00004 seconds |
|
96
|
+
./spec/webvalve/service_url_converter_spec.rb[1:1:15:2] | passed | 0.00004 seconds |
|
97
|
+
./spec/webvalve_spec.rb[1:1] | passed | 0.00004 seconds |
|
98
|
+
./spec/webvalve_spec.rb[1:2] | passed | 0.00002 seconds |
|
99
|
+
./spec/webvalve_spec.rb[1:3] | passed | 0.00003 seconds |
|
100
|
+
./spec/webvalve_spec.rb[1:4] | passed | 0.00051 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: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.
|
75
|
+
version: 2.5.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.
|
82
|
+
version: 2.5.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,6 +164,7 @@ files:
|
|
164
164
|
- lib/webvalve/service_url_converter.rb
|
165
165
|
- lib/webvalve/version.rb
|
166
166
|
- spec/dummy/config/application.rb
|
167
|
+
- spec/examples.txt
|
167
168
|
- spec/spec_helper.rb
|
168
169
|
- spec/support/helpers.rb
|
169
170
|
- spec/support/rails_root.rb
|
@@ -206,12 +207,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
207
|
- !ruby/object:Gem::Version
|
207
208
|
version: '0'
|
208
209
|
requirements: []
|
209
|
-
rubygems_version: 3.5.
|
210
|
+
rubygems_version: 3.5.20
|
210
211
|
signing_key:
|
211
212
|
specification_version: 4
|
212
213
|
summary: A library for faking http service integrations in development and test
|
213
214
|
test_files:
|
214
215
|
- spec/dummy/config/application.rb
|
216
|
+
- spec/examples.txt
|
215
217
|
- spec/spec_helper.rb
|
216
218
|
- spec/support/helpers.rb
|
217
219
|
- spec/support/rails_root.rb
|