Remove pinboard integration

This commit is contained in:
2023-11-28 19:24:33 +11:00
parent 402d3d3140
commit 97d7c547e8
6 changed files with 4 additions and 21 deletions

View File

@@ -39,7 +39,6 @@ gem "redcarpet"
gem "reverse_markdown"
gem "rexml"
gem "babosa"
gem "pinboard", git: "https://github.com/dnitza/pinboard", branch: "master"
gem "bskyrb"
gem "ogpr"
gem "ruby-filemagic", git: "https://github.com/dnitza/ruby-filemagic", branch: "master"

View File

@@ -7,14 +7,6 @@ GIT
hashie (~> 2.0)
simple-rss (~> 1.3, >= 1.3.1)
GIT
remote: https://github.com/dnitza/pinboard
revision: a178662d901c768a6f76af7b94f7336484752e03
branch: master
specs:
pinboard (1.1.1)
httparty (~> 0.21.0)
GIT
remote: https://github.com/dnitza/ruby-filemagic
revision: 9699941ae5b9d53ce685f2b9808890596fe1334f
@@ -530,7 +522,6 @@ DEPENDENCIES
ogpr
omdb-api (= 1.4.3)
pg
pinboard!
puma
que
rack-rewrite

View File

@@ -7,6 +7,7 @@ module Adamantium
google.com
overcast.fm
youtube.com
bsky.app
github.com]
def call(content)

View File

@@ -26,10 +26,6 @@ module Micropub
uid: "https://social.dnitza.com",
name: "Mastodon"
},
{
uid: "https://pinboard.in",
name: "Pinboard"
},
{
uid: "https://bsky.app",
name: "Blue Sky"
@@ -45,10 +41,6 @@ module Micropub
uid: "https://social.dnitza.com",
name: "Mastodon"
},
{
uid: "https://pinboard.in",
name: "Pinboard"
},
{
uid: "https://bsky.app",
name: "Blue Sky"

View File

@@ -7,7 +7,7 @@ RSpec.describe Micropub::Commands::Posts::Syndicate do
let(:settings) { double("settings", mastodon_server: "https://mastodon.example/@tester", blue_sky_url: "https://bluesky.app") }
let(:mastodon_client) { double("Adamantium::Client::Mastodon") }
let(:mastodon_syndicator) { Adamantium::Syndication::Mastodon.new(mastodon_client: mastodon_client) }
let(:post) { {url: "example.com", syndicate_to: ["https://mastodon.example", "https://pinboard.in"], category: []} }
let(:post) { {url: "example.com", syndicate_to: ["https://mastodon.example", "https://bsky.app"], category: []} }
let(:add_post_syndication_source) { spy(Micropub::Commands::Posts::AddSyndicationSource) }
subject {

View File

@@ -4,8 +4,8 @@ RSpec.describe Adamantium::LinkFinder do
subject { described_class.new }
it "finds allowed links in a string" do
text = "Check out some of these cool websites: https://google.com https://example.com or even http://twitter.com and https://pinboard.in!"
text = "Check out some of these cool websites: https://google.com https://example.com or even http://twitter.com and https://bsky.app"
expect(subject.call(text)).to eq ["https://example.com", "https://pinboard.in"]
expect(subject.call(text)).to eq ["https://example.com"]
end
end