apple_system_status 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: 97b708703fd16f253c9959156444c83c1f250aa617a6ec2627cae7623e0371b4
4
- data.tar.gz: e009875f53bca759343f6854ad4df86f784b9ce8b916fca1c1f8c333b0cf7963
3
+ metadata.gz: '08b2bff393b4ad29d06662e2cea60380952f3a948e3eecee0a0543c61cd7b0d8'
4
+ data.tar.gz: c84638b3e568844f5be52d859ec33c763733346a0c13d40e4c20855d3e9e56a9
5
5
  SHA512:
6
- metadata.gz: ecfda672babc08284e5a7095dba62c20b30ee2672f361defc6b2eb9cd5d9a10f986a4d0d8e5713f9c032230f17c85639c95ff7d18f90f109ef82f4675fb3cb2f
7
- data.tar.gz: 35cad0a7546f1a55e88595c370b630c96b3735c80a2da6a54623fb428f0bc73508d4323911d04a4ace553b9c89b778732fd435440363d9b1284f0c11d6d56e80
6
+ metadata.gz: 294c5c47b502af40f205e93c2fabcb943317be80667bce009de09c1e865b6f63044ee431757c440c5e183461eb52c9ffa7b6e9170d46e195a2e9db41e7e7463b
7
+ data.tar.gz: 695eac94cdb4487ca44ea8dec23bdf6e361af63fc6707b471f2e73ea1e586146d2d57743394818250a1973a3f0423cbe222b3bf6b758d8669afdf80468be1a52
@@ -1,94 +1,86 @@
1
- # Ruby CircleCI 2.0 configuration file
2
- #
3
- # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
- #
5
- version: 2
1
+ version: 2.1
6
2
 
7
- environment: &environment
8
- LANG: en_US.UTF-8
9
- LANGUAGE: en_US.UTF-8
10
- LC_ALL: C.UTF-8
11
-
12
- BUNDLE_PATH: vendor/bundle
13
- BUNDLE_JOBS: 4
14
- CODECLIMATE_REPO_TOKEN: 89b665462d69ce4c873ee8165d496c4a97b9afaaf48e375c1bc3200e4b45b1e7
15
-
16
- default: &default
17
- docker:
18
- - image: circleci/ruby
19
- environment:
20
- <<: *environment
21
-
22
- working_directory: ~/app
23
-
24
- restore_bundle_cache_option: &restore_bundle_cache_option
25
- keys:
26
- - v1-bundle-{{ .Environment.CIRCLE_JOB }}-{{ epoch }}
27
- - v1-bundle-{{ .Environment.CIRCLE_JOB }}
28
-
29
- save_bundle_cache_option: &save_bundle_cache_option
30
- key: v1-bundle-{{ .Environment.CIRCLE_JOB }}-{{ epoch }}
31
- paths:
32
- - ~/app/vendor/bundle
33
- - ~/app/Gemfile.lock
34
-
35
- rspec_steps: &rspec_steps
36
- - checkout
37
- - restore_cache:
38
- <<: *restore_bundle_cache_option
39
- - run: ./.circleci/setup.sh
40
- - save_cache:
41
- <<: *save_bundle_cache_option
42
-
43
- - run: bundle exec rspec
44
- - run: bundle exec codeclimate-test-reporter
45
-
46
- build_jobs: &build_jobs
47
- - ruby:2.2
48
- - ruby:2.3
49
- - ruby:2.4
50
- - ruby:2.5
51
-
52
- jobs:
53
- ruby:2.2:
54
- <<: *default
55
-
56
- docker:
57
- - image: circleci/ruby:2.2-node-browsers
58
- environment:
59
- <<: *environment
60
-
61
- steps: *rspec_steps
62
-
63
- ruby:2.3:
64
- <<: *default
65
-
66
- docker:
67
- - image: circleci/ruby:2.3-node-browsers
68
- environment:
69
- <<: *environment
70
-
71
- steps: *rspec_steps
72
-
73
- ruby:2.4:
74
- <<: *default
3
+ orbs:
4
+ ruby-orbs: sue445/ruby-orbs@volatile
75
5
 
6
+ executors:
7
+ ruby:
8
+ parameters:
9
+ version:
10
+ type: string
76
11
  docker:
77
- - image: circleci/ruby:2.4-node-browsers
78
- environment:
79
- <<: *environment
80
-
81
- steps: *rspec_steps
82
-
83
- ruby:2.5:
84
- <<: *default
12
+ - image: circleci/ruby:<< parameters.version >>-node-browsers
13
+ environment:
14
+ # c.f. https://github.com/ffaker/ffaker/issues/277#issuecomment-263519146
15
+ LANG: en_US.UTF-8
16
+ LANGUAGE: en_US.UTF-8
17
+ LC_ALL: C.UTF-8
18
+
19
+ BUNDLE_PATH: vendor/bundle
20
+ BUNDLE_JOBS: 4
21
+ CC_TEST_REPORTER_ID: 89b665462d69ce4c873ee8165d496c4a97b9afaaf48e375c1bc3200e4b45b1e7
22
+ working_directory: ~/app
23
+
24
+ commands:
25
+ with-cc-test-reporter:
26
+ description: "Run test with cc-test-reporter"
27
+ parameters:
28
+ steps:
29
+ type: steps
30
+ default: []
31
+ description: "Run steps between `before-build` and `after-build`"
32
+ steps:
33
+ - run:
34
+ name: Setup Code Climate test-reporter
35
+ command: |
36
+ # download test reporter as a static binary
37
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
38
+ chmod +x ./cc-test-reporter
39
+ - run: ./cc-test-reporter before-build
40
+ - steps: << parameters.steps >>
41
+ - run:
42
+ command: ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
43
+ when: always
85
44
 
