region_lookup 0.1.2 → 0.1.3
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 +4 -4
- data/README.md +15 -1
- data/lib/region_lookup/version.rb +1 -1
- data/region_lookup.gemspec +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f1edb79805e1803d6777e5894660baa19911c77d9f94431c19a482d81152ce0
|
|
4
|
+
data.tar.gz: a8a4126f839fbef2d6e3293525d5a4a729fc4ce3f06aef38fb59a46bdd4c5663
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f0f2fd9fc03ec299dd1776d0b8d1266dded3cb535993e6f041f250b9488e08a5efea2cc9657cbb4ddfa1b97b6081c535a3d0432375ff761e76fd0ef735ec8aa
|
|
7
|
+
data.tar.gz: e8df91294d69396a443e4b3c464a202860eac1ed9f87b4b4c57e89b0e2b23accc73738a5bfc030bdba82e53b32369dbf8f8cce58f21ae3de682d63a844f42b66
|
data/README.md
CHANGED
|
@@ -40,9 +40,15 @@ RegionLookup.states("PK")
|
|
|
40
40
|
|
|
41
41
|
To get list of cities of specific state
|
|
42
42
|
```ruby
|
|
43
|
-
RegionLookup.
|
|
43
|
+
RegionLookup.cities_based_on_state_name("PK", "Azad Kashmir")
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
To get list of cities of specific state
|
|
47
|
+
```ruby
|
|
48
|
+
RegionLookup.get_city("PK", "Lahore")
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
|
|
46
52
|
## Development
|
|
47
53
|
|
|
48
54
|
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.
|
|
@@ -56,3 +62,11 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
|
|
|
56
62
|
## Code of Conduct
|
|
57
63
|
|
|
58
64
|
Everyone interacting in the RegionLookup project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/region_lookup/blob/main/CODE_OF_CONDUCT.md).
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
## 🌍 Data Source Credits
|
|
68
|
+
This gem uses country, state, and city data from:
|
|
69
|
+
|
|
70
|
+
- [dr5hn/countries-states-cities-database](https://github.com/dr5hn/countries-states-cities-database)
|
|
71
|
+
|
|
72
|
+
Special thanks to [@dr5hn](https://github.com/dr5hn) for maintaining this comprehensive dataset.
|
data/region_lookup.gemspec
CHANGED
|
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
#spec.homepage = "TODO: Put your gem's website or public repo URL here."
|
|
17
17
|
spec.required_ruby_version = ">= 3.1.0"
|
|
18
|
+
spec.description = "Provides region-based data (countries, states, cities) using the open dataset from github.com/dr5hn/countries-states-cities-database."
|
|
18
19
|
|
|
19
20
|
# spec.metadata["homepage_uri"] = spec.homepage
|
|
20
21
|
# spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: region_lookup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maira Muneer
|
|
@@ -10,7 +10,8 @@ bindir: exe
|
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2025-06-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
13
|
+
description: Provides region-based data (countries, states, cities) using the open
|
|
14
|
+
dataset from github.com/dr5hn/countries-states-cities-database.
|
|
14
15
|
email:
|
|
15
16
|
- maira.muneer@itnoadevs.com
|
|
16
17
|
executables: []
|