apple_system_status 3.0.1 → 4.0.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
  SHA256:
3
- metadata.gz: 96cbb0351af38f04a739b10031957f6960400327c72a02ae32aa6c32768d22f3
4
- data.tar.gz: 93a5f05c0f381ae436d510b8c46560b765aebc7ef97b4bb57248d4f9059fa9e4
3
+ metadata.gz: 630cd003433276ba34cc3a622e762e4d7f056210126315b6737e344e075b1c7b
4
+ data.tar.gz: 3bc26cfee90edf059cfd082d54ba377d3f9cd3f911645e48ca83b08b65e72d2d
5
5
  SHA512:
6
- metadata.gz: ee138e7d0e1fc9706146541cf7c31d499dae1d6c70486e1c6dcce219d166cd9689cc02ccd3b5e1e6b5ae48cdc9e0e8121112598bf2b111ae20dd04e7447cb63b
7
- data.tar.gz: 1f8641a74f66eee7bb8aba3ba19ad6ea2f771335c8d5c15abca1cc2512fd3ead9ba778f01f27f06bbb1d872315bb915d27fd0daa7b3d1b4c79ab3dd9cfcaae9d
6
+ metadata.gz: 47f34a88ec2f95f9501c6ca4295aef95670e4eb9c12fc7b3efba3eb8e10ed4f72380e4c17e94abf37ff50aa6df47a792951192726cf96ca79146fec610bf2502
7
+ data.tar.gz: d7afdc7883e9e4fc9f7817559bdf913034fab9f1a66693becfd82be89686978fb53834c1a4f36fcfc87bb33c995ea171d1a2a54ae514e7ed3ee152434e3736a3
data/.circleci/config.yml CHANGED
@@ -2,7 +2,6 @@ version: 2.1
2
2
 
3
3
  orbs:
4
4
  browser-tools: circleci/browser-tools@volatile
5
- codeclimate: sue445/codeclimate@volatile
6
5
  slack: circleci/slack@3
7
6
 
8
7
  executors:
@@ -32,7 +31,7 @@ jobs:
32
31
  name: ruby
33
32
  version: << parameters.version >>
34
33
  steps:
35
- - browser-tools/install-browser-tools
34
+ - browser-tools/install_browser_tools
36
35
  - checkout
37
36
  - run: bundle --version
38
37
  - run: gem --version
@@ -40,10 +39,7 @@ jobs:
40
39
  - run: chromedriver --version
41
40
  - run: bundle config --local path vendor/bundle
42
41
  - 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
42
+ - run: bundle exec rspec
47
43
  - slack/notify-on-failure
48
44
 
49
45
  build_jobs: &build_jobs
@@ -51,9 +47,11 @@ build_jobs: &build_jobs
51
47
  matrix:
52
48
  parameters:
53
49
  version:
54
- - "2.6"
55
- - "2.7"
56
50
  - "3.0"
51
+ - "3.1"
52
+ - "3.2"
53
+ - "3.3"
54
+ - "3.4"
57
55
 
58
56
  workflows:
59
57
  version: 2
