geo_stalker 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcc08e920bfea6a50a57bea69283eb6809cce56c
4
- data.tar.gz: efdeb14cf58dfc52dff5f772750db0a4893f96f6
3
+ metadata.gz: 1d2c5018bbfdddb499144c7db1a5520cfabdcb57
4
+ data.tar.gz: 87ce2df4dcd347889edc2c3381ceaf653d45bfbe
5
5
  SHA512:
6
- metadata.gz: f18570f6a9731acec3b9e3a74e4304624f9ef34215bffc6d2b55393161961c4e91fbfc3dc54acd35f790ff0a0c83762281f2a04f45cfab10ca3f0bab61c9abf4
7
- data.tar.gz: f28c2cfcc5a40fbb1317177cdf53294a37ba3e51e4eb59bb5d14834f2be68d5c5073b8daece7363756d352c8c2434277538d0be819f633fabcdbfa71664c819c
6
+ metadata.gz: dbf57ff945d7df71dbba6260693954dd4869d8c75ca1bbadfa40e234db6780bebb94d9416f1f61b35d598e0380926540d84201a632587b0d1c34f5812aab4bbf
7
+ data.tar.gz: 7df2648c52b152aa3b24e12f2a3005e34079d8fad3804888ea96d2a59e12f02ff14496e649a87d6a1b8e3c084a9dbb81b99ff864d94ac21cddd3b2d52949b491
data/README.md CHANGED
@@ -26,11 +26,26 @@ https://developers.google.com/maps/documentation/geolocation/get-api-key
26
26
 
27
27
  ### location
28
28
 
29
+ Ruby code
30
+
29
31
  ```ruby
30
32
  require "geo_stalker"
31
33
 
32
- stalker = GeoStalker::Locator.new(ENV["GOOGLE_API_KEY"])
33
- p stalker.location # {"location"=>{"lat"=>29.4222384, "lng"=>-98.4830782}, "accuracy"=>48.0}
34
+ stalker = GeoStalker::Locator.new(your_key)
35
+ stalker.location # {"location"=>{"lat"=>29.4222384, "lng"=>-98.4830782}, "accuracy"=>48.0}
36
+ ```
37
+
38
+ Command line
39
+
40
+ ```sh
41
+ GOOGLE_API_KEY=your_key geo_stalker | jq
42
+ {
43
+ "location": {
44
+ "lat": 29.4221035,
45
+ "lng": -98.48321059999999
46
+ },
47
+ "accuracy": 37
48
+ }
34
49
  ```
35
50
 
36
51
  ## Development
@@ -2,6 +2,7 @@ require "forwardable"
2
2
 
3
3
  require "geo_stalker/locator/base"
4
4
  require "geo_stalker/locator/darwin"
5
+ require "geo_stalker/locator/linux"
5
6
 
6
7
  module GeoStalker
7
8
  class Locator
@@ -1,3 +1,3 @@
1
1
  module GeoStalker
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_stalker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiori SHOJI