firewall_constraint 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module FirewallConstraint
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -5,9 +5,9 @@ module FirewallConstraint
5
5
  if ips.respond_to? :call
6
6
  @ips = ips
7
7
  else
8
- ips = [ips].flatten
8
+ ips = [ips].flatten.compact
9
9
  @ips = !ips.empty? ? ips :
10
- [YAML.load_file(Rails.root.join('config','firewall_constraint.yml'))[Rails.env]].flatten
10
+ [YAML.load_file(Rails.root.join('config','firewall_constraint.yml'))[Rails.env]].flatten.compact
11
11
  end
12
12
  end
13
13
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firewall_constraint
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Auclair