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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46bb58c54a25f638128a128fa1d029e4d24e77098badc9b00c7fb901734ae1e7
4
- data.tar.gz: 7e6d63cbf1e1b1168f9a74ae58936c97b37604e1cc9b75a2d70162325cbc7736
3
+ metadata.gz: c7442077dc9c950464403e3377bccc5bf320677ed7a7ea2f61a6d1e8ae15ea23
4
+ data.tar.gz: 1a90ae164f38daa6c843885fcfd053b8ce1c738cd917ab057f735840926680c8
5
5
  SHA512:
6
- metadata.gz: df295d8ecbaf4507e6a803a2c1b8fa0a5c16b8d2f690381a7768f367c38ce21d558c800ede8c847d0d191fdd01b6d12f71463c946e927564c64ed7ddf0331d01
7
- data.tar.gz: 735a8f516f488ecd719679ee811d0ffd1d636aee61908d7173383cafca9b88e1d21975008a3f4d11010962eb19a9268833304bb96c19a18d078c16b816f5009b
6
+ metadata.gz: 0d90d9676eb789ca8f2c7d9dbe049dc092ba63fa3019773573b65c9d917fd6cef3bf8f8ff431a5679adc39b1db91a9a8138b973b73485c499cd7b3cfbd7e1510
7
+ data.tar.gz: bf4378e2b9c42c0524d44a36826b18ac3f18a85910c34a73ef062257e87b769eb4de9696826d53adf1abd980a49e1d06fb8c9a7404c02ced5c641aecb4fd5594
@@ -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
- false
113
+ choose_rank(weight_class)
118
114
  when 'back', 'b'
119
- true
115
+ start
120
116
  when 'exit'
121
117
  quit_scraper
122
118
  end
@@ -1,3 +1,3 @@
1
1
  module IntermatScrape
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intermat-scrape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Dawson