@@ -0,0 +1,12 @@
1
+ # c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2
+ version: 2
3
+
4
+ updates:
5
+ - package-ecosystem: github-actions
6
+ directory: /
7
+ schedule:
8
+ interval: weekly
9
+ cooldown:
10
+ default-days: 7
11
+ assignees:
12
+ - sue445
@@ -0,0 +1,59 @@
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name: Deploy static content to Pages
3
+
4
+ on:
5
+ # Runs on pushes targeting the default branch
6
+ push:
7
+ branches:
8
+ - master
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch:
12
+
13
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
+ permissions:
15
+ contents: read
16
+ pages: write
17
+ id-token: write
18
+
19
+ # Allow one concurrent deployment
20
+ concurrency:
21
+ group: "pages"
22
+ cancel-in-progress: true
23
+
24
+ jobs:
25
+ # Single deploy job since we're just deploying
26
+ deploy:
27
+ environment:
28
+ name: github-pages
29
+ url: ${{ steps.deployment.outputs.page_url }}
30
+ runs-on: ubuntu-latest
31
+ steps:
32
+ - name: Checkout
33
+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
34
+
35
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
36
+ with:
37
+ ruby-version: ruby
38
+ bundler-cache: true
39
+
40
+ - run: bundle exec yard
41
+
42
+ - name: Setup Pages
43
+ uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
44
+ - name: Upload artifact
45
+ uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
46
+ with:
47
+ # Upload entire repository
48
+ path: './doc'
49
+ - name: Deploy to GitHub Pages
50
+ id: deployment
51
+ uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
52
+
53
+ - name: Slack Notification (not success)
54
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
55
+ if: "! success()"
56
+ continue-on-error: true
57
+ with:
58
+ status: ${{ job.status }}
59
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
@@ -0,0 +1,41 @@
1
+ name: Publish gem to rubygems.org
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ release:
8
+ if: github.repository == 'sue445/apple_system_status'
9
+ runs-on: ubuntu-latest
10
+
11
+ environment:
12
+ name: rubygems.org
13
+ url: https://rubygems.org/gems/apple_system_status
14
+
15
+ permissions:
16
+ contents: write
17
+ id-token: write
18
+
19
+ steps:
20
+ - name: Harden Runner
21
+ uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
22
+ with:
23
+ egress-policy: audit
24
+
25
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26
+
27
+ - name: Set up Ruby
28
+ uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
29
+ with:
30
+ bundler-cache: true
31
+ ruby-version: ruby
32
+
33
+ - name: Publish to RubyGems
34
+ uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
35
+
36
+ - name: Create GitHub release
37
+ run: |
38
+ tag_name="$(git describe --tags --abbrev=0)"
39
+ gh release create "${tag_name}" --verify-tag --generate-notes
40
+ env:
41
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
data/CHANGELOG.md CHANGED
@@ -1,4 +1,17 @@
1
1
  # Change Log
