apple_system_status 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 98f77961a141ceb44f68bc7c93229402090f61ec
4
- data.tar.gz: 8fe3af494c23efe8d421a1dc7cedf8f3954a51a1
3
+ metadata.gz: 36ef720f24da9585bb4f4e7beb649600a954dcb7
4
+ data.tar.gz: f106c1da5ce55d5670f17d4e84ff69c14effed14
5
5
  SHA512:
6
- metadata.gz: 15189394dc9b10216575c734de79eb7600339d0cf69923f0472c182709f66698bec71a80a53820989e15fb161e389143035dfff4f48bc6cf82f6d1df46aad195
7
- data.tar.gz: aee0437ce315516160e9f8c2ad6f26bb7c50d3bab7080c99ce61f6d2ebe9706cfb8ba7d235fad4728aa88c7177bd4a7a64813177da27275ac4bdcecbb7f742a9
6
+ metadata.gz: cd6c4086e1ad3bc371e2b83ec8258b88c4b79b8b846a0ebd1336fa7fe67f1e2c31ff4ad04722309e11080bb662c621479d3c703fb7b9da6e950f03ede28d7868
7
+ data.tar.gz: 3afbfea615e57d232186c9b2b5e989815060b8ac42a5be5e15b546dc0031929c98851c6cee13099a250e769f7c80dff3609378461c659414b4adc604d0a85a28
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.3.0](https://github.com/sue445/apple_system_status/tree/v0.3.0) (2017-02-28)
4
+ [Full Changelog](https://github.com/sue445/apple_system_status/compare/v0.2.0...v0.3.0)
5
+
6
+ **Closed issues:**
7
+
8
+ - Following the new design [\#14](https://github.com/sue445/apple_system_status/issues/14)
9
+
10
+ **Merged pull requests:**
11
+
12
+ - Following the new design [\#15](https://github.com/sue445/apple_system_status/pull/15) ([sue445](https://github.com/sue445))
13
+ - Update codeclimate-test-reporter to 1.0.0 [\#13](https://github.com/sue445/apple_system_status/pull/13) ([sue445](https://github.com/sue445))
14
+
3
15
  ## [v0.2.0](https://github.com/sue445/apple_system_status/tree/v0.2.0) (2016-09-04)
4
16
  [Full Changelog](https://github.com/sue445/apple_system_status/compare/v0.1.1...v0.2.0)
5
17
 
@@ -10,7 +10,7 @@ module AppleSystemStatus
10
10
 
11
11
  def initialize
12
12
  Capybara.register_driver :poltergeist do |app|
13
- Capybara::Poltergeist::Driver.new(app, js_errors: false)
13
+ Capybara::Poltergeist::Driver.new(app, js_errors: false, window_size: [1280, 800])
14
14
  end
15
15
  @session = Capybara::Session.new(:poltergeist)
16
16
  @session.driver.headers = { "User-Agent" => USER_AGENT }
@@ -94,7 +94,7 @@ module AppleSystemStatus
94
94
  def fetch_services
95
95
  @session.all("#ssp-lights-table td").each_with_object([]) do |td, services|
96
96
  begin
97
- names = td.find(".light-container .light-content.light-name").text.split(" - ")
97
+ names = td.find(".light-container .light-content.light-name").text.split(":").map(&:strip)
98
98
  light_image = td.find(".light-container .light-content.light-image div")["class"]
99
99
 
100
100
  services << {
@@ -1,3 +1,3 @@
1
1
  module AppleSystemStatus
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-28 00:00:00.000000000 Z
11
+ date: 2017-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  version: '0'
240
240
  requirements: []
241
241
  rubyforge_project:
242
- rubygems_version: 2.6.8
242
+ rubygems_version: 2.6.11
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Apple System Status scraping library