Template of a custom feed generator service for the Bluesky network in Ruby

separated config file into feed config and requires

Changed files
+6 -5
app
+2 -5
app/config.rb
··· 1 - Dir[File.join(__dir__, 'feeds', '*.rb')].each { |f| require(f) } 1 + require_relative 'init' 2 2 3 - require 'blue_factory' 4 - require 'sinatra/activerecord' 5 - 6 - ActiveRecord::Base.connection.execute "PRAGMA journal_mode = WAL" 3 + Dir[File.join(__dir__, 'feeds', '*.rb')].each { |f| require(f) } 7 4 8 5 BlueFactory.set :publisher_did, 'did:plc:<your_identifier_here>' 9 6 BlueFactory.set :hostname, 'feeds.example.com'
+4
app/init.rb
··· 1 + require 'blue_factory' 2 + require 'sinatra/activerecord' 3 + 4 + ActiveRecord::Base.connection.execute "PRAGMA journal_mode = WAL"