dust-deploy 0.2.0 → 0.2.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.
data/changelog.md CHANGED
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =============
3
3
 
4
+ 0.2.1
5
+ ------------
6
+
7
+ fixes small iptables issue when using --jump REDIRECT and --to-port
8
+
9
+
4
10
  0.2.0
5
11
  ------------
6
12
 
@@ -184,12 +184,15 @@ class Iptables < Thor
184
184
  with_dashes.values.each { |a| result = result.combine a }
185
185
 
186
186
  # make sure the options are sorted in a way that works.
187
- # protocol and match first, jump last
188
187
  sorted = []
189
188
  result.each do |r|
189
+ # bring to the front
190
190
  r = r.sort_by { |x| if x.include? '--match' then -1 else 1 end }
191
191
  r = r.sort_by { |x| if x.include? '--protocol' then -1 else 1 end }
192
- sorted.push(r.sort_by { |x| if x.include? '--jump' then 1 else -1 end })
192
+ # shift to the end
193
+ r = r.sort_by { |x| if x.include? '--jump' then 1 else -1 end }
194
+ r = r.sort_by { |x| if x.include? '--to-port' then 1 else -1 end }
195
+ sorted.push r
193
196
  end
194
197
 
195
198
  sorted
data/lib/dust/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dust
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - kris kechagia