intermat-scrape 0.2.0 → 0.3.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 +4 -4
- data/lib/intermat_scrape/cli.rb +4 -8
- data/lib/intermat_scrape/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7442077dc9c950464403e3377bccc5bf320677ed7a7ea2f61a6d1e8ae15ea23
|
4
|
+
data.tar.gz: 1a90ae164f38daa6c843885fcfd053b8ce1c738cd917ab057f735840926680c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d90d9676eb789ca8f2c7d9dbe049dc092ba63fa3019773573b65c9d917fd6cef3bf8f8ff431a5679adc39b1db91a9a8138b973b73485c499cd7b3cfbd7e1510
|
7
|
+
data.tar.gz: bf4378e2b9c42c0524d44a36826b18ac3f18a85910c34a73ef062257e87b769eb4de9696826d53adf1abd980a49e1d06fb8c9a7404c02ced5c641aecb4fd5594
|
data/lib/intermat_scrape/cli.rb
CHANGED
@@ -26,11 +26,6 @@ class IntermatScrape::Cli
|
|
26
26
|
def start
|
27
27
|
if weight_class = choose_weight
|
28
28
|
choose_rank(weight_class)
|
29
|
-
if restart?
|
30
|
-
start
|
31
|
-
else
|
32
|
-
choose_rank(weight_class)
|
33
|
-
end
|
34
29
|
end
|
35
30
|
end
|
36
31
|
|
@@ -93,6 +88,7 @@ class IntermatScrape::Cli
|
|
93
88
|
case command
|
94
89
|
when '1'..'20'
|
95
90
|
weight_class.get_wrestler_by_rank(command).to_s
|
91
|
+
restart(weight_class)
|
96
92
|
when 'back', 'b'
|
97
93
|
start
|
98
94
|
when 'exit'
|
@@ -100,7 +96,7 @@ class IntermatScrape::Cli
|
|
100
96
|
end
|
101
97
|
end
|
102
98
|
|
103
|
-
def restart
|
99
|
+
def restart(weight_class)
|
104
100
|
puts ''
|
105
101
|
puts 'What would you like to do now?'
|
106
102
|
puts 'view(v):'.colorize(:light_cyan).concat(' view another wrestler from this weight class')
|
@@ -114,9 +110,9 @@ class IntermatScrape::Cli
|
|
114
110
|
end
|
115
111
|
case command
|
116
112
|
when 'view', 'v'
|
117
|
-
|
113
|
+
choose_rank(weight_class)
|
118
114
|
when 'back', 'b'
|
119
|
-
|
115
|
+
start
|
120
116
|
when 'exit'
|
121
117
|
quit_scraper
|
122
118
|
end
|