puffy 0.2.0 → 0.3.1

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: 29faa3d9a8f47338dd25bd99d2256bc7bfa60a6790f3e39e8613a86c540bb30a
4
- data.tar.gz: 345aa1d4ef63d8b7ebcb05f4892a690a81c385fb41ed3c5bc48406bd70ca2ba0
3
+ metadata.gz: ccc93913a571a25b75f1984f53315be9df0001f27fd7d1062c274a8ae398a890
4
+ data.tar.gz: e39938f8393291ccdf37f4c9817abb1dd40c8816a67cadf9c5aea43d57b3969c
5
5
  SHA512:
6
- metadata.gz: 5ccead5c447d76590049b2ac548c771bb34d548a2b51ce2b479586926c1a3c7940cce7cc5a24f7a9ac2c15d3c4398fe1fc1c0dad215bda2e3273f68c4dd14a9e
7
- data.tar.gz: a18934dc97ae9d09ce7dda9b33efb9d35962db15858c234f8a85830967813d74c6049e5f74d917482085a72bb0ac5b86e122daf2d293abdc06b22df06a6f968b
6
+ metadata.gz: c701450c7f9fcd9417cde14b41e25381beeec5ef835931e8bfdc30ee10a539b951503b907866d7176064218bfa4120f1ddfc594a4ab461ccf4034221940fa2b4
7
+ data.tar.gz: 91c204a40f678eaf37ada1ed9f48a4a7ca08e012296df8f8cb2ed92d533a0044b5282ffe19d3ba9abdbb604a8bd12c2e425feca6a894215ec5d458f6b6d4d8a0
@@ -32,6 +32,7 @@ jobs:
32
32
  - "2.7"
33
33
  - "3.0"
34
34
  - "3.1"
35
+ - "3.2"
35
36
  name: Ruby ${{ matrix.ruby }}
36
37
  steps:
37
38
  - uses: actions/checkout@v2
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ AllCops:
3
3
  AllowSymlinksInCacheRootDirectory: true
4
4
  NewCops: enable
5
5
  Exclude:
6
- - lib/melt/*.tab.rb
6
+ - lib/puffy/*.tab.rb
7
7
  - tmp/**/*.rb
8
8
  - vendor/bundle/**/*
9
9
 
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  # Changelog
2
2
 
3
- ## [v0.2.0](https://github.com/opus-codium/puffy/tree/v0.2.0) (2022-12-17)
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
@@ -22,6 +22,8 @@ task test: %i[spec features]
22
22
 
23
23
  task default: :test
24
24
 
25
+ task build: :gen_parser
26
+
25
27
  desc 'Generate the puffy language parser'
26
28
  task gen_parser: 'lib/puffy/parser.tab.rb'
27
29
 
@@ -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