best_companies 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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/best_companies/cli.rb +8 -8
- data/lib/best_companies/company.rb +1 -1
- data/lib/best_companies/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b399b9bb0306d0a0e281039a274daa2814428d84204541203cc9c99e4d52b216
|
|
4
|
+
data.tar.gz: f06d05a2e196c93d3caaf10f2a899b17bd1537fc576c5826752d9e321a19a1f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c8083713bfe2a61915454c24b3b3015a2a3020d3b5dd65ebcae262621ad3dedf2f337443dc9cd88aead4459c5ed2e7f010d42df5b9cb0aabfdb9b23b40fc448
|
|
7
|
+
data.tar.gz: f0dad27447d426f41353b7c31e70a894196b0405e3f88b35c0be791cfac59933db1b52d07ee29f1c18dacce0e7c17b17015b60bc9ce9c893e4ed9eccc183dfba
|
data/Gemfile.lock
CHANGED
data/lib/best_companies/cli.rb
CHANGED
|
@@ -36,13 +36,13 @@ class BestCompanies::CLI
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def self.ask_user
|
|
39
|
-
puts "To see the entire list of Best Companies please type ".colorize(:light_blue) + "see list"
|
|
40
|
-
puts "To enter in a custom range of Best Companies between 1-100, type the range in number-number format. ".colorize(:light_blue) + "For Ex: 15-20"
|
|
41
|
-
puts "To view the ratings and awards for a company, enter the company rank (1-100) ".colorize(:light_blue) + "For Ex: 'rank 5'"
|
|
42
|
-
puts "To view best companies by state or industry, type ".colorize(:light_blue) + "see states"
|
|
43
|
-
puts "To view your saved companies, type ".colorize(:light_blue) + "archive"
|
|
44
|
-
puts "To switch years please type ".colorize(:light_blue) + "2017 or 2018"
|
|
45
|
-
puts "To exit type ".colorize(:light_blue) + "exit"
|
|
39
|
+
puts "To see the entire list of Best Companies please type ".colorize(:light_blue) + "see list"
|
|
40
|
+
puts "To enter in a custom range of Best Companies between 1-100, type the range in number-number format. ".colorize(:light_blue) + "For Ex: 15-20"
|
|
41
|
+
puts "To view the ratings and awards for a company, enter the company rank (1-100) ".colorize(:light_blue) + "For Ex: 'rank 5'"
|
|
42
|
+
puts "To view best companies by state or industry, type ".colorize(:light_blue) + "see states" + " or ".colorize(:light_blue) + "see industries"
|
|
43
|
+
puts "To view your saved companies, type ".colorize(:light_blue) + "archive"
|
|
44
|
+
puts "To switch years please type ".colorize(:light_blue) + "2017 or 2018"
|
|
45
|
+
puts "To exit type ".colorize(:light_blue) + "exit"
|
|
46
46
|
puts "------------------------------------------------"
|
|
47
47
|
|
|
48
48
|
input = gets.strip.to_s
|
|
@@ -92,7 +92,7 @@ class BestCompanies::CLI
|
|
|
92
92
|
self.see_company(BestCompanies::Company.all[(input.to_i)-1])
|
|
93
93
|
BestCompanies::Company.all[(input.to_i)-1].save?
|
|
94
94
|
puts "------------------------------------------------"
|
|
95
|
-
|
|
95
|
+
else
|
|
96
96
|
self.add_ratings_and_awards(input)
|
|
97
97
|
end
|
|
98
98
|
elsif input.match(/[A-Za-z]/)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: best_companies
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yosa Yon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-02-
|
|
11
|
+
date: 2018-02-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|