yandex_locator 1.0.0 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73440fb516a10f0604782286b029d2b74d21da64
4
- data.tar.gz: f139f95d5a6f0e723ecd42a6b548072df25d2a41
3
+ metadata.gz: 7d4f4c021f6cdd349e4858d07da66bedb940bea9
4
+ data.tar.gz: fd26a9b5116248ab9c56187a683227f5a42749c5
5
5
  SHA512:
6
- metadata.gz: 01f6fe05a9959dbe4f98621f6a1b9ae54a757a7e89528b319e419eeb8e4e18f8fe34088ab14c0ccfbe42b824337a9462a5cbcee626988f0a38e1a9991f11a5a6
7
- data.tar.gz: cf498ce80eee42b79e94ea68973a23694a649e0893cc66f983646c36eb83ff898c43b41b8a9388a773d815da19ce2699096ec8c251ed63ffb79ab3f8f7ca9c07
6
+ metadata.gz: a16b1c541878f2adad22680755e7ab3e75040d3c1e40713c66a423448854d6b6559ac64aa6254fe4763f92b2e6996a78e2a454380ac2cb05fde9af92df642341
7
+ data.tar.gz: f63de8df0f370190c420ae73c7617af249492e6c905200c49b8f87926afda40e2973314177485d9eab4fdaf5bc53b1990e072a3440b37292b567d57f0adb6be5
data/README.md CHANGED
@@ -8,6 +8,8 @@
8
8
 
9
9
  Ruby gem for Yandex locator (https://tech.yandex.ru/locator/). Yandex locator is a service that finds mobile devices in a region delineated by a circle. The service returns longitude, latitude and precision.
10
10
 
11
+ Yandex locator can lookup by IP, wifi networks, gsm cells
12
+
11
13
  ## Installation
12
14
 
13
15
  Add this line to your application's Gemfile:
@@ -64,6 +66,17 @@ Make request
64
66
  result.position
65
67
  # => {"altitude"=>0.0, "altitude_precision"=>30.0, "latitude"=>56.87141036987305, "longitude"=>60.61107635498047, "precision"=>1066.041137695312, "type"=>"gsm"}
66
68
  ```
69
+ Location Handle
70
+ ```ruby
71
+ result = client.lookup(ip: '176.69.53.253')
72
+ if result.position
73
+ # do thangs....
74
+ else
75
+ p result.error['text']
76
+ end
77
+ ```
78
+
79
+
67
80
 
68
81
 
69
82
  ## Development
@@ -1,3 +1,3 @@
1
1
  module YandexLocator
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = %q{ruby gem for yandex locator}
13
13
  spec.description = %q{ruby gem for yandex locator}
14
14
  spec.homepage = "https://github.com/sergey-chechaev/yandex_locator.git"
15
+ spec.license = "MIT"
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
18
  spec.bindir = "exe"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yandex_locator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Chechaev
@@ -60,7 +60,8 @@ files:
60
60
  - lib/yandex_locator/version.rb
61
61
  - yandex_locator.gemspec
62
62
  homepage: https://github.com/sergey-chechaev/yandex_locator.git
63
- licenses: []
63
+ licenses:
64
+ - MIT
64
65
  metadata: {}
65
66
  post_install_message:
66
67
  rdoc_options: []