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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 699b07d034c247c7e56deeb4e80564a2cedd9436
4
- data.tar.gz: ba1a0ac556f4947996077d742e390449b9707dc2
3
+ metadata.gz: cec83e535718f501b5e3bf6c060dd37192602928
4
+ data.tar.gz: 8fd5d5181088475c848f544a94700846faad5b79
5
5
  SHA512:
6
- metadata.gz: 3bd269d340019154702d3bc7b34715bd7be65b25c4b850119fcfef35e8f3d3c1a88b90d8d7ecf10663876ec6806c40c20f5ca89caa09d9f7aefd4f36b139278c
7
- data.tar.gz: 0647802cbed0fd7247bef80d6b387962e280433ad06f28154367154fe0aa26f25e326ea181048f2e1634481b94f85cf3f8660fdb15ec438ed6db0a5eff1f7b0e
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
- statuses << {
32
- title: td.find("p[role='text']").text,
33
- description: td.find("p[role='text']")["aria-label"],
34
- status: td.find("span")["class"],
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
@@ -1,3 +1,3 @@
1
1
  module AppleSystemStatus
2
- VERSION = "0.1.0.beta1"
2
+ VERSION = "0.1.0.beta2"
3
3
  end
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.beta1
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-23 00:00:00.000000000 Z
11
+ date: 2015-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara