foobara-empty-ruby-project-generator 1.0.2 → 1.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/templates/spec/support/vcr.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69487bb9af39b07be4764e302f0a664e5d797fb12def733e9b6efffb7b16605e
|
4
|
+
data.tar.gz: 5c8f7cba5c5e3ce7e972077fa83b2ebb566d58a400dd76f32f168146b1e511fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e6012b705ec17908c11cbdcdb50e582d0c0b068c6300e0efc168be9d182a5d0f7eda9001b1903971d84da7983037578ca0329667b059fb98a7ffe63c137abda
|
7
|
+
data.tar.gz: 19d597e04921284dddc31fb0eaeb67f207352679b127f8aeaa5f14b98ddf8c84f381af17346f55e6b30a0d8157d0fac5316bd8086d31c0ceca38e2d837eac679
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## [1.0.4] - 2025-08-24
|
2
|
+
|
3
|
+
- Scrub cookies in vcr.rb instead of deleting them
|
4
|
+
|
5
|
+
## [1.0.3] - 2025-08-24
|
6
|
+
|
7
|
+
- By default, strip Set-Cookie headers out of VCR cassettes
|
8
|
+
|
1
9
|
## [1.0.2] - 2025-08-24
|
2
10
|
|
3
11
|
- Restore generating bin/console since it powers `foob c`
|
@@ -2,6 +2,16 @@ require "vcr"
|
|
2
2
|
|
3
3
|
VCR.configure do |config|
|
4
4
|
# config.filter_sensitive_data("<SCRUBBED_SOME_API_KEY>") { ENV.fetch("SOME_API_KEY", nil) }
|
5
|
+
# Scrubbing these by default just in-case they contain any sensitive data
|
6
|
+
config.before_record do |interaction|
|
7
|
+
if interaction.request.headers["Cookie"]
|
8
|
+
interaction.request.headers["Cookie"] = ["<SCRUBBED>"]
|
9
|
+
end
|
10
|
+
if interaction.response.headers["Set-Cookie"]
|
11
|
+
interaction.response.headers["Set-Cookie"] = ["<SCRUBBED>"]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
5
15
|
config.cassette_library_dir = "spec/vcr_cassettes"
|
6
16
|
config.hook_into :webmock
|
7
17
|
config.configure_rspec_metadata!
|