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 +4 -4
- data/lib/git_fit/auth/garmin/strategy_b.rb +4 -4
- data/lib/git_fit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 990b506f035333d622b5112652251ecfb100fe152493439b2573fe002dcf2420
|
|
4
|
+
data.tar.gz: 8935f8b3f86d62926666ff6fbd37401b230f4182260421c40b7a2e5ecc9e0d03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 = {
|
|
37
|
-
opts[:
|
|
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
|
-
|
|
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,
|
|
200
|
+
browser = playwright.chromium.launch(headless: true, executablePath: chrome_path)
|
|
201
201
|
begin
|
|
202
202
|
yield browser
|
|
203
203
|
ensure
|
data/lib/git_fit/version.rb
CHANGED