Skip to content

Commit

Permalink
update new plugin name on sources
Browse files Browse the repository at this point in the history
  • Loading branch information
gramos committed Sep 17, 2008
1 parent e6bab3a commit 4f9c93d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion install.rb
@@ -1,6 +1,6 @@
# Install hook code here

directory = File.join(RAILS_ROOT, '/vendor/plugins/easy_fckeditor/')
directory = File.join(RAILS_ROOT, '/vendor/plugins/easy-fckeditor/')
require "#{directory}lib/fckeditor_file_utils"
require "#{directory}lib/fckeditor_version"
require "#{directory}lib/fckeditor"
Expand Down
2 changes: 1 addition & 1 deletion lib/fckeditor.rb
@@ -1,6 +1,6 @@
# Fckeditor
module Fckeditor
PLUGIN_NAME = 'easy_fckeditor'
PLUGIN_NAME = 'easy-fckeditor'
PLUGIN_PATH = "#{RAILS_ROOT}/vendor/plugins/#{PLUGIN_NAME}"
PLUGIN_PUBLIC_PATH = "#{PLUGIN_PATH}/public"
PLUGIN_CONTROLLER_PATH = "#{PLUGIN_PATH}/app/controllers"
Expand Down
4 changes: 2 additions & 2 deletions lib/fckeditor_file_utils.rb
Expand Up @@ -39,7 +39,7 @@ def FckeditorFileUtils.backup_existing

def FckeditorFileUtils.copy_configuration
# need to copy over the code if it doesn't already exist
config_file = File.join(RAILS_ROOT, '/vendor/plugins/easy_fckeditor/public/javascripts/fckcustom_easy.js')
config_file = File.join(RAILS_ROOT, '/vendor/plugins/easy-fckeditor/public/javascripts/fckcustom_easy.js')
dest = File.join(RAILS_ROOT, '/public/javascripts/fckcustom.js')
FileUtils.cp(config_file, dest) unless File.exist?(dest)
end
Expand All @@ -50,7 +50,7 @@ def FckeditorFileUtils.create_uploads_directory
end

def FckeditorFileUtils.install(log)
directory = File.join(RAILS_ROOT, '/vendor/plugins/easy_fckeditor/')
directory = File.join(RAILS_ROOT, '/vendor/plugins/easy-fckeditor/')
source = File.join(directory,'/public/javascripts/fckeditor/')
FileUtils.mkdir(FCKEDITOR_INSTALL_DIRECTORY)
# recursively copy all our files over
Expand Down
2 changes: 1 addition & 1 deletion tasks/fckeditor_tasks.rake
Expand Up @@ -8,7 +8,7 @@ namespace :fckeditor do
require "config/environment"
require 'fileutils'

directory = File.join(RAILS_ROOT, '/vendor/plugins/easy_fckeditor/')
directory = File.join(RAILS_ROOT, '/vendor/plugins/easy-fckeditor/')
require "#{directory}lib/fckeditor"
require "#{directory}lib/fckeditor_version"
require "#{directory}lib/fckeditor_file_utils"
Expand Down
2 changes: 1 addition & 1 deletion uninstall.rb
@@ -1,4 +1,4 @@
directory = File.join(RAILS_ROOT, '/vendor/plugins/easy_fckeditor/')
directory = File.join(RAILS_ROOT, '/vendor/plugins/easy-fckeditor/')
require "#{directory}lib/fckeditor_file_utils"
require "#{directory}lib/fckeditor_version"
require "#{directory}lib/fckeditor"
Expand Down

0 comments on commit 4f9c93d

Please sign in to comment.