This commit is contained in:
BoHung Chiu 2021-05-27 17:43:40 +08:00
parent ba1d01d4ff
commit 474ab7d2e3
1 changed files with 56 additions and 53 deletions

View File

@ -2,6 +2,8 @@ $:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version: # Maintain your gem's version:
require "faq/version" require "faq/version"
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'
@ -65,6 +67,7 @@ all_template.each do |folder|
end end
end end
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 = "faq" s.name = "faq"