codic_caller 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -8
- data/codic_caller.gemspec +1 -0
- data/exe/codic +12 -1
- data/lib/codic_caller/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f4c197676915b8ae4895141ae649d443216b6d2
|
4
|
+
data.tar.gz: ad75e566c065bd9c28637ba158417c07cabdb16e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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/
|
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
|
-
|
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)
|
data/lib/codic_caller/version.rb
CHANGED
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.
|
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
|