intermat-scrape 0.3.0 → 0.4.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 +6 -4
- data/lib/intermat_scrape/version.rb +1 -1
- data/lib/intermat_scrape/wrestler.rb +1 -0
- 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: eb56fb3914624a24706953d1d4ad21c84b438a239fa05f12281ced4f4a8fa128
|
4
|
+
data.tar.gz: 1b1e983a456fb0ca36fe6c52b8c921b3180eed3abe6a1de79f882864933641e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b536940cc8483bfa242db037abcad5a9687e49f51f1acfbffa0e1066b9e2f09e003eb8596e43ed9495ab2fee558a51599d24feaf3cfabdc16d1ddf6d570170d7
|
7
|
+
data.tar.gz: e0e5433850d27206d9b93695848b46605a32127d7bd756056de80d7850911644ecc02b293befbfa164d20b4bd3b226cc2c5a7dedfc6aba3dbf37847c4775d4da
|
data/lib/intermat_scrape/cli.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
class IntermatScrape::Cli
|
2
2
|
def load_data
|
3
3
|
IntermatScrape::WeightClass.create_weight_classes
|
4
|
-
IntermatScrape::WeightClass.all.each do |weight_class|
|
5
|
-
|
6
|
-
end
|
4
|
+
# IntermatScrape::WeightClass.all.each do |weight_class|
|
5
|
+
# IntermatScrape::Scraper.create_wrestlers(weight_class)
|
6
|
+
# end
|
7
7
|
end
|
8
8
|
|
9
9
|
def flow
|
@@ -18,7 +18,6 @@ class IntermatScrape::Cli
|
|
18
18
|
puts 'Welcome to IntermatScrape, a way to delve into the top 20 ranked'
|
19
19
|
puts ' NCAA wrestlers.'
|
20
20
|
puts ''
|
21
|
-
puts ' LOADING...'
|
22
21
|
puts ''
|
23
22
|
puts '-----------------------------------------------------------------'
|
24
23
|
end
|
@@ -48,6 +47,9 @@ class IntermatScrape::Cli
|
|
48
47
|
input = gets.strip
|
49
48
|
end
|
50
49
|
|
50
|
+
weight = IntermatScrape::WeightClass.find_by_weight(input)
|
51
|
+
IntermatScrape::Scraper.create_wrestlers(weight) if weight.wrestlers.empty?
|
52
|
+
|
51
53
|
puts ''
|
52
54
|
puts 'Type one of the following commands:'
|
53
55
|
puts 'rankings(r):'.colorize(:light_cyan).concat(' show top 20 wrestlers')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intermat-scrape
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Dawson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|