cyprus-street-names 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,12 +1,14 @@
1
1
  # Cyprus Street Finder
2
- [![Build Status](https://secure.travis-ci.org/despo/cyprus-paf.png)](http://travis-ci.org/despo/cyprus-paf) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/despo/cyprus-paf)
2
+ [![Build Status](https://secure.travis-ci.org/despo/cyprus-street-names.png)](http://travis-ci.org/despo/cyprus-street-names) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/despo/cyprus-street-names)
3
3
 
4
- #### Data from ![Cyprus Postal Services] (http://www.mcw.gov.cy/mcw/dps/dps.nsf/index_en/index_en?opendocument)
4
+ #### Data from [Cyprus Postal Services]
5
5
 
6
6
  ## Usage
7
7
 
8
8
  ### Finding streets
9
9
 
10
+ `require 'street_names'`
11
+
10
12
  ```ruby
11
13
  street_finder = StreetNames::Finder.new
12
14
 
@@ -30,4 +32,5 @@ street_finder.find_by_area "Πάφος"
30
32
 
31
33
  Licensed under the [MIT] Licence
32
34
 
33
- [MIT]:https://raw.github.com/despo/cyprus-paf/master/MIT-LICENSE.txt
35
+ [MIT]:https://raw.github.com/despo/cyprus-street-names/master/MIT-LICENSE.txt
36
+ [Cyprus Postal Services]:http://www.mcw.gov.cy/mcw/dps/dps.nsf/index_en/index_en?opendocument
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.author = "Despo Pentara"
9
9
  s.email = "despo@extractmethod.com"
10
- s.homepage = "https://github.com/despo/cyprus-paf"
10
+ s.homepage = "https://github.com/despo/cyprus-street-names"
11
11
  s.summary = "Cyprus's Street Names."
12
12
  s.description = "Cyprus's Street Names."
13
13
  s.required_ruby_version = '>= 1.9.2'
@@ -21,7 +21,7 @@ module StreetNames
21
21
  end
22
22
 
23
23
  def path
24
- "./data/street_names_#{@locale}.dat"
24
+ File.join(File.dirname(__FILE__), "..", "..", "data", "street_names_#{@locale}.dat")
25
25
  end
26
26
 
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module StreetNames
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -1,2 +1,3 @@
1
- require './lib/street_names'
2
- require './lib/street'
1
+ $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
2
+ require 'street_names'
3
+ require 'street'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyprus-street-names
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -72,7 +72,7 @@ files:
72
72
  - MIT-LICENSE.txt
73
73
  - README.md
74
74
  - Rakefile
75
- - cyprus-paf.gemspec
75
+ - cyprus-street-names.gemspec
76
76
  - data/cyprus_postcode_dir_en.xls
77
77
  - data/cyprus_postcode_dir_gr.xls
78
78
  - data/street_names_en.dat
@@ -88,7 +88,7 @@ files:
88
88
  - spec/street_names/finder_spec.rb
89
89
  - spec/street_names/parser_spec.rb
90
90
  - spec/street_spec.rb
91
- homepage: https://github.com/despo/cyprus-paf
91
+ homepage: https://github.com/despo/cyprus-street-names
92
92
  licenses:
93
93
  - MIT
94
94
  post_install_message: