ip2cityisp 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 1b71a86858729619a02b44e2f51ba479787fe86b
4
- data.tar.gz: 3bd769d106b4e9c4bf7f2414569a6ce20b5f2fef
3
+ metadata.gz: 45cb7493b2a23fe9c395f54052523cfe5cb83f55
4
+ data.tar.gz: 1cdc500256b41de11ff32ded3231c71095d36d51
5
5
  SHA512:
6
- metadata.gz: 1f8c5ce55a302572eab4a182bf0fe72d4b86cdb9e2e2b0dbf0a544b6752610c8bab648c69c323ac817442c2ba0c1415d438fa8077c6d4b6bfc6f7127b3f002af
7
- data.tar.gz: a4efaffdc9fc7fca2fac3e14bde427bc8dd0b66fa1f93633c9bdd5b03d0456788324e0d95cef9c37fb843ad4d073367162dc90020429c7eb8ce26b386a64306a
6
+ metadata.gz: e05112f49a911907eae0cb98eeeb227da04bcc180525a38491e5eaefb017036acbedb38ac6424d5a66607c6125d63d8e49390c50aaf6252f3e4b78338d464fe1
7
+ data.tar.gz: c74bb311d6d7ce86a062b1c268048768d6781cf11a7864418e349dbcabc0e3953b59009d5bae77719acaa2bd90dd12f949a14b89635d43228d846e54b2e769fd
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ip2cityisp
2
-
3
- TODO: Write a gem description
2
+ input is ip
3
+ output is city ,isp.
4
4
 
5
5
  ## Installation
6
6
 
@@ -20,7 +20,13 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ require 'rubygems'
24
+ require 'bundler/setup'
25
+ require 'ip2cityisp'
26
+ ip = ARGV[0]
27
+ @db = Ip2cityisp::Database.new('/tmp/ipinfo.data')
28
+ r = @db.query('8.8.8.8')
29
+ rip = r["area"]+r["isp"]
24
30
 
25
31
  ## Contributing
26
32
 
@@ -1,3 +1,3 @@
1
1
  module Ip2cityisp
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/test.rb ADDED
File without changes
data/test2.rb ADDED
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ip2cityisp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - geda
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2014-09-02 00:00:00 Z
12
+ date: 2014-09-09 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -60,6 +60,8 @@ files:
60
60
  - lib/ip2cityisp.rb
61
61
  - lib/ip2cityisp/database.rb
62
62
  - lib/ip2cityisp/version.rb
63
+ - test.rb
64
+ - test2.rb
63
65
  - tt.rb
64
66
  homepage: ""
65
67
  licenses: