geolocalise 0.1.1 → 2.0.0

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
- SHA1:
3
- metadata.gz: 41cc5cea68db8ff6f0e898e2102fdca9be33be46
4
- data.tar.gz: ee2c3480204a27624e01ce3e353dda7d3030416c
2
+ SHA256:
3
+ metadata.gz: 8e023e5b5472d3364df7cabbdcf2246b69567fb64fbe5f803d673f972bdc85b9
4
+ data.tar.gz: 8869e4f07b0a3b4c38118bebdb1a5c94860f4aef3c93450a584ac91ecb6ec084
5
5
  SHA512:
6
- metadata.gz: 7cf8bb4d73feb0b3c2aeb14261986c76cae509e08f7450b61ba0d61bf195275c1d59ef566a38fadc79241d06394d6faf458fc5b98e032fa5389bc4264f9c8843
7
- data.tar.gz: c5cd30d5d7dd4a5263a014d72801d25c8727fb49e66ab28bfac981bd014dfb5e649f69adba6d35c3e2a34265cda66f7e0ec95282ae93d1059e841b0c7eb2a705
6
+ metadata.gz: a2597de8ecd91df2e1b56fee615aff2ec54be239c1776f80aea743c7ba108bad76af21a198baa7601ffa96f7a2140d883ce49c07a5e620fa500c0c38e6f3c8ce
7
+ data.tar.gz: 1fe9692eb9def14121c9ebd2ce3a09442cec6e28ef44110c0c70c2ffeee4d7e5fb62cc073d82d022fefc7aca994112d5199ecfbefd784da3b005999c52127292
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
3
+ - 2.5.0
4
4
  before_install: gem install bundler -v 1.10.5
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Geolocalise
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/geolocalise`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Welcome to Geolocalise gem! A Gem which help you to find out current city,state,country,postal-code and country-code with simple methods call.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
5
 
7
6
  ## Installation
8
7
 
@@ -22,20 +21,60 @@ Or install it yourself as:
22
21
 
23
22
  ## Usage
24
23
 
25
- TODO: Write usage instructions here
24
+ In your class -
26
25
 
27
- ## Development
26
+ $ require 'geolocalise'
28
27
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+ There are mainly five helpers available for Geolocalise usage.
29
+ To get city name from latitude and langitude
30
+ ```ruby
31
+ Geolocalise.get_city("19.07598, 72.8776559")
32
+ #=> "Mumbai"
33
+ ```
34
+
35
+ To get state name form city or co-ordinates
36
+ ```ruby
37
+ Geolocalise.get_state("19.07598, 72.8776559")
38
+ #=> "Maharashtra"
39
+
40
+ Geolocalise.get_state("Mumbai")
41
+ #=> "Maharashtra"
42
+ ```
43
+ To get country name form city or co-ordinates
44
+ ```ruby
45
+ Geolocalise.get_country("19.07598, 72.8776559")
46
+ #=> "India"
47
+
48
+ Geolocalise.get_country("Delhi")
49
+ #=> "India"
50
+ ```
30
51
 
31
- 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).
52
+ To get country code form city or co-ordinates
53
+ ```ruby
54
+ Geolocalise.get_country_code("19.0759837, 72.8776559")
55
+ #=> "IN"
56
+
57
+ Geolocalise.get_country_code("New York")
58
+ #=> "US"
59
+ ```
60
+ To get postal pode form city or co-ordinates
61
+ ```ruby
62
+ Geolocalise.get_postal_code("19.07598, 72.8776559")
63
+ #=> "400070"
64
+
65
+ Geolocalise.get_postal_code("New York")
66
+ #=>"10007"
67
+ ```
32
68
 
33
69
  ## Contributing
34
70
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/twinks14/geolocalise. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
71
+ Bug reports and pull requests are welcome on GitHub at https://github.com/twinks14/geolocalise.
72
+
73
+ This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
74
 
37
75
 
38
76
  ## License
39
77
 
40
78
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
79
 
80
+ :pray:
Binary file
@@ -6,10 +6,10 @@ require 'geolocalise/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "geolocalise"
8
8
  spec.version = Geolocalise::VERSION
9
- spec.authors = ["Twinkal Savani"]
9
+ spec.authors = ["twinks14"]
10
10
  spec.email = ["svnsavani0@gmail.com"]
11
11
 
12
- spec.summary = %q{A Gem to get city, state, country, contry code and postal code.}
12
+ spec.summary = %q{Geolocalise use for get city, state, country, contry code and postal code based on co-ordinates or string(city,state,country name).}
13
13
  spec.description = %q{}
14
14
  spec.homepage = "https://github.com/twinks14/geolocalise"
15
15
  spec.license = "MIT"
@@ -27,8 +27,8 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.add_development_dependency "bundler", "~> 1.10"
31
- spec.add_development_dependency "rake", "~> 10.0"
32
- spec.add_development_dependency "rspec"
33
- spec.add_development_dependency "geocoder", "~> 1.2.9"
30
+ spec.add_development_dependency "bundler", "~> 1.17.3"
31
+ spec.add_development_dependency "rake", "~> 12.3.2"
32
+ spec.add_development_dependency "rspec", "~> 3.8"
33
+ spec.add_development_dependency "geocoder", "~> 1.5.0"
34
34
  end
@@ -1,3 +1,3 @@
1
1
  module Geolocalise
2
- VERSION = "0.1.1"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geolocalise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Twinkal Savani
7
+ - twinks14
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-08 00:00:00.000000000 Z
11
+ date: 2018-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.10'
19
+ version: 1.17.3
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.10'
26
+ version: 1.17.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 12.3.2
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: 12.3.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '3.8'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '3.8'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: geocoder
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.9
61
+ version: 1.5.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2.9
68
+ version: 1.5.0
69
69
  description: ''
70
70
  email:
71
71
  - svnsavani0@gmail.com
@@ -83,6 +83,7 @@ files:
83
83
  - Rakefile
84
84
  - bin/console
85
85
  - bin/setup
86
+ - geolocalise-0.1.0.gem
86
87
  - geolocalise.gemspec
87
88
  - lib/geolocalise.rb
88
89
  - lib/geolocalise/version.rb
@@ -106,8 +107,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
107
  version: '0'
107
108
  requirements: []
108
109
  rubyforge_project:
109
- rubygems_version: 2.2.2
110
+ rubygems_version: 2.7.3
110
111
  signing_key:
111
112
  specification_version: 4
112
- summary: A Gem to get city, state, country, contry code and postal code.
113
+ summary: Geolocalise use for get city, state, country, contry code and postal code
114
+ based on co-ordinates or string(city,state,country name).
113
115
  test_files: []