module Kithe

Constants

STANDARD_PROGRESS_BAR_FORMAT

for ruby-progressbar

VERSION

not sure why rubygems turned our alphas into 2.0.0.pre.alpha1, inserting “pre”. We need to do same thing with betas to get version orderings appropriate.

Attributes

indexable_settings[W]
use_mediainfo[RW]

Currently used by Kithe::AssetUploader, a bit of a hacky design, we should improve with better way to customize uploaders.

Public Class Methods

indexable_settings() click to toggle source
# File lib/kithe.rb, line 73
def self.indexable_settings
  @indexable_settings ||= IndexableSettings.new(
    solr_url: "http://localhost:8983/solr/default",
    model_name_solr_field: "model_name_ssi",
    solr_id_value_attribute: "id",
    writer_class_name: "Traject::SolrJsonWriter",
    writer_settings: {
      # as default we tell the solrjsonwriter to use no threads,
      # no batching. softCommit on every update. Least surprising
      # default configuration.
      "solr_writer.thread_pool" => 0,
      "solr_writer.batch_size" => 1,
      "solr_writer.solr_update_args" => { softCommit: true },
      "solr_writer.http_timeout" => 3,
      "logger" => Rails.logger,

      # MAYBE? no skippable exceptions please
      # "solr_writer.skippable_exceptions" => []
    },
    disable_callbacks: false
  )
end
railtie_namespace() click to toggle source

We don't want an isolated engine, but we do want this, part of what isolated engines do. Will make generators use namespace scope, among other things.

# File lib/kithe.rb, line 28
def self.railtie_namespace
  Kithe::Engine
end
table_name_prefix() click to toggle source

ActiveRecord will automatically pick this up for all our models. We don't want an isolated engine, but we do want this, part of what isolated engines do.

# File lib/kithe.rb, line 22
def self.table_name_prefix
  'kithe_'
end