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 +4 -4
- data/lib/{wan_ip_gen.rb → wan-ip-gen.rb} +1 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff29b094affc12073631d6c5d31369a049f6323f057d85198fd076bd589e8da5
|
4
|
+
data.tar.gz: 524ae3da828d58fe2a6333a19280c6f4f5d72438332f0a7bfde2ceddebf291eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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...
|
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.
|
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-
|
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/
|
19
|
+
- lib/wan-ip-gen.rb
|
20
20
|
homepage: https://rubygems.org/gems/wan-ip-gen
|
21
21
|
licenses:
|
22
22
|
- MIT
|