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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59f547350dda6c8637f28caa54f6c2bfd2efac24a0392dae1f03da050d1e594c
4
- data.tar.gz: 8c54b00e3f70e04a566508acbb5fed6bfa31271d34b87ddc7c058ada716016ca
3
+ metadata.gz: 1f01bdc7760b54fbe420367a78c59e4b8539073b99e321f46f277aa1b6695600
4
+ data.tar.gz: 2dda7ed64ce4ca85a77f34a863da866cef94cba75bce18f4701169b671d564a1
5
5
  SHA512:
6
- metadata.gz: dd93ae6f08eff36fdfb17cdc07443338b5bf626bff5c70365c3c8469db49c14d94c1b8521a5d711d80989f70f4e6562d172d4b63c5dfd3ea4a0fa8a2d0da20d5
7
- data.tar.gz: 7a48cd2953db78715f20133a2a88305529aecb83b343995af3989eee6a82059bb3065e487b33ef6db6f29e9114c8b7630a86406bbdebd4f1b55a5b9005953edf
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FtrRuby
4
- VERSION = "0.1.12"
4
+ VERSION = "0.1.13"
5
5
  end
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 = meta[:protocol].gsub(%r{[:/]}, "")
52
- @host = meta[:host].gsub(%r{[:/]}, "")
53
- @basePath = meta[:basePath].gsub(%r{[:/]}, "")
54
- @softwareid = "#{@protocol}://#{@host}/#{@basePath}/#{meta[:testid]}"
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftr_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - markwilkinson