dezo 0.1.1 → 0.1.2

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: 5f38e2cd02580e47f917a241241f68877ca3831e39448b6a5e2a42095652e05a
4
- data.tar.gz: ecb261b9e8b2828b9b608910a45e7f9507fe333a46bef6386e7e689de59f7b57
3
+ metadata.gz: 251a8a90e88a9c43e38c7d95059435ffe34ede093195079f3f56cb9ad4529fe5
4
+ data.tar.gz: f1256dcc2ec09739b8b2367bff60d0fcdf85cf43fa0280f42a364ad4cd5e784a
5
5
  SHA512:
6
- metadata.gz: 20a77b4b6384591e2acab26e4b8b30eed189f3dbf6bb96ccd406fdf283a65e2649f37bbe9b8a9692b87f184f2f7c15cdb25ab6735af12ad3a1220aabd3eef982
7
- data.tar.gz: 1ce909af4abddfd7959a5f51803bf3a22e46219f41f9cd1c5c3efbc36d383a0253edcf6cb74d8eaca965f714445b8395b7e77222f0093d35e4f7fa6cf4ff1f91
6
+ metadata.gz: 0f96c3d98e89c816d55a2dda9bdfbeecf3bd7c886a02db16715d451e3f63d38a1c39f8eae5f757035eb84f6da7c52bb8bcad07e35abfb9669edb8ae56d0c1317
7
+ data.tar.gz: 6027920ab29a3ecec510a99d95db5a49b60dbb82f34a5257870637c2719bce3ff5f54f5a915572080c6437ca70c2324a63cef0d1f88c2efdd77b9b797af2def6
@@ -1,29 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dezo (0.1.0)
5
- activesupport
6
- thor
4
+ dezo (0.1.1)
7
5
 
8
6
  GEM
9
7
  remote: https://rubygems.org/
10
8
  specs:
11
- activesupport (6.0.1)
12
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- zeitwerk (~> 2.2)
17
- concurrent-ruby (1.1.5)
18
- i18n (1.7.0)
19
- concurrent-ruby (~> 1.0)
20
- minitest (5.13.0)
21
9
  rake (10.5.0)
22
- thor (0.20.3)
23
- thread_safe (0.3.6)
24
- tzinfo (1.2.5)
25
- thread_safe (~> 0.1)
26
- zeitwerk (2.2.1)
27
10
 
28
11
  PLATFORMS
29
12
  ruby
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Dezo
2
- Dezo is a cli tool that transrates Japanese between English.
2
+ Dezo is a cli tool that transrates a word Japanese between English.
3
3
 
4
4
 
5
5
  ## Installation
data/exe/dezo CHANGED
@@ -2,12 +2,19 @@
2
2
 
3
3
  require "dezo"
4
4
 
5
- loop do
6
- print "word> "
7
- word = gets.chomp
8
- #word = Word.new
5
+ if ARGV.present?
6
+ words = ARGV
7
+ words.each do |word|
8
+ Dezo.search(word)
9
+ end
10
+ else
11
+ loop do
12
+ print "word> "
13
+ word = STDIN.gets.chomp
14
+ #word = Word.new
9
15
 
10
- break if word === "Q"
11
- next if word == ""
12
- Dezo.search(word)
16
+ break if word === "Q"
17
+ next if word == ""
18
+ Dezo.search(word)
19
+ end
13
20
  end
@@ -1,3 +1,3 @@
1
1
  module Dezo
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dezo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuma Ishikawa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-04 00:00:00.000000000 Z
11
+ date: 2019-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler