codic_caller 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 40b492ff1ab664a8b11979c57d538e7249706e75
4
- data.tar.gz: c3993715d0a2e1308abe73e715edf3fdcb7aea80
3
+ metadata.gz: 8f4c197676915b8ae4895141ae649d443216b6d2
4
+ data.tar.gz: ad75e566c065bd9c28637ba158417c07cabdb16e
5
5
  SHA512:
6
- metadata.gz: 10873a818d432bbe88d9d2b0702c1d1cd9b4d63f8af87cf15ff5914747ca5690cc5e413275658a0bd0fbd9c97d61176320f898cde51f8c38443ba3960780b381
7
- data.tar.gz: 5e863af757ad0970c5867337a6eba4c951d6ee69ac344094b39abe75b486546f6054cb42b449b5a67ade6101757cc6a529c429291abec6c189dded62c5448ad5
6
+ metadata.gz: 927f8d35c8383f94ac6bdb4d552de2dd8799ede4be1203eaf616d5eda401744171d1c36a6290e7de301afb525b2351a6759edcbdb34d389c68d38b117f56441a
7
+ data.tar.gz: 4865ab6dfb8a3298b8cec6bc3bce8505cd151e4512701eb18b73062680545881f1a93d4f314b29f6fd2f3c07b2b2d0b11641c0614ad83331e33c72619f5aa633
data/README.md CHANGED
@@ -1,9 +1,3 @@
1
- # CodicCaller
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/codic_caller`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
1
  ## Installation
8
2
 
9
3
  Add this line to your application's Gemfile:
@@ -22,7 +16,9 @@ Or install it yourself as:
22
16
 
23
17
  ## Usage
24
18
 
25
- TODO: Write usage instructions here
19
+ ```bash
20
+ $ codic t 認証
21
+ ```
26
22
 
27
23
  ## Development
28
24
 
@@ -32,7 +28,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
28
 
33
29
  ## Contributing
34
30
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/codic_caller. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/haito/codic_caller. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
32
 
37
33
 
38
34
  ## License
data/codic_caller.gemspec CHANGED
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "rspec"
27
27
  spec.add_development_dependency 'rubocop'
28
28
  spec.add_development_dependency 'pry-byebug'
29
+ spec.add_runtime_dependency 'thor'
29
30
  spec.add_runtime_dependency 'faraday'
30
31
  spec.add_runtime_dependency 'faraday_middleware'
31
32
  end
data/exe/codic CHANGED
@@ -1,4 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'codic_caller'
3
+ require 'thor'
3
4
 
4
- p CodicCaller::Codic.new.translate(ARGV.first)
5
+ class Codic < Thor
6
+
7
+ desc '(translate|t) text', 'translation basic pattern using default project'
8
+ def translate(text)
9
+ p CodicCaller::Codic.new.translate(text)
10
+ end
11
+
12
+ map 't' => 'translate'
13
+ end
14
+
15
+ Codic.start(ARGV)
@@ -1,3 +1,3 @@
1
1
  module CodicCaller
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codic_caller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HaiTo
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: thor
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: faraday
85
99
  requirement: !ruby/object:Gem::Requirement