webvalve 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/webvalve/manager.rb +8 -0
- data/lib/webvalve/railtie.rb +0 -5
- data/lib/webvalve/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c27cfca3646bee0e4a3405dfd89591a279d39ec26693689953bc47bb887c860d
|
4
|
+
data.tar.gz: 372b6c3d9f1ea51b9ba7313ad8836a1c926dbcb1b67c32a348a81522ba9c0b17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75425fd1a5e8b11a40863e375b64a2c71a8f7f5a9399d8dc3bc0bc86aba4241a9b210c2c384db54e33960aa67906ffd14195a3b289fc81b61212182497a5d667
|
7
|
+
data.tar.gz: 67598716476b08fddfea8de71321660fe3b3af454fb133cf4968c37ac958eda9daebc724961c534dcb8a13dfab315b1ce7bc12ee65807d2d6733a86eec7e102d
|
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,11 @@ and this project aims to adhere to [Semantic Versioning](http://semver.org/spec/
|
|
9
9
|
### Added
|
10
10
|
### Removed
|
11
11
|
|
12
|
+
## [1.0.2] - 2020-04-27
|
13
|
+
### Changed
|
14
|
+
- Fix an issue with setup / reset
|
15
|
+
(https://github.com/Betterment/webvalve/pull/44)
|
16
|
+
|
12
17
|
## [1.0.1] - 2020-04-24
|
13
18
|
### Changed
|
14
19
|
- Fix an issue in rspec setup / usage of `WebValve.reset`
|
@@ -63,7 +68,8 @@ and this project aims to adhere to [Semantic Versioning](http://semver.org/spec/
|
|
63
68
|
### Changed
|
64
69
|
- WebMock 3+ support from @messanjah (https://github.com/Betterment/webvalve/pull/22)
|
65
70
|
|
66
|
-
[Unreleased]: https://github.com/Betterment/webvalve/compare/v1.0.
|
71
|
+
[Unreleased]: https://github.com/Betterment/webvalve/compare/v1.0.2...HEAD
|
72
|
+
[1.0.2]: https://github.com/Betterment/webvalve/compare/v1.0.1...v1.0.2
|
67
73
|
[1.0.1]: https://github.com/Betterment/webvalve/compare/v1.0.0...v1.0.1
|
68
74
|
[1.0.0]: https://github.com/Betterment/webvalve/compare/v0.12.0...v1.0.0
|
69
75
|
[0.12.0]: https://github.com/Betterment/webvalve/compare/v0.11.0...v0.12.0
|
data/lib/webvalve/manager.rb
CHANGED
@@ -24,6 +24,7 @@ module WebValve
|
|
24
24
|
|
25
25
|
def setup
|
26
26
|
return unless enabled?
|
27
|
+
load_configs!
|
27
28
|
|
28
29
|
if intercepting?
|
29
30
|
fake_service_configs.each do |config|
|
@@ -149,6 +150,13 @@ module WebValve
|
|
149
150
|
stubbed_urls << config.service_url
|
150
151
|
end
|
151
152
|
|
153
|
+
def load_configs!
|
154
|
+
WebValve.config_paths.each do |root|
|
155
|
+
path = root.join('config', 'webvalve.rb').to_s
|
156
|
+
load path if File.exist?(path)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
152
160
|
def stubbed_urls
|
153
161
|
@stubbed_urls ||= Set.new
|
154
162
|
end
|
data/lib/webvalve/railtie.rb
CHANGED
@@ -12,11 +12,6 @@ module WebValve
|
|
12
12
|
|
13
13
|
initializer 'webvalve.setup', after: :load_config_initializers do
|
14
14
|
if WebValve.enabled?
|
15
|
-
WebValve.config_paths.each do |root|
|
16
|
-
path = root.join('config', 'webvalve.rb').to_s
|
17
|
-
load path if File.exist?(path)
|
18
|
-
end
|
19
|
-
|
20
15
|
config.after_initialize do
|
21
16
|
WebValve.setup
|
22
17
|
end
|
data/lib/webvalve/version.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|