shale 0.3.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/README.md +398 -41
- data/exe/shaleb +108 -36
- data/lib/shale/adapter/nokogiri/document.rb +97 -0
- data/lib/shale/adapter/nokogiri/node.rb +100 -0
- data/lib/shale/adapter/nokogiri.rb +11 -151
- data/lib/shale/adapter/ox/document.rb +90 -0
- data/lib/shale/adapter/ox/node.rb +97 -0
- data/lib/shale/adapter/ox.rb +9 -134
- data/lib/shale/adapter/rexml/document.rb +98 -0
- data/lib/shale/adapter/rexml/node.rb +99 -0
- data/lib/shale/adapter/rexml.rb +9 -150
- data/lib/shale/adapter/toml_rb.rb +34 -0
- data/lib/shale/attribute.rb +6 -0
- data/lib/shale/error.rb +56 -0
- data/lib/shale/mapper.rb +67 -13
- data/lib/shale/mapping/descriptor/xml.rb +10 -1
- data/lib/shale/mapping/dict.rb +18 -0
- data/lib/shale/mapping/xml.rb +40 -5
- data/lib/shale/schema/compiler/boolean.rb +21 -0
- data/lib/shale/schema/compiler/complex.rb +88 -0
- data/lib/shale/schema/compiler/date.rb +21 -0
- data/lib/shale/schema/compiler/float.rb +21 -0
- data/lib/shale/schema/compiler/integer.rb +21 -0
- data/lib/shale/schema/compiler/property.rb +70 -0
- data/lib/shale/schema/compiler/string.rb +21 -0
- data/lib/shale/schema/compiler/time.rb +21 -0
- data/lib/shale/schema/compiler/value.rb +21 -0
- data/lib/shale/schema/compiler/xml_complex.rb +50 -0
- data/lib/shale/schema/compiler/xml_property.rb +73 -0
- data/lib/shale/schema/json_compiler.rb +331 -0
- data/lib/shale/schema/{json → json_generator}/base.rb +2 -2
- data/lib/shale/schema/{json → json_generator}/boolean.rb +1 -1
- data/lib/shale/schema/{json → json_generator}/collection.rb +2 -2
- data/lib/shale/schema/{json → json_generator}/date.rb +1 -1
- data/lib/shale/schema/{json → json_generator}/float.rb +1 -1
- data/lib/shale/schema/{json → json_generator}/integer.rb +1 -1
- data/lib/shale/schema/{json → json_generator}/object.rb +5 -2
- data/lib/shale/schema/{json → json_generator}/ref.rb +1 -1
- data/lib/shale/schema/{json → json_generator}/schema.rb +6 -4
- data/lib/shale/schema/{json → json_generator}/string.rb +1 -1
- data/lib/shale/schema/{json → json_generator}/time.rb +1 -1
- data/lib/shale/schema/json_generator/value.rb +23 -0
- data/lib/shale/schema/{json.rb → json_generator.rb} +36 -36
- data/lib/shale/schema/xml_compiler.rb +919 -0
- data/lib/shale/schema/{xml → xml_generator}/attribute.rb +1 -1
- data/lib/shale/schema/{xml → xml_generator}/complex_type.rb +5 -2
- data/lib/shale/schema/{xml → xml_generator}/element.rb +1 -1
- data/lib/shale/schema/{xml → xml_generator}/import.rb +1 -1
- data/lib/shale/schema/{xml → xml_generator}/ref_attribute.rb +1 -1
- data/lib/shale/schema/{xml → xml_generator}/ref_element.rb +1 -1
- data/lib/shale/schema/{xml → xml_generator}/schema.rb +5 -5
- data/lib/shale/schema/{xml → xml_generator}/typed_attribute.rb +1 -1
- data/lib/shale/schema/{xml → xml_generator}/typed_element.rb +1 -1
- data/lib/shale/schema/{xml.rb → xml_generator.rb} +25 -26
- data/lib/shale/schema.rb +44 -5
- data/lib/shale/type/{composite.rb → complex.rb} +156 -51
- data/lib/shale/type/value.rb +31 -2
- data/lib/shale/utils.rb +42 -7
- data/lib/shale/version.rb +1 -1
- data/lib/shale.rb +22 -19
- data/shale.gemspec +3 -3
- metadata +50 -29
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Giszczak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Ruby object mapper and serializer for XML, JSON and YAML.
|
13
|
+
description: Ruby object mapper and serializer for XML, JSON, TOML and YAML.
|
14
14
|
email:
|
15
15
|
- beerkg@gmail.com
|
16
16
|
executables:
|
@@ -25,8 +25,15 @@ files:
|
|
25
25
|
- lib/shale.rb
|
26
26
|
- lib/shale/adapter/json.rb
|
27
27
|
- lib/shale/adapter/nokogiri.rb
|
28
|
+
- lib/shale/adapter/nokogiri/document.rb
|
29
|
+
- lib/shale/adapter/nokogiri/node.rb
|
28
30
|
- lib/shale/adapter/ox.rb
|
31
|
+
- lib/shale/adapter/ox/document.rb
|
32
|
+
- lib/shale/adapter/ox/node.rb
|
29
33
|
- lib/shale/adapter/rexml.rb
|
34
|
+
- lib/shale/adapter/rexml/document.rb
|
35
|
+
- lib/shale/adapter/rexml/node.rb
|
36
|
+
- lib/shale/adapter/toml_rb.rb
|
30
37
|
- lib/shale/attribute.rb
|
31
38
|
- lib/shale/error.rb
|
32
39
|
- lib/shale/mapper.rb
|
@@ -37,30 +44,44 @@ files:
|
|
37
44
|
- lib/shale/mapping/validator.rb
|
38
45
|
- lib/shale/mapping/xml.rb
|
39
46
|
- lib/shale/schema.rb
|
40
|
-
- lib/shale/schema/
|
41
|
-
- lib/shale/schema/
|
42
|
-
- lib/shale/schema/
|
43
|
-
- lib/shale/schema/
|
44
|
-
- lib/shale/schema/
|
45
|
-
- lib/shale/schema/
|
46
|
-
- lib/shale/schema/
|
47
|
-
- lib/shale/schema/
|
48
|
-
- lib/shale/schema/
|
49
|
-
- lib/shale/schema/
|
50
|
-
- lib/shale/schema/
|
51
|
-
- lib/shale/schema/
|
52
|
-
- lib/shale/schema/
|
53
|
-
- lib/shale/schema/
|
54
|
-
- lib/shale/schema/
|
55
|
-
- lib/shale/schema/
|
56
|
-
- lib/shale/schema/
|
57
|
-
- lib/shale/schema/
|
58
|
-
- lib/shale/schema/
|
59
|
-
- lib/shale/schema/
|
60
|
-
- lib/shale/schema/
|
61
|
-
- lib/shale/schema/
|
47
|
+
- lib/shale/schema/compiler/boolean.rb
|
48
|
+
- lib/shale/schema/compiler/complex.rb
|
49
|
+
- lib/shale/schema/compiler/date.rb
|
50
|
+
- lib/shale/schema/compiler/float.rb
|
51
|
+
- lib/shale/schema/compiler/integer.rb
|
52
|
+
- lib/shale/schema/compiler/property.rb
|
53
|
+
- lib/shale/schema/compiler/string.rb
|
54
|
+
- lib/shale/schema/compiler/time.rb
|
55
|
+
- lib/shale/schema/compiler/value.rb
|
56
|
+
- lib/shale/schema/compiler/xml_complex.rb
|
57
|
+
- lib/shale/schema/compiler/xml_property.rb
|
58
|
+
- lib/shale/schema/json_compiler.rb
|
59
|
+
- lib/shale/schema/json_generator.rb
|
60
|
+
- lib/shale/schema/json_generator/base.rb
|
61
|
+
- lib/shale/schema/json_generator/boolean.rb
|
62
|
+
- lib/shale/schema/json_generator/collection.rb
|
63
|
+
- lib/shale/schema/json_generator/date.rb
|
64
|
+
- lib/shale/schema/json_generator/float.rb
|
65
|
+
- lib/shale/schema/json_generator/integer.rb
|
66
|
+
- lib/shale/schema/json_generator/object.rb
|
67
|
+
- lib/shale/schema/json_generator/ref.rb
|
68
|
+
- lib/shale/schema/json_generator/schema.rb
|
69
|
+
- lib/shale/schema/json_generator/string.rb
|
70
|
+
- lib/shale/schema/json_generator/time.rb
|
71
|
+
- lib/shale/schema/json_generator/value.rb
|
72
|
+
- lib/shale/schema/xml_compiler.rb
|
73
|
+
- lib/shale/schema/xml_generator.rb
|
74
|
+
- lib/shale/schema/xml_generator/attribute.rb
|
75
|
+
- lib/shale/schema/xml_generator/complex_type.rb
|
76
|
+
- lib/shale/schema/xml_generator/element.rb
|
77
|
+
- lib/shale/schema/xml_generator/import.rb
|
78
|
+
- lib/shale/schema/xml_generator/ref_attribute.rb
|
79
|
+
- lib/shale/schema/xml_generator/ref_element.rb
|
80
|
+
- lib/shale/schema/xml_generator/schema.rb
|
81
|
+
- lib/shale/schema/xml_generator/typed_attribute.rb
|
82
|
+
- lib/shale/schema/xml_generator/typed_element.rb
|
62
83
|
- lib/shale/type/boolean.rb
|
63
|
-
- lib/shale/type/
|
84
|
+
- lib/shale/type/complex.rb
|
64
85
|
- lib/shale/type/date.rb
|
65
86
|
- lib/shale/type/float.rb
|
66
87
|
- lib/shale/type/integer.rb
|
@@ -87,15 +108,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
108
|
requirements:
|
88
109
|
- - ">="
|
89
110
|
- !ruby/object:Gem::Version
|
90
|
-
version: 2.
|
111
|
+
version: 2.7.0
|
91
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
113
|
requirements:
|
93
114
|
- - ">="
|
94
115
|
- !ruby/object:Gem::Version
|
95
116
|
version: '0'
|
96
117
|
requirements: []
|
97
|
-
rubygems_version: 3.
|
118
|
+
rubygems_version: 3.3.7
|
98
119
|
signing_key:
|
99
120
|
specification_version: 4
|
100
|
-
summary: Ruby object mapper and serializer for XML, JSON and YAML.
|
121
|
+
summary: Ruby object mapper and serializer for XML, JSON, TOML and YAML.
|
101
122
|
test_files: []
|