ript 0.8.9 → 0.9.0

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
  SHA1:
3
- metadata.gz: 639485245dd7f30e11ba9ee5f796044f66d77cbb
4
- data.tar.gz: ef0bb8b8c6538b84c2e3b2c958a852353ea801ff
3
+ metadata.gz: a974cfcd71dc435cba30b0bbd694e8fbc9be9afe
4
+ data.tar.gz: b201d088c96362fc32649ff97bf93e88fec9cb79
5
5
  SHA512:
6
- metadata.gz: 9ddde603fbc9545b7a0047f6dad328acd255eedf443e8e29fd8a6bd8eebd71ed3ea7260b50e404e5a4eb054e3fa4a30d2a6a977a166850a02825e4a422f1dc2f
7
- data.tar.gz: af8caecb381270ddef81b4c705608eb4249c0bf90a40e595cc2cf595f5cb03e3233ebceb7f99016e25fd38516d95637e1c9673482951e482475bc59f9d02a0c7
6
+ metadata.gz: 9f8d2c1205cdea177aae677e7bade6221c31a4666fb6fa2578d06a67b7df8636e7ac6cc9fe3d7d45f48e031b68e88b3117259213f223b8d6ccef4d20602b0997
7
+ data.tar.gz: c078ebf0e6a911f48247acabb1501ea473d9be3b2131895278326f36ce339a5e0829f3a798fae6ac034757223064c94f1e3e2d3a4f65f276cb57d08609810ee9
@@ -1,5 +1,7 @@
1
1
  ## Changelog
2
2
 
3
+ # 0.9.0 - 2017/06/21
4
+ - Bug: Ports could be specified as text and not fail
3
5
  # 0.8.9 - 2016/12/08
4
6
  - Feature: Add Systemd for Xenial
5
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ript (0.8.9)
4
+ ript (0.9.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -18,10 +18,16 @@ module Ript
18
18
  if port.class == Range
19
19
  @ports << "#{port.begin}:#{port.end}"
20
20
  else
21
+ if not port.is_a? Numeric
22
+ raise PortError, "Port #{port} is not numeric cannot continue"
23
+ end
21
24
  @ports << port
22
25
  end
23
26
  end
24
27
  else
28
+ if not args.is_a? Numeric
29
+ raise PortError, "Port #{args} is not numeric cannot continue"
30
+ end
25
31
  port = args
26
32
  @ports << port
27
33
  end
@@ -1,2 +1,5 @@
1
1
  class LabelError < NameError
2
2
  end
3
+
4
+ class PortError < NameError
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Ript
2
- VERSION = '0.8.9'
2
+ VERSION = '0.9.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.9
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bulletproof Group Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2017-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  version: 1.3.6
203
203
  requirements: []
204
204
  rubyforge_project: ript
205
- rubygems_version: 2.5.1
205
+ rubygems_version: 2.2.2
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: DSL for iptables, and tool for incrementally applying firewall rules