lib/caramelize/input_wiki/wikkawiki.rb in caramelize-1.2.0 vs lib/caramelize/input_wiki/wikkawiki.rb in caramelize-1.2.1

- old
+ new

@@ -1,20 +1,20 @@ # frozen_string_literal: true require 'caramelize/database_connector' -require 'caramelize/filters/add_newline_on_page_end' +require 'caramelize/filters/add_newline_to_page_end' require 'caramelize/filters/camel_case_to_wiki_links' require 'caramelize/filters/wikka_to_markdown' module Caramelize module InputWiki class WikkaWiki < Wiki include DatabaseConnector SQL_PAGES = 'SELECT id, tag, body, time, latest, user, note FROM wikka_pages ORDER BY time;' SQL_AUTHORS = 'SELECT name, email FROM wikka_users;' - FUNCTION_PAGES = %w[AdminBadWords AdminPages AdminUsers AdminSpamLog Callbacks CategoryAdmin CategoryCategory CategoryWiki DatabaseInfo FormattingRules HighScores InterWiki MyChanges MyPages OrphanedPages OwnedPages PageIndex PasswordForgotten RecentChanges RecentlyCommented Sandbox SysInfo TextSearch TextSearchExpanded UserSettings WantedPages WikiCategory WikkaInstaller WikkaConfig WikkaDocumentation WikkaMenulets WikkaReleaseNotes].freeze + FUNCTION_PAGES = %w[AdminBadWords AdminPages AdminUsers AdminSpamLog CategoryAdmin CategoryCategory CategoryWiki DatabaseInfo FormattingRules HighScores InterWiki MyChanges MyPages OrphanedPages OwnedPages PageIndex PasswordForgotten RecentChanges RecentlyCommented Sandbox SysInfo TableMarkup TableMarkupReference TextSearch TextSearchExpanded UserSettings WantedPages WikiCategory WikkaInstaller WikkaConfig WikkaDocumentation WikkaMenulets WikkaReleaseNotes].freeze def initialize(options = {}) super(options) @options[:markup] = :wikka @options[:filters] << Caramelize::AddNewlineOnPageEnd @@ -58,10 +58,10 @@ def pages @pages ||= database.query(pages_query) end - def build_properties(row) + def build_properties(row) # rubocop:todo Metrics/MethodLength author = authors[row['user']] { id: row['id'], title: row['tag'], body: row['body'],