Module: Postnhost

Defined in:
lib/postnhost.rb,
lib/postnhost/engine.rb,
lib/postnhost/version.rb,
lib/postnhost/css_build.rb,
lib/postnhost/css_scope.rb,
app/models/postnhost/page.rb,
app/models/postnhost/user.rb,
lib/postnhost/sample_data.rb,
lib/postnhost/configuration.rb,
app/models/postnhost/article.rb,
app/models/postnhost/setting.rb,
app/models/postnhost/version.rb,
lib/postnhost/tailwind_input.rb,
app/models/postnhost/category.rb,
app/models/postnhost/language.rb,
app/models/postnhost/template.rb,
app/models/postnhost/navigation.rb,
lib/postnhost/tailwind_compiler.rb,
app/helpers/postnhost/seo_helper.rb,
app/models/postnhost/site_script.rb,
app/helpers/postnhost/pagy_helper.rb,
app/models/postnhost/page_variant.rb,
lib/postnhost/settings/i18n_patch.rb,
app/jobs/postnhost/application_job.rb,
app/models/postnhost/snapshot/page.rb,
app/helpers/postnhost/schema_helper.rb,
app/models/postnhost/article_author.rb,
app/services/postnhost/base_service.rb,
app/helpers/postnhost/article_helper.rb,
app/models/postnhost/article_variant.rb,
app/models/postnhost/navigation_item.rb,
app/helpers/postnhost/category_helper.rb,
app/helpers/postnhost/settings_helper.rb,
app/models/postnhost/article_category.rb,
app/models/postnhost/category_variant.rb,
app/models/postnhost/snapshot/article.rb,
app/services/postnhost/service_result.rb,
lib/postnhost/settings/i18n_overrides.rb,
app/services/postnhost/sitemap_builder.rb,
app/helpers/postnhost/common_css_helper.rb,
app/helpers/postnhost/navigation_helper.rb,
app/models/postnhost/application_record.rb,
app/models/postnhost/article_suggestion.rb,
app/services/postnhost/publishing/error.rb,
app/uploaders/postnhost/avatar_uploader.rb,
app/helpers/postnhost/application_helper.rb,
app/jobs/postnhost/scheduled_article_job.rb,
app/helpers/postnhost/public_pages_helper.rb,
app/models/postnhost/public_site_revision.rb,
app/controllers/postnhost/pages_controller.rb,
app/controllers/postnhost/users_controller.rb,
app/models/postnhost/published_cover_image.rb,
app/models/postnhost/snapshot/page_variant.rb,
app/services/postnhost/publishing/revision.rb,
app/controllers/postnhost/public_controller.rb,
app/controllers/postnhost/sitemap_controller.rb,
app/models/postnhost/snapshot/article_author.rb,
app/services/postnhost/onboarding/steps/base.rb,
lib/generators/postnhost/user/user_generator.rb,
app/controllers/postnhost/articles_controller.rb,
app/controllers/postnhost/sessions_controller.rb,
app/controllers/postnhost/settings_controller.rb,
app/models/postnhost/snapshot/article_variant.rb,
app/services/postnhost/public_request_context.rb,
app/controllers/postnhost/languages_controller.rb,
app/controllers/postnhost/templates_controller.rb,
app/models/postnhost/snapshot/article_category.rb,
app/uploaders/postnhost/setting_asset_uploader.rb,
lib/generators/postnhost/views/views_generator.rb,
app/controllers/postnhost/categories_controller.rb,
app/controllers/postnhost/onboarding_controller.rb,
app/jobs/postnhost/translation/page_variant_job.rb,
app/services/postnhost/publishing/pages/publish.rb,
app/controllers/postnhost/application_controller.rb,
app/models/concerns/postnhost/schema_localizable.rb,
app/models/postnhost/snapshot/article_suggestion.rb,
app/services/postnhost/onboarding/step_processor.rb,
app/services/postnhost/public_navigation_targets.rb,
lib/generators/postnhost/locale/locale_generator.rb,
app/controllers/concerns/postnhost/authentication.rb,
app/controllers/postnhost/pages/images_controller.rb,
app/models/concerns/postnhost/excerpt_optimizable.rb,
app/services/postnhost/publishing/bulk_transition.rb,
app/services/postnhost/publishing/pages/unpublish.rb,
app/services/postnhost/publishing/route_validator.rb,
app/controllers/postnhost/page_variants_controller.rb,
app/jobs/postnhost/translation/article_variant_job.rb,
app/services/postnhost/publishing/articles/publish.rb,
app/uploaders/postnhost/inline_page_image_uploader.rb,
lib/generators/postnhost/install/install_generator.rb,
app/controllers/concerns/postnhost/public_page_size.rb,
app/controllers/postnhost/public/authors_controller.rb,
app/jobs/postnhost/translation/category_variant_job.rb,
app/models/concerns/postnhost/public_revision_touch.rb,
app/controllers/concerns/postnhost/language_switcher.rb,
app/controllers/postnhost/articles/images_controller.rb,
app/controllers/postnhost/public/articles_controller.rb,
app/models/concerns/postnhost/primary_language_guard.rb,
app/services/postnhost/onboarding/steps/finish_setup.rb,
app/services/postnhost/publishing/articles/unpublish.rb,
app/services/postnhost/translation/openai_llm_client.rb,
app/controllers/concerns/postnhost/public_footer_data.rb,
app/controllers/postnhost/article_variants_controller.rb,
app/services/postnhost/translation/content_translator.rb,
app/uploaders/postnhost/inline_article_image_uploader.rb,
app/controllers/concerns/postnhost/public_http_caching.rb,
app/controllers/postnhost/category_variants_controller.rb,
app/controllers/postnhost/public/categories_controller.rb,
lib/generators/postnhost/tailwindcss/install_generator.rb,
app/controllers/postnhost/pages/translations_controller.rb,
app/services/postnhost/publishing/page_variants/publish.rb,
app/services/postnhost/publishing/pages/snapshot_writer.rb,
app/controllers/postnhost/public/static_pages_controller.rb,
app/services/postnhost/onboarding/steps/choose_languages.rb,
app/services/postnhost/publishing/versions/restore_draft.rb,
app/services/postnhost/onboarding/steps/set_site_metadata.rb,
app/services/postnhost/publishing/page_variants/unpublish.rb,
app/controllers/concerns/postnhost/users/schema_manageable.rb,
app/controllers/postnhost/articles/cover_images_controller.rb,
app/controllers/postnhost/articles/translations_controller.rb,
app/controllers/postnhost/settings/site_scripts_controller.rb,
app/services/postnhost/constraints/public_route_constraint.rb,
app/services/postnhost/publishing/article_variants/publish.rb,
app/services/postnhost/publishing/articles/snapshot_writer.rb,
app/services/postnhost/translation/page_variant_translator.rb,
app/controllers/concerns/postnhost/settings/i18n_manageable.rb,
app/services/postnhost/constraints/public_locale_constraint.rb,
app/controllers/concerns/postnhost/onboarding/access_control.rb,
app/controllers/postnhost/categories/translations_controller.rb,
app/services/postnhost/onboarding/steps/create_admin_account.rb,
app/services/postnhost/publishing/article_variants/unpublish.rb,
app/services/postnhost/publishing/articles/publish_scheduled.rb,
app/services/postnhost/publishing/page_variants/publish_many.rb,
lib/generators/postnhost/static_pages/static_pages_generator.rb,
app/controllers/concerns/postnhost/onboarding/step_assignment.rb,
app/controllers/concerns/postnhost/public_template_resolvable.rb,
app/controllers/concerns/postnhost/settings/schema_manageable.rb,
app/services/postnhost/translation/article_variant_translator.rb,
app/services/postnhost/publishing/page_variants/unpublish_many.rb,
app/services/postnhost/translation/category_variant_translator.rb,
app/services/postnhost/publishing/article_variants/publish_many.rb,
app/services/postnhost/publishing/page_variants/snapshot_writer.rb,
app/controllers/concerns/postnhost/canonical_first_page_redirect.rb,
app/controllers/concerns/postnhost/settings/navigation_manageable.rb,
app/services/postnhost/publishing/article_variants/unpublish_many.rb,
app/services/postnhost/publishing/article_variants/snapshot_writer.rb,
app/services/postnhost/onboarding/steps/complete_post_install_checklist.rb

Defined Under Namespace

Modules: ApplicationHelper, ArticleHelper, Authentication, CanonicalFirstPageRedirect, CategoryHelper, CommonCssHelper, Constraints, ExcerptOptimizable, Generators, InlineImageUploadable, LanguageSwitcher, NavigationHelper, Onboarding, PagyHelper, PrimaryLanguageGuard, PublicFooterData, PublicHttpCaching, PublicPageSize, PublicPagesHelper, PublicRevisionTouch, PublicTemplateResolvable, Publishing, SampleData, SchemaHelper, SchemaLocalizable, SeoHelper, Settings, SettingsHelper, Translation, Users Classes: ApplicationController, ApplicationJob, ApplicationRecord, Article, ArticleAuthor, ArticleCategory, ArticleSuggestion, ArticleVariant, ArticleVariantsController, ArticlesController, AvatarUploader, BaseService, CategoriesController, Category, CategoryVariant, CategoryVariantsController, Configuration, CssBuild, CssScope, Engine, InlineArticleImageUploader, InlinePageImageUploader, Language, LanguagesController, Navigation, NavigationItem, OnboardingController, Page, PageVariant, PageVariantsController, PagesController, PublicController, PublicNavigationTargets, PublicRequestContext, PublicSiteRevision, PublishedCoverImage, ScheduledArticleJob, ServiceResult, SessionsController, Setting, SettingAssetUploader, SettingsController, SiteScript, SitemapBuilder, SitemapController, TailwindCompiler, TailwindInput, Template, TemplatesController, User, UsersController, Version

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



19
20
21
# File 'lib/postnhost.rb', line 19

def configuration
  @configuration
end

Class Method Details

.configObject



28
29
30
# File 'lib/postnhost.rb', line 28

def self.config
  configuration || configure
end

.configure {|configuration| ... } ⇒ Object

Yields:



22
23
24
25
26
# File 'lib/postnhost.rb', line 22

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
  configuration
end