webvalve 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: 525e9c21f8c71fdb14b33a86cc083c36750590c1cfd9757122e8eddc3c3b6d89
4
- data.tar.gz: 87c1ebf187c87a6c6d9f5384e343f5fe902e64853119322134cc81a2fd7b601f
3
+ metadata.gz: c27cfca3646bee0e4a3405dfd89591a279d39ec26693689953bc47bb887c860d
4
+ data.tar.gz: 372b6c3d9f1ea51b9ba7313ad8836a1c926dbcb1b67c32a348a81522ba9c0b17
5
5
  SHA512:
6
- metadata.gz: 0546ba28459e5585960b80ea2482c2e934a483943c2becadd8b68e24de234796abc6871d274bc2ff4538e7674c73b60528b1b7bf40af41ce3f5cb1c99a73e7d3
7
- data.tar.gz: 5538db0be81784e80b54f999785e4e87dd1cae69b5c6df7c8307f2c9d2d7f2ff39c0b5612e41672c68ce7ae4c2440da57e1205320ebdcad2657df641d8465150
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.1...HEAD
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
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module WebValve
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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-24 00:00:00.000000000 Z
11
+ date: 2020-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport