junoser 0.3.4 → 0.3.5

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: 8946b872579e3b18abedace1d082a3113b0d0f97ebe5764fd7151480c27f33e5
4
- data.tar.gz: b393bce074d91a6efec26fb903d52c216608e446a2f83719b9138807c85f6189
3
+ metadata.gz: 3dc178f13e5d960a688a8246e88068c5da0fe925ff9998dfcc6a0f460445a620
4
+ data.tar.gz: 36bafb4fe6f644735f0adb9122419700f4201c6eac16611883a3927835378d29
5
5
  SHA512:
6
- metadata.gz: c3b93bd2591a4e70eba6c75741aba8c7b0c26b5e90c573ab3e69c8395eb66ae80526c5f02b16bb6a30d1e31864148564c2115e58a63bb0c28ab4b191bffd5ceb
7
- data.tar.gz: a3132d5e32f3e87c78c5db1a9762f106b35bdafb458d3093003e138a5462440a2fa0493de93bc9b618ca961cb60a3d6e1ad0a588d8b6da49fc61fe773696154d
6
+ metadata.gz: 6fc4cb1deea2bb59544756012f4195e38d23d64c03fc2b29686702a774861ce7724659e8e9509db5080dfdb7b51a782e6713a597ffd4275fc91e2ab639428f04
7
+ data.tar.gz: d9ca197755fd6fe55a82f8bc5a27e7a315a2cb32de6e016fd74ffd088b298f0ce11b0fab164eda5108be7d5772ed87c02ad5720960e2eda7dc3f9b57efca068b
data/.travis.yml CHANGED
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 2.3
5
4
  - 2.4
6
5
  - 2.5
7
6
  - 2.6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.3.5] - 2019-08-15
2
+
3
+ ### Fixed
4
+
5
+ * Accept quoted string for
6
+ * "as-path path"
7
+
8
+
1
9
  ## [0.3.4] - 2019-02-17
2
10
 
3
11
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- junoser (0.3.4)
4
+ junoser (0.3.5)
5
5
  parslet
6
6
 
7
7
  GEM
@@ -27,4 +27,4 @@ DEPENDENCIES
27
27
  test-unit
28
28
 
29
29
  BUNDLED WITH
30
- 2.0.1
30
+ 2.0.2
@@ -31064,8 +31064,8 @@ module Junoser
31064
31064
  community
31065
31065
  ),
31066
31066
  b(str("as-path"),
31067
- c(
31068
- a(str("path"), arg),
31067
+ c(
31068
+ a(str("path"), quote | arg),
31069
31069
  b(str("origin"),
31070
31070
  (str("igp") | str("egp") | str("incomplete"))
31071
31071
  ),
@@ -31196,8 +31196,8 @@ module Junoser
31196
31196
  community
31197
31197
  ),
31198
31198
  b(str("as-path"),
31199
- c(
31200
- a(str("path"), arg),
31199
+ c(
31200
+ a(str("path"), quote | arg),
31201
31201
  b(str("origin"),
31202
31202
  (str("igp") | str("egp") | str("incomplete"))
31203
31203
  ),
@@ -31335,8 +31335,8 @@ module Junoser
31335
31335
  community
31336
31336
  ),
31337
31337
  b(str("as-path"),
31338
- c(
31339
- a(str("path"), arg),
31338
+ c(
31339
+ a(str("path"), quote | arg),
31340
31340
  b(str("origin"),
31341
31341
  (str("igp") | str("egp") | str("incomplete"))
31342
31342
  ),
@@ -31493,8 +31493,8 @@ module Junoser
31493
31493
  community
31494
31494
  ),
31495
31495
  b(str("as-path"),
31496
- c(
31497
- a(str("path"), arg),
31496
+ c(
31497
+ a(str("path"), quote | arg),
31498
31498
  b(str("origin"),
31499
31499
  (str("igp") | str("egp") | str("incomplete"))
31500
31500
  ),
@@ -38832,8 +38832,8 @@ module Junoser
38832
38832
  community
38833
38833
  ),
38834
38834
  b(str("as-path"),
38835
- c(
38836
- a(str("path"), arg),
38835
+ c(
38836
+ a(str("path"), quote | arg),
38837
38837
  b(str("origin"),
38838
38838
  (str("igp") | str("egp") | str("incomplete"))
38839
38839
  ),
@@ -38964,8 +38964,8 @@ module Junoser
38964
38964
  community
38965
38965
  ),
38966
38966
  b(str("as-path"),
38967
- c(
38968
- a(str("path"), arg),
38967
+ c(
38968
+ a(str("path"), quote | arg),
38969
38969
  b(str("origin"),
38970
38970
  (str("igp") | str("egp") | str("incomplete"))
38971
38971
  ),
@@ -39103,8 +39103,8 @@ module Junoser
39103
39103
  community
39104
39104
  ),
39105
39105
  b(str("as-path"),
39106
- c(
39107
- a(str("path"), arg),
39106
+ c(
39107
+ a(str("path"), quote | arg),
39108
39108
  b(str("origin"),
39109
39109
  (str("igp") | str("egp") | str("incomplete"))
39110
39110
  ),
@@ -39261,8 +39261,8 @@ module Junoser
39261
39261
  community
39262
39262
  ),
39263
39263
  b(str("as-path"),
39264
- c(
39265
- a(str("path"), arg),
39264
+ c(
39265
+ a(str("path"), quote | arg),
39266
39266
  b(str("origin"),
39267
39267
  (str("igp") | str("egp") | str("incomplete"))
39268
39268
  ),
@@ -58082,8 +58082,8 @@ module Junoser
58082
58082
  community
58083
58083
  ),
58084
58084
  b(str("as-path"),
58085
- c(
58086
- a(str("path"), arg),
58085
+ c(
58086
+ a(str("path"), quote | arg),
58087
58087
  b(str("origin"),
58088
58088
  (str("igp") | str("egp") | str("incomplete"))
58089
58089
  ),
@@ -58214,8 +58214,8 @@ module Junoser
58214
58214
  community
58215
58215
  ),
58216
58216
  b(str("as-path"),
58217
- c(
58218
- a(str("path"), arg),
58217
+ c(
58218
+ a(str("path"), quote | arg),
58219
58219
  b(str("origin"),
58220
58220
  (str("igp") | str("egp") | str("incomplete"))
58221
58221
  ),
@@ -58353,8 +58353,8 @@ module Junoser
58353
58353
  community
58354
58354
  ),
58355
58355
  b(str("as-path"),
58356
- c(
58357
- a(str("path"), arg),
58356
+ c(
58357
+ a(str("path"), quote | arg),
58358
58358
  b(str("origin"),
58359
58359
  (str("igp") | str("egp") | str("incomplete"))
58360
58360
  ),
@@ -58511,8 +58511,8 @@ module Junoser
58511
58511
  community
58512
58512
  ),
58513
58513
  b(str("as-path"),
58514
- c(
58515
- a(str("path"), arg),
58514
+ c(
58515
+ a(str("path"), quote | arg),
58516
58516
  b(str("origin"),
58517
58517
  (str("igp") | str("egp") | str("incomplete"))
58518
58518
  ),
@@ -58596,8 +58596,8 @@ module Junoser
58596
58596
  community
58597
58597
  ),
58598
58598
  b(str("as-path"),
58599
- c(
58600
- a(str("path"), arg),
58599
+ c(
58600
+ a(str("path"), quote | arg),
58601
58601
  b(str("origin"),
58602
58602
  (str("igp") | str("egp") | str("incomplete"))
58603
58603
  ),
@@ -58728,8 +58728,8 @@ module Junoser
58728
58728
  community
58729
58729
  ),
58730
58730
  b(str("as-path"),
58731
- c(
58732
- a(str("path"), arg),
58731
+ c(
58732
+ a(str("path"), quote | arg),
58733
58733
  b(str("origin"),
58734
58734
  (str("igp") | str("egp") | str("incomplete"))
58735
58735
  ),
@@ -58867,8 +58867,8 @@ module Junoser
58867
58867
  community
58868
58868
  ),
58869
58869
  b(str("as-path"),
58870
- c(
58871
- a(str("path"), arg),
58870
+ c(
58871
+ a(str("path"), quote | arg),
58872
58872
  b(str("origin"),
58873
58873
  (str("igp") | str("egp") | str("incomplete"))
58874
58874
  ),
@@ -59025,8 +59025,8 @@ module Junoser
59025
59025
  community
59026
59026
  ),
59027
59027
  b(str("as-path"),
59028
- c(
59029
- a(str("path"), arg),
59028
+ c(
59029
+ a(str("path"), quote | arg),
59030
59030
  b(str("origin"),
59031
59031
  (str("igp") | str("egp") | str("incomplete"))
59032
59032
  ),
@@ -86903,8 +86903,8 @@ module Junoser
86903
86903
  community
86904
86904
  ),
86905
86905
  b(str("as-path"),
86906
- c(
86907
- a(str("path"), arg),
86906
+ c(
86907
+ a(str("path"), quote | arg),
86908
86908
  b(str("origin"),
86909
86909
  (str("igp") | str("egp") | str("incomplete"))
86910
86910
  ),
@@ -86967,8 +86967,8 @@ module Junoser
86967
86967
  community
86968
86968
  ),
86969
86969
  b(str("as-path"),
86970
- c(
86971
- a(str("path"), arg),
86970
+ c(
86971
+ a(str("path"), quote | arg),
86972
86972
  b(str("origin"),
86973
86973
  (str("igp") | str("egp") | str("incomplete"))
86974
86974
  ),
data/lib/junoser/ruler.rb CHANGED
@@ -153,6 +153,12 @@ module Junoser
153
153
  '"contact" (quote | arg),'], $1)
154
154
  end
155
155
 
156
+ str.gsub!(/^(\s*)"as-path" \(\s*c\(\s*"path" arg/) do
157
+ format(['"as-path" (',
158
+ ' c(',
159
+ ' "path" (quote | arg)'], $1)
160
+ end
161
+
156
162
  str
157
163
  end
158
164
 
@@ -1,3 +1,3 @@
1
1
  module Junoser
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
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.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shintaro Kojima
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-16 00:00:00.000000000 Z
11
+ date: 2019-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
@@ -149,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubyforge_project:
153
- rubygems_version: 2.7.6
152
+ rubygems_version: 3.0.4
154
153
  signing_key:
155
154
  specification_version: 4
156
155
  summary: PEG parser for JUNOS configuration.