puffy 0.2.0 → 0.3.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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -0
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +21 -1
- data/Gemfile +13 -0
- data/Rakefile +2 -0
- data/lib/puffy/formatters/iptables.rb +10 -2
- data/lib/puffy/parser.tab.rb +340 -326
- data/lib/puffy/version.rb +1 -1
- data/puffy.gemspec +0 -13
- metadata +3 -171
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccc93913a571a25b75f1984f53315be9df0001f27fd7d1062c274a8ae398a890
|
4
|
+
data.tar.gz: e39938f8393291ccdf37f4c9817abb1dd40c8816a67cadf9c5aea43d57b3969c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c701450c7f9fcd9417cde14b41e25381beeec5ef835931e8bfdc30ee10a539b951503b907866d7176064218bfa4120f1ddfc594a4ab461ccf4034221940fa2b4
|
7
|
+
data.tar.gz: 91c204a40f678eaf37ada1ed9f48a4a7ca08e012296df8f8cb2ed92d533a0044b5282ffe19d3ba9abdbb604a8bd12c2e425feca6a894215ec5d458f6b6d4d8a0
|
data/.github/workflows/ci.yml
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [v0.
|
3
|
+
## [v0.3.1](https://github.com/opus-codium/puffy/tree/v0.3.1) (2023-11-22)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/opus-codium/puffy/compare/v0.3.0...v0.3.1)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- Ensure parser is up-to-date before build [\#31](https://github.com/opus-codium/puffy/pull/31) ([smortex](https://github.com/smortex))
|
10
|
+
|
11
|
+
## [v0.3.0](https://github.com/opus-codium/puffy/tree/v0.3.0) (2023-01-04)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/opus-codium/puffy/compare/v0.2.0...v0.3.0)
|
14
|
+
|
15
|
+
**Implemented enhancements:**
|
16
|
+
|
17
|
+
- Add support for nested variables [\#29](https://github.com/opus-codium/puffy/pull/29) ([smortex](https://github.com/smortex))
|
18
|
+
|
19
|
+
**Fixed bugs:**
|
20
|
+
|
21
|
+
- Fix iptables rules without direction [\#28](https://github.com/opus-codium/puffy/pull/28) ([smortex](https://github.com/smortex))
|
22
|
+
|
23
|
+
## [v0.2.0](https://github.com/opus-codium/puffy/tree/v0.2.0) (2022-12-18)
|
4
24
|
|
5
25
|
[Full Changelog](https://github.com/opus-codium/puffy/compare/v0.1.0...v0.2.0)
|
6
26
|
|
data/Gemfile
CHANGED
@@ -4,3 +4,16 @@ source 'https://rubygems.org'
|
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in puffy.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
gem 'aruba'
|
9
|
+
gem 'bundler'
|
10
|
+
gem 'cucumber'
|
11
|
+
gem 'github_changelog_generator'
|
12
|
+
gem 'racc'
|
13
|
+
gem 'rake'
|
14
|
+
gem 'rspec'
|
15
|
+
gem 'rubocop'
|
16
|
+
gem 'rubocop-rake'
|
17
|
+
gem 'rubocop-rspec'
|
18
|
+
gem 'simplecov'
|
19
|
+
gem 'timecop'
|
data/Rakefile
CHANGED
@@ -106,11 +106,19 @@ module Puffy
|
|
106
106
|
end
|
107
107
|
|
108
108
|
def input_filter_rules(rules)
|
109
|
-
rules.select { |r| r.filter? && r.in? }
|
109
|
+
rules.select { |r| r.filter? && r.in? }.map do |rule|
|
110
|
+
dup = rule.dup
|
111
|
+
dup.dir = :in
|
112
|
+
dup
|
113
|
+
end
|
110
114
|
end
|
111
115
|
|
112
116
|
def output_filter_rules(rules)
|
113
|
-
rules.select { |r| r.filter? && r.out? }
|
117
|
+
rules.select { |r| r.filter? && r.out? }.map do |rule|
|
118
|
+
dup = rule.dup
|
119
|
+
dup.dir = :out
|
120
|
+
dup
|
121
|
+
end
|
114
122
|
end
|
115
123
|
end
|
116
124
|
|