toottown 0.2.1 → 0.2.2

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: 12400825d348e5dd3bdbc54a7147b535695870c4adbf2c70aede0c72500e4ed2
4
- data.tar.gz: '08a49875d5894a6cf278a267e2aeecb6ea5b29b89c4c792582a324de5b890e77'
3
+ metadata.gz: c757499a2c00599e918180f088bad022e41644ada670d9e4d26390f170927cfe
4
+ data.tar.gz: bd5fd1d17094fba8ea8a1ff230474e5354f6b2fc711bc9e2cffb7483e359afba
5
5
  SHA512:
6
- metadata.gz: e8f501333702d5705afa9bec997f104302f2dd6a00f091544d58942e22560aace0bcd01a2a14db1799033d980bc852952cfab67c573e5ded49eac7369615a023
7
- data.tar.gz: 592d9cc0db9abbc26c9da279b2ee49cb19e64c53df45202cfbc4a60960f5b4b0b9b9e2cd108f2b850d775b1cb73b448fa5e1a3eae1f849a7c92d13eae59553dd
6
+ metadata.gz: 15dbbe8108dbfd706911eec240d870a063c0d9544f7f5becb1a4ae39ccc4c4490bd8691bff92105c51eea54e18b59b47a17fbcaba904a5452bc9067651d0fea0
7
+ data.tar.gz: 383214d00ca9ebf05cbe7ae616be21bcfa36e4cbefb7d0ddc15ace590d09c0e1986025721d9b4eb0b3f8e35a462eddb77a2668178184b2306e6dfe8335efb90d
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.2] - 2026-10-14
13
+
14
+ - Clean up messy files, fix syntax bug
15
+
12
16
  ## [0.2.1] - 2025-11-15
13
17
 
14
18
  - Remove lazy `blank?` usage…Active Support free!
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- toottown (0.2.1)
4
+ toottown (0.2.2)
5
5
  bridgetown (>= 2.0)
6
6
  phlex (~> 1.3)
7
7
  redis (~> 5.0)
@@ -2,6 +2,7 @@ require "phlex"
2
2
 
3
3
  module Toottown
4
4
  module Models
5
+ # TODO: replace with Streamlined
5
6
  class Comment < Phlex::HTML
6
7
  register_element :toottown_comment
7
8
  register_element :hgroup # FIXME in Phlex! See: https://github.com/joeldrapper/phlex/pull/477
@@ -8,6 +8,7 @@ module Toottown
8
8
  def initialize(instance_url:, access_token:)
9
9
  @instance_url, @access_token = instance_url, access_token
10
10
 
