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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f31e5e4ba7fa402bb4a7a2d96ceba64122f5073cb5f0d034463dad87c8565b6f
4
- data.tar.gz: 968fb0b169a42e8e95c6984fbe4e4fba4058c71780955eba7830645a09c299e4
3
+ metadata.gz: 4f1edb79805e1803d6777e5894660baa19911c77d9f94431c19a482d81152ce0
4
+ data.tar.gz: a8a4126f839fbef2d6e3293525d5a4a729fc4ce3f06aef38fb59a46bdd4c5663
5
5
  SHA512:
6
- metadata.gz: 0ca9b1585dcb9e857e8273f4b652d7726d9eb917916c70c821c0e4a3567a7154fe155917635b0cafbb3c808d29bc674152c47b4bfe4e5cad0632e7a1f1237834
7
- data.tar.gz: 2c7159d066af41b493ea4cb9d1d3b12f909f9bddbead3bf53f8bad61cf48ed8b0c60d22aeaa275b0e6388a9c6e0d40caf175192eb57e8e6b35bd7374ee23e446
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.states("PK", "Azad Kashmir")
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RegionLookup
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -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.2
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: []