rubylibpostal 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 +3 -3
- data/lib/rubypostal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c639429c9d512b9405efa0d25deb16fbef6b4da3263c1aa56a9692b5c6e70a5
|
4
|
+
data.tar.gz: 3db7ced50146c387faff94a0542e9fd9000d275143d025790406edcad24707b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9fe4729f2b44b677be124f882358b250415c2ac80c082020c0032ccc27861b19e0cc9c5e7a42427e20f9a3fdf55176c99c934eadac87454f906ea5bffb9342a
|
7
|
+
data.tar.gz: f8a56a88292646f53cd856729f931b2a6b91fdf6b48000c68871a5fe5468b781f60769fd7a3360c96b0d4e13cc3a3eb08f8b9e2ea3850fa839235a14e548b3e5
|
data/README.md
CHANGED
@@ -36,10 +36,10 @@ $ gem install rubylibpostal
|
|
36
36
|
To parse an address, simply call the `Rubypostal.parse_address` method:
|
37
37
|
|
38
38
|
```ruby
|
39
|
-
require '
|
39
|
+
require 'rubylibpostal'
|
40
40
|
|
41
41
|
address = "781 Franklin Ave Crown Heights Brooklyn NYC NY 11216 USA"
|
42
|
-
parsed =
|
42
|
+
parsed = RubyPostal.parse_address(address)
|
43
43
|
|
44
44
|
puts parsed
|
45
45
|
# => {
|
@@ -61,7 +61,7 @@ To expand an address into its possible variations:
|
|
61
61
|
require 'rubylibpostal'
|
62
62
|
|
63
63
|
address = "781 Franklin Ave, Brooklyn, NYC"
|
64
|
-
expanded =
|
64
|
+
expanded = RubyPostal.expand_address(address)
|
65
65
|
|
66
66
|
puts expanded
|
67
67
|
# => ["781 franklin avenue brooklyn new york city", "781 franklin avenue nyc"]
|
data/lib/rubypostal/version.rb
CHANGED