2014-05-05 07:57:25 +00:00
|
|
|
$:.push File.expand_path("../lib", __FILE__)
|
|
|
|
|
|
|
|
# Maintain your gem's version:
|
|
|
|
require "faq/version"
|
2021-03-23 08:34:55 +00:00
|
|
|
env_pwd = ENV['PWD']
|
2021-03-23 08:33:56 +00:00
|
|
|
app_path = File.expand_path(__dir__)
|
2021-03-23 08:34:55 +00:00
|
|
|
template_path = env_pwd + '/app/templates'
|
2021-03-23 08:33:56 +00:00
|
|
|
all_template = Dir.glob(template_path+'/*/')
|
|
|
|
all_template.each do |folder|
|
|
|
|
if !folder.include?('mobile')
|
|
|
|
begin
|
|
|
|
puts "updating faq index page"
|
|
|
|
Bundler.with_clean_env{%x[cp -f #{app_path}/modules/faq/faq_index2.html.erb #{folder}modules/faq/faq_index2.html.erb]}
|
|
|
|
rescue
|
|
|
|
puts "There has some error when updating faq index page."
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2014-05-05 07:57:25 +00:00
|
|
|
# Describe your gem and declare its dependencies:
|
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = "faq"
|
|
|
|
s.version = Faq::VERSION
|
|
|
|
s.authors = ["Ruling Digital"]
|
|
|
|
s.email = ["orbit@rulingcom.com"]
|
|
|
|
s.homepage = "http://www.rulingcom.com"
|
|
|
|
s.summary = "FAQ module of orbit"
|
|
|
|
s.description = "FAQ module to create FAQs for orbit"
|
|
|
|
s.license = "MIT"
|
|
|
|
|
|
|
|
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
|
|
|
|
s.test_files = Dir["test/**/*"]
|
|
|
|
end
|