cisco_acl_intp 0.0.1

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.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +13 -0
  5. data/.travis.yml +3 -0
  6. data/.yardopts +4 -0
  7. data/Gemfile +19 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +132 -0
  10. data/Rakefile +78 -0
  11. data/acl_examples/err-acl.txt +49 -0
  12. data/acl_examples/named-ext-acl.txt +12 -0
  13. data/acl_examples/named-std-acl.txt +6 -0
  14. data/acl_examples/numd-acl.txt +21 -0
  15. data/cisco_acl_intp.gemspec +31 -0
  16. data/lib/cisco_acl_intp/ace.rb +432 -0
  17. data/lib/cisco_acl_intp/ace_ip.rb +136 -0
  18. data/lib/cisco_acl_intp/ace_other_qualifiers.rb +102 -0
  19. data/lib/cisco_acl_intp/ace_port.rb +146 -0
  20. data/lib/cisco_acl_intp/ace_proto.rb +319 -0
  21. data/lib/cisco_acl_intp/ace_srcdst.rb +114 -0
  22. data/lib/cisco_acl_intp/ace_tcp_flags.rb +65 -0
  23. data/lib/cisco_acl_intp/acl.rb +272 -0
  24. data/lib/cisco_acl_intp/acl_base.rb +111 -0
  25. data/lib/cisco_acl_intp/parser.rb +3509 -0
  26. data/lib/cisco_acl_intp/parser.ry +1397 -0
  27. data/lib/cisco_acl_intp/scanner.rb +176 -0
  28. data/lib/cisco_acl_intp/scanner_special_token_handler.rb +66 -0
  29. data/lib/cisco_acl_intp/version.rb +5 -0
  30. data/lib/cisco_acl_intp.rb +9 -0
  31. data/spec/cisco_acl_intp/ace_ip_spec.rb +111 -0
  32. data/spec/cisco_acl_intp/ace_other_qualifier_spec.rb +63 -0
  33. data/spec/cisco_acl_intp/ace_port_spec.rb +214 -0
  34. data/spec/cisco_acl_intp/ace_proto_spec.rb +200 -0
  35. data/spec/cisco_acl_intp/ace_spec.rb +605 -0
  36. data/spec/cisco_acl_intp/ace_srcdst_spec.rb +296 -0
  37. data/spec/cisco_acl_intp/ace_tcp_flags_spec.rb +38 -0
  38. data/spec/cisco_acl_intp/acl_spec.rb +523 -0
  39. data/spec/cisco_acl_intp/cisco_acl_intp_spec.rb +7 -0
  40. data/spec/cisco_acl_intp/parser_spec.rb +53 -0
  41. data/spec/cisco_acl_intp/scanner_spec.rb +122 -0
  42. data/spec/conf/extacl_objgrp_token_seq.yml +36 -0
  43. data/spec/conf/extacl_token_seq.yml +88 -0
  44. data/spec/conf/extended_acl.yml +226 -0
  45. data/spec/conf/scanner_spec_data.yml +120 -0
  46. data/spec/conf/single_tokens.yml +235 -0
  47. data/spec/conf/stdacl_token_seq.yml +8 -0
  48. data/spec/conf/tokens1.yml +158 -0
  49. data/spec/conf/tokens2.yml +206 -0
  50. data/spec/parser_fullfill_patterns.rb +145 -0
  51. data/spec/spec_helper.rb +54 -0
  52. data/tools/check_acl.rb +48 -0
  53. metadata +159 -0
