junoser 0.7.1 → 0.7.2

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: bd8d0023004d5b1a354481038fd124a73b1aff42b66fd0582534dbed3587acfc
4
- data.tar.gz: 26215df72ca310d36a6b57e5e288d145c5e575ced116633e023b0d895db4546f
3
+ metadata.gz: 54f09e05dbba47b559c3a8ba68644a5648b646719830ca573fad81821b7aa6e6
4
+ data.tar.gz: d8c0cd5221c4d534bbf3b3986bef228e47c3db44cfe9d3dc9977e70a3ade15dd
5
5
  SHA512:
6
- metadata.gz: 4fb26b5d915d873942e4ae4fcff612f70664ed933353287597c74da9ecf42f68f7e6f55ce8472e64a73ae2598a77937beacfb1fc9b417b9247e4dfcbcf76904f
7
- data.tar.gz: 534d3484149a158d384e2beaabd6a12c33cd16ef993d2ddfb90e61410b76a6dd3ef214e7894c9a2b2541effbe69f7e271b4cc7208d9bb22470efc5e16a912c99
6
+ metadata.gz: 262a923cabcf89668f1b1cb73a773662971fc2b577abb314196fd27a458da801a7ac78740fe31b500652787af7a338fe3906fb569eb12f7363832353289dc3c1
7
+ data.tar.gz: 0b01ef6de4abefa8234a5cdfdae9320ad690ea90f9544fbeefb82198195f89eb82c66fb966305a4c813ff9f166cb60280a3de0f0523df5f3a6c02c68935f3dba
@@ -9,7 +9,7 @@ jobs:
9
9
  strategy:
10
10
  fail-fast: false
11
11
  matrix:
12
- ruby-version: ['3.3', '3.2', '3.1']
12
+ ruby-version: ['3.4', '3.3', '3.2']
13
13
  os: [ubuntu-latest]
14
14
  experimental: [false]
15
15
  include:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [0.7.2] - 2025-04-22
2
+
3
+ ### Fixed
4
+
5
+ * A Nokogiri's [security vulnerability](https://github.com/codeout/junoser/security/dependabot/19)
6
+ * The argument of commands below should be a regular expression
7
+ * "system login class foo allow-commands-regexps"
8
+ * "system login class foo deny-commands-regexps"
9
+ * "system login class foo allow-configuration-regexps"
10
+ * "system login class foo deny-configuration-regexps"
11
+
12
+
1
13
  ## [0.7.1] - 2025-02-03
2
14
 
3
15
  ### Added
data/Gemfile.lock CHANGED
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- junoser (0.7.1)
4
+ junoser (0.7.2)
5
5
  parslet
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  mini_portile2 (2.8.8)
11
- nokogiri (1.17.2)
11
+ nokogiri (1.18.8)
12
12
  mini_portile2 (~> 2.8.2)
13
13
  racc (~> 1.4)
14
14
  parslet (2.0.0)
15
15
  power_assert (2.0.5)
16
16
  racc (1.8.1)
17
17
  rake (13.2.1)
18
- test-unit (3.6.7)
18
+ test-unit (3.6.8)
19
19
  power_assert
20
20
 
21
21
  PLATFORMS
@@ -86863,14 +86863,6 @@ module Junoser
86863
86863
  httpd_traceoptions_type
86864
86864
  ),
86865
86865
  a(str("management-url"), arg),
86866
- # Ported from vSRX 18.4R1.8
86867
- b(str("http"),
86868
- a(str("port"), arg),
86869
- b(str("interface"),
86870
- interface_name
86871
- )
86872
- ),
86873
- # End of vSRX 18.4R1.8
86874
86866
  b(str("https"),
86875
86867
  c(
86876
86868
  a(str("port"), arg),
@@ -111182,10 +111174,10 @@ module Junoser
111182
111174
  b(str("deny-configuration"),
111183
111175
  regular_expression
111184
111176
  ),
111185
- a(str("allow-commands-regexps"), arg),
111186
- a(str("deny-commands-regexps"), arg),
111187
- a(str("allow-configuration-regexps"), arg),
111188
- a(str("deny-configuration-regexps"), arg),
111177
+ a(str("allow-commands-regexps"), regular_expression),
111178
+ a(str("deny-commands-regexps"), regular_expression),
111179
+ a(str("allow-configuration-regexps"), regular_expression),
111180
+ a(str("deny-configuration-regexps"), regular_expression),
111189
111181
  str("configuration-breadcrumbs"),
111190
111182
  b(a(str("confirm-commands"), arg),
111191
111183
  c(
data/lib/junoser/ruler.rb CHANGED
@@ -296,6 +296,9 @@ module Junoser
296
296
  %[#{$1}#{$2}"enable",#{$2}]
297
297
  end
298
298
 
299
+ # Fix .xsd: arg should be regular_expression
300
+ str.gsub!(/^(\s*"(allow|deny)-(commands|configuration)-regexps") arg/) { "#{$1} regular_expression" }
301
+
299
302
  str
300
303
  end
301
304
 
@@ -1,3 +1,3 @@
1
1
  module Junoser
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: junoser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shintaro Kojima
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-02-02 00:00:00.000000000 Z
10
+ date: 2025-04-22 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: parslet