webvalve 2.0.3 → 2.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63dc05757b97ae68be8dcb8f4722d6b3ef87ce8024da3280031f076f330ea4a9
4
- data.tar.gz: 3201762abfa6d184bc6a999f5f559fb2c191fd03b4b2fa2a2a31d504c57de8cb
3
+ metadata.gz: c281053d475c1936067a426e2df8575386bf92da5d112f01e6898bfc00eb5432
4
+ data.tar.gz: f4df1fcaeacadbbfdef24ee30f096fc741daafb0b0b16b976531a80d75ae0700
5
5
  SHA512:
6
- metadata.gz: d88117d531f16e3f009bc4c7d88fc8737a9ff1fe0b9613c5304aa7692b3311809fdc1852e833973c6b3cd2af28c0a1b2e6fb266b092fb7181271c0aa3f81f3e3
7
- data.tar.gz: e4e7d1ccfe11495664ab71f6c826754f3d41719b9297aab5c03007fbe5d805ac8df480df0a839ba45110eb57f2de237227be581e76dd9af403d3a9b7491b396f
6
+ metadata.gz: 4edd7de60c8de3cf88b478145ee2c1d760f9318ba7088bebac2f834206e717eb1a87ea6c7f06c000a7244ebc9dc5eb5cb803caec6c4640755fdb6ea331a4b672
7
+ data.tar.gz: 0a6105643c3f2346cdd7653eacd7893587c13ee7e450f8859d8a6dab69a81e7ee929fc3c845262512c5822374784d47ef6142735089445b6004f14b7a99dadff
data/CHANGELOG.md CHANGED
@@ -13,6 +13,12 @@ and this project aims to adhere to [Semantic Versioning](http://semver.org/spec/
13
13
 
14
14
  ### Removed
15
15
 
16
+ ## 2.0.4 - 2025-03-05
17
+
18
+ ### Changed
19
+
20
+ - fix broken LogSubscriber bolding (<https//github.com/Betterment/webvalve/pull/85>) (thanks @aburgel)
21
+
16
22
  ## [2.0.3] - 2024-11-26
17
23
 
18
24
  ### Changed
@@ -73,48 +79,48 @@ and this project aims to adhere to [Semantic Versioning](http://semver.org/spec/
73
79
  ### Changed
74
80
 
75
81
  - Allow the same URL for services as long as basic auth is different
76
- (<https://github.com/Betterment/webvalve/pull/46>)
82
+ (<https://github.com/Betterment/webvalve/pull/46>)
77
83
  - Introduce `reset!` and `clear!` to replace `reset`
78
- <https://github.com/Betterment/webvalve/pull/45>)
84
+ <https://github.com/Betterment/webvalve/pull/45>)
79
85
 
80
86
  ## [1.0.2] - 2020-04-27
81
87
 
82
88
  ### Changed
83
89
 
84
90
  - Fix an issue with setup / reset
85
- (<https://github.com/Betterment/webvalve/pull/44>)
91
+ (<https://github.com/Betterment/webvalve/pull/44>)
86
92
 
87
93
  ## [1.0.1] - 2020-04-24
88
94
 
89
95
  ### Changed
90
96
 
91
97
  - Fix an issue in rspec setup / usage of `WebValve.reset`
92
- (<https://github.com/Betterment/webvalve/pull/43>)
98
+ (<https://github.com/Betterment/webvalve/pull/43>)
93
99
 
94
100
  ## [1.0.0] - 2020-04-22
95
101
 
96
102
  ### Changed
97
103
 
98
104
  - Support API_URLs that include path
99
- (<https://github.com/Betterment/webvalve/pull/41>)
105
+ (<https://github.com/Betterment/webvalve/pull/41>)
100
106
 
101
107
  ## [0.12.0] - 2020-02-22
102
108
 
103
109
  ### Changed
104
110
 
105
111
  - raise an error on setup when multiple services are registered to the
106
- same url. (<https://github.com/Betterment/webvalve/pull/40>)
112
+ same url. (<https://github.com/Betterment/webvalve/pull/40>)
107
113
 
108
114
  ## [0.11.0] - 2019-11-04
109
115
 
110
116
  ### Changed
111
117
 
112
118
  - rework configuration so that WebValve has 3 operating modes: off,
113
- on+allowing, and on+intercepting. support toggling the latter two
114
- modes with
115
- `WEBVALVED_ENABLED=1`+`WEBVALVE_SERVICE_ENABLED_DEFAULT=1` and
116
- `WEBVALVED_ENABLED=1`+`WEBVALVE_SERVICE_ENABLED_DEFAULT=0`.
117
- (<https://github.com/Betterment/webvalve/pull/34>)
119
+ on+allowing, and on+intercepting. support toggling the latter two
120
+ modes with
121
+ `WEBVALVED_ENABLED=1`+`WEBVALVE_SERVICE_ENABLED_DEFAULT=1` and
122
+ `WEBVALVED_ENABLED=1`+`WEBVALVE_SERVICE_ENABLED_DEFAULT=0`.
123
+ (<https://github.com/Betterment/webvalve/pull/34>)
118
124
 
119
125
  ## [0.10.0] - 2019-09-23
120
126
 
@@ -11,7 +11,7 @@ module WebValve
11
11
  host = event.payload[:host]
12
12
  name = '%s %s (%.1fms)' % ["WebValve", "Request Captured", event.duration]
13
13
  details = "#{host} #{method} #{url} [#{status}]"
14
- debug " #{color(name, YELLOW, true)} #{color(details, BOLD, true)}"
14
+ debug " #{color(name, YELLOW, bold: true)} #{color(details, BLACK, bold: true)}"
15
15
  end
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module WebValve
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
3
3
  end
@@ -1,8 +1,5 @@
1
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
2
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
3
- $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
4
-
5
1
  module Dummy
6
2
  class Application < Rails::Application
3
+ config.root = File.expand_path('..', __dir__)
7
4
  end
8
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,14 @@
1
- ENV['RAILS_ENV'] ||= 'test'
2
1
  require 'bundler'
3
2
  Bundler.require :default, :development
4
- require File.expand_path('dummy/config/application', __dir__) if ENV['BUNDLE_GEMFILE'] =~ /rails/
3
+
4
+ if defined?(Rails)
5
+ ENV['RAILS_ENV'] ||= 'test'
6
+ require_relative 'dummy/config/application'
7
+ puts "Testing against Rails #{Rails.gem_version}"
8
+ else
9
+ puts 'Testing without Rails'
10
+ end
11
+
5
12
  require 'rspec'
6
13
  require 'pry'
7
14
  require 'webvalve'
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.3
4
+ version: 2.0.4
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-26 00:00:00.000000000 Z
11
+ date: 2025-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -122,20 +122,6 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: rails
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
125
  description: Betterment's library for developing and testing service-oriented apps
140
126
  in isolation with WebMock and Sinatra-based fakes.
141
127
  email:
@@ -167,7 +153,6 @@ files:
167
153
  - spec/examples.txt
168
154
  - spec/spec_helper.rb
169
155
  - spec/support/helpers.rb
170
- - spec/support/rails_root.rb
171
156
  - spec/webvalve/fake_service_config_spec.rb
172
157
  - spec/webvalve/fake_service_spec.rb
173
158
  - spec/webvalve/manager_spec.rb
@@ -216,7 +201,6 @@ test_files:
216
201
  - spec/examples.txt
217
202
  - spec/spec_helper.rb
218
203
  - spec/support/helpers.rb
219
- - spec/support/rails_root.rb
220
204
  - spec/webvalve/fake_service_config_spec.rb
221
205
  - spec/webvalve/fake_service_spec.rb
222
206
  - spec/webvalve/manager_spec.rb
@@ -1,7 +0,0 @@
1
- module ::Rails
2
- class << self
3
- def root
4
- @root ||= Pathname.new(Dir.pwd).realpath.join('spec', 'dummy')
5
- end
6
- end
7
- end