found 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,3 +1,5 @@
1
+ Found makes use of the Lost gem, Copyright (c) 2012 Evan Phoenix
2
+
1
3
  Copyright (c) 2012 Havenwood
2
4
 
3
5
  MIT License
data/README.md CHANGED
@@ -1,20 +1,16 @@
1
1
  # Found
2
2
 
3
- Find your street address with CoreLocation! (Found is a bit of glue between [evanphx](https://github.com/evanphx)'s awesome [Lost gem](https://github.com/evanphx/lost) for lat/long along with Geokit and Google for the street address.)
3
+ Find the nearest street address with OS X's CoreLocation! ([Found](https://github.com/havenwood/found) is a bit of glue between [evanphx](https://github.com/evanphx)'s awesome [Lost gem](https://github.com/evanphx/lost) to determine latitude and longitude along with [Geokit](http://geokit.rubyforge.org) for the street address.)
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
8
-
9
- `gem 'found'`
7
+ Command line:
10
8
 
11
- And then execute:
9
+ `$ gem install found`
12
10
 
13
- `$ bundle`
11
+ Library:
14
12
 
15
- Or install it yourself as:
16
-
17
- `$ gem install found`
13
+ `require 'found`
18
14
 
19
15
  ## Usage
20
16
 
@@ -22,21 +18,31 @@ Command line:
22
18
 
23
19
  ```
24
20
  $ found
25
-
26
21
  Rugged Trail, Topanga Canyon, CA 90290, USA
27
22
  ```
28
23
 
29
- As a library:
24
+ [Lost](https://github.com/evanphx/lost) command line:
30
25
 
31
- ```ruby
32
- require 'found'
26
+ ```
27
+ $ lost
28
+ [34.10416324080013, -118.59267817253203]
29
+ ```
30
+
31
+ Library:
33
32
 
34
- puts Found.address
33
+ ```ruby
34
+ Found.address
35
+ # => Rugged Trail, Topanga Canyon, CA 90290, USA
35
36
  ```
36
37
 
38
+ ## Requirements
39
+
40
+ - OS X (Lost uses CoreLocation)
41
+ - Command Line Developer Tools (Compile Lost)
42
+ - Wifi (CoreLocation)
43
+
37
44
  ## Contributing
38
45
 
39
46
  1. Fork it
40
47
  2. Commit Changes
41
- 3. Create a Pull Request
42
- =======
48
+ 3. Create a Pull Request
data/found.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
  require File.expand_path('../lib/found/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.authors = ['Havenwood']
5
+ gem.authors = ['Shannon Skipper']
6
6
  gem.email = ['shannonskipper@gmail.com']
7
7
  gem.description = %q{Find Street Address with CoreLocation}
8
8
  gem.summary = %q{Find your street address with CoreLocation! (Found is a bit of glue between evanphx's awesome Lost gem for lat/long along with Geokit and Google for the street address.)}
data/lib/found/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Found
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/lib/found.rb CHANGED
@@ -6,8 +6,14 @@ module Found
6
6
  def self.address
7
7
  include Geokit::Geocoders
8
8
 
9
- addy = GoogleGeocoder.reverse_geocode(Lost.current_position)
9
+ begin
10
+ current_position = Lost.current_position
10
11
 
11
- puts addy.full_address
12
+ current_address = GoogleGeocoder.reverse_geocode(current_position)
13
+
14
+ puts current_address.full_address
15
+ rescue SocketError
16
+ puts 'WiFi connection required to determine location.'
17
+ end
12
18
  end
13
19
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: found
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:
8
- - Havenwood
8
+ - Shannon Skipper
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-08 00:00:00.000000000 Z
12
+ date: 2012-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: lost
@@ -87,7 +87,6 @@ files:
87
87
  - Gemfile
88
88
  - LICENSE
89
89
  - README.md
90
- - Rakefile
91
90
  - bin/found
92
91
  - found.gemspec
93
92
  - lib/found.rb
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env rake
2
- require "bundler/gem_tasks"