search_apnic 0.1.0 → 0.1.1
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/README.md +46 -4
- data/lib/search_apnic/search.rb +1 -1
- data/lib/search_apnic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 191977a138a6f425d048214cf3da70330493a3c1
|
4
|
+
data.tar.gz: adaa674c87f588d7a36558ebb033c08e77b8a6db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8323ab74713d9b208e58d955e679353972520881293a3ec1b65c801e7c1998d0ec981473650313bd289e609da2cad482ef73f1e4c01136454bd0f1dbb18e2b05
|
7
|
+
data.tar.gz: 2bb7d754e43106e08dd691f95cfde4f2cb0408c4a5edb9ea30456eb452709d1eebaf06ca9c9d3633ddc149972680d1fb482fba360ff5ab9e7cb61a3516fc1347
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# SearchApnic
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
SearchApnic will seach the IP address of each country from APNIC: http://ftp.apnic.net/stats/apnic/delegated-apnic-latest.
|
4
|
+
and displays it in xxx.xxx.xxx.xxx/mask format.
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
@@ -22,7 +21,50 @@ Or install it yourself as:
|
|
22
21
|
|
23
22
|
## Usage
|
24
23
|
|
25
|
-
|
24
|
+
### Dump
|
25
|
+
|
26
|
+
```
|
27
|
+
search_apnic -c 'JP' --dump
|
28
|
+
```
|
29
|
+
|
30
|
+
👇🏼
|
31
|
+
|
32
|
+
```
|
33
|
+
1.0.16.0/21
|
34
|
+
1.0.64.0/19
|
35
|
+
1.1.64.0/19
|
36
|
+
1.5.0.0/17
|
37
|
+
1.21.0.0/17
|
38
|
+
1.33.0.0/17
|
39
|
+
1.66.0.0/16
|
40
|
+
......
|
41
|
+
```
|
42
|
+
|
43
|
+
### Seach
|
44
|
+
|
45
|
+
|
46
|
+
#### Found.
|
47
|
+
|
48
|
+
```
|
49
|
+
search_apnic -c 'JP' -i '1.0.16.10'
|
50
|
+
```
|
51
|
+
|
52
|
+
👇🏼
|
53
|
+
|
54
|
+
```
|
55
|
+
1.0.16.0/21
|
56
|
+
```
|
57
|
+
|
58
|
+
#### Not Found.
|
59
|
+
|
60
|
+
```
|
61
|
+
search_apnic -c 'JP' -i '1.0.116.0'
|
62
|
+
```
|
63
|
+
👇🏼
|
64
|
+
```
|
65
|
+
Not Match
|
66
|
+
```
|
67
|
+
|
26
68
|
|
27
69
|
## Development
|
28
70
|
|
data/lib/search_apnic/search.rb
CHANGED
data/lib/search_apnic/version.rb
CHANGED