junoser 0.6.0 → 0.7.0

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.
data/lib/junoser/ruler.rb CHANGED
@@ -43,7 +43,29 @@ module Junoser
43
43
  def process_reserved_element(str)
44
44
  str.gsub! /"\$\S+"/, 'arg'
45
45
 
46
- str.gsub! /"groups" \(\s*s\(\s*any\s*\)\s*\)/, 'a("groups", arg, configuration)'
46
+ str.gsub! /"groups" \(\s*s\(\s*any\s*\)\s*\)/, <<-EOS.strip
47
+ b(a("groups", arg),
48
+ c(
49
+ configuration,
50
+ "when" (
51
+ c(
52
+ "chassis" arg,
53
+ "member" arg,
54
+ "model" arg,
55
+ "node" arg,
56
+ "peers" arg,
57
+ "routing-engine" arg,
58
+ "time" (
59
+ c(
60
+ "to" arg,
61
+ arg
62
+ )
63
+ )
64
+ )
65
+ )
66
+ )
67
+ )
68
+ EOS
47
69
 
48
70
  str.gsub! '"equal-literal"', '"="'
49
71
  str.gsub! '"plus-literal"', '"+"'
@@ -1,3 +1,3 @@
1
1
  module Junoser
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  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.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shintaro Kojima
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-15 00:00:00.000000000 Z
11
+ date: 2024-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
- rubygems_version: 3.5.11
159
+ rubygems_version: 3.5.16
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: PEG parser for JUNOS configuration.