From df3f0a70a4f9486cd5411e686264b144ec638197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Tue, 29 Mar 2022 15:50:03 +0800 Subject: [PATCH] fix error --- announcement.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 957d0c8..099944f 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -1,6 +1,5 @@ # encoding: UTF-8 $:.push File.expand_path("../lib", __FILE__) -$:.push File.expand_path("../app/models", __FILE__) # Maintain your gem's version: require "announcement/version" require 'json' @@ -294,7 +293,7 @@ Gem::Specification.new do |s| s.description = "Announcements for Orbit" s.license = "MIT" s.metadata = { - "_require" => "announcement_setting", + "_require" => "#{File.expand_path("../app/models/announcement_setting", __FILE__)}", "global_hash" => "{enable_manually_sort: (AnnouncementSetting.first.enable_manually_sort rescue false)}" } s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]