found 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/LICENSE +2 -0
- data/README.md +22 -16
- data/found.gemspec +1 -1
- data/lib/found/version.rb +1 -1
- data/lib/found.rb +8 -2
- metadata +3 -4
- data/Rakefile +0 -2
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,20 +1,16 @@
|
|
1
1
|
# Found
|
2
2
|
|
3
|
-
Find
|
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
|
-
|
8
|
-
|
9
|
-
`gem 'found'`
|
7
|
+
Command line:
|
10
8
|
|
11
|
-
|
9
|
+
`$ gem install found`
|
12
10
|
|
13
|
-
|
11
|
+
Library:
|
14
12
|
|
15
|
-
|
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
|
-
|
24
|
+
[Lost](https://github.com/evanphx/lost) command line:
|
30
25
|
|
31
|
-
```
|
32
|
-
|
26
|
+
```
|
27
|
+
$ lost
|
28
|
+
[34.10416324080013, -118.59267817253203]
|
29
|
+
```
|
30
|
+
|
31
|
+
Library:
|
33
32
|
|
34
|
-
|
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 = ['
|
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
data/lib/found.rb
CHANGED
@@ -6,8 +6,14 @@ module Found
|
|
6
6
|
def self.address
|
7
7
|
include Geokit::Geocoders
|
8
8
|
|
9
|
-
|
9
|
+
begin
|
10
|
+
current_position = Lost.current_position
|
10
11
|
|
11
|
-
|
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.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Shannon Skipper
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
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