liza 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
  SHA256:
3
- metadata.gz: 2df5f475ca82daef21a28c0b5af607b6240ab1ed115e68f722c061d4b2e78bfb
4
- data.tar.gz: b8db3ece709834a9c3748c52a28bb0ff153f54b4658b862a1457edacb6ed04bb
3
+ metadata.gz: a70cfed3670875ff9afbec4202770016d0a9d5780cf756e1afe8c7c537248389
4
+ data.tar.gz: 594470f35a12924701611ffefa0c0fb0625d36acbe73c5a2c8f191252d25aa9d
5
5
  SHA512:
6
- metadata.gz: 8788fd9ce7c85b396cdc1a033a9ee09c0e8ef5a47425f52c58f7bb4a750ff2289c9be32eb600eae0772edcd1c6ed2015747b925634b72ed66763772eb14097b9
7
- data.tar.gz: 6226ea7ca06f98641bb5c93752000b2adde5110f560f36b19ebedc4fbdf6a3889c3b09c6edc70486873b43fd66465ad694f8348792f0d566db772192f003aef4
6
+ metadata.gz: 9034ff15704e0dff043f78ee5417e22a110499de4f589a354d92be525e928d20ba97eecf0ee08c9fc25d9da26551dd96c22e07e7e2e28f58da45df25de946cf8
7
+ data.tar.gz: 71969f4d1c0a8af7b91f950251f415fc2a4e6d75cbe5859689cb221d1d3b88ccf97643fb08c0e8df8b6d30ef5161265481e779ffb297be222cd863c1722e2658
data/README.md CHANGED
@@ -1,15 +1,13 @@
1
1
  # Liza
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/liza`. 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
+ Liza is a ruby wrapper around USIG's Normalizador de Direcciones.
6
4
 
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
10
8
 
11
9
  ```ruby
12
- gem 'liza'
10
+ gem "liza"
13
11
  ```
14
12
 
15
13
  And then execute:
@@ -22,7 +20,19 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ ```ruby
24
+ >> Liza.normalize("Cabildo y General Paz")
25
+ => #<Liza::Normalizer:0x00007f8c5fc0e278 @address="Cabildo y General Paz", @results=[#<Liza::Address:0x00007f8c5e930200 @number=nil, @coordinates=[-34.539371, -58.475488], @normalized_address="CABILDO AV. y PAZ, GRAL. AV., CABA", @street="CABILDO AV.", @crossing_street="PAZ, GRAL. AV.", @locality="CABA", @area="CABA">, #<Liza::Address:0x00007f8c5e9300c0 @number=nil, @coordinates=[-34.6624167, -58.783164], @normalized_address="Cabildo y General José María Paz, Moreno", @street="Cabildo", @crossing_street="General José María Paz", @locality="Moreno", @area="Moreno">]>
26
+
27
+ >> melo = Liza.normalize("Melo 1900")
28
+ => #<Liza::Normalizer:0x00007f8c5f0e1a08 @address="melo 1900", @results=[#<Liza::Address:0x00007f8c60866f98 @number=1900, @coordinates=[-34.59189, -58.393853], @normalized_address="PACHECO DE MELO, JOSE ANDRES 1900, CABA", @street="PACHECO DE MELO, JOSE ANDRES", @crossing_street="", @locality="CABA", @area="CABA">, #<Liza::Address:0x00007f8c60866ed0 @number=1900, @coordinates=[-34.531806, -58.4850294], @normalized_address="Melo 1900, Vicente López", @street="Melo", @crossing_street="", @locality="Florida", @area="Vicente López">]>
29
+
30
+ >> melo.suggestions
31
+ => ["PACHECO DE MELO, JOSE ANDRES 1900, CABA", "Melo 1900, Vicente López"]
32
+
33
+ >> melo.map(&:map_url)
34
+ => ["https://www.google.com/maps/search/-34.59189,-58.393853", "https://www.google.com/maps/search/-34.531806,-58.4850294"]
35
+ ```
26
36
 
27
37
  ## Development
28
38
 
@@ -32,7 +42,7 @@ 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]/liza. 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/arzezak/liza. 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
  ## License
38
48
 
@@ -40,4 +50,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
40
50
 
41
51
  ## Code of Conduct
42
52
 
43
- Everyone interacting in the Liza project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/liza/blob/master/CODE_OF_CONDUCT.md).
53
+ Everyone interacting in the Liza project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/arzezak/liza/blob/master/CODE_OF_CONDUCT.md).
@@ -1,4 +1,5 @@
1
1
  require "http"
2
+ require "json"
2
3
 
3
4
  module Liza
4
5
  class Normalizer
@@ -1,3 +1,3 @@
1
1
  module Liza
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: liza
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
  - Ariel Rzezak