apple_system_status 0.1.0.beta1 → 0.1.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apple_system_status/crawler.rb +9 -5
- data/lib/apple_system_status/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cec83e535718f501b5e3bf6c060dd37192602928
|
4
|
+
data.tar.gz: 8fd5d5181088475c848f544a94700846faad5b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef57e3d11fe603cffb80ecedadd4ee80a8c89513e5e92baa040c3465072a8d4785da3976278134970194747aa8b6b7b4779dbdcc186ffc14f4dcffefe429f69b
|
7
|
+
data.tar.gz: 49644aac9a4f59599fac69ada461b586cd01e42634806783df4fe72500e9c514f8924890bd5582345323f94fa2c0e9d3ad7039a787179191e0134ab04a542e4b
|
@@ -28,11 +28,15 @@ module AppleSystemStatus
|
|
28
28
|
}
|
29
29
|
|
30
30
|
@session.all("#dashboard td").each_with_object(response[:statuses]) do |td, statuses|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
begin
|
32
|
+
statuses << {
|
33
|
+
title: td.find("p[role='text']").text,
|
34
|
+
description: td.find("p[role='text']")["aria-label"],
|
35
|
+
status: td.find("span")["class"],
|
36
|
+
}
|
37
|
+
rescue Capybara::ElementNotFound
|
38
|
+
# NOTE: Capybara::Node::Matchers#has_css? is very slow!
|
39
|
+
end
|
36
40
|
end
|
37
41
|
|
38
42
|
response
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apple_system_status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|