Remove pinboard integration
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -39,7 +39,6 @@ gem "redcarpet"
|
|||||||
gem "reverse_markdown"
|
gem "reverse_markdown"
|
||||||
gem "rexml"
|
gem "rexml"
|
||||||
gem "babosa"
|
gem "babosa"
|
||||||
gem "pinboard", git: "https://github.com/dnitza/pinboard", branch: "master"
|
|
||||||
gem "bskyrb"
|
gem "bskyrb"
|
||||||
gem "ogpr"
|
gem "ogpr"
|
||||||
gem "ruby-filemagic", git: "https://github.com/dnitza/ruby-filemagic", branch: "master"
|
gem "ruby-filemagic", git: "https://github.com/dnitza/ruby-filemagic", branch: "master"
|
||||||
|
@@ -7,14 +7,6 @@ GIT
|
|||||||
hashie (~> 2.0)
|
hashie (~> 2.0)
|
||||||
simple-rss (~> 1.3, >= 1.3.1)
|
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
|
GIT
|
||||||
remote: https://github.com/dnitza/ruby-filemagic
|
remote: https://github.com/dnitza/ruby-filemagic
|
||||||
revision: 9699941ae5b9d53ce685f2b9808890596fe1334f
|
revision: 9699941ae5b9d53ce685f2b9808890596fe1334f
|
||||||
@@ -530,7 +522,6 @@ DEPENDENCIES
|
|||||||
ogpr
|
ogpr
|
||||||
omdb-api (= 1.4.3)
|
omdb-api (= 1.4.3)
|
||||||
pg
|
pg
|
||||||
pinboard!
|
|
||||||
puma
|
puma
|
||||||
que
|
que
|
||||||
rack-rewrite
|
rack-rewrite
|
||||||
|
@@ -7,6 +7,7 @@ module Adamantium
|
|||||||
google.com
|
google.com
|
||||||
overcast.fm
|
overcast.fm
|
||||||
youtube.com
|
youtube.com
|
||||||
|
bsky.app
|
||||||
github.com]
|
github.com]
|
||||||
|
|
||||||
def call(content)
|
def call(content)
|
||||||
|
@@ -26,10 +26,6 @@ module Micropub
|
|||||||
uid: "https://social.dnitza.com",
|
uid: "https://social.dnitza.com",
|
||||||
name: "Mastodon"
|
name: "Mastodon"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
uid: "https://pinboard.in",
|
|
||||||
name: "Pinboard"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
uid: "https://bsky.app",
|
uid: "https://bsky.app",
|
||||||
name: "Blue Sky"
|
name: "Blue Sky"
|
||||||
@@ -45,10 +41,6 @@ module Micropub
|
|||||||
uid: "https://social.dnitza.com",
|
uid: "https://social.dnitza.com",
|
||||||
name: "Mastodon"
|
name: "Mastodon"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
uid: "https://pinboard.in",
|
|
||||||
name: "Pinboard"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
uid: "https://bsky.app",
|
uid: "https://bsky.app",
|
||||||
name: "Blue Sky"
|
name: "Blue Sky"
|
||||||
|
@@ -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(:settings) { double("settings", mastodon_server: "https://mastodon.example/@tester", blue_sky_url: "https://bluesky.app") }
|
||||||
let(:mastodon_client) { double("Adamantium::Client::Mastodon") }
|
let(:mastodon_client) { double("Adamantium::Client::Mastodon") }
|
||||||
let(:mastodon_syndicator) { Adamantium::Syndication::Mastodon.new(mastodon_client: mastodon_client) }
|
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) }
|
let(:add_post_syndication_source) { spy(Micropub::Commands::Posts::AddSyndicationSource) }
|
||||||
|
|
||||||
subject {
|
subject {
|
||||||
|
@@ -4,8 +4,8 @@ RSpec.describe Adamantium::LinkFinder do
|
|||||||
subject { described_class.new }
|
subject { described_class.new }
|
||||||
|
|
||||||
it "finds allowed links in a string" do
|
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
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user