fix error

This commit is contained in:
邱博亞 2021-04-26 16:18:16 +08:00
parent 2d55dd83c3
commit b7353a5acb
1 changed files with 197 additions and 194 deletions

View File

@ -4,6 +4,8 @@ $:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version: # Maintain your gem's version:
require "announcement/version" require "announcement/version"
require 'json' require 'json'
bundle_update_flag = ARGV[0]=='update' || ARGV[0]=='install'
if bundle_update_flag
env_pwd = ENV['PWD'] env_pwd = ENV['PWD']
app_path = File.expand_path(__dir__) app_path = File.expand_path(__dir__)
template_path = env_pwd + '/app/templates' template_path = env_pwd + '/app/templates'
@ -211,6 +213,7 @@ else
end end
#system("cp -rf #{app_path}/temp_file/app #{env_pwd}") #system("cp -rf #{app_path}/temp_file/app #{env_pwd}")
end end
end
# Describe your gem and declare its dependencies: # Describe your gem and declare its dependencies:
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = "announcement" s.name = "announcement"