86
- docker:
87
- - image: circleci/ruby:2.5-node-browsers
88
- environment:
89
- <<: *environment
45
+ jobs:
46
+ rspec:
47
+ parameters:
48
+ version:
49
+ type: string
50
+ executor:
51
+ name: ruby
52
+ version: << parameters.version >>
53
+ steps:
54
+ - checkout
55
+ - run: bundle --version
56
+ - run: gem --version
57
+ - run: google-chrome --version
58
+ - run: chromedriver --version
59
+ - ruby-orbs/bundle-install:
60
+ with_gemfile_lock: false
61
+ gemspec_name: "apple_system_status"
62
+ cache_key_prefix: "v2-bundle"
63
+ update_always: true
64
+ - with-cc-test-reporter:
65
+ steps:
66
+ - run: bundle exec rspec
90
67
 
91
- steps: *rspec_steps
68
+ build_jobs: &build_jobs
69
+ - rspec:
70
+ name: "rspec:2.2"
71
+ version: "2.2"
72
+ - rspec:
73
+ name: "rspec:2.3"
74
+ version: "2.3"
75
+ - rspec:
76
+ name: "rspec:2.4"
77
+ version: "2.4"
78
+ - rspec:
79
+ name: "rspec:2.5"
80
+ version: "2.5"
81
+ - rspec:
82
+ name: "rspec:2.6"
83
+ version: "2.6"
92
84
 
93
85
  workflows:
94
86
  version: 2
@@ -1,5 +1,18 @@
1
1
  # Change Log
2
2
 
3
+ ## [v1.0.4](https://github.com/sue445/apple_system_status/tree/v1.0.4) (2019-06-19)
4
+ [Full Changelog](https://github.com/sue445/apple_system_status/compare/v1.0.3...v1.0.4)
5
+
6
+ * Disable w3c for chrome75+
7
+ * https://github.com/sue445/apple_system_status/pull/43
8
+
9
+ ## [v1.0.3](https://github.com/sue445/apple_system_status/tree/v1.0.3) (2018-10-27)
10
+ [Full Changelog](https://github.com/sue445/apple_system_status/compare/v1.0.2...v1.0.3)
11
+
12
+ **Merged pull requests:**
13
+
14
+ - Add chrome\_options\_binary arg [\#33](https://github.com/sue445/apple_system_status/pull/33) ([sue445](https://github.com/sue445))
15
+
3
16
  ## [v1.0.2](https://github.com/sue445/apple_system_status/tree/v1.0.2) (2018-09-23)
4
17
  [Full Changelog](https://github.com/sue445/apple_system_status/compare/v1.0.1...v1.0.2)
5
18
 
data/Gemfile CHANGED
@@ -7,3 +7,19 @@ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.2")
7
7
  # NOTE: rack 2.x supports only ruby 2.2.2+
8
8
  gem "rack", "< 2.0.0"
9
9
  end
10
+
11
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
12
+ # NOTE: xpath 3.2.0+ requires ruby 2.3.0+
13
+ gem "xpath", "< 3.2.0"
14
+
15
+ # NOTE: selenium-webdriver 3.142.1+ requires ruby 2.3.0+
16
+ gem "selenium-webdriver", "< 3.142.1"
17
+
18
+ # NOTE: public_suffix v3.1.0+ requires ruby 2.3.0+
19
+ gem "public_suffix", "< 3.1.0"
20
+ end
21
+
22
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
23
+ # NOTE: capybara 3.16.0+ requires ruby 2.4.0+
24
+ gem "capybara", "< 3.16.0"
25
+ end
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  ## Requirements
12
12
  * Ruby 2.2+
13
- * Headless CHrome
13
+ * Headless Chrome
14
14
 
15
15
  ## Installation
16
16
 
@@ -34,7 +34,6 @@ Gem::Specification.new do |spec|
34
34
  spec.add_dependency "thor"
35
35
 
36
36
  spec.add_development_dependency "bundler"
37
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
38
37
  spec.add_development_dependency "coveralls"
39
38
  spec.add_development_dependency "pry-byebug"
40
39
  spec.add_development_dependency "rake", "~> 10.0"
@@ -24,6 +24,7 @@ module AppleSystemStatus
24
24
 
25
25
  chrome_options = { args: chrome_options_args }
26
26
  chrome_options[:binary] = chrome_options_binary if chrome_options_binary
27
+ chrome_options[:w3c] = false # for chrome 75+
27
28
 
28
29
  capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(chromeOptions: chrome_options)
29
30
 
@@ -1,3 +1,3 @@
1
1
  module AppleSystemStatus
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
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: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-27 00:00:00.000000000 Z
11
+ date: 2019-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: codeclimate-test-reporter
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 1.0.0
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 1.0.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: coveralls
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -187,7 +173,6 @@ extensions: []
187
173
  extra_rdoc_files: []
188
174
  files:
189
175
  - ".circleci/config.yml"
190
- - ".circleci/setup.sh"
191
176
  - ".coveralls.yml"
192
177
  - ".gitignore"
193
178
  - ".rspec"
@@ -225,8 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
210
  - !ruby/object:Gem::Version
226
211
  version: '0'
227
212
  requirements: []
228
- rubyforge_project:
229
- rubygems_version: 2.7.6
213
+ rubygems_version: 3.0.3
230
214
  signing_key:
231
215
  specification_version: 4
232
216
  summary: Apple System Status scraping library
@@ -1,8 +0,0 @@
1
- #!/bin/bash -xe
2
-
3
- ruby --version
4
- bundle --version
5
- gem --version
6
-
7
- bundle check || bundle update
8
- bundle clean