lutaml-model 0.8.2 → 0.8.3

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: d6eb717e543e98728e8819eef97823780156ce2f594c360f678b9d23f9baf230
4
- data.tar.gz: 64906eed0282afa83f0905db2e3a75e607a22bacf5e9e40cafa3c0007bdc8fec
3
+ metadata.gz: 4ae1d87545b35bb4c5611ee8063e4ac7529f91b100b4505c7b2f2f8e0815ca07
4
+ data.tar.gz: 9c3784b872d6bfed995de44cfcde258c20f6c7004a6e0663332b44c1be653751
5
5
  SHA512:
6
- metadata.gz: 62b3ca87767a8b942d78b22800b6765467532a194484c18f494bc29ff558adb57f2fcf92f7ea5e2bba5a05cac811c39d807c40885c247190452b33556ccf78f8
7
- data.tar.gz: 1771fd424b8c31e9da2c6940b750c80af2ac38b4ae05e02d234894ee9df5cd5ad4dbd6a9486bbbee0060a3f956507a98a3bfdcc6dd1d6a074957f544649638ee
6
+ metadata.gz: 0130ba36bc10f0fc1791433cd9d7ac7724920f2aa5023042aa4e24480d87cd75f342fc98510fc2dc3da67d67b491c8d0c07ce705819140c6ff989681dbf700e9
7
+ data.tar.gz: 0ddc770da4f35d7dffea4219f4663e5cbc56cd19d9ffd8b3396c8b7e7419a20c2491e84dfcc419de71a5b8fc1fbf43abb9d434a4c1d9f4878cc521e672ca65cd
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lutaml
4
4
  module Model
5
- VERSION = "0.8.2"
5
+ VERSION = "0.8.3"
6
6
  end
7
7
  end
@@ -34,6 +34,9 @@ module Lutaml
34
34
  def include_schema(schema_location)
35
35
  return unless schema_location
36
36
 
37
+ schema_location = schema_location.strip
38
+ return if schema_location.empty?
39
+
37
40
  resolved_location = resolve_schema_location(schema_location)
38
41
  if absolute_path?(resolved_location)
39
42
  return read_absolute_path(
@@ -54,6 +57,9 @@ module Lutaml
54
57
  end
55
58
 
56
59
  def location_for(schema_location)
60
+ schema_location = schema_location&.strip
61
+ return nil if schema_location.nil? || schema_location.empty?
62
+
57
63
  resolved_location = resolve_schema_location(schema_location)
58
64
  return resolved_location if absolute_path?(resolved_location) || absolute_url?(resolved_location)
59
65
 
data/lutaml-model.gemspec CHANGED
@@ -37,7 +37,6 @@ Gem::Specification.new do |spec|
37
37
  spec.add_dependency "concurrent-ruby"
38
38
  spec.add_dependency "liquid", "~> 5.0"
39
39
  spec.add_dependency "moxml", ">= 0.1.16"
40
- spec.add_dependency "openssl", "~> 3.0"
41
40
  spec.add_dependency "ostruct"
42
41
  spec.add_dependency "rubyzip", "~> 2.3"
43
42
  spec.add_dependency "thor"
@@ -194,6 +194,18 @@ RSpec.describe Lutaml::Xml::Schema::Xsd::Glob do
194
194
  end
195
195
  end
196
196
 
197
+ context "with whitespace in schemaLocation" do
198
+ it "strips leading/trailing whitespace from schema location" do
199
+ clean = described_class.include_schema("metaschema.xsd")
200
+ padded = described_class.include_schema(" metaschema.xsd ")
201
+ expect(padded).to eq(clean)
202
+ end
203
+
204
+ it "handles whitespace-only schema location gracefully" do
205
+ expect(described_class.include_schema(" ")).to be_nil
206
+ end
207
+ end
208
+
197
209
  context "with regex pattern mapping" do
198
210
  before do
199
211
  # Use forward slashes for cross-platform compatibility in regex patterns
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-03 00:00:00.000000000 Z
11
+ date: 2026-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.1.16
97
- - !ruby/object:Gem::Dependency
98
- name: openssl
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '3.0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '3.0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: ostruct
113
99
  requirement: !ruby/object:Gem::Requirement