lutaml-model 0.7.2 → 0.7.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f183fc2d573bc4334639c25ff07b4959279e2907a57e6267087673c15ab366b9
|
4
|
+
data.tar.gz: ee03da94f667dd5b00651686f8ac580df98e99729d3a59f5e990e80335d15200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cab7034d72088f139ff4893e5fd6dd3331dee0823bac4db5f69efd0dd56ca3169beb63694b704f2edb5caadf4d8f2e0388d05c9785bc54248390549d49fecb18
|
7
|
+
data.tar.gz: 11e5728cdd5dc561dcf084047aaea8f748143aefeaa69802feed4f4b8dabeb30b2a47e7fdb055eba70e376cd4a587cbcd991a21d25b7045a8a4b548bc7f11667
|
data/lib/lutaml/model/version.rb
CHANGED
data/lib/lutaml/model/xml.rb
CHANGED
@@ -116,7 +116,7 @@ require "spec_helper"
|
|
116
116
|
|
117
117
|
require_relative "../../../lib/lutaml/model/serialization_adapter"
|
118
118
|
|
119
|
-
module
|
119
|
+
module CustomVobjectAdapterSpec
|
120
120
|
class VobjectParser
|
121
121
|
def initialize(data)
|
122
122
|
@data = data
|
@@ -994,7 +994,7 @@ module CustomVojectAdapterSpec
|
|
994
994
|
described_class.new(
|
995
995
|
version: "4.0",
|
996
996
|
fn: "John Doe",
|
997
|
-
n:
|
997
|
+
n: CustomVobjectAdapterSpec::VcardName.new(
|
998
998
|
family: "Doe",
|
999
999
|
given: "John",
|
1000
1000
|
additional: "Middle",
|
@@ -1002,13 +1002,13 @@ module CustomVojectAdapterSpec
|
|
1002
1002
|
suffix: "PhD",
|
1003
1003
|
),
|
1004
1004
|
tel: [
|
1005
|
-
|
1006
|
-
|
1005
|
+
CustomVobjectAdapterSpec::VcardTel.new(value: "tel:+1-555-555-5555"),
|
1006
|
+
CustomVobjectAdapterSpec::VcardTel.new(value: "tel:+1-555-555-1234"),
|
1007
1007
|
],
|
1008
1008
|
email: ["john.doe@example.com", "j.doe@company.com"],
|
1009
1009
|
org: "Example Corp",
|
1010
|
-
bday:
|
1011
|
-
value:
|
1010
|
+
bday: CustomVobjectAdapterSpec::VcardBday.new(
|
1011
|
+
value: CustomVobjectAdapterSpec::VobjectPropertyValue.parse("1970-01-01", "DATE-AND-OR-TIME"),
|
1012
1012
|
),
|
1013
1013
|
)
|
1014
1014
|
end
|
@@ -9,7 +9,7 @@ RSpec.describe Lutaml::Model::Xml do
|
|
9
9
|
# Hide any existing constants first
|
10
10
|
hide_const("Nokogiri") if Object.const_defined?(:Nokogiri)
|
11
11
|
hide_const("Ox") if Object.const_defined?(:Ox)
|
12
|
-
hide_const("
|
12
|
+
hide_const("Oga") if Object.const_defined?(:Oga)
|
13
13
|
end
|
14
14
|
|
15
15
|
context "when Nokogiri is available" do
|
@@ -32,13 +32,13 @@ RSpec.describe Lutaml::Model::Xml do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
context "when
|
35
|
+
context "when Oga is available" do
|
36
36
|
before do
|
37
|
-
stub_const("
|
37
|
+
stub_const("Oga", Module.new)
|
38
38
|
end
|
39
39
|
|
40
|
-
it "returns :
|
41
|
-
expect(described_class.detect_xml_adapter).to eq(:
|
40
|
+
it "returns :oga" do
|
41
|
+
expect(described_class.detect_xml_adapter).to eq(:oga)
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
@@ -52,7 +52,7 @@ RSpec.describe Lutaml::Model::Xml do
|
|
52
52
|
before do
|
53
53
|
stub_const("Nokogiri", Module.new)
|
54
54
|
stub_const("Ox", Module.new)
|
55
|
-
stub_const("
|
55
|
+
stub_const("Oga", Module.new)
|
56
56
|
end
|
57
57
|
|
58
58
|
it "prefers Nokogiri" do
|
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.7.
|
4
|
+
version: 0.7.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: 2025-04-
|
11
|
+
date: 2025-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: moxml
|