junoser 0.3.12 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +95 -42
- data/Gemfile.lock +12 -10
- data/LICENSE.txt +1 -1
- data/README.md +47 -11
- data/Rakefile +12 -3
- data/example/get-schema.xml +19 -0
- data/example/junos-18.1R3-S9.rb +102366 -0
- data/example/mx-19.3R3-S1.3.rb +118283 -0
- data/example/vmx-17.2R1.13.rb +2287 -2272
- data/example/vsrx-18.3R1.9.rb +1305 -1305
- data/junoser.gemspec +1 -1
- data/lib/junoser/display/structure.rb +1 -1
- data/lib/junoser/js_ruler.rb +20 -21
- data/lib/junoser/parser.rb +40788 -22351
- data/lib/junoser/ruler.rb +137 -84
- data/lib/junoser/version.rb +1 -1
- data/lib/junoser/xsd/base.rb +9 -6
- data/lib/junoser/xsd/choice.rb +6 -2
- data/lib/junoser/xsd/complex_type.rb +3 -3
- data/lib/junoser/xsd/element.rb +7 -3
- data/lib/junoser/xsd/restriction.rb +2 -2
- data/lib/junoser/xsd/sequence.rb +11 -3
- data/lib/junoser/xsd/simple_content.rb +1 -1
- data/lib/junoser/xsd/simple_type.rb +2 -2
- data/lib/junoser/xsd/union.rb +1 -1
- metadata +11 -8
@@ -11,9 +11,9 @@ module Junoser
|
|
11
11
|
@config ||= children.map {|child|
|
12
12
|
case child.name
|
13
13
|
when 'restriction'
|
14
|
-
Junoser::Xsd::Restriction.new(child, depth: @depth+1)
|
14
|
+
Junoser::Xsd::Restriction.new(child, depth: @depth+1, parent: self)
|
15
15
|
when 'union'
|
16
|
-
Junoser::Xsd::Union.new(child, depth: @depth+1)
|
16
|
+
Junoser::Xsd::Union.new(child, depth: @depth+1, parent: self)
|
17
17
|
else
|
18
18
|
raise "ERROR: unknown element: #{child.name}"
|
19
19
|
end
|
data/lib/junoser/xsd/union.rb
CHANGED
@@ -9,7 +9,7 @@ module Junoser
|
|
9
9
|
@config ||= children.map {|child|
|
10
10
|
case child.name
|
11
11
|
when 'simpleType'
|
12
|
-
Junoser::Xsd::SimpleType.new(child, depth: @depth+1)
|
12
|
+
Junoser::Xsd::SimpleType.new(child, depth: @depth+1, parent: self)
|
13
13
|
else
|
14
14
|
raise "ERROR: unknown element: #{child.name}"
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: junoser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shintaro Kojima
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: nokogiri
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,6 +99,9 @@ files:
|
|
99
99
|
- Rakefile
|
100
100
|
- bin/console
|
101
101
|
- bin/setup
|
102
|
+
- example/get-schema.xml
|
103
|
+
- example/junos-18.1R3-S9.rb
|
104
|
+
- example/mx-19.3R3-S1.3.rb
|
102
105
|
- example/vmx-17.2R1.13.rb
|
103
106
|
- example/vsrx-12.1.x47.rb
|
104
107
|
- example/vsrx-18.3R1.9.rb
|
@@ -135,7 +138,7 @@ files:
|
|
135
138
|
homepage: https://github.com/codeout/junoser
|
136
139
|
licenses: []
|
137
140
|
metadata: {}
|
138
|
-
post_install_message:
|
141
|
+
post_install_message:
|
139
142
|
rdoc_options: []
|
140
143
|
require_paths:
|
141
144
|
- lib
|
@@ -150,8 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
153
|
- !ruby/object:Gem::Version
|
151
154
|
version: '0'
|
152
155
|
requirements: []
|
153
|
-
rubygems_version: 3.
|
154
|
-
signing_key:
|
156
|
+
rubygems_version: 3.2.22
|
157
|
+
signing_key:
|
155
158
|
specification_version: 4
|
156
159
|
summary: PEG parser for JUNOS configuration.
|
157
160
|
test_files: []
|