nominatim 0.0.1 → 0.0.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.
data/.travis.yml CHANGED
@@ -2,6 +2,5 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 1.9.2
5
- - jruby
6
- - rbx
5
+ - rbx-19mode
7
6
  script: "bundle exec rake"
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Nominatim
2
2
 
3
- A Ruby wrapper for the Nominatim API.
3
+ A Ruby wrapper for the Nominatim API. [![Build Status](https://secure.travis-ci.org/jakubsvehla/nominatim.png?branch=master)](http://travis-ci.org/jakubsvehla/nominatim)
4
4
 
5
5
  ## Installation
6
6
 
@@ -16,6 +16,12 @@ Or install it yourself as:
16
16
 
17
17
  $ gem install nominatim
18
18
 
19
+ ## Documentation
20
+
21
+ [http://rdoc.info/gems/nominatim][documentation]
22
+
23
+ [documentation]: http://rdoc.info/gems/nominatim
24
+
19
25
  ## Usage
20
26
 
21
27
  ```ruby
@@ -24,6 +30,7 @@ places = Nominatim.search('San Francisco').limit(10).address_details(true)
24
30
  for place in places
25
31
  puts "#{place.display_name} (#{place.type})"
26
32
  end
33
+
27
34
  puts "Found #{places.count} places."
28
35
  ```
29
36
 
@@ -31,15 +38,53 @@ puts "Found #{places.count} places."
31
38
 
32
39
  ```ruby
33
40
  Nominatim.configure do |config|
34
- config.email = 'your-email-address@gmail.com'
35
- config.endpoint = 'http://nominatim.openstreetmap.org'
41
+ config.email = 'your-email-address@example.com'
42
+ config.endpoint = 'http://open.mapquestapi.com/nominatim/v1'
36
43
  end
37
44
  ```
38
45
 
39
46
  ## Contributing
40
47
 
41
- 1. Fork it
42
- 2. Create your feature branch (`git checkout -b my-new-feature`)
43
- 3. Commit your changes (`git commit -am 'Added some feature'`)
44
- 4. Push to the branch (`git push origin my-new-feature`)
45
- 5. Create new Pull Request
48
+ 1. [Fork the repository.][fork]
49
+ 2. [Create a topic branch.][branch]
50
+ 3. Add specs for your unimplemented feature or bug fix.
51
+ 4. Run `bundle exec rake spec`. If your specs pass, return to step 3.
52
+ 5. Implement your feature or bug fix.
53
+ 6. Run `bundle exec rake spec`. If your specs fail, return to step 5.
54
+ 7. Run `open coverage/index.html`. If your changes are not completely covered
55
+ by your tests, return to step 3.
56
+ 8. Add, commit, and push your changes.
57
+ 9. [Submit a pull request.][pr]
58
+
59
+ [fork]: http://help.github.com/fork-a-repo/
60
+ [branch]: http://learn.github.com/p/branching.html
61
+ [pr]: http://help.github.com/send-pull-requests/
62
+
63
+ ## Supported Ruby Versions
64
+
65
+ Nominatim is tested under 1.9.2 and 1.9.3.
66
+
67
+ ## Copyright
68
+
69
+ Copyright (c) 2012 Jakub Svehla
70
+
71
+ MIT License
72
+
73
+ Permission is hereby granted, free of charge, to any person obtaining
74
+ a copy of this software and associated documentation files (the
75
+ "Software"), to deal in the Software without restriction, including
76
+ without limitation the rights to use, copy, modify, merge, publish,
77
+ distribute, sublicense, and/or sell copies of the Software, and to
78
+ permit persons to whom the Software is furnished to do so, subject to
79
+ the following conditions:
80
+
81
+ The above copyright notice and this permission notice shall be
82
+ included in all copies or substantial portions of the Software.
83
+
84
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
87
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
88
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
89
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
90
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,3 +1,3 @@
1
1
  module Nominatim
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/nominatim.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["jakub.svehla@gmail.com"]
7
7
  gem.description = %q{A Ruby wrapper for the Nominatim API.}
8
8
  gem.summary = %q{A Ruby wrapper for the Nominatim API.}
9
- gem.homepage = ""
9
+ gem.homepage = "https://github.com/jakubsvehla/nominatim"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -18,6 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.add_dependency 'faraday'
19
19
  gem.add_dependency 'multi_json'
20
20
 
21
+ gem.add_development_dependency 'rake'
21
22
  gem.add_development_dependency 'rspec', '~> 2.10'
22
23
  gem.add_development_dependency 'webmock'
23
24
  gem.add_development_dependency 'simplecov'
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,9 @@
1
- require 'simplecov'
1
+ unless ENV['CI']
2
+ require 'simplecov'
2
3
 
3
- SimpleCov.start do
4
- add_filter 'spec'
4
+ SimpleCov.start do
5
+ add_filter 'spec'
6
+ end
5
7
  end
6
8
 
7
9
  require 'nominatim'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nominatim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-01 00:00:00.000000000 Z
12
+ date: 2012-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: rspec
48
64
  requirement: !ruby/object:Gem::Requirement
@@ -139,7 +155,7 @@ files:
139
155
  - spec/nominatim/search_spec.rb
140
156
  - spec/nominatim_spec.rb
141
157
  - spec/spec_helper.rb
142
- homepage: ''
158
+ homepage: https://github.com/jakubsvehla/nominatim
143
159
  licenses: []
144
160
  post_install_message:
145
161
  rdoc_options: []
@@ -151,12 +167,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
167
  - - ! '>='
152
168
  - !ruby/object:Gem::Version
153
169
  version: '0'
170
+ segments:
171
+ - 0
172
+ hash: -449881262904296726
154
173
  required_rubygems_version: !ruby/object:Gem::Requirement
155
174
  none: false
156
175
  requirements:
157
176
  - - ! '>='
158
177
  - !ruby/object:Gem::Version
159
178
  version: '0'
179
+ segments:
180
+ - 0
181
+ hash: -449881262904296726
160
182
  requirements: []
161
183
  rubyforge_project:
162
184
  rubygems_version: 1.8.23