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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65acfe2a2bf0cc90c53a42be962ae598a0602bb2
4
- data.tar.gz: 8d4d959b6017879697e4aaa46b93f1007a571bd3
3
+ metadata.gz: ba654df167d7752c27779fd022f0beb64a2baf7f
4
+ data.tar.gz: a7fa1b5ae00e2331f760fdfa203e1664c3ec9a14
5
5
  SHA512:
6
- metadata.gz: cc8573cf1ab1b31955b5d37002388d9f63bd5b8dab4071f6f6b340312033eb503dae34bb5ba1c6f7238a4bdb0ba9f27dbb0658672fd270679b5575b6e43abcca
7
- data.tar.gz: 7fd0822ff61b603d8bce6952b242844946f77e092d421c17565c4dd5578eaae13540cb72af09c4a4a366f4d29f3a459eeb8784752e1e5196740c0f180505ad90
6
+ metadata.gz: 3f7e907043bdc610fbd835fbfc2047c85fdde01e5589136110445bac947c219b80b11d26bf25f42ddf30ea120599d21a0fad8935559f8384a051df1d30396ca8
7
+ data.tar.gz: 436dd7fd182fb4e2ae51614103cccf1e97b3d156a7cb8b62e53a05b705b3cbef53d166d39f37fce6719e8e739d0427fdce72dbdc29c0bf40d35e89c4e8107032
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
data/README.md CHANGED
@@ -1,15 +1,13 @@
1
- # Freegeoip
1
+ # Freegeoip Ruby
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/freegeoip`. 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
+ 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
- TODO: Write usage instructions here
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/[USERNAME]/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.
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
@@ -1,4 +1,5 @@
1
1
  require 'json'
2
+ require 'uri'
2
3
 
3
4
  module Freegeoip
4
5
  class Request
@@ -1,3 +1,3 @@
1
1
  module Freegeoip
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freegeoip-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Chávez