junoser 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9032031b1b9337962f14983300d1f8df49b50d25fa74ee4682326e707e65d09
4
- data.tar.gz: 206444746921cd0c0ee08dc51ea901ae1a31ff5ff41597949b0335b2a5cb2d24
3
+ metadata.gz: a59ddeec41d5ea106a1c46995501305667b3777bf875499cb8c39cb41e40744d
4
+ data.tar.gz: 2ba6e1ca647f9bf8b2533bc52926afbffc2b09a73eb2be8f56ff57db05c1f76d
5
5
  SHA512:
6
- metadata.gz: 487c75c7693d9988be1205b80ef034dc3df72618c74895d531d56b94f3edfed813dba103bb2eb31d56f3f56852fcc4b7dc02c2c5daab15d5e8a479ddfa0f76db
7
- data.tar.gz: 77e5906748293b917c4fdfc9f46d1db4153212109194ac827b9a76ef78158c1e6c7651004fe17dd506f20ea91f652b78abe274d6442a64cfa541f4be3d0f70e2
6
+ metadata.gz: a889917be31856fa914e95ed76652bdec895f1b4f0c12c813838cb6f5428fac68d051ac99aa9de110e9010176baab733c3c701b270c864f55e3cb306aea48823
7
+ data.tar.gz: 1a6c01cbfbfd03145d89a1ba5bd09a3ae6b39c229e339e16125da383be95edbd7f18e97ef85f363bc2d6d9719de77c3ec2fcf969c9bb9882fb94df8ccf5ff941
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.3.8] - 2019-11-04
2
+
3
+ ### Added
4
+
5
+ * Newly supported syntax
6
+ * security (by porting the hierarchy from vSRX 18.3R1.9)
7
+
8
+
1
9
  ## [0.3.7] - 2019-09-03
2
10
 
3
11
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- junoser (0.3.7)
4
+ junoser (0.3.8)
5
5
  parslet
6
6
 
7
7
  GEM
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ end
22
22
 
23
23
  namespace :build do
24
24
  desc 'Build an intermediate config hierarchy'
25
- task(:config) do
25
+ task :config do
26
26
  open_files(xsd_path, rule_path) do |input, output|
27
27
  Nokogiri::XML(input).root.remove_unused.xpath('/xsd:schema/*').each do |e|
28
28
  output.puts e.to_config
@@ -31,20 +31,31 @@ namespace :build do
31
31
  end
32
32
 
33
33
  desc 'Build ruby parser'
34
- task(:rule) do
34
+ task :rule do
35
35
  open_files(rule_path, ruby_parser_path) do |input, output|
36
36
  output.puts Junoser::Ruler.new(input).to_rule
37
37
  end
38
38
  end
39
39
 
40
40
  desc 'Build javascript parser'
41
- task(:jsrule) do
41
+ task :jsrule do
42
42
  open_files(rule_path, js_parser_path) do |input, output|
43
43
  output.puts Junoser::JsRuler.new(input).to_rule
44
44
  end
45
45
  end
46
46
  end
47
47
 
48
+ task 'find-srx-methods' do
49
+ vsrx = File.read('vsrx.rb')
50
+ vmx = File.read('lib/junoser/parser.rb')
51
+
52
+ vsrx.scan(/^ +([0-9a-z_]+) *$/).flatten.uniq.sort.each do |method|
53
+ next if ['arg', 'end', 'ipaddr', 'time'].include?(method)
54
+
55
+ puts method unless vsrx =~ /rule\(:#{method}\)/m || vmx =~ /rule\(:#{method}\)/m
56
+ end
57
+ end
58
+
48
59
 
49
60
  Rake::TestTask.new do |t|
50
61
  t.libs << 'test'