shutter 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Shutter
16
16
  def jail_rules
17
17
  jail = `/sbin/iptables-save | grep "^-A Jail"`
18
18
  lines = jail.split('\n')
19
- unless lines != [] && lines[-1] == "-A Jail -j RETURN\n"
19
+ unless lines.last =~ /-A Jail -j RETURN/
20
20
  jail += "-A Jail -j RETURN\n"
21
21
  end
22
22
  jail
@@ -1,3 +1,3 @@
1
1
  module Shutter
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: