fix error

This commit is contained in:
邱博亞 2022-03-29 15:50:03 +08:00
parent 2060c5fcf1
commit df3f0a70a4
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
# encoding: UTF-8 # encoding: UTF-8
$:.push File.expand_path("../lib", __FILE__) $:.push File.expand_path("../lib", __FILE__)
$:.push File.expand_path("../app/models", __FILE__)
# Maintain your gem's version: # Maintain your gem's version:
require "announcement/version" require "announcement/version"
require 'json' require 'json'
@ -294,7 +293,7 @@ Gem::Specification.new do |s|
s.description = "Announcements for Orbit" s.description = "Announcements for Orbit"
s.license = "MIT" s.license = "MIT"
s.metadata = { 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)}" "global_hash" => "{enable_manually_sort: (AnnouncementSetting.first.enable_manually_sort rescue false)}"
} }
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"] s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]