2
+ [Full Changelog](https://github.com/sue445/apple_system_status/compare/v4.0.1...master)
3
+
4
+ ## [v4.0.1](https://github.com/sue445/apple_system_status/tree/v4.0.1) (2025-11-28)
5
+ [Full Changelog](https://github.com/sue445/apple_system_status/compare/v4.0.0...v4.0.1)
6
+
7
+ * Release gem from GitHub Actions
8
+ * https://github.com/sue445/apple_system_status/pull/93
9
+
10
+ ## [v4.0.0](https://github.com/sue445/apple_system_status/tree/v4.0.0) (2023-12-28)
11
+ [Full Changelog](https://github.com/sue445/apple_system_status/compare/v3.0.1...v4.0.0)
12
+
13
+ * :bomb: **[BREAKING CHANGE]** Requires selenium-webdriver 4.11.0+ and Ruby 3.0+
14
+ * https://github.com/sue445/apple_system_status/pull/81
2
15
 
3
16
  ## [v3.0.1](https://github.com/sue445/apple_system_status/tree/v3.0.1) (2021-11-19)
4
17
  [Full Changelog](https://github.com/sue445/apple_system_status/compare/v3.0.0...v3.0.1)
data/README.md CHANGED
@@ -9,7 +9,7 @@
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.6+
12
+ * Ruby 3.0+
13
13
  * Headless Chrome
14
14
 
15
15
  ## Installation
@@ -17,9 +17,10 @@ Gem::Specification.new do |spec|
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = spec.homepage
19
19
  spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/apple_system_status/"
20
21
  spec.metadata["rubygems_mfa_required"] = "true"
21
22
 
22
- spec.required_ruby_version = ">= 2.6"
23
+ spec.required_ruby_version = ">= 3.0"
23
24
 
24
25
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
25
26
  # delete this section to allow pushing this gem to any host.
@@ -35,7 +36,7 @@ Gem::Specification.new do |spec|
35
36
  spec.require_paths = ["lib"]
36
37
 
37
38
  spec.add_dependency "capybara"
38
- spec.add_dependency "selenium-webdriver", ">= 4.0.0"
39
+ spec.add_dependency "selenium-webdriver", ">= 4.11.0"
39
40
  spec.add_dependency "thor"
40
41
 
41
42
  spec.add_development_dependency "bundler"
@@ -44,6 +45,7 @@ Gem::Specification.new do |spec|
44
45
  spec.add_development_dependency "rspec"
45
46
  spec.add_development_dependency "rspec-parameterized"
46
47
  spec.add_development_dependency "simplecov", "< 0.18.0"
48
+ spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
47
49
  spec.add_development_dependency "unparser", ">= 0.4.5"
48
50
  spec.add_development_dependency "yard"
49
51
  end
@@ -26,12 +26,11 @@ module AppleSystemStatus
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
30
29
 
31
30
  Capybara::Selenium::Driver.new(
32
31
  app,
33
32
  browser: :chrome,
34
- capabilities: [capabilities, opts],
33
+ options: opts,
35
34
  http_client: client,
36
35
  )
37
36
  end
@@ -1,3 +1,3 @@
1
1
  module AppleSystemStatus
2
- VERSION = "3.0.1"
2
+ VERSION = "4.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_system_status
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2021-11-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: capybara
@@ -30,14 +29,14 @@ dependencies:
30
29
  requirements:
31
30
  - - ">="
32
31
  - !ruby/object:Gem::Version
33
- version: 4.0.0
32
+ version: 4.11.0
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
- version: 4.0.0
39
+ version: 4.11.0
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: thor
43
42
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +135,20 @@ dependencies:
136
135
  - - "<"
137
136
  - !ruby/object:Gem::Version
138
137
  version: 0.18.0
138
+ - !ruby/object:Gem::Dependency
139
+ name: term-ansicolor
140
+ requirement: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "!="
143
+ - !ruby/object:Gem::Version
144
+ version: 1.11.1
145
+ type: :development
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "!="
150
+ - !ruby/object:Gem::Version
151
+ version: 1.11.1
139
152
  - !ruby/object:Gem::Dependency
140
153
  name: unparser
141
154
  requirement: !ruby/object:Gem::Requirement
@@ -174,6 +187,9 @@ extra_rdoc_files: []
174
187
  files:
175
188
  - ".circleci/config.yml"
176
189
  - ".coveralls.yml"
190
+ - ".github/dependabot.yml"
191
+ - ".github/workflows/pages.yml"
192
+ - ".github/workflows/release_gem.yml"
177
193
  - ".gitignore"
178
194
  - ".rspec"
179
195
  - ".yardopts"
@@ -197,9 +213,9 @@ metadata:
197
213
  homepage_uri: https://github.com/sue445/apple_system_status
198
214
  source_code_uri: https://github.com/sue445/apple_system_status
199
215
  changelog_uri: https://github.com/sue445/apple_system_status/blob/master/CHANGELOG.md
216
+ documentation_uri: https://sue445.github.io/apple_system_status/
200
217
  rubygems_mfa_required: 'true'
201
218
  allowed_push_host: https://rubygems.org
202
- post_install_message:
203
219
  rdoc_options: []
204
220
  require_paths:
205
221
  - lib
@@ -207,15 +223,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
223
  requirements:
208
224
  - - ">="
209
225
  - !ruby/object:Gem::Version
210
- version: '2.6'
226
+ version: '3.0'
211
227
  required_rubygems_version: !ruby/object:Gem::Requirement
212
228
  requirements:
213
229
  - - ">="
214
230
  - !ruby/object:Gem::Version
215
231
  version: '0'
216
232
  requirements: []
217
- rubygems_version: 3.2.22
218
- signing_key:
233
+ rubygems_version: 3.6.7
219
234
  specification_version: 4
220
235
  summary: Apple System Status scraping library
221
236
  test_files: []