11
+ # TODO: switch to httpx
11
12
  @connection = Faraday.new(
12
13
  instance_url,
13
14
  request: { timeout: 5 },
@@ -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") unles params.key?(:url)
29
+ next (response.status = 400; "Missing URL Parameter") unless 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.1"
4
+ VERSION = "0.2.2"
5
5
  end
data/lib/toottown.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bridgetown"
4
- require "toottown/builder"
5
4
 
6
5
  # @param config [Bridgetown::Configuration::ConfigurationDSL]
7
6
  Bridgetown.initializer :toottown do |
@@ -32,7 +31,4 @@ Bridgetown.initializer :toottown do |
32
31
  require "toottown/routes"
33
32
  end
34
33
  end
35
-
36
- # Register your builder:
37
- config.builder Toottown::Builder
38
34
  end
data/package-lock.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "toottown",
3
+ "version": "0.2.2",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "toottown",
9
+ "version": "0.2.2",
10
+ "license": "MIT"
11
+ }
12
+ }
13
+ }
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toottown",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "main": "frontend/javascript/index.js",
5
5
  "repository": {
6
6
  "type": "git",
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared White
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-11-16 00:00:00.000000000 Z
10
+ date: 2026-10-15 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bridgetown
@@ -122,26 +122,20 @@ files:
122
122
  - README.md
123
123
  - Rakefile
124
124
  - bin/rake
125
- - bridgetown.automation.rb
126
- - components/toottown/layout_help.liquid
127
- - components/toottown/plugin_component.rb
128
- - content/toottown/example_page.md
129
- - content/toottown/train-on-rails.jpeg
130
- - layouts/toottown/layout.html
131
125
  - lib/toottown.rb
132
- - lib/toottown/builder.rb
133
126
  - lib/toottown/models/comment.css
134
127
  - lib/toottown/models/comment.rb
135
128
  - lib/toottown/models/mastodon_connection.rb
136
129
  - lib/toottown/routes.rb
137
130
  - lib/toottown/version.rb
131
+ - package-lock.json
138
132
  - package.json
139
133
  - toottown.gemspec
140
134
  homepage: https://codeberg.org/jaredwhite/toottown
141
135
  licenses:
142
136
  - MIT
143
137
  metadata:
144
- npm_add: toottown@0.2.1
138
+ npm_add: toottown@0.2.2
145
139
  rdoc_options: []
146
140
  require_paths:
147
141
  - lib
@@ -1,51 +0,0 @@
1
- # If your plugin requires a lot of steps to get set up, consider writing an automation to help guide users.
2
- # You could set up and configure all sorts of things, for example:
3
- #
4
- # add_gem("my_plugin")
5
- #
6
- # add_yarn_for_gem("my_plugin")
7
- #
8
- # add_initializer :"my_plugin" do
9
- # <<~RUBY
10
- # do
11
- # some_config_key 12345
12
- # end
13
- # RUBY
14
- # end
15
- #
16
- # create_builder "my_nifty_builder.rb" do
17
- # <<~RUBY
18
- # class MyNeatBuilder < SiteBuilder
19
- # def build
20
- # puts MyPlugin.hello
21
- # end
22
- # end
23
- # RUBY
24
- # end
25
- #
26
- # javascript_import do
27
- # <<~JS
28
- # import { MyPlugin } from "my_plugin"
29
- # JS
30
- # end
31
- #
32
- # javascript_import 'import "my_plugin/frontend/styles/index.css"'
33
- #
34
- # create_file "src/_data/plugin_data.yml" do
35
- # <<~YAML
36
- # data:
37
- # goes: here
38
- # YAML
39
- # end
40
- #
41
- # color = ask("What's your favorite color?")
42
- #
43
- # append_to_file "bridgetown.config.yml" do
44
- # <<~YAML
45
- #
46
- # my_plugin:
47
- # favorite_color: #{color}
48
- # YAML
49
- # end
50
- #
51
- # Read the Automations documentation: https://www.bridgetownrb.com/docs/automations
@@ -1 +0,0 @@
1
- <p>Just use <code>layout: toottown/layout</code> in your page's front matter.</p>
@@ -1,17 +0,0 @@
1
- # rubocop:disable all
2
- module Toottown
3
- class PluginComponent < Bridgetown::Component
4
- def initialize(hi:)
5
- @hi = hi
6
- end
7
-
8
- # You can remove this and add an ERB, Serbea, etc. template file…or you can
9
- # use something like Phlex if you're feeling adventurous!
10
- def template
11
- <<~HTML
12
- Well hello there #{hi}!
13
- HTML
14
- end
15
- end
16
- end
17
- # rubocop:enable all
@@ -1,8 +0,0 @@
1
- ---
2
- layout: default
3
- title: Example Page
4
- ---
5
-
6
- If all goes well, this page will be accessible as [`{{ resource.data.relative_url }}`]({{ resource.data.relative_url }}), and you will see a photo of a train:
7
-
8
- ![Train on Rails]({{ "/toottown/train-on-rails.jpeg" | relative_url }})
Binary file
@@ -1,9 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <p>You can include this layout in your site! 🥳</p>
6
-
7
- {% render "toottown/layout_help" %}
8
-
9
- {{ content }}
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Toottown
4
- class Builder < Bridgetown::Builder
5
- def build
6
- liquid_tag "toottown" do
7
- "This plugin works!"
8
- end
9
- end
10
- end
11
- end