wifi_location 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/bin/whereami +11 -0
- data/lib/wifi_location.rb +1 -1
- metadata +64 -89
data/History.txt
CHANGED
data/bin/whereami
CHANGED
@@ -31,8 +31,19 @@ if parser.has_option? :towers
|
|
31
31
|
exit
|
32
32
|
end
|
33
33
|
|
34
|
+
if towers.empty?
|
35
|
+
puts 'Cannot get location - There is no WiFi tower.'
|
36
|
+
exit 1
|
37
|
+
end
|
38
|
+
|
34
39
|
location = WiFiLocation.location towers
|
35
40
|
|
41
|
+
unless location
|
42
|
+
puts "Cannot get location - #{towers.count} WiFi towers found, but Google doen't recognize them."
|
43
|
+
puts towers.to_json
|
44
|
+
exit 1
|
45
|
+
end
|
46
|
+
|
36
47
|
if parser.has_option? :dump
|
37
48
|
h = {:towers => towers, :location => location}
|
38
49
|
puts h.to_json
|
data/lib/wifi_location.rb
CHANGED
metadata
CHANGED
@@ -1,107 +1,84 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: wifi_location
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.4
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 0.0.5
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Sho Hashimoto
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
|
13
|
+
date: 2012-08-12 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
15
16
|
name: json
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 1.5.3
|
22
|
-
type: :runtime
|
23
17
|
prerelease: false
|
24
|
-
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
19
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
29
23
|
version: 1.5.3
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: args_parser
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 0.0.2
|
38
24
|
type: :runtime
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: args_parser
|
39
28
|
prerelease: false
|
40
|
-
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
30
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
45
34
|
version: 0.0.2
|
46
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
47
38
|
name: rdoc
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '3.10'
|
54
|
-
type: :development
|
55
39
|
prerelease: false
|
56
|
-
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
41
|
none: false
|
58
|
-
requirements:
|
42
|
+
requirements:
|
59
43
|
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: newgem
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 1.5.3
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "3.10"
|
70
46
|
type: :development
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: newgem
|
71
50
|
prerelease: false
|
72
|
-
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
52
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
77
56
|
version: 1.5.3
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: hoe
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ~>
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '3.0'
|
86
57
|
type: :development
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: hoe
|
87
61
|
prerelease: false
|
88
|
-
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
89
63
|
none: false
|
90
|
-
requirements:
|
64
|
+
requirements:
|
91
65
|
- - ~>
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version:
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "3.0"
|
68
|
+
type: :development
|
69
|
+
version_requirements: *id005
|
94
70
|
description: Get your location with WiFi Mac Address and GoogleMap.
|
95
|
-
email:
|
71
|
+
email:
|
96
72
|
- hashimoto@shokai.org
|
97
|
-
executables:
|
73
|
+
executables:
|
98
74
|
- whereami
|
99
75
|
extensions: []
|
100
|
-
|
76
|
+
|
77
|
+
extra_rdoc_files:
|
101
78
|
- History.txt
|
102
79
|
- Manifest.txt
|
103
80
|
- README.rdoc
|
104
|
-
files:
|
81
|
+
files:
|
105
82
|
- History.txt
|
106
83
|
- Manifest.txt
|
107
84
|
- README.rdoc
|
@@ -117,34 +94,32 @@ files:
|
|
117
94
|
- .gemtest
|
118
95
|
homepage: http://github.com/shokai/wifi_location
|
119
96
|
licenses: []
|
120
|
-
|
121
|
-
|
122
|
-
rdoc_options:
|
97
|
+
|
98
|
+
post_install_message: "!! You can get your location with \"whereami\" command. For more information on wifi_location, see https://rubygems.org/gems/wifi_location"
|
99
|
+
rdoc_options:
|
123
100
|
- --main
|
124
101
|
- README.rdoc
|
125
|
-
require_paths:
|
102
|
+
require_paths:
|
126
103
|
- lib
|
127
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
128
105
|
none: false
|
129
|
-
requirements:
|
130
|
-
- -
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version:
|
133
|
-
|
134
|
-
- 0
|
135
|
-
hash: -981455375
|
136
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: "0"
|
110
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
111
|
none: false
|
138
|
-
requirements:
|
139
|
-
- -
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version:
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: "0"
|
142
116
|
requirements: []
|
117
|
+
|
143
118
|
rubyforge_project: wifi_location
|
144
|
-
rubygems_version: 1.8.
|
119
|
+
rubygems_version: 1.8.17
|
145
120
|
signing_key:
|
146
121
|
specification_version: 3
|
147
122
|
summary: Get your location with WiFi Mac Address and GoogleMap.
|
148
|
-
test_files:
|
123
|
+
test_files:
|
149
124
|
- test/test_helper.rb
|
150
125
|
- test/test_wifi_location.rb
|