kokki 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -0
  3. data/exe/kokki +17 -0
  4. data/lib/kokki/version.rb +1 -1
  5. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cd7e44e732d1879a894904016fe02838d013ecfbceff687d33a6778d42b09a5
4
- data.tar.gz: 6f4055a63221e0d307715bae5135454bea0b2a0560e7deb359be087bfd328cd1
3
+ metadata.gz: b8ba825ca1cc842f7f6e6e832122f787a87006008dae07ae1474836358e5efcb
4
+ data.tar.gz: 60b4e83c2e3af33773e478ce48537bac9d9c0b4b1eb91a4043c550282fc7e377
5
5
  SHA512:
6
- metadata.gz: 9782bcc594671ee16f5a5283d646988c33f2a33260629113288f4f7be17d9bfa1ec746a45847b9a43b02e354d23491b6c3bd04098a6def938b4fc96aaa0a0160
7
- data.tar.gz: b36d9ed35c10f5534e0a547f08c729f5f5c686fd9c5faf27ff7016f6f5b4f01560f4be3807b98926fe3516c4e5ab2f07c79de8f987e3ea7bb27b73e537013a54
6
+ metadata.gz: 878baf28b473bca015f3e13732b24b1f4d2d5ac9d91e3f513d6f8d8c6081cb1df35d0b710a7169ff6eaa60e137ce0116f125a7e53f0e372a7616e49829319e83
7
+ data.tar.gz: c566a4284612228afeee8010126e514bfbc910d76c8427c3e7d803864bbc6757c9fa949574e1df01b32a5107de893010a7542014ee6367ea50929b8298238aa1
data/README.md CHANGED
@@ -32,3 +32,12 @@ rescue Kokki::InvalidInputError => e
32
32
  # => invalid input: test
33
33
  end
34
34
  ```
35
+
36
+ ### CLI
37
+
38
+ ```bash
39
+ $ kokki TW
40
+ 🇹🇼
41
+ $ kokki japan
42
+ 🇯🇵
43
+ ```
data/exe/kokki ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "kokki"
6
+
7
+ input = ARGV.first
8
+
9
+ if input
10
+ begin
11
+ puts Kokki.flagize(input)
12
+ rescue Kokki::InvalidInputError => e
13
+ puts e.message
14
+ end
15
+ else
16
+ puts "Input not found: plase give a word to convert."
17
+ end
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.1.0"
4
+ VERSION = "0.2.0"
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.1.0
4
+ version: 0.2.0
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-18 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -111,7 +111,8 @@ dependencies:
111
111
  description: Convert a country name / code & IP address to an emoji flag
112
112
  email:
113
113
  - manabu.niseki@gmail.com
114
- executables: []
114
+ executables:
115
+ - kokki
115
116
  extensions: []
116
117
  extra_rdoc_files: []
117
118
  files:
@@ -124,6 +125,7 @@ files:
124
125
  - Rakefile
125
126
  - bin/console
126
127
  - bin/setup
128
+ - exe/kokki
127
129
  - kokki.gemspec
128
130
  - lib/kokki.rb
129
131
  - lib/kokki/converter.rb