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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abe30592ffc86f995cf95c53a7f07aade808f45c
4
- data.tar.gz: e2ecfe1052c802eb1dd83d6dcb4628999da05e13
3
+ metadata.gz: 95ea7f192cf6800a760b64ae3d4fd37fda8e3203
4
+ data.tar.gz: 1949195acf8d1b4ea3002f19ab4c3d0ffd1862a6
5
5
  SHA512:
6
- metadata.gz: e0b2a08c6f280ea89a79ccd19bb57abed583bbbe9d9650d51b0ca5540bb07f8867a0eb313ec0c445b1e9390874eef3a518d7e7df8e87731abecc8838689ca3e6
7
- data.tar.gz: 1b047fcdc2ff7191b926b681e45d81fede2626149b0e07e3552e8a1a8870397c87d9c9cb62e08f9af3187406fdfc364bb5c339937b66cf0d7e035df05417d754
6
+ metadata.gz: c99a8ef96b3ffb68c931952a59fe64b2f5ddf995822059e0a6885e2a0955801270f633683d56831601d186a04c07ff3b28c50a131af4aa4282b1abda29c4d4db
7
+ data.tar.gz: a367c6e3b1c44a3797ce178242184f7518fedffabf8eade9147bd3147aa34277088b16832e385678024d1fa549c7b4dbd736df37478de82dd914d04c13153484
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # GeolocationIp
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/geolocation_ip`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Write usage instructions here
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/[USERNAME]/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.
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
@@ -1,3 +1,3 @@
1
1
  module GeolocationIp
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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