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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b52297c595a4a4bded83dc3361ab8157991eaaca4018bd338a4b9f993fc355e4
4
- data.tar.gz: cb72b3b0050c2874fa18bfc85e0d83e95f6aaf3f9e4298ab4717a55dc3024d0d
3
+ metadata.gz: 12400825d348e5dd3bdbc54a7147b535695870c4adbf2c70aede0c72500e4ed2
4
+ data.tar.gz: '08a49875d5894a6cf278a267e2aeecb6ea5b29b89c4c792582a324de5b890e77'
5
5
  SHA512:
6
- metadata.gz: 2a3660b34c646c8e4ba0e319cd67217b7fef39da93d09ed272cf9ec3fa24b0a17fbd236b4b37aa9e50d415fee405ebcefa634522e130758bd1549e1ad2490bc7
7
- data.tar.gz: 3170775c36ecb9a7d4c1b07d44709847fdb4673524727b83d00079a065df6a3ed1d1090b1ba6ed7609ff1e20f69b015faeb825247e2a26155c09c9020a65d14d
6
+ metadata.gz: e8f501333702d5705afa9bec997f104302f2dd6a00f091544d58942e22560aace0bcd01a2a14db1799033d980bc852952cfab67c573e5ded49eac7369615a023
7
+ data.tar.gz: 592d9cc0db9abbc26c9da279b2ee49cb19e64c53df45202cfbc4a60960f5b4b0b9b9e2cd108f2b850d775b1cb73b448fa5e1a3eae1f849a7c92d13eae59553dd
data/CHANGELOG.md CHANGED
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  - ...
11
11
 
12
+ ## [0.2.1] - 2025-11-15
13
+
14
+ - Remove lazy `blank?` usage…Active Support free!
15
+
12
16
  ## [0.2.0] - 2025-10-07
13
17
 
14
18
  - Migrate project to Codeberg
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- toottown (0.2.0)
4
+ toottown (0.2.1)
5
5
  bridgetown (>= 2.0)
6
6
  phlex (~> 1.3)
7
7
  redis (~> 5.0)
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")
@@ -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") if params[:url].blank?
29
+ next (response.status = 400; "Missing URL Parameter") unles params.key?(:url)
30
30
 
31
31
  url = limit_url.(params[:url])
32
32
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Toottown
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
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.blank? || access_token.blank?
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.0
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-07 00:00:00.000000000 Z
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.0
144
+ npm_add: toottown@0.2.1
144
145
  rdoc_options: []
145
146
  require_paths:
146
147
  - lib