fzngagan
(Faizaan Gagan)
April 27, 2022, 11:41am
4
Hi @FerrariFlunker
Here’s in an example of of an official plugin which uses a local copy of the holidays gem. I think you can use a similar pattern in your case.
Here’s how its included.
# frozen_string_literal: true
# name: discourse-calendar
# about: Display a calendar in the first post of a topic
# version: 0.2
# author: Daniel Waterworth, Joffrey Jaffeux
# url: https://github.com/discourse/discourse-calendar
# transpile_js: true
libdir = File.join(File.dirname(__FILE__), "vendor/holidays/lib")
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
gem 'rrule', '0.4.4', require: false
load File.expand_path('../lib/calendar_settings_validator.rb', __FILE__)
enabled_site_setting :calendar_enabled
register_asset 'stylesheets/vendor/fullcalendar.min.css'
register_asset 'stylesheets/common/discourse-calendar.scss'