Skip to content

Releases: Rails-Designer/perron

v1.0.0

28 Apr 02:52
a2fe289

Choose a tag to compare

What's Changed

  • Uses find! in certain places for content resource lookups by @eelcoj in #138
  • Update appraisal gemfiles by @eelcoj in #139
  • Small output tweak by @eelcoj in #140
  • Fix pages root method indentation by @eelcoj in #141
  • Build paths based of routes instead of collections by @eelcoj in #137
  • Some feed rendering fixes by @eelcoj in #146
  • Option to define collection_name on controller by @eelcoj in #147
  • Don't suppress assets:precompile output by @goose3228 in #148
  • Added option for Atom feeds by @eelcoj in #150
  • Fix sitemap missing when metadata.updated_at is absent by @m-lague in #145
  • Make sitemaps work off paths by @eelcoj in #152
  • Warn when perron:build is not run in production mode by @ianyamey in #149
  • Make filename generation for, e.g. rails g content Post --new more flexible by @eelcoj in #154
  • Change format for template file by @eelcoj in #155
  • Perron welcome screen by @eelcoj in #142
  • Added middleware to catch feed + sitemap render in development by @eelcoj in #156
  • Added support for --inline flag to generator by @eelcoj in #160
  • Support for @resource access in processors by @eelcoj in #161
  • Properly humanize feed types by @eelcoj in #162
  • Change install command to task: bin/rails perron:install by @eelcoj in #159
  • Custom feeds by @eelcoj in #165
  • Option to view unpublished content via env var by @eelcoj in #164
  • Added more array-in-frontmatter tests by @eelcoj in #171
  • Added favicon + improved concierge/welcome screen by @eelcoj in #172
  • Fix generated content destroy action + test by @eelcoj in #170
  • Absolute feed images + processor by @eelcoj in #169
  • Add output_server_strict config by @eelcoj in #163
  • Sources procs + class support by @eelcoj in #173
  • Indentation fix for root action + simplified testing by @eelcoj in #175
  • Fix URL in atom feeds by @eelcoj in #176
  • Run OutputServer only in development by @eelcoj in #177
  • Tightened related class by @eelcoj in #179
  • Data source spring cleaning by @eelcoj in #178
  • Set output_server_strict to true by default by @eelcoj in #180
  • Optional data source caching by @eelcoj in #181
  • Atom generator should point to Perron by @eelcoj in #183
  • Add Perron::Adjacency concern for next/previous navigation by @eelcoj in #184
  • Remove syntax highlight processor by @eelcoj in #185

New Contributors

Full Changelog: v0.18.0...v1.0.0

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