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

@@ -36,6 +36,7 @@ module Adamantium
"syndication.dayone",
"syndication.mastodon",
"syndication.blue_sky",
"syndication.gist",
"syndication.raindrop",
"view_cache.cacher",
"renderers.markdown"

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(

View File

@@ -72,5 +72,7 @@ module Adamantium
setting :sentry_dsn, default: nil
setting :raise_exceptions, default: true
setting :gist_client_token, default: nil
end
end

4
config/taglines.yaml Normal file
View File

@@ -0,0 +1,4 @@
taglines:
- lord of the dance
- would that it were so simple
- "*furious hand gestures*"