Syndicate code posts to Github Gists

This commit is contained in:
2024-03-05 20:34:34 +11:00
parent 56edde6ab5
commit 97c05d3f86
11 changed files with 84 additions and 2 deletions

View File

@@ -3,5 +3,6 @@ Hanami.app.register_provider :clients, namespace: true do
register "mastodon", Adamantium::Client::Mastodon.new
register "blue_sky", Adamantium::Client::BlueSky.new
register "omdb", Adamantium::Client::Omdb.new(api_key: target["settings"].omdb_api_key)
register "gist", Adamantium::Client::Gist.new(token: target["settings"].gist_client_token)
end
end

View File

@@ -1,6 +1,7 @@
Hanami.app.register_provider :syndication, namespace: true do
start do
register "mastodon", Adamantium::Syndication::Mastodon.new
register "gist", Adamantium::Syndication::Gist.new
register "blue_sky", Adamantium::Syndication::BlueSky.new
register "raindrop", Adamantium::Syndication::Raindrop.new(api_key: "Bearer #{target["settings"].raindrop_api_key}")
register "dayone", Adamantium::Syndication::Dayone.new(