postcode_gem 0.3.6 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b00375de3e1473e9331437c2d267a7cf5a46e20f07c4dbc13612c14eaa73781
4
- data.tar.gz: cb8371b43f62e7808d3c61245adb45798eda618e940b437fb3296b61c14977d9
3
+ metadata.gz: 4103a9ac1d9dcc70aa0c0d111c23b772e6f0541db4e222bb562599f94c2f036b
4
+ data.tar.gz: 9ff7c7a5df3079a7cd4ad0950d2d3bb2f20950d3662c19bc6535337ac3e50fa3
5
5
  SHA512:
6
- metadata.gz: 28b9128bcb9a9063abb103c2115ee3bb9445b7b3452643389181dcdad9f6615f13d1df34f3750c29944c2b66e9095ae266b4fb3a029bb05be83ae7f579d7b7ea
7
- data.tar.gz: a8bad1ab419432c941151d33a10770926643e97de9adfe975bc48577ad9ad1c1fb5563de81822ac12ace0e83f80537dd12e67cfdbfa0349cce9ee99de84f5f54
6
+ metadata.gz: a6d945c9c8621d932ff4bab86039308fbbaee42ca2deba2dd39a2603bd8ee87e552a51cbb484943bcf13bbdb2c8f50798d70d904c27548c578fbdac55f117d84
7
+ data.tar.gz: a8266f596d8a1a847c6c2b63105da548924fd9ee4937ace9b48a2e343eeb9c1b3a45611bc1c51d87a7656915343e0b6f907bf6829c013444567b879f9501e3c5
@@ -1,4 +1,5 @@
1
1
  require_relative '../lib/postcode_gem/version'
2
+ require_relative '../lib/postcode_gem/postcode_areacode'
2
3
  require "json"
3
4
  require "tty-prompt"
4
5
  require "pry"
@@ -6,7 +7,7 @@ require "pry"
6
7
  module PostcodeGem
7
8
  attr_accessor :country, :city, :zipcode
8
9
  def output_zipcode
9
- @data = JSON.load(File.read('./data/postcode_areacode.json'))
10
+ @data = PostcodeAreacode::DATA
10
11
  prompt = TTY::Prompt.new
11
12
  @country = prompt.select('Enter the country you want to select', %w(Vietnam England Japan))
12
13
  print "Enter the city or area code you want to search: "
@@ -36,5 +37,4 @@ class Show
36
37
  output_zipcode
37
38
  end
38
39
  end
39
- a = Show.new.call_result
40
- puts a
40
+
@@ -1,3 +1,3 @@
1
1
  module PostcodeGem
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.11"
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.6
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - PhuongTr1501