-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from chainsawriot/envvar
fix #68
- Loading branch information
Showing
26 changed files
with
310 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ RoxygenNote: 7.2.1 | |
Depends: | ||
R (>= 3.6) | ||
Imports: | ||
clipr, | ||
dplyr, | ||
httr, | ||
tibble | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
http_interactions: | ||
- request: | ||
method: get | ||
uri: https://emacs.ch/api/v1/accounts/verify_credentials | ||
body: | ||
encoding: '' | ||
string: '' | ||
headers: | ||
Accept: application/json, text/xml, application/xml, */* | ||
Authorization: Bearer <<<MASTODON TOKEN>>> | ||
response: | ||
status: | ||
status_code: 200 | ||
category: Success | ||
reason: OK | ||
message: 'Success: (200) OK' | ||
headers: | ||
cache-control: no-store | ||
content-encoding: gzip | ||
content-security-policy: 'base-uri ''none''; default-src ''none''; frame-ancestors | ||
''none''; font-src ''self'' https://emacs.ch; img-src ''self'' https: data: | ||
blob: https://emacs.ch; style-src ''self'' https://emacs.ch ''nonce-7MquUyr6YSyn1MSrGbaIUw==''; | ||
media-src ''self'' https: data: https://emacs.ch; frame-src ''self'' https:; | ||
manifest-src ''self'' https://emacs.ch; connect-src ''self'' data: blob: https://emacs.ch | ||
https://emacs.ch wss://emacs.ch; script-src ''self'' https://emacs.ch ''unsafe-eval''; | ||
child-src ''self'' blob: https://emacs.ch; worker-src ''self'' blob: https://emacs.ch' | ||
content-type: application/json; charset=utf-8 | ||
date: Tue, 15 Nov 2022 09:37:12 GMT | ||
etag: W/"7f9afc2bc6267d16af26b905bf2789e9" | ||
permissions-policy: interest-cohort=() | ||
server: Mastodon | ||
strict-transport-security: max-age=63072000; includeSubDomains | ||
vary: | ||
- Accept-Encoding | ||
- Origin | ||
x-cached: MISS | ||
x-content-type-options: nosniff | ||
x-frame-options: DENY | ||
x-ratelimit-limit: '300' | ||
x-ratelimit-remaining: '299' | ||
x-ratelimit-reset: '2022-11-15T09:40:00.497295Z' | ||
x-request-id: ccba4244-aae0-4d53-b1f3-9d9279c40f55 | ||
x-runtime: '0.018026' | ||
x-xss-protection: '0' | ||
body: | ||
encoding: '' | ||
file: no | ||
string: '{"id":"109337011845249544","username":"chainsawriot","acct":"chainsawriot","display_name":"chainsawriot","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"","url":"https://emacs.ch/@chainsawriot","avatar":"https://emacs.ch/system/accounts/avatars/109/337/011/845/249/544/original/00fc3aabc87d3564.jpg","avatar_static":"https://emacs.ch/system/accounts/avatars/109/337/011/845/249/544/original/00fc3aabc87d3564.jpg","header":"https://emacs.ch/headers/original/missing.png","header_static":"https://emacs.ch/headers/original/missing.png","followers_count":125,"following_count":62,"statuses_count":21,"last_status_at":"2022-11-14","noindex":true,"source":{"privacy":"public","sensitive":false,"language":"","note":"","fields":[{"name":"Stack","value":":emacs:, | ||
R, stumpwm, linux, firefox","verified_at":null},{"name":"Research Interests","value":"Keine | ||
Ahnung","verified_at":null},{"name":"Web","value":"https://chainsawriot.com/about/","verified_at":"2022-11-14T12:22:07.327+00:00"}],"follow_requests_count":0},"emojis":[{"shortcode":"emacs","url":"https://emacs.ch/system/custom_emojis/images/000/000/358/original/9f320443168e793f.png","static_url":"https://emacs.ch/system/custom_emojis/images/000/000/358/static/9f320443168e793f.png","visible_in_picker":true}],"fields":[{"name":"Stack","value":":emacs:, | ||
R, stumpwm, linux, firefox","verified_at":null},{"name":"Research Interests","value":"Keine | ||
Ahnung","verified_at":null},{"name":"Web","value":"\u003ca href=\"https://chainsawriot.com/about/\" | ||
target=\"_blank\" rel=\"nofollow noopener noreferrer me\"\u003e\u003cspan | ||
class=\"invisible\"\u003ehttps://\u003c/span\u003e\u003cspan class=\"\"\u003echainsawriot.com/about/\u003c/span\u003e\u003cspan | ||
class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e","verified_at":"2022-11-14T12:22:07.327+00:00"}],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}' | ||
recorded_at: 2022-11-15 09:37:12 GMT | ||
recorded_with: vcr/1.1.0, webmockr/0.8.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
library("vcr") # *Required* as vcr is set up on loading | ||
invisible( | ||
vcr::vcr_configure( | ||
filter_sensitive_data = list("<<<MASTODON TOKEN>>>" = Sys.getenv('RTOOT_DEFAULT_TOKEN')), | ||
filter_sensitive_data = list("<<<MASTODON TOKEN>>>" = get_token_from_envvar("RTOOT_DEFAULT_TOKEN", check_stop = FALSE)$bearer), | ||
dir = vcr::vcr_test_path("fixtures") | ||
)) | ||
vcr::check_cassette_names() |
Oops, something went wrong.