freegeoip-ruby 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +12 -8
- data/lib/freegeoip/request.rb +1 -0
- data/lib/freegeoip/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: ba654df167d7752c27779fd022f0beb64a2baf7f
|
4
|
+
data.tar.gz: a7fa1b5ae00e2331f760fdfa203e1664c3ec9a14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f7e907043bdc610fbd835fbfc2047c85fdde01e5589136110445bac947c219b80b11d26bf25f42ddf30ea120599d21a0fad8935559f8384a051df1d30396ca8
|
7
|
+
data.tar.gz: 436dd7fd182fb4e2ae51614103cccf1e97b3d156a7cb8b62e53a05b705b3cbef53d166d39f37fce6719e8e739d0427fdce72dbdc29c0bf40d35e89c4e8107032
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
# Freegeoip
|
1
|
+
# Freegeoip Ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
A Ruby library for the [Freegeoip API](http://freegeoip.net).
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
7
|
Add this line to your application's Gemfile:
|
10
8
|
|
11
9
|
```ruby
|
12
|
-
gem 'freegeoip'
|
10
|
+
gem 'freegeoip-ruby'
|
13
11
|
```
|
14
12
|
|
15
13
|
And then execute:
|
@@ -18,11 +16,17 @@ And then execute:
|
|
18
16
|
|
19
17
|
Or install it yourself as:
|
20
18
|
|
21
|
-
$ gem install freegeoip
|
19
|
+
$ gem install freegeoip-ruby
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
Anywhere in your code
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require 'freegeoip'
|
27
|
+
|
28
|
+
Freegeoip.get('google.com')
|
29
|
+
```
|
26
30
|
|
27
31
|
## Development
|
28
32
|
|
@@ -32,7 +36,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
36
|
|
33
37
|
## Contributing
|
34
38
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/TheNaoX/freegeoip. 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
40
|
|
37
41
|
|
38
42
|
## License
|
data/lib/freegeoip/request.rb
CHANGED
data/lib/freegeoip/version.rb
CHANGED