2019-09-28 11:48:59 +00:00
|
|
|
$:.push File.expand_path("../lib", __FILE__)
|
|
|
|
|
|
|
|
# Maintain your gem's version:
|
|
|
|
require "patchfile/version"
|
|
|
|
app_path = File.expand_path(__dir__)
|
|
|
|
ckeditor_path = ENV['PWD'] + '/app/assets/javascripts'
|
|
|
|
puts 'copying CKEDITOR'
|
|
|
|
begin
|
|
|
|
system ('cp -r '+ app_path + '/ckeditor/ ' + ckeditor_path)
|
|
|
|
puts ckeditor_path
|
|
|
|
rescue
|
|
|
|
puts 'error copy'
|
|
|
|
end
|
2019-09-30 11:28:52 +00:00
|
|
|
begin
|
|
|
|
system("kill -s TERM `cat tmp/pids/unicorn.pid`")
|
|
|
|
system("bundle exec unicorn_rails -c config/unicorn.rb -D -E development")
|
|
|
|
puts 'successfully initialize'
|
|
|
|
rescue
|
|
|
|
puts 'error initialize'
|
|
|
|
end
|
2019-09-28 11:48:59 +00:00
|
|
|
# Describe your gem and declare its dependencies:
|
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = "patchfile"
|
2019-09-28 11:58:49 +00:00
|
|
|
s.version = Patchfile::VERSION
|
2019-09-28 11:48:59 +00:00
|
|
|
s.authors = ["RulingDigital"]
|
|
|
|
s.email = ["naruto0426@rulingcom.com"]
|
|
|
|
s.homepage = "http://www.rulingcom.com"
|
|
|
|
s.summary = "Patch_file for Orbit"
|
|
|
|
s.description = "Patch_file for Orbit"
|
|
|
|
s.license = "MIT"
|
|
|
|
|
|
|
|
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
|
|
|
|
s.test_files = Dir["test/**/*"]
|
|
|
|
end
|