toottown 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/bin/rake +27 -0
- data/lib/toottown/routes.rb +1 -1
- data/lib/toottown/version.rb +1 -1
- data/lib/toottown.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12400825d348e5dd3bdbc54a7147b535695870c4adbf2c70aede0c72500e4ed2
|
|
4
|
+
data.tar.gz: '08a49875d5894a6cf278a267e2aeecb6ea5b29b89c4c792582a324de5b890e77'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8f501333702d5705afa9bec997f104302f2dd6a00f091544d58942e22560aace0bcd01a2a14db1799033d980bc852952cfab67c573e5ded49eac7369615a023
|
|
7
|
+
data.tar.gz: 592d9cc0db9abbc26c9da279b2ee49cb19e64c53df45202cfbc4a60960f5b4b0b9b9e2cd108f2b850d775b1cb73b448fa5e1a3eae1f849a7c92d13eae59553dd
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/bin/rake
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'rake' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
|
+
|
|
13
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
+
|
|
15
|
+
if File.file?(bundle_binstub)
|
|
16
|
+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
+
load(bundle_binstub)
|
|
18
|
+
else
|
|
19
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
require "rubygems"
|
|
25
|
+
require "bundler/setup"
|
|
26
|
+
|
|
27
|
+
load Gem.bin_path("rake", "rake")
|
data/lib/toottown/routes.rb
CHANGED
|
@@ -26,7 +26,7 @@ module Toottown
|
|
|
26
26
|
conn = Toottown::Models::MastodonConnection.new(instance_url: bridgetown_site.config.toottown.instance_url, access_token: bridgetown_site.config.toottown.access_token)
|
|
27
27
|
|
|
28
28
|
r.on "comments" do
|
|
29
|
-
next (response.status = 400; "Missing URL Parameter")
|
|
29
|
+
next (response.status = 400; "Missing URL Parameter") unles params.key?(:url)
|
|
30
30
|
|
|
31
31
|
url = limit_url.(params[:url])
|
|
32
32
|
|
data/lib/toottown/version.rb
CHANGED
data/lib/toottown.rb
CHANGED
|
@@ -18,7 +18,7 @@ Bridgetown.initializer :toottown do |
|
|
|
18
18
|
config.toottown.minutes_to_cache ||= minutes_to_cache
|
|
19
19
|
config.toottown.comments_hashtag ||= comments_hashtag
|
|
20
20
|
|
|
21
|
-
if instance_url.
|
|
21
|
+
if instance_url.nil? || access_token.nil?
|
|
22
22
|
Bridgetown.logger.warn "Toottown", "No instance URL or access token provided"
|
|
23
23
|
else
|
|
24
24
|
config.only :server do
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: toottown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jared White
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
10
|
+
date: 2025-11-16 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: bridgetown
|
|
@@ -121,6 +121,7 @@ files:
|
|
|
121
121
|
- LICENSE.txt
|
|
122
122
|
- README.md
|
|
123
123
|
- Rakefile
|
|
124
|
+
- bin/rake
|
|
124
125
|
- bridgetown.automation.rb
|
|
125
126
|
- components/toottown/layout_help.liquid
|
|
126
127
|
- components/toottown/plugin_component.rb
|
|
@@ -140,7 +141,7 @@ homepage: https://codeberg.org/jaredwhite/toottown
|
|
|
140
141
|
licenses:
|
|
141
142
|
- MIT
|
|
142
143
|
metadata:
|
|
143
|
-
npm_add: toottown@0.2.
|
|
144
|
+
npm_add: toottown@0.2.1
|
|
144
145
|
rdoc_options: []
|
|
145
146
|
require_paths:
|
|
146
147
|
- lib
|