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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7442077dc9c950464403e3377bccc5bf320677ed7a7ea2f61a6d1e8ae15ea23
4
- data.tar.gz: 1a90ae164f38daa6c843885fcfd053b8ce1c738cd917ab057f735840926680c8
3
+ metadata.gz: eb56fb3914624a24706953d1d4ad21c84b438a239fa05f12281ced4f4a8fa128
4
+ data.tar.gz: 1b1e983a456fb0ca36fe6c52b8c921b3180eed3abe6a1de79f882864933641e4
5
5
  SHA512:
6
- metadata.gz: 0d90d9676eb789ca8f2c7d9dbe049dc092ba63fa3019773573b65c9d917fd6cef3bf8f8ff431a5679adc39b1db91a9a8138b973b73485c499cd7b3cfbd7e1510
7
- data.tar.gz: bf4378e2b9c42c0524d44a36826b18ac3f18a85910c34a73ef062257e87b769eb4de9696826d53adf1abd980a49e1d06fb8c9a7404c02ced5c641aecb4fd5594
6
+ metadata.gz: b536940cc8483bfa242db037abcad5a9687e49f51f1acfbffa0e1066b9e2f09e003eb8596e43ed9495ab2fee558a51599d24feaf3cfabdc16d1ddf6d570170d7
7
+ data.tar.gz: e0e5433850d27206d9b93695848b46605a32127d7bd756056de80d7850911644ecc02b293befbfa164d20b4bd3b226cc2c5a7dedfc6aba3dbf37847c4775d4da
@@ -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
- IntermatScrape::Scraper.create_wrestlers(weight_class)
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')
@@ -1,3 +1,3 @@
1
1
  module IntermatScrape
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
@@ -5,6 +5,7 @@ class IntermatScrape::Wrestler
5
5
  wrestler_hash.each { |k, v| self.send("#{k}=", v) }
6
6
  end
7
7
 
8
+ #TODO move to Cli.class
8
9
  def to_s
9
10
  puts ''
10
11
  puts "----------- #{name} ##{rank} -----------".on_blue
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.3.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-13 00:00:00.000000000 Z
11
+ date: 2019-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri