hello_ruby_cli 0.1.1 → 0.2.0

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: 04a18a2c8e80bb9f1f3300bfd6ffb834523ed7768b2bdb32a731aafedc2acc15
4
- data.tar.gz: b5fc02db9f843173f6af4169d60cd69534959662e174df830e0d73a99002da91
3
+ metadata.gz: 555ee5b7b2a2c7e9a04c8151332970a97bbacaa67f06e7bf3fdd8a0287710a5c
4
+ data.tar.gz: 447d35162b16e8360c44a8d4fa8ab60d5434a1456f21d3b90bb67510d38e7d7b
5
5
  SHA512:
6
- metadata.gz: 364ffdd337013871790546bc0cd13ede46fec268d5de5920603ee05713ee6ee50c286753c1207eea84245bbafc8660e410b13d705820ee86dceb190d93e7a827
7
- data.tar.gz: e7f2076900b82d15d90fed8a991f54678c7dcf7a407809cd60af41f9f91c8ba640d5b3d0eac95a4dec245d357802200385f6f5dc276fca68b0a427618f6e9a71
6
+ metadata.gz: 967932ce5275a9cd4224146fa75b3b9a756a21ea83e484c167f28ce8193dbed1c6fbca7273eee4ee9b28dc66ea51a5b66cf996d2d3b0884508b7f9230ed72c30
7
+ data.tar.gz: e8e688b0c7011757ed68464681adf3da28f9f03a5f6de8a3ae39639325bb2d419b4b744e122ba5a1a7208b0ac561c9f061797df313c0c67dc747c248e5c592b6
data/.rubocop.yml CHANGED
@@ -1,4 +1,7 @@
1
1
  require: rubocop-rake
2
2
 
3
3
  AllCops:
4
- SuggestExtensions: false
4
+ SuggestExtensions: false
5
+
6
+ Metrics/MethodLength:
7
+ Max: 20
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HelloRubyCli
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.0'
5
5
  end
@@ -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 'hello [name]', 'say my name'
12
+ desc 'career_history [company_name]', 'showing career history'
12
13
 
13
- def hello(name)
14
- if name == 'joungsik'
15
- puts 'you are goddamn right'
16
- else
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.1.1
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
@@ -1,4 +0,0 @@
1
- module HelloRubyCli
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end