tilia-xml 1.2.0.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplecov +1 -2
- data/CHANGELOG.sabre.md +21 -0
- data/Gemfile +2 -7
- data/Gemfile.lock +22 -17
- data/LICENSE +1 -1
- data/LICENSE.sabre +1 -1
- data/lib/tilia/xml.rb +3 -0
- data/lib/tilia/xml/context_stack_trait.rb +27 -23
- data/lib/tilia/xml/deserializer.rb +241 -0
- data/lib/tilia/xml/element/base.rb +2 -43
- data/lib/tilia/xml/element/cdata.rb +1 -26
- data/lib/tilia/xml/element/elements.rb +4 -66
- data/lib/tilia/xml/element/key_value.rb +3 -65
- data/lib/tilia/xml/element/uri.rb +2 -45
- data/lib/tilia/xml/element/xml_fragment.rb +2 -42
- data/lib/tilia/xml/reader.rb +33 -28
- data/lib/tilia/xml/serializer.rb +194 -0
- data/lib/tilia/xml/service.rb +98 -14
- data/lib/tilia/xml/version.rb +1 -1
- data/lib/tilia/xml/writer.rb +42 -88
- data/lib/tilia/xml/xml_deserializable.rb +4 -4
- data/lib/tilia/xml/xml_serializable.rb +3 -3
- data/test/test_helper.rb +77 -0
- data/test/xml/context_stack_test.rb +0 -3
- data/test/xml/deserializer/enum_test.rb +55 -0
- data/test/xml/deserializer/key_value_test.rb +64 -0
- data/test/xml/deserializer/repeating_elements_test.rb +33 -0
- data/test/xml/deserializer/value_object_test.rb +163 -0
- data/test/xml/reader_test.rb +35 -16
- data/test/xml/serializer/enum_test.rb +36 -0
- data/test/xml/serializer/repeating_elements_test.rb +37 -0
- data/test/xml/service_test.rb +68 -0
- data/test/xml/writer_test.rb +120 -17
- data/tilia-xml.gemspec +4 -4
- metadata +23 -9
data/tilia-xml.gemspec
CHANGED
@@ -4,12 +4,12 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.version = Tilia::Xml::Version::VERSION
|
5
5
|
s.licenses = ['BSD-3-Clause']
|
6
6
|
s.summary = 'Port of the sabre-xml library to ruby.'
|
7
|
-
s.description = "Port of the sabre-xml library to ruby.\n\
|
7
|
+
s.description = "Port of the sabre-xml library to ruby.\n\nsabre/xml is an XML library that you may not hate."
|
8
8
|
s.author = 'Jakob Sack'
|
9
9
|
s.email = 'tilia@jakobsack.de'
|
10
10
|
s.files = `git ls-files`.split("\n")
|
11
11
|
s.homepage = 'https://github.com/tilia/tilia-xml'
|
12
|
-
s.add_runtime_dependency 'activesupport', '
|
13
|
-
s.add_runtime_dependency 'libxml-ruby', '
|
14
|
-
s.add_runtime_dependency 'tilia-uri', '~> 1.0'
|
12
|
+
s.add_runtime_dependency 'activesupport', '>= 4.0'
|
13
|
+
s.add_runtime_dependency 'libxml-ruby', '>= 2.8'
|
14
|
+
s.add_runtime_dependency 'tilia-uri', '~> 1.0', '>= 1.0.1.1'
|
15
15
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tilia-xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakob Sack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: libxml-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.8'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.8'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -45,6 +45,9 @@ dependencies:
|
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.0'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 1.0.1.1
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -52,10 +55,13 @@ dependencies:
|
|
52
55
|
- - "~>"
|
53
56
|
- !ruby/object:Gem::Version
|
54
57
|
version: '1.0'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.0.1.1
|
55
61
|
description: |-
|
56
62
|
Port of the sabre-xml library to ruby.
|
57
63
|
|
58
|
-
|
64
|
+
sabre/xml is an XML library that you may not hate.
|
59
65
|
email: tilia@jakobsack.de
|
60
66
|
executables: []
|
61
67
|
extensions: []
|
@@ -75,6 +81,7 @@ files:
|
|
75
81
|
- Rakefile
|
76
82
|
- lib/tilia/xml.rb
|
77
83
|
- lib/tilia/xml/context_stack_trait.rb
|
84
|
+
- lib/tilia/xml/deserializer.rb
|
78
85
|
- lib/tilia/xml/element.rb
|
79
86
|
- lib/tilia/xml/element/base.rb
|
80
87
|
- lib/tilia/xml/element/cdata.rb
|
@@ -85,6 +92,7 @@ files:
|
|
85
92
|
- lib/tilia/xml/lib_xml_exception.rb
|
86
93
|
- lib/tilia/xml/parse_exception.rb
|
87
94
|
- lib/tilia/xml/reader.rb
|
95
|
+
- lib/tilia/xml/serializer.rb
|
88
96
|
- lib/tilia/xml/service.rb
|
89
97
|
- lib/tilia/xml/version.rb
|
90
98
|
- lib/tilia/xml/writer.rb
|
@@ -92,6 +100,10 @@ files:
|
|
92
100
|
- lib/tilia/xml/xml_serializable.rb
|
93
101
|
- test/test_helper.rb
|
94
102
|
- test/xml/context_stack_test.rb
|
103
|
+
- test/xml/deserializer/enum_test.rb
|
104
|
+
- test/xml/deserializer/key_value_test.rb
|
105
|
+
- test/xml/deserializer/repeating_elements_test.rb
|
106
|
+
- test/xml/deserializer/value_object_test.rb
|
95
107
|
- test/xml/element/cdata_test.rb
|
96
108
|
- test/xml/element/eater.rb
|
97
109
|
- test/xml/element/elements_test.rb
|
@@ -101,6 +113,8 @@ files:
|
|
101
113
|
- test/xml/element/xml_fragment_test.rb
|
102
114
|
- test/xml/infite_loop_test.rb
|
103
115
|
- test/xml/reader_test.rb
|
116
|
+
- test/xml/serializer/enum_test.rb
|
117
|
+
- test/xml/serializer/repeating_elements_test.rb
|
104
118
|
- test/xml/service_test.rb
|
105
119
|
- test/xml/writer_test.rb
|
106
120
|
- tilia-xml.gemspec
|