postcode_gem 0.3.7 → 0.3.8

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: f59793a0d729602d03a6895b9fce374d2f89edde8a401b4e0ae7bb612e54b9f8
4
- data.tar.gz: 3dba1039d3be534036dc842614ed1334302dadfa0ba110d25f1a6bd460b73f25
3
+ metadata.gz: 0cbccb1683d859ebfaf71f7ac55e7f2b855f17d4ad81219c4ecc29f02fe194dd
4
+ data.tar.gz: '09d8345891920fa038a3ff246feed9ceb0ed9cee6f26eef36485c835a7ad83c3'
5
5
  SHA512:
6
- metadata.gz: 90cc5be8d5a81f9d73d2033d728a505fba638e3efc0bd9c099385393085d557029bf6d0970175e8b7bd179fd8b8f9250c30074b07758c8beac9c76c58130495f
7
- data.tar.gz: 1e37e5e92903ee5220b6201c4acc46d0701b6bb7ecac761300e406fec7007cc404a87a081aa4fc2faa418b722b509d56202ddca488b66c32f15a4bae6222ad02
6
+ metadata.gz: 6861b20678fb4c8de88b2f566eba37f0c696d90d3f70cc6d5f0497a4ee5edb16899da9e6ff08d8073436473af8eadafb30fca49adf77304c7a1fca5a630b3d7a
7
+ data.tar.gz: 7a53b2487b63de8a2a4e74ddc24e33818b6f1e6807e029d30aeeaa01927753d7e72069779b89ddccc7dfe7b4b37988253d9e0de09de1dff72eea3d6c55323573
@@ -6,7 +6,7 @@ require "pry"
6
6
  module PostcodeGem
7
7
  attr_accessor :country, :city, :zipcode
8
8
  def output_zipcode
9
- @data = JSON.load(File.read('./data/postcode_areacode.json'))
9
+ @data = JSON.load(File.read("#{Dir.pwd}/data/postcode_areacode.json"))
10
10
  prompt = TTY::Prompt.new
11
11
  @country = prompt.select('Enter the country you want to select', %w(Vietnam England Japan))
12
12
  print "Enter the city or area code you want to search: "
@@ -35,4 +35,6 @@ class Show
35
35
  def call_result
36
36
  output_zipcode
37
37
  end
38
- end
38
+ end
39
+
40
+ Show.new.call_result
@@ -1,3 +1,3 @@
1
1
  module PostcodeGem
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postcode_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - PhuongTr1501