apple_system_status 1.0.3 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +54 -89
- data/CHANGELOG.md +33 -0
- data/Gemfile +0 -5
- data/README.md +2 -2
- data/apple_system_status.gemspec +10 -6
- data/lib/apple_system_status/crawler.rb +3 -2
- data/lib/apple_system_status/version.rb +1 -1
- metadata +28 -40
- data/.circleci/setup.sh +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96cbb0351af38f04a739b10031957f6960400327c72a02ae32aa6c32768d22f3
|
4
|
+
data.tar.gz: 93a5f05c0f381ae436d510b8c46560b765aebc7ef97b4bb57248d4f9059fa9e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee138e7d0e1fc9706146541cf7c31d499dae1d6c70486e1c6dcce219d166cd9689cc02ccd3b5e1e6b5ae48cdc9e0e8121112598bf2b111ae20dd04e7447cb63b
|
7
|
+
data.tar.gz: 1f8641a74f66eee7bb8aba3ba19ad6ea2f771335c8d5c15abca1cc2512fd3ead9ba778f01f27f06bbb1d872315bb915d27fd0daa7b3d1b4c79ab3dd9cfcaae9d
|
data/.circleci/config.yml
CHANGED
@@ -1,94 +1,59 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
orbs:
|
4
|
+
browser-tools: circleci/browser-tools@volatile
|
5
|
+
codeclimate: sue445/codeclimate@volatile
|
6
|
+
slack: circleci/slack@3
|
7
|
+
|
8
|
+
executors:
|
9
|
+
ruby:
|
10
|
+
parameters:
|
11
|
+
version:
|
12
|
+
type: string
|
56
13
|
docker:
|
57
|
-
- image:
|
58
|
-
|
59
|
-
|
14
|
+
- image: cimg/ruby:<< parameters.version >>-browsers
|
15
|
+
environment:
|
16
|
+
# c.f. https://github.com/ffaker/ffaker/issues/277#issuecomment-263519146
|
17
|
+
LANG: en_US.UTF-8
|
18
|
+
LANGUAGE: en_US.UTF-8
|
19
|
+
LC_ALL: C.UTF-8
|
20
|
+
|
21
|
+
BUNDLE_PATH: vendor/bundle
|
22
|
+
BUNDLE_JOBS: 4
|
23
|
+
CC_TEST_REPORTER_ID: 89b665462d69ce4c873ee8165d496c4a97b9afaaf48e375c1bc3200e4b45b1e7
|
24
|
+
working_directory: ~/app
|
60
25
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
ruby:2.5:
|
84
|
-
<<: *default
|
85
|
-
|
86
|
-
docker:
|
87
|
-
- image: circleci/ruby:2.5-node-browsers
|
88
|
-
environment:
|
89
|
-
<<: *environment
|
26
|
+
jobs:
|
27
|
+
rspec:
|
28
|
+
parameters:
|
29
|
+
version:
|
30
|
+
type: string
|
31
|
+
executor:
|
32
|
+
name: ruby
|
33
|
+
version: << parameters.version >>
|
34
|
+
steps:
|
35
|
+
- browser-tools/install-browser-tools
|
36
|
+
- checkout
|
37
|
+
- run: bundle --version
|
38
|
+
- run: gem --version
|
39
|
+
- run: google-chrome --version
|
40
|
+
- run: chromedriver --version
|
41
|
+
- run: bundle config --local path vendor/bundle
|
42
|
+
- run: bundle install --jobs=4 --retry=3
|
43
|
+
- codeclimate/with-cc-test-reporter:
|
44
|
+
after_build_args: "--coverage-input-type simplecov"
|
45
|
+
steps:
|
46
|
+
- run: bundle exec rspec
|
47
|
+
- slack/notify-on-failure
|
90
48
|
|
91
|
-
|
49
|
+
build_jobs: &build_jobs
|
50
|
+
- rspec:
|
51
|
+
matrix:
|
52
|
+
parameters:
|
53
|
+
version:
|
54
|
+
- "2.6"
|
55
|
+
- "2.7"
|
56
|
+
- "3.0"
|
92
57
|
|
93
58
|
workflows:
|
94
59
|
version: 2
|
@@ -99,7 +64,7 @@ workflows:
|
|
99
64
|
weekly_build:
|
100
65
|
triggers:
|
101
66
|
- schedule:
|
102
|
-
cron: "00
|
67
|
+
cron: "00 10 * * 5" # JST 19:00 (Fri)
|
103
68
|
filters:
|
104
69
|
branches:
|
105
70
|
only: master
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,38 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v3.0.1](https://github.com/sue445/apple_system_status/tree/v3.0.1) (2021-11-19)
|
4
|
+
[Full Changelog](https://github.com/sue445/apple_system_status/compare/v3.0.0...v3.0.1)
|
5
|
+
|
6
|
+
* Enable MFA requirement for gem releasing
|
7
|
+
* https://github.com/sue445/apple_system_status/pull/69
|
8
|
+
|
9
|
+
## [v3.0.0](https://github.com/sue445/apple_system_status/tree/v3.0.0) (2021-10-16)
|
10
|
+
[Full Changelog](https://github.com/sue445/apple_system_status/compare/v2.0.0...v3.0.0)
|
11
|
+
|
12
|
+
* :bomb: **[BREAKING CHANGE]** Requires selenium-webdriver v4+ and Ruby 2.6+
|
13
|
+
* https://github.com/sue445/apple_system_status/pull/66
|
14
|
+
|
15
|
+
## [v2.0.0](https://github.com/sue445/apple_system_status/tree/v2.0.0) (2021-10-16)
|
16
|
+
[Full Changelog](https://github.com/sue445/apple_system_status/compare/v1.0.4...v2.0.0)
|
17
|
+
|
18
|
+
* :bomb: **[BREAKING CHANGE]** Drop support ruby < 2.5
|
19
|
+
* https://github.com/sue445/apple_system_status/pull/65
|
20
|
+
* Don't use selenium-webdriver v4
|
21
|
+
* https://github.com/sue445/apple_system_status/pull/63
|
22
|
+
|
23
|
+
## [v1.0.4](https://github.com/sue445/apple_system_status/tree/v1.0.4) (2019-06-19)
|
24
|
+
[Full Changelog](https://github.com/sue445/apple_system_status/compare/v1.0.3...v1.0.4)
|
25
|
+
|
26
|
+
* Disable w3c for chrome75+
|
27
|
+
* https://github.com/sue445/apple_system_status/pull/43
|
28
|
+
|
29
|
+
## [v1.0.3](https://github.com/sue445/apple_system_status/tree/v1.0.3) (2018-10-27)
|
30
|
+
[Full Changelog](https://github.com/sue445/apple_system_status/compare/v1.0.2...v1.0.3)
|
31
|
+
|
32
|
+
**Merged pull requests:**
|
33
|
+
|
34
|
+
- Add chrome\_options\_binary arg [\#33](https://github.com/sue445/apple_system_status/pull/33) ([sue445](https://github.com/sue445))
|
35
|
+
|
3
36
|
## [v1.0.2](https://github.com/sue445/apple_system_status/tree/v1.0.2) (2018-09-23)
|
4
37
|
[Full Changelog](https://github.com/sue445/apple_system_status/compare/v1.0.1...v1.0.2)
|
5
38
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -9,8 +9,8 @@
|
|
9
9
|
[![Coverage Status](https://coveralls.io/repos/sue445/apple_system_status/badge.svg?branch=master&service=github)](https://coveralls.io/github/sue445/apple_system_status?branch=master)
|
10
10
|
|
11
11
|
## Requirements
|
12
|
-
* Ruby 2.
|
13
|
-
* Headless
|
12
|
+
* Ruby 2.6+
|
13
|
+
* Headless Chrome
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
data/apple_system_status.gemspec
CHANGED
@@ -14,7 +14,12 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "https://github.com/sue445/apple_system_status"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
-
spec.
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
19
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
20
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
21
|
+
|
22
|
+
spec.required_ruby_version = ">= 2.6"
|
18
23
|
|
19
24
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
20
25
|
# delete this section to allow pushing this gem to any host.
|
@@ -30,16 +35,15 @@ Gem::Specification.new do |spec|
|
|
30
35
|
spec.require_paths = ["lib"]
|
31
36
|
|
32
37
|
spec.add_dependency "capybara"
|
33
|
-
spec.add_dependency "selenium-webdriver"
|
38
|
+
spec.add_dependency "selenium-webdriver", ">= 4.0.0"
|
34
39
|
spec.add_dependency "thor"
|
35
40
|
|
36
41
|
spec.add_development_dependency "bundler"
|
37
|
-
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
|
38
42
|
spec.add_development_dependency "coveralls"
|
39
|
-
spec.add_development_dependency "
|
40
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
43
|
+
spec.add_development_dependency "rake"
|
41
44
|
spec.add_development_dependency "rspec"
|
42
45
|
spec.add_development_dependency "rspec-parameterized"
|
43
|
-
spec.add_development_dependency "simplecov"
|
46
|
+
spec.add_development_dependency "simplecov", "< 0.18.0"
|
47
|
+
spec.add_development_dependency "unparser", ">= 0.4.5"
|
44
48
|
spec.add_development_dependency "yard"
|
45
49
|
end
|
@@ -25,12 +25,13 @@ module AppleSystemStatus
|
|
25
25
|
chrome_options = { args: chrome_options_args }
|
26
26
|
chrome_options[:binary] = chrome_options_binary if chrome_options_binary
|
27
27
|
|
28
|
-
|
28
|
+
opts = Selenium::WebDriver::Chrome::Options.new(profile: nil, **chrome_options)
|
29
|
+
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome
|
29
30
|
|
30
31
|
Capybara::Selenium::Driver.new(
|
31
32
|
app,
|
32
33
|
browser: :chrome,
|
33
|
-
|
34
|
+
capabilities: [capabilities, opts],
|
34
35
|
http_client: client,
|
35
36
|
)
|
36
37
|
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:
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 4.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 4.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|
@@ -95,7 +81,7 @@ dependencies:
|
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
84
|
+
name: rake
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - ">="
|
@@ -109,21 +95,21 @@ dependencies:
|
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: '0'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
98
|
+
name: rspec
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
|
-
- - "
|
101
|
+
- - ">="
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
103
|
+
version: '0'
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
|
-
- - "
|
108
|
+
- - ">="
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
110
|
+
version: '0'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: rspec
|
112
|
+
name: rspec-parameterized
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
128
114
|
requirements:
|
129
115
|
- - ">="
|
@@ -137,33 +123,33 @@ dependencies:
|
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
126
|
+
name: simplecov
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
|
-
- - "
|
129
|
+
- - "<"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
131
|
+
version: 0.18.0
|
146
132
|
type: :development
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
|
-
- - "
|
136
|
+
- - "<"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
138
|
+
version: 0.18.0
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
140
|
+
name: unparser
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - ">="
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
145
|
+
version: 0.4.5
|
160
146
|
type: :development
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - ">="
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
152
|
+
version: 0.4.5
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: yard
|
169
155
|
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"
|
@@ -209,8 +194,12 @@ homepage: https://github.com/sue445/apple_system_status
|
|
209
194
|
licenses:
|
210
195
|
- MIT
|
211
196
|
metadata:
|
197
|
+
homepage_uri: https://github.com/sue445/apple_system_status
|
198
|
+
source_code_uri: https://github.com/sue445/apple_system_status
|
199
|
+
changelog_uri: https://github.com/sue445/apple_system_status/blob/master/CHANGELOG.md
|
200
|
+
rubygems_mfa_required: 'true'
|
212
201
|
allowed_push_host: https://rubygems.org
|
213
|
-
post_install_message:
|
202
|
+
post_install_message:
|
214
203
|
rdoc_options: []
|
215
204
|
require_paths:
|
216
205
|
- lib
|
@@ -218,16 +207,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
218
207
|
requirements:
|
219
208
|
- - ">="
|
220
209
|
- !ruby/object:Gem::Version
|
221
|
-
version: '2.
|
210
|
+
version: '2.6'
|
222
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
212
|
requirements:
|
224
213
|
- - ">="
|
225
214
|
- !ruby/object:Gem::Version
|
226
215
|
version: '0'
|
227
216
|
requirements: []
|
228
|
-
|
229
|
-
|
230
|
-
signing_key:
|
217
|
+
rubygems_version: 3.2.22
|
218
|
+
signing_key:
|
231
219
|
specification_version: 4
|
232
220
|
summary: Apple System Status scraping library
|
233
221
|
test_files: []
|