git-fit 0.10.8 → 0.10.9

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: d77e55927509eaeb9a31b55bc95e825dddeda642d5dde1f225364c2445c86c9a
4
- data.tar.gz: df38a564d5a8cbaa4cd9fe724555cd5920f26f4aebd71f3312a3d7336ed5e75c
3
+ metadata.gz: 990b506f035333d622b5112652251ecfb100fe152493439b2573fe002dcf2420
4
+ data.tar.gz: 8935f8b3f86d62926666ff6fbd37401b230f4182260421c40b7a2e5ecc9e0d03
5
5
  SHA512:
6
- metadata.gz: 5b668da6a97754df6678bfeeda396e36b0e96e6c60edc66183d04024e49c6bc036cd2f89c335149fd4a17998a150bdfbf87b27eede2db53af5772cd7227bfe79
7
- data.tar.gz: 99544a41731bc28298c6d80bdfa2c36c770f2113bd9d524d680d8f15959c4725371341080a17082aa4fbfe3e7403d8b9e2f30351d4789fffd3be865e10bcbb03
6
+ metadata.gz: 8c5306f042f21e18a8f5761342fd70a8ae13a5660fc03e02496b8dd0288e87d8711cb4bf826fa33d3509ac5497da70730708f40bb24d8cf13157ba93e94f52e6
7
+ data.tar.gz: d5cabbcad852447fc7b0c50489de64f83d8c732f849f0c483704f6565244759b841864d09c72bba840cb2cc265192c1b1f3b364b01c306539dd55d31fc3977e9
@@ -33,8 +33,8 @@ module GitFit
33
33
  session = _load_session(session_path)
34
34
  warn "loaded session cookies (#{session[:age_days].round} days old)" if session
35
35
 
36
- opts = { user_agent: MOBILE_UA, viewport: { width: 375, height: 812 } }
37
- opts[:storage_state] = session[:path] if session
36
+ opts = { userAgent: MOBILE_UA, viewport: { width: 375, height: 812 } }
37
+ opts[:storageState] = session[:path] if session
38
38
  context = browser.new_context(**opts)
39
39
 
40
40
  begin
@@ -63,7 +63,7 @@ module GitFit
63
63
  "#{sso}/mobile/sso/en_US/sign-in",
64
64
  params: { 'clientId' => MOBILE_CLIENT_ID, 'service' => MOBILE_SERVICE },
65
65
  headers: { 'User-Agent' => MOBILE_UA, 'Accept' => 'text/html,...', 'Accept-Language' => 'en-US,en;q=0.9' },
66
- max_redirects: 0,
66
+ maxRedirects: 0,
67
67
  )
68
68
 
69
69
  if REDIRECT_STATUSES.include?(signin_resp.status)
@@ -197,7 +197,7 @@ module GitFit
197
197
 
198
198
  cli = _find_playwright_cli
199
199
  Playwright.create(playwright_cli_executable_path: cli) do |playwright|
200
- browser = playwright.chromium.launch(headless: true, executable_path: chrome_path)
200
+ browser = playwright.chromium.launch(headless: true, executablePath: chrome_path)
201
201
  begin
202
202
  yield browser
203
203
  ensure
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitFit
4
- VERSION = '0.10.8'
4
+ VERSION = '0.10.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-fit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.8
4
+ version: 0.10.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lax