uniara_virtual_parser 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e78d5561e644fcfaa5d9581ce078e3a1498832a
|
4
|
+
data.tar.gz: 0983750aacdbe49dbc7a5162b77287a6b0b06846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c8c9902cd40774072c32309d24905b7b708c58d001e24d0c616c33d870d655831356ec2dea71c511b3b3d0c875aa5d0c80cd7f3767c4b1fc902a6959e1e017
|
7
|
+
data.tar.gz: 891da7a860184437f449c6a5f500e1b83a3ee684bae84d5d53c5d5fbb9b0fa5d3e891853083cba46631f3eaf1bb5cbf6e9fa3330adc8b93634c7c0e2fa170358
|
@@ -10,8 +10,9 @@ module UniaraVirtualParser
|
|
10
10
|
|
11
11
|
def parse_student_profile(html)
|
12
12
|
doc = Nokogiri::HTML(html)
|
13
|
-
name = doc.css("b:contains('Bom Dia')").first
|
14
|
-
|
13
|
+
name = doc.css("b:contains('Bom Dia')").first
|
14
|
+
return '' unless name
|
15
|
+
student = Models::Student.new(name: name.text.match(/Bom Dia, (.*)/)[1])
|
15
16
|
student
|
16
17
|
end
|
17
18
|
end
|