metadata ADDED
@@ -0,0 +1,159 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cisco_acl_intp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - stereocat
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: netaddr
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.5.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.5.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: term-ansicolor
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.2.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ description: Cisco Access List Interpreter
56
+ email:
57
+ - stereocat@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".rubocop.yml"
65
+ - ".travis.yml"
66
+ - ".yardopts"
67
+ - Gemfile
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
71
+ - acl_examples/err-acl.txt
72
+ - acl_examples/named-ext-acl.txt
73
+ - acl_examples/named-std-acl.txt
74
+ - acl_examples/numd-acl.txt
75
+ - cisco_acl_intp.gemspec
76
+ - lib/cisco_acl_intp.rb
77
+ - lib/cisco_acl_intp/ace.rb
78
+ - lib/cisco_acl_intp/ace_ip.rb
79
+ - lib/cisco_acl_intp/ace_other_qualifiers.rb
80
+ - lib/cisco_acl_intp/ace_port.rb
81
+ - lib/cisco_acl_intp/ace_proto.rb
82
+ - lib/cisco_acl_intp/ace_srcdst.rb
83
+ - lib/cisco_acl_intp/ace_tcp_flags.rb
84
+ - lib/cisco_acl_intp/acl.rb
85
+ - lib/cisco_acl_intp/acl_base.rb
86
+ - lib/cisco_acl_intp/parser.rb
87
+ - lib/cisco_acl_intp/parser.ry
88
+ - lib/cisco_acl_intp/scanner.rb
89
+ - lib/cisco_acl_intp/scanner_special_token_handler.rb
90
+ - lib/cisco_acl_intp/version.rb
91
+ - spec/cisco_acl_intp/ace_ip_spec.rb
92
+ - spec/cisco_acl_intp/ace_other_qualifier_spec.rb
93
+ - spec/cisco_acl_intp/ace_port_spec.rb
94
+ - spec/cisco_acl_intp/ace_proto_spec.rb
95
+ - spec/cisco_acl_intp/ace_spec.rb
96
+ - spec/cisco_acl_intp/ace_srcdst_spec.rb
97
+ - spec/cisco_acl_intp/ace_tcp_flags_spec.rb
98
+ - spec/cisco_acl_intp/acl_spec.rb
99
+ - spec/cisco_acl_intp/cisco_acl_intp_spec.rb
100
+ - spec/cisco_acl_intp/parser_spec.rb
101
+ - spec/cisco_acl_intp/scanner_spec.rb
102
+ - spec/conf/extacl_objgrp_token_seq.yml
103
+ - spec/conf/extacl_token_seq.yml
104
+ - spec/conf/extended_acl.yml
105
+ - spec/conf/scanner_spec_data.yml
106
+ - spec/conf/single_tokens.yml
107
+ - spec/conf/stdacl_token_seq.yml
108
+ - spec/conf/tokens1.yml
109
+ - spec/conf/tokens2.yml
110
+ - spec/parser_fullfill_patterns.rb
111
+ - spec/spec_helper.rb
112
+ - tools/check_acl.rb
113
+ homepage: ''
114
+ licenses:
115
+ - MIT
116
+ metadata: {}
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ requirements: []
132
+ rubyforge_project:
133
+ rubygems_version: 2.2.1
134
+ signing_key:
135
+ specification_version: 4
136
+ summary: Cisco Access List Interpreter
137
+ test_files:
138
+ - spec/cisco_acl_intp/ace_ip_spec.rb
139
+ - spec/cisco_acl_intp/ace_other_qualifier_spec.rb
140
+ - spec/cisco_acl_intp/ace_port_spec.rb
141
+ - spec/cisco_acl_intp/ace_proto_spec.rb
142
+ - spec/cisco_acl_intp/ace_spec.rb
143
+ - spec/cisco_acl_intp/ace_srcdst_spec.rb
144
+ - spec/cisco_acl_intp/ace_tcp_flags_spec.rb
145
+ - spec/cisco_acl_intp/acl_spec.rb
146
+ - spec/cisco_acl_intp/cisco_acl_intp_spec.rb
147
+ - spec/cisco_acl_intp/parser_spec.rb
148
+ - spec/cisco_acl_intp/scanner_spec.rb
149
+ - spec/conf/extacl_objgrp_token_seq.yml
150
+ - spec/conf/extacl_token_seq.yml
151
+ - spec/conf/extended_acl.yml
152
+ - spec/conf/scanner_spec_data.yml
153
+ - spec/conf/single_tokens.yml
154
+ - spec/conf/stdacl_token_seq.yml
155
+ - spec/conf/tokens1.yml
156
+ - spec/conf/tokens2.yml
157
+ - spec/parser_fullfill_patterns.rb
158
+ - spec/spec_helper.rb
159
+ has_rdoc: