geo_distance 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bdce01bb820d0696ee51e1641b57a44e744484bca4568190e539868ddea6b6d5
4
+ data.tar.gz: c54ec69ae551761eaad81a275aa9b10f3595272738f61c3aed28b4dd840f86bc
5
+ SHA512:
6
+ metadata.gz: fbd9064cf33b56c7d6afc898bc8c80822bedbb4e5730dd6e28b44bf32b676bc74cb3a62112ad3949ffea92687e3d7f1f666ee6641030c7fe5efc0aba8bd12dde
7
+ data.tar.gz: add248e7eb781848964f2a34547d8d6e0d670df9f34d34afdad459fbe14c7c780af866324514a81828acae42e138374167b6a1b2264fe5e833a667703d32c677
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.5
5
+ before_install: gem install bundler -v 1.16.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at zeljkokalezic@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in geo_distance.gemspec
6
+ gemspec
@@ -0,0 +1,88 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ geo_distance (0.1.1)
5
+ thor
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ aruba (0.14.6)
11
+ childprocess (>= 0.6.3, < 0.10.0)
12
+ contracts (~> 0.9)
13
+ cucumber (>= 1.3.19)
14
+ ffi (~> 1.9.10)
15
+ rspec-expectations (>= 2.99)
16
+ thor (~> 0.19)
17
+ ast (2.3.0)
18
+ backports (3.11.4)
19
+ builder (3.2.3)
20
+ childprocess (0.9.0)
21
+ ffi (~> 1.0, >= 1.0.11)
22
+ contracts (0.16.0)
23
+ cucumber (3.1.2)
24
+ builder (>= 2.1.2)
25
+ cucumber-core (~> 3.2.0)
26
+ cucumber-expressions (~> 6.0.1)
27
+ cucumber-wire (~> 0.0.1)
28
+ diff-lcs (~> 1.3)
29
+ gherkin (~> 5.1.0)
30
+ multi_json (>= 1.7.5, < 2.0)
31
+ multi_test (>= 0.1.2)
32
+ cucumber-core (3.2.0)
33
+ backports (>= 3.8.0)
34
+ cucumber-tag_expressions (~> 1.1.0)
35
+ gherkin (>= 5.0.0)
36
+ cucumber-expressions (6.0.1)
37
+ cucumber-tag_expressions (1.1.1)
38
+ cucumber-wire (0.0.1)
39
+ diff-lcs (1.3)
40
+ ffi (1.9.25)
41
+ gherkin (5.1.0)
42
+ multi_json (1.13.1)
43
+ multi_test (0.1.2)
44
+ parallel (1.11.2)
45
+ parser (2.4.0.0)
46
+ ast (~> 2.2)
47
+ powerpack (0.1.1)
48
+ rainbow (2.2.2)
49
+ rake
50
+ rake (10.5.0)
51
+ rspec (3.6.0)
52
+ rspec-core (~> 3.6.0)
53
+ rspec-expectations (~> 3.6.0)
54
+ rspec-mocks (~> 3.6.0)
55
+ rspec-core (3.6.0)
56
+ rspec-support (~> 3.6.0)
57
+ rspec-expectations (3.6.0)
58
+ diff-lcs (>= 1.2.0, < 2.0)
59
+ rspec-support (~> 3.6.0)
60
+ rspec-mocks (3.6.0)
61
+ diff-lcs (>= 1.2.0, < 2.0)
62
+ rspec-support (~> 3.6.0)
63
+ rspec-support (3.6.0)
64
+ rubocop (0.49.1)
65
+ parallel (~> 1.10)
66
+ parser (>= 2.3.3.1, < 3.0)
67
+ powerpack (~> 0.1)
68
+ rainbow (>= 1.99.1, < 3.0)
69
+ ruby-progressbar (~> 1.7)
70
+ unicode-display_width (~> 1.0, >= 1.0.1)
71
+ ruby-progressbar (1.8.1)
72
+ thor (0.19.4)
73
+ unicode-display_width (1.3.0)
74
+
75
+ PLATFORMS
76
+ ruby
77
+
78
+ DEPENDENCIES
79
+ aruba
80
+ bundler (~> 1.16)
81
+ cucumber
82
+ geo_distance!
83
+ rake (~> 10.0)
84
+ rspec (~> 3.0)
85
+ rubocop
86
+
87
+ BUNDLED WITH
88
+ 1.16.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Zeljko Kalezic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,51 @@
1
+ # GeoDistance
2
+
3
+ This gem is used to provide a list of customer records that are within desired distance from specified location.
4
+ Customer records are a text file -- one customer per line, JSON lines formatted.
5
+ This gem will read the full list of customers and output the names and user ids of matching customers (within X meters), sorted by User ID (ascending).
6
+
7
+ ## Installation
8
+
9
+ This gem is a CLI tool.
10
+
11
+ Install it yourself as:
12
+
13
+ $ gem install geo_distance
14
+
15
+ ## Usage
16
+
17
+ $ geo_distance get_customers_in_radius valid_customers.txt 53.339428 -6.257664 100000
18
+ ["Ian Kehoe", 4]
19
+ ["Nora Dempsey", 5]
20
+ ["Theresa Enright", 6]
21
+ ["Eoin Ahearn", 8]
22
+ ["Richard Finnegan", 11]
23
+ ["Christina McArdle", 12]
24
+ ["Olive Ahearn", 13]
25
+ ["Michael Ahearn", 15]
26
+ ["Patricia Cahill", 17]
27
+ ["Eoin Gallagher", 23]
28
+ ["Rose Enright", 24]
29
+ ["Stephen McArdle", 26]
30
+ ["Oliver Ahearn", 29]
31
+ ["Nick Enright", 30]
32
+ ["Alan Behan", 31]
33
+ ["Lisa Ahearn", 39]
34
+
35
+ ## Development
36
+
37
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
38
+
39
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
+
41
+ ## Contributing
42
+
43
+ Bug reports and pull requests are welcome on GitHub at https://github.com/zeljkokalezic/geo_distance. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
44
+
45
+ ## License
46
+
47
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
48
+
49
+ ## Code of Conduct
50
+
51
+ Everyone interacting in the GeoDistance project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/geo_distance/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "geo_distance"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require "geo_distance/cli"
3
+
4
+ GeoDistance::CLI.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,31 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "geo_distance/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "geo_distance"
8
+ spec.version = GeoDistance::VERSION
9
+ spec.authors = ["Zeljko Kalezic"]
10
+ spec.email = ["zeljkokalezic@gmail.com"]
11
+
12
+ spec.summary = "Generates list of places within desired distance from a point."
13
+ spec.homepage = "https://github.com/zeljkokalezic/geo_locator"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+
20
+ spec.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.16"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec", "~> 3.0"
26
+ spec.add_development_dependency "cucumber"
27
+ spec.add_development_dependency "aruba"
28
+ spec.add_development_dependency "rubocop"
29
+
30
+ spec.add_dependency "thor"
31
+ end
@@ -0,0 +1,14 @@
1
+ require "geo_distance/version"
2
+ require "geo_distance/input/file"
3
+ require "geo_distance/parser/json"
4
+ require "geo_distance/splitter/character"
5
+ require "geo_distance/persistence/console"
6
+ require "geo_distance/operation/customer"
7
+ require "geo_distance/model/customer"
8
+ require "geo_distance/model/location"
9
+ require "geo_distance/serializer/customer"
10
+ require "geo_distance/transformer/sort"
11
+ require "geo_distance/cli"
12
+
13
+ module GeoDistance
14
+ end
@@ -0,0 +1,19 @@
1
+ require 'thor'
2
+ require 'geo_distance'
3
+
4
+ module GeoDistance
5
+ class CLI < Thor
6
+
7
+ desc "get_customers_in_radius customers_file_path latitude longitude radius",
8
+ "Outputs a list of customers that are inside deisred radius (in meters) from specified location coordinates"
9
+ def get_customers_in_radius(customers_file_path, latitude, longitude, radius)
10
+ customers = GeoDistance::Parser::Json.get_customers_from_file(customers_file_path)
11
+ location = GeoDistance::Model::Location.new(latitude, longitude)
12
+ result = GeoDistance::Operation::Customer.get_customers_in_radius(customers, location, radius)
13
+ sorted_result = GeoDistance::Transformer::Sort.acsending(result, "id")
14
+ serialized_result = GeoDistance::Serializer::Customer.serialize_array(sorted_result, ["name", "id"])
15
+ GeoDistance::Persistence::Console.print_array(serialized_result)
16
+ end
17
+
18
+ end
19
+ end
@@ -0,0 +1,9 @@
1
+ module GeoDistance::Input
2
+ class File
3
+ class << self
4
+ def get_file_content(path)
5
+ IO.read(path)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module GeoDistance::Input
2
+ class Web
3
+ # TODO
4
+ end
5
+ end
@@ -0,0 +1,11 @@
1
+ module GeoDistance::Model
2
+ class Customer
3
+ attr_reader :id, :name, :location
4
+
5
+ def initialize(data_hash)
6
+ @location = Location.new(data_hash.fetch("latitude"), data_hash.fetch("longitude"))
7
+ @id = data_hash.fetch("user_id")
8
+ @name = data_hash.fetch("name")
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,36 @@
1
+ module GeoDistance::Model
2
+ class Location
3
+ attr_reader :latitude, :longitude
4
+
5
+ def initialize(latitude, longitude)
6
+ @latitude = Float(latitude)
7
+ @longitude = Float(longitude)
8
+ end
9
+
10
+ # Calculates distance to other location in meters
11
+ # using Haversine formula: https://en.wikipedia.org/wiki/Haversine_formula
12
+ def distance_to(location)
13
+ delta_latitude_radians = degrees_to_radians(location.latitude - latitude)
14
+ delta_longitude_radians = degrees_to_radians(location.longitude - longitude)
15
+
16
+ a = Math.sin(delta_latitude_radians/2)**2 +
17
+ Math.cos(degrees_to_radians(latitude)) *
18
+ Math.cos(degrees_to_radians(location.latitude)) *
19
+ Math.sin(delta_longitude_radians/2)**2
20
+
21
+ c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a))
22
+ c * earth_radius_in_meters
23
+ end
24
+
25
+ private
26
+
27
+ def degrees_to_radians(degrees)
28
+ degrees * Math::PI / 180
29
+ end
30
+
31
+ def earth_radius_in_meters
32
+ 6371 * 1000
33
+ end
34
+ end
35
+ end
36
+
@@ -0,0 +1,20 @@
1
+ module GeoDistance::Operation
2
+ class Customer
3
+ class << self
4
+
5
+ def get_customers_in_radius(customers, location, radius)
6
+ result = []
7
+ maximum_distance = Float(radius)
8
+ # rewrite as map?
9
+ customers.each do |customer|
10
+ distance_to_location = customer.location.distance_to(location)
11
+ if distance_to_location <= maximum_distance
12
+ result << customer
13
+ end
14
+ end
15
+ result
16
+ end
17
+
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,26 @@
1
+ require "json"
2
+
3
+ module GeoDistance::Parser
4
+ class Json
5
+ class << self
6
+
7
+ def get_customers_from_file(file_path)
8
+ raw_data = GeoDistance::Input::File.get_file_content(file_path)
9
+ raw_records = GeoDistance::Splitter::Character.split(raw_data, "\n")
10
+ raw_records.map do |record|
11
+ begin
12
+ record_hash = JSON.parse(record)
13
+ GeoDistance::Model::Customer.new(record_hash)
14
+ rescue JSON::ParserError
15
+ p "Parsing error occurred for row: #{record}"
16
+ raise
17
+ rescue ArgumentError
18
+ p "Invalid data in row: #{record}"
19
+ raise
20
+ end
21
+ end
22
+ end
23
+
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,15 @@
1
+ module GeoDistance::Persistence
2
+ class Console
3
+ class << self
4
+ def print(data)
5
+ p data
6
+ end
7
+
8
+ def print_array(data)
9
+ data.each do |row|
10
+ p row
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,17 @@
1
+ module GeoDistance::Serializer
2
+ class Customer
3
+ class << self
4
+ def serialize(data, attributes)
5
+ attributes.map do |attribute|
6
+ data.public_send(attribute)
7
+ end
8
+ end
9
+
10
+ def serialize_array(data, attributes)
11
+ data.map do |row|
12
+ serialize(row, attributes)
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,9 @@
1
+ module GeoDistance::Splitter
2
+ class Character
3
+ class << self
4
+ def split(input, split_symbol)
5
+ input.split(split_symbol)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ module GeoDistance::Transformer
2
+ class Sort
3
+ class << self
4
+ def acsending(data, sort_by)
5
+ data.sort_by do |row|
6
+ row.public_send(sort_by)
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
12
+
@@ -0,0 +1,3 @@
1
+ module GeoDistance
2
+ VERSION = "0.1.1"
3
+ end
metadata ADDED
@@ -0,0 +1,171 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: geo_distance
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Zeljko Kalezic
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-09-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: cucumber
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: aruba
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: thor
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description:
112
+ email:
113
+ - zeljkokalezic@gmail.com
114
+ executables:
115
+ - console
116
+ - geo_distance
117
+ - setup
118
+ extensions: []
119
+ extra_rdoc_files: []
120
+ files:
121
+ - ".gitignore"
122
+ - ".rspec"
123
+ - ".travis.yml"
124
+ - CODE_OF_CONDUCT.md
125
+ - Gemfile
126
+ - Gemfile.lock
127
+ - LICENSE.txt
128
+ - README.md
129
+ - Rakefile
130
+ - bin/console
131
+ - bin/geo_distance
132
+ - bin/setup
133
+ - geo_distance.gemspec
134
+ - lib/geo_distance.rb
135
+ - lib/geo_distance/cli.rb
136
+ - lib/geo_distance/input/file.rb
137
+ - lib/geo_distance/input/web.rb
138
+ - lib/geo_distance/model/customer.rb
139
+ - lib/geo_distance/model/location.rb
140
+ - lib/geo_distance/operation/customer.rb
141
+ - lib/geo_distance/parser/json.rb
142
+ - lib/geo_distance/persistence/console.rb
143
+ - lib/geo_distance/serializer/customer.rb
144
+ - lib/geo_distance/splitter/character.rb
145
+ - lib/geo_distance/transformer/sort.rb
146
+ - lib/geo_distance/version.rb
147
+ homepage: https://github.com/zeljkokalezic/geo_locator
148
+ licenses:
149
+ - MIT
150
+ metadata: {}
151
+ post_install_message:
152
+ rdoc_options: []
153
+ require_paths:
154
+ - lib
155
+ required_ruby_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ required_rubygems_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ requirements: []
166
+ rubyforge_project:
167
+ rubygems_version: 2.7.3
168
+ signing_key:
169
+ specification_version: 4
170
+ summary: Generates list of places within desired distance from a point.
171
+ test_files: []