geolocation_ip 0.1.1 → 0.1.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 +4 -4
- data/README.md +20 -5
- data/geolocation_ip-0.1.1.gem +0 -0
- data/lib/geolocation_ip/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95ea7f192cf6800a760b64ae3d4fd37fda8e3203
|
4
|
+
data.tar.gz: 1949195acf8d1b4ea3002f19ab4c3d0ffd1862a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c99a8ef96b3ffb68c931952a59fe64b2f5ddf995822059e0a6885e2a0955801270f633683d56831601d186a04c07ff3b28c50a131af4aa4282b1abda29c4d4db
|
7
|
+
data.tar.gz: a367c6e3b1c44a3797ce178242184f7518fedffabf8eade9147bd3147aa34277088b16832e385678024d1fa549c7b4dbd736df37478de82dd914d04c13153484
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# GeolocationIp
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Supply an IP address or domain to lookup.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,7 +20,19 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
### Get Current IP.
|
24
|
+
|
25
|
+
GeolocationIp.now
|
26
|
+
|
27
|
+
### Get an IP address or domain.
|
28
|
+
|
29
|
+
GeolocationIp.find('IP address or domain')
|
30
|
+
|
31
|
+
### You can supply your own with the callback, but will return string.
|
32
|
+
|
33
|
+
GeolocationIp.now('Your callback function name')
|
34
|
+
|
35
|
+
GeolocationIp.find('IP address or domain', 'Your callback function name')
|
26
36
|
|
27
37
|
## Development
|
28
38
|
|
@@ -32,10 +42,15 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
42
|
|
33
43
|
## Contributing
|
34
44
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
45
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/maro-chou/geolocation_ip. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
46
|
|
37
47
|
|
38
48
|
## License
|
39
49
|
|
40
50
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
51
|
|
52
|
+
## Notice
|
53
|
+
|
54
|
+
API source : http://ip-api.com/docs/api:json
|
55
|
+
|
56
|
+
"ip-api" not allow commercial use without prior approval. For commercial, unlimited use see our pro service.
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geolocation_ip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nn90121
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- bin/console
|
71
71
|
- bin/setup
|
72
72
|
- geolocation_ip-0.1.0.gem
|
73
|
+
- geolocation_ip-0.1.1.gem
|
73
74
|
- geolocation_ip.gemspec
|
74
75
|
- lib/geolocation_ip.rb
|
75
76
|
- lib/geolocation_ip/version.rb
|