ftr_ruby 0.1.12 → 0.1.13
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 +5 -0
- data/lib/ftr_ruby/version.rb +1 -1
- data/lib/output.rb +5 -4
- 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: 1f01bdc7760b54fbe420367a78c59e4b8539073b99e321f46f277aa1b6695600
|
|
4
|
+
data.tar.gz: 2dda7ed64ce4ca85a77f34a863da866cef94cba75bce18f4701169b671d564a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b1d0aa5cee43240b3a2536841b9709b4b61e8d9adbe84ee3720b8366f5a12f589f4b90efe1714ff99475d51635e90b17f4c067f28d42236a339646fc3f875ab3
|
|
7
|
+
data.tar.gz: 87b71b41d91fe24b8e96674cb9fbbefbd10c2e888cc959ccd24edb4613f0320b14bf2f4bdc5d44898a4c55ece0a19da98c6468007062c38ea398e442ebe0ec83
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.1.13] - 2026-06-11
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- `Output#initialize`: replaced aggressive `gsub(%r{[:/]}, "")` stripping on `protocol`, `host`, and `basePath` with holistic URL component normalization — strips scheme prefix from `host`, extracts only the scheme name from `protocol` (downcased), strips leading/trailing slashes from `basePath` while preserving internal path separators, and strips leading slashes from `testid` in `softwareid` construction; previously, a `basePath` like `/path/to/test` would be corrupted to `pathtotest` and port numbers in `host` would be destroyed
|
|
7
|
+
|
|
3
8
|
## [0.1.12] - 2026-05-27
|
|
4
9
|
|
|
5
10
|
### Fixed
|
data/lib/ftr_ruby/version.rb
CHANGED
data/lib/output.rb
CHANGED
|
@@ -48,10 +48,11 @@ module FtrRuby
|
|
|
48
48
|
@comments = []
|
|
49
49
|
@guidance = meta.fetch(:guidance, [])
|
|
50
50
|
@creator = meta[:creator]
|
|
51
|
-
@protocol
|
|
52
|
-
@host
|
|
53
|
-
@basePath
|
|
54
|
-
|
|
51
|
+
@protocol = meta[:protocol].to_s.split(%r{://}).first.to_s.strip.downcase
|
|
52
|
+
@host = meta[:host].to_s.sub(%r{\A[a-zA-Z][a-zA-Z0-9+\-.]*://}, "").split("/").first.to_s.strip
|
|
53
|
+
@basePath = meta[:basePath].to_s.sub(%r{\A[a-zA-Z][a-zA-Z0-9+\-.]*://[^/]*/}, "").gsub(%r{\A/+|/+\z}, "")
|
|
54
|
+
testid = meta[:testid].to_s.sub(%r{\A/+}, "")
|
|
55
|
+
@softwareid = "#{@protocol}://#{@host}/#{[@basePath, testid].reject(&:empty?).join("/")}"
|
|
55
56
|
@api = "#{@softwareid}/api"
|
|
56
57
|
end
|
|
57
58
|
|