Merge pull request #3279 from gschlager/importers_01

Fix gem load order for all importers
This commit is contained in:
Régis Hanol 2015-03-18 21:41:37 +01:00
commit 29a0603850
8 changed files with 8 additions and 13 deletions

View File

@ -7,9 +7,8 @@
# This script is tested only on Simplified Chinese Discuz! X instances
# If you want to import data other than Simplified Chinese, email me.
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require 'mysql2'
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
class ImportScripts::DiscuzX < ImportScripts::Base

View File

@ -1,6 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require "mysql2"
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
class ImportScripts::Drupal < ImportScripts::Base

View File

@ -1,8 +1,7 @@
require "mysql2"
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require File.expand_path(File.dirname(__FILE__) + "/drupal.rb")
require "mysql2"
class ImportScripts::DrupalQA < ImportScripts::Drupal
def categories_query

View File

@ -1,6 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require "mysql2"
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
class ImportScripts::Kunena < ImportScripts::Base

View File

@ -1,6 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require "mysql2"
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
class ImportScripts::PhpBB3 < ImportScripts::Base

View File

@ -1,5 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require "csv"
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
class ImportScripts::Vanilla < ImportScripts::Base

View File

@ -1,5 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require 'mysql2'
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require 'htmlentities'
class ImportScripts::VBulletin < ImportScripts::Base

View File

@ -1,6 +1,6 @@
require "csv"
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require "optparse"
require "csv"
class ImportScripts::VBulletinOld < ImportScripts::Base