kokki 0.2.1 → 0.2.2

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: efe9d3dfac4b18b97849891ebad58d847f7cf7aeb04202bccd75b8995e79a0e6
4
- data.tar.gz: f86ad67ee03db20cbb7464df1c6583b164e90a066adcc15233623b97265c33c3
3
+ metadata.gz: 3da23aba8c12bb8f3d0088ba298a6ff89f36eac9dc15096a186fc1a9db532ecb
4
+ data.tar.gz: 67ceca8f92a7c0cd5c98f18d3a1fca90c59f36ee76777e1e82ea84818d91cc00
5
5
  SHA512:
6
- metadata.gz: 0db03b7b48c23bd2f8761e57ceb69ea77615c702e758549ff69727c7062a614cb98f52ffef33c59edf1fc8914df18abce06d06e61b897b03a427a63878e30304
7
- data.tar.gz: 7b72a3a51ecf1c13f029be4cd4a6d66cf5266951fc41e7d427bb604bac223001402e60f29f9df99759ae59e39804e2b8686e05c0938d298f82ca21e7895b88a2
6
+ metadata.gz: c1a216dea356b7c62e7863158ba2171ea25730ac0e74ea37da37ba4d21f449b96de11f3093fee502fc9867dcc8b250fff1b6228bffc0360e970dbc31b7acb645
7
+ data.tar.gz: d53903b8f416378c618cf051a291d2b1ae4b4ed0e12cee4159ac3b91578d7b0c217ba0efb27bb23e093b9e2bf3ab78f594d7409146e524607d72465c6dcc4b94
data/lib/kokki/cli.rb CHANGED
@@ -5,7 +5,7 @@ module Kokki
5
5
  def self.start(input)
6
6
  if input
7
7
  begin
8
- puts Kokki.flagize(input.chomp)
8
+ print Kokki.flagize(input.chomp)
9
9
  rescue Kokki::InvalidInputError => e
10
10
  puts e.message
11
11
  end
@@ -16,7 +16,7 @@ module Kokki
16
16
  def country_code
17
17
  @country_code ||=
18
18
  [].tap do |out|
19
- out << Geocoder.search(address)&.first&.country
19
+ out << Geocoder.search(address)&.first&.country_code&.upcase
20
20
  rescue Geocoder::Error => _
21
21
  out << nil
22
22
  end.first
data/lib/kokki/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kokki
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kokki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2019-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler