Skip to content

Releases: Rails-Designer/perron

v0.18.0

17 Feb 07:49
b496386

Choose a tag to compare

NEW: Live reload in development

This release adds live live Reload with DOM Morphing through the Mata gem (which works with any rack app—that includes typical Rails apps too!)

Simply add config.live_reload = true to your Perron initializer and brrrrrr… 👨‍💻 🚗 💨

Also common AR-like syntax is now available on content resources:

  • Content::Article.where(section: :content)
  • Content::Article.order(:category) and Content::Article.order(category: :desc)
  • scope :getting_started, -> { where(section: :getting_started) }

What else?

New Contributors

Full Changelog: v0.17.0...v0.18.0

v0.17.0

19 Jan 12:03
56ea353

Choose a tag to compare

Breaking Changes

Root is handled differently going forward.

Before:

# app/controllers/content/pages_controller.rb
class Content::PagesController < ApplicationController
  include Perron::Root  # Concern provided root action
end

After:
The Perron::Root concern has been removed. Instead, explicitly define the root action in your controller:

# app/controllers/content/pages_controller.rb
class Content::PagesController < ApplicationController
  def root
    @resource = Content::Page.root
    
    render :show
  end
end

Migration

  • Remove include Perron::Root from your pages controller
  • Add the explicit root method shown above
  • Ensure you have root to: "content/pages#root" in your config/routes.rb
  • Your app/content/pages/root.erb file remains unchanged

Note: New projects using the generator (bin/rails generate content page) will have this code generated automatically.


What's Changed

  • Add --data flag to content generator for data sources by @eelcoj in #97
  • Make data resource enumerable by @eelcoj in #99
  • Add optional argument to first method to Resource by @eelcoj in #101
  • Do not add markdownify by default to the content resource show action by @eelcoj in #102
  • Check for existince of author association in Feeds::Author by @eelcoj in #103
  • Additional routes config + root path/page tweaks by @eelcoj in #104
  • Fix failing tests; why where these not failing before? 🤔 by @eelcoj in #105

Full Changelog: v0.16.0...v0.17.0

v0.16.0

06 Jan 04:01
fa1c79e

Choose a tag to compare

What's Changed

  • Removed test/dummy files from git by @eelcoj in #89
  • Add author support to RSS and JSON feeds by @eelcoj in #78
  • Remove site_email configuration by @eelcoj in #79
  • Added preview? alias for previewable? by @eelcoj in #87
  • Add OutputServer middleware to serve /output/ folder by @eelcoj in #88
  • Add Data class associations and deprecate Perron::Site.data by @eelcoj in #92

Full Changelog: v0.15.0...v0.16.0

v0.15.0

18 Dec 06:26
4bfe107

Choose a tag to compare

What's Changed

  • Namespace ContentGenerator under Rails::Generators by @eelcoj in #74
  • Add preview mode for draft and scheduled content by @eelcoj in #75
  • Added --new flag/option to Content Generator by @eelcoj in #76

Full Changelog: v0.14.0...v0.15.0

v0.14.0

16 Nov 09:22
102747c

Choose a tag to compare

What's Changed

  • Added estimated_reading_time method to Perron::Resource by @eelcoj in #60
  • Allow routeless resources by @eelcoj in #66
  • Updated included data README by @eelcoj in #67
  • Allow specifying custom markdown parser and ease extension of default parsers by @goose3228 in #69
  • Added resource associations: belongs_to/has_many by @eelcoj in #70
  • Ref for feed by @eelcoj in #71
  • Add source-backed resources for programmatic content generation by @eelcoj in #72

New Contributors

Full Changelog: v0.13.3...v0.14.0

v0.13.3

12 Oct 13:22
91eb1c9

Choose a tag to compare

What's Changed

  • Limit globbing in Collection#all to the allowed extensions only by @eelcoj in #59

Full Changelog: v0.13.2...v0.13.3

v0.13.2

12 Oct 10:40
32f3956

Choose a tag to compare

What's Changed

Full Changelog: v0.13.1...v0.13.2

v0.13.1

12 Oct 05:30
3d49b44

Choose a tag to compare

What's Changed

  • Add support for validation on resource classess by @eelcoj in #56
  • Render erb-tags instead of processing in data README template by @eelcoj in #57

Full Changelog: v0.13.0...v0.13.1

v0.13.0

05 Oct 10:49
39cf341

Choose a tag to compare

What's Changed

  • Include generator in JSON feed + added tests by @eelcoj in #51
  • Updated desc + USAGE for generators by @eelcoj in #52
  • Logic for nested routes support by @eelcoj in #53
  • Make erbify block actually work by @eelcoj in #54
  • Added table_of_content method by @eelcoj in #55

Full Changelog: v0.12.0...v0.13.0

v0.12.0

20 Sep 07:32
b6f1609

Choose a tag to compare

What's Changed

  • Add root to: "content/pages#root on Page collection creation by @eelcoj in #40
  • Use singular class names for content generator by @eelcoj in #41
  • Remove unused to_a by @eelcoj in #42
  • Move assets from public on rails perron:build by @eelcoj in #43
  • Little house keeping by @eelcoj in #45
  • Check content presence for related resources by @eelcoj in #46
  • Configuration to customize (RSS/JSON) feed title + description by @eelcoj in #44
  • Extend data tests with various scalar block styles by @eelcoj in #47
  • Various checks by @eelcoj in #48
  • Default urls data by @eelcoj in #49
  • Support direct file output for paths with extensions by @eelcoj in #50

Full Changelog: v0.11.0...v0.12.0