wan-ip-gen 1.1.1 → 1.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 451176b6cd6b993ee566f4f18f4645c69e204fda08db47df3b20030172e68973
4
- data.tar.gz: 6a4b12065d5a1b7cca08132aa9bf95ea526fed6b082165afe3f11424cbc63ae6
3
+ metadata.gz: ff29b094affc12073631d6c5d31369a049f6323f057d85198fd076bd589e8da5
4
+ data.tar.gz: 524ae3da828d58fe2a6333a19280c6f4f5d72438332f0a7bfde2ceddebf291eb
5
5
  SHA512:
6
- metadata.gz: 18ab85876d784ebbbcf1f549eb9f2ddbfc46389b4b6b2c48ed28201ac778ec2cb9ec86c3a85cd8dac6f0359baa4540aa1a1c1b1b451069b8e8a402c0387c2433
7
- data.tar.gz: 21c6274b416d684a46cf4da03fd15b2a307c8ee8278b0df78984e7476437f249c4b1119919bbf1d12509fc12fafcc8767f0657e7d2cef1a821b1414e86dbb0ac
6
+ metadata.gz: ab71e8bcce34f87b472047f749f516f1dc5a952b9ac3cc8670ef406bed419bd79f10802ce6114d315294342ca059d7b86ceb0a39563a98207002463b7c8f92cc
7
+ data.tar.gz: 9bd873188d41cd42f6cf47c22557a500ec8ed6b1dc2c7cff396cdd26053f33f5ece582c4aea5a6811c424d6c24491f3b2f7997f6b93a60692b5bf680d748dc58
@@ -11,10 +11,8 @@ module IP
11
11
  class RandomWAN
12
12
  include Enumerable
13
13
 
14
- RANDOM_RANGE = (0x01000000...0xffffffff).freeze # exclude current network and local broadcast
14
+ RANDOM_RANGE = (0x01000000...0xdfffffff).freeze # exclude current network and local broadcast
15
15
  EXCLUDE_RANGES = [
16
- (0xe0000000..0xefffffff), # 224.0.0.0 - 239.255.255.255
17
- (0xf0000000..0xfffffffe), # 240.0.0.0 - 255.255.255.254
18
16
  (0xA000000..0xAFFFFFF), # 10.0.0.0 - 10.255.255.255
19
17
  (0x7F000000..0x7FFFFFFF), # 127.0.0.0 - 127.255.255.255
20
18
  (0x64400000..0x647FFFFF), # 100.64.0.0 - 100.127.255.255
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wan-ip-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Yudin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-16 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: WAN range random IP generator
14
14
  email: fagci.nsk@gmail.com
@@ -16,7 +16,7 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - lib/wan_ip_gen.rb
19
+ - lib/wan-ip-gen.rb
20
20
  homepage: https://rubygems.org/gems/wan-ip-gen
21
21
  licenses:
22
22
  - MIT