hello_ruby_cli 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -1
- data/lib/hello_ruby_cli/company.rb +91 -0
- data/lib/hello_ruby_cli/version.rb +1 -1
- data/lib/hello_ruby_cli.rb +8 -9
- metadata +3 -3
- data/sig/hello_ruby_cli.rbs +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 555ee5b7b2a2c7e9a04c8151332970a97bbacaa67f06e7bf3fdd8a0287710a5c
|
4
|
+
data.tar.gz: 447d35162b16e8360c44a8d4fa8ab60d5434a1456f21d3b90bb67510d38e7d7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 967932ce5275a9cd4224146fa75b3b9a756a21ea83e484c167f28ce8193dbed1c6fbca7273eee4ee9b28dc66ea51a5b66cf996d2d3b0884508b7f9230ed72c30
|
7
|
+
data.tar.gz: e8e688b0c7011757ed68464681adf3da28f9f03a5f6de8a3ae39639325bb2d419b4b744e122ba5a1a7208b0ac561c9f061797df313c0c67dc747c248e5c592b6
|
data/.rubocop.yml
CHANGED
@@ -0,0 +1,91 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Get Company info
|
4
|
+
class Company
|
5
|
+
COMPANIES = ['Braincommerce', 'MadxCompany', 'INNORIX', 'The Ventures Lab'].freeze
|
6
|
+
|
7
|
+
attr_accessor :company_name
|
8
|
+
|
9
|
+
def initialize(company_name)
|
10
|
+
@company_name = company_name.downcase.gsub(' ', '_')
|
11
|
+
end
|
12
|
+
|
13
|
+
def show
|
14
|
+
public_send(@company_name)
|
15
|
+
end
|
16
|
+
|
17
|
+
def braincommerce
|
18
|
+
"
|
19
|
+
___ ___ _____ _ _ _ ___ _____ ___ ___ ___ ___
|
20
|
+
( _`\\ | _`\\ ( _ )(_)( ) ( )( _`\\ ( _ )/'\\_/`\\/'\\_/`\\( _`\\ | _`\\ ( _`\\ ( _`\\
|
21
|
+
| (_) )| (_) )| (_) || || `\\| || ( (_)| ( ) || || || (_(_)| (_) )| ( (_)| (_(_)
|
22
|
+
| _ <'| , / | _ || || , ` || | _ | | | || (_) || (_) || _)_ | , / | | _ | _)_
|
23
|
+
| (_) )| |\\ \\ | | | || || |`\\ || (_( )| (_) || | | || | | || (_( )| |\\ \\ | (_( )| (_( )
|
24
|
+
(____/'(_) (_)(_) (_)(_)(_) (_)(____/'(_____)(_) (_)(_) (_)(____/'(_) (_)(____/'(____/'
|
25
|
+
|
26
|
+
__ __ __ __ __ ___ _ _
|
27
|
+
/'__`\\ /' _`\\ /'__`\\ /'__`\\ /' _`\\ /'_ ) /' \\/' )
|
28
|
+
(_) ) )| ( ) |(_) ) )(_) ) ) | ( ) |(_)_) | (_/\\__/'
|
29
|
+
/' / | | | | /' / /' / | | | | _(_ <
|
30
|
+
/' /( )| (_) | /' /( ) /' /( ) _ | (_) |( )_) |
|
31
|
+
(_____/'`\\___/'(_____/'(_____/'(_)`\\___/'`\\____)
|
32
|
+
"
|
33
|
+
end
|
34
|
+
|
35
|
+
def madx_company
|
36
|
+
"
|
37
|
+
_____ ___ _ _ ___ _____ ___ _____ _ _ _ _
|
38
|
+
/'\\_/`\\( _ )( _`\\ ( ) ( )( _`\\ ( _ )/'\\_/`\\( _`\\ ( _ )( ) ( )( ) ( )
|
39
|
+
| || (_) || | ) |`\\`\\/'/'| ( (_)| ( ) || || |_) )| (_) || `\\| |`\\`\\_/'/'
|
40
|
+
| (_) || _ || | | ) > < | | _ | | | || (_) || ,__/'| _ || , ` | `\\ /'
|
41
|
+
| | | || | | || |_) | /'/\\`\\ | (_( )| (_) || | | || | | | | || |`\\ | | |
|
42
|
+
(_) (_)(_) (_)(____/'(_) (_)(____/'(_____)(_) (_)(_) (_) (_)(_) (_) (_)
|
43
|
+
|
44
|
+
|
45
|
+
__ __ _ __ __ _____ _ _ __ __ __ _ _ __
|
46
|
+
/'__`\\ /' _`\\ /' ) /'_ `\\ /' _`\\ ( ___) /' \\/' ) /'__`\\ /' _`\\ /'__`\\ /' ) /' ) /'__`\\
|
47
|
+
(_) ) )| ( ) |(_, |( (_) | | ( ) || (__ (_/\\__/' (_) ) )| ( ) |(_) ) )(_, | (_, |(_) ) )
|
48
|
+
/' / | | | | | | \\__, | | | | ||___ `\\ /' / | | | | /' / | | | | /' /
|
49
|
+
/' /( )| (_) | | | | | _ | (_) |( )_) | /' /( )| (_) | /' /( ) | | _ | | /' /( )
|
50
|
+
(_____/'`\\___/' (_) (_)(_)`\\___/'`\\___/' (_____/'`\\___/'(_____/' (_)(_) (_)(_____/'
|
51
|
+
"
|
52
|
+
end
|
53
|
+
|
54
|
+
def innorix
|
55
|
+
"
|
56
|
+
_ _ _ _ _ _____ ___ _ _ _
|
57
|
+
(_)( ) ( )( ) ( )( _ )| _`\\ (_)( ) ( )
|
58
|
+
| || `\\| || `\\| || ( ) || (_) )| |`\\`\\/'/'
|
59
|
+
| || , ` || , ` || | | || , / | | > <
|
60
|
+
| || |`\\ || |`\\ || (_) || |\\ \\ | | /'/\\`\\
|
61
|
+
(_)(_) (_)(_) (_)(_____)(_) (_)(_)(_) (_)
|
62
|
+
|
63
|
+
|
64
|
+
__ __ _ _ __ ___ _ _ __ __ _ __ __ _
|
65
|
+
/'__`\\ /' _`\\ /' ) /'_`\\ /' _`\\ /'_ ) /' \\/' ) /'__`\\ /' _`\\ /' ) /'_ `\\ /' _`\\ /' )
|
66
|
+
(_) ) )| ( ) |(_, |( (_) ) | ( ) |(_)_) | (_/\\__/' (_) ) )| ( ) |(_, |( (_) | | ( ) |(_, |
|
67
|
+
/' / | | | | | | > _ <' | | | | _(_ < /' / | | | | | | \\__, | | | | | | |
|
68
|
+
/' /( )| (_) | | |( (_) ) _ | (_) |( )_) | /' /( )| (_) | | | | | _ | (_) | | |
|
69
|
+
(_____/'`\\___/' (_)`\\___/'(_)`\\___/'`\\____) (_____/'`\\___/' (_) (_)(_)`\\___/' (_)
|
70
|
+
"
|
71
|
+
end
|
72
|
+
|
73
|
+
def the_ventures_lab
|
74
|
+
"
|
75
|
+
_____ _ _ ___ _ _ ___ _ _ _____ _ _ ___ ___ ___ _ _____ ___
|
76
|
+
(_ _)( ) ( )( _`\\ ( ) ( )( _`\\ ( ) ( )(_ _)( ) ( )| _`\\ ( _`\\ ( _`\\ ( ) ( _ )( _`\\
|
77
|
+
| | | |_| || (_(_) | | | || (_(_)| `\\| | | | | | | || (_) )| (_(_)| (_(_) | | | (_) || (_) )
|
78
|
+
| | | _ || _)_ | | | || _)_ | , ` | | | | | | || , / | _)_ `\\__ \\ | | _ | _ || _ <'
|
79
|
+
| | | | | || (_( ) | \\_/ || (_( )| |`\\ | | | | (_) || |\\ \\ | (_( )( )_) | | |_( )| | | || (_) )
|
80
|
+
(_) (_) (_)(____/' `\\___/'(____/'(_) (_) (_) (_____)(_) (_)(____/'`\\____) (____/'(_) (_)(____/'
|
81
|
+
|
82
|
+
|
83
|
+
__ __ _ _ _ __ _ _ _ __ __ _ _____ _ __
|
84
|
+
/'__`\\ /' _`\\ /' )( )( ) /' _`\\ /' ) /' \\/' ) /'__`\\ /' _`\\ /' )( ___) /' )/' _`\\
|
85
|
+
(_) ) )| ( ) |(_, || || | | ( ) |(_, | (_/\\__/' (_) ) )| ( ) |(_, || (__ (_, || ( ) |
|
86
|
+
/' / | | | | | || || |_ | | | | | | /' / | | | | | || _ `\\ | || | | |
|
87
|
+
/' /( )| (_) | | |(__ ,__) _ | (_) | | | /' /( )| (_) | | || (_) | _ | || (_) |
|
88
|
+
(_____/'`\\___/' (_) (_) (_)`\\___/' (_) (_____/'`\\___/' (_)`\\___/'(_) (_)`\\___/'
|
89
|
+
"
|
90
|
+
end
|
91
|
+
end
|
data/lib/hello_ruby_cli.rb
CHANGED
@@ -1,21 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative 'hello_ruby_cli/version'
|
4
|
+
|
5
|
+
require 'hello_ruby_cli/company'
|
4
6
|
require 'thor'
|
7
|
+
require 'tty-prompt'
|
5
8
|
|
6
9
|
module HelloRubyCli
|
7
|
-
class Error < StandardError; end
|
8
|
-
|
9
10
|
# Main Cli Class
|
10
11
|
class CLI < Thor
|
11
|
-
desc '
|
12
|
+
desc 'career_history [company_name]', 'showing career history'
|
12
13
|
|
13
|
-
def
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
puts 'say my name'
|
18
|
-
end
|
14
|
+
def career_history
|
15
|
+
prompt = TTY::Prompt.new
|
16
|
+
company_name = prompt.select('Choose company?', Company::COMPANIES)
|
17
|
+
puts company_name.empty? ? 'no company name' : Company.new(company_name).show
|
19
18
|
end
|
20
19
|
end
|
21
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hello_ruby_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JoungSik
|
@@ -41,8 +41,8 @@ files:
|
|
41
41
|
- exe/hello_ruby_cli
|
42
42
|
- hello_ruby_cli.gemspec
|
43
43
|
- lib/hello_ruby_cli.rb
|
44
|
+
- lib/hello_ruby_cli/company.rb
|
44
45
|
- lib/hello_ruby_cli/version.rb
|
45
|
-
- sig/hello_ruby_cli.rbs
|
46
46
|
homepage: https://github.com/joungsik/hello_ruby_cli
|
47
47
|
licenses:
|
48
48
|
- MIT
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
|
-
rubygems_version: 3.
|
68
|
+
rubygems_version: 3.4.10
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: test hello world cli
|
data/sig/hello_ruby_cli.rbs
DELETED