ehbrs_ruby_utils 0.24.0 → 0.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ehbrs_ruby_utils/bga/parsers/game_stats/players.rb +2 -2
- data/lib/ehbrs_ruby_utils/bga/parsers/table/players.rb +1 -1
- data/lib/ehbrs_ruby_utils/version.rb +1 -1
- data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec_files/2.source.html +1083 -0
- data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec_files/2.target.yaml +1127 -0
- data/spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_356513708.source.html +1497 -0
- data/spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_356513708.target.yaml +47 -0
- metadata +22 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef922dc8e609ca372c63e29cbfda768e95abc03b24c0fd5b9a5c6d46bf707445
|
4
|
+
data.tar.gz: ad3022d2b588614b4471798f751a8edca0800e301ab0f7bd689a22fc684fd59f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2e2052b2490544bcb9edd3234d082f46489aa76d277889d33cc75ad75e31e9181c1c38deb00b4741723ba396be7c0f2ebbe71931845fd7db4145cfffe60dd00
|
7
|
+
data.tar.gz: 4b27d92bade1d8a85151dbd2ce9c101286b75c433327a849fbab1bb275ce47e4c6b06c850616b320480b18ea294b59c76b55199023e80bcb38c7da465d4c54c1
|
@@ -10,10 +10,10 @@ module EhbrsRubyUtils
|
|
10
10
|
class Players < ::Aranha::Parsers::Html::ItemList
|
11
11
|
ITEMS_XPATH = '//div[@class = "simple-score-entry"]'
|
12
12
|
|
13
|
-
field :rank, :
|
13
|
+
field :rank, :integer_optional, './div[@class = "rank"]'
|
14
14
|
field :id, :integer, './div[@class = "name"]/a/@href'
|
15
15
|
field :name, :string, './div[@class = "name"]/a/text()'
|
16
|
-
field :score, :
|
16
|
+
field :score, :integer_optional, './div[@class = "score"]'
|
17
17
|
|
18
18
|
def items_xpath
|
19
19
|
ITEMS_XPATH
|
@@ -14,7 +14,7 @@ module EhbrsRubyUtils
|
|
14
14
|
field :table_rank, :integer, './div[@class = "rank"]'
|
15
15
|
field :id, :integer, './div[@class = "name"]/a/@href'
|
16
16
|
field :name, :string, './div[@class = "name"]/a/text()'
|
17
|
-
field :score, :
|
17
|
+
field :score, :integer_optional, './div[@class = "score"]'
|
18
18
|
field :win_points, :string, './/*[starts-with(@id, "winpoints_value_")]/text()'
|
19
19
|
field :game_rank, :integer, './/*[@class = "gamerank_value"]/text()'
|
20
20
|
|