Releases: Rails-Designer/perron
v1.0.0
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_nameon 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 --newmore 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
--inlineflag 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:installby @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_strictconfig 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_strictto 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
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)andContent::Article.order(category: :desc)scope :getting_started, -> { where(section: :getting_started) }
What else?
- Support passing block to
markdownifywith process array by @eelcoj in #112 - Added search endpoint by @eelcoj in #116
- Replaced
method_missingwith[]=by @eelcoj in #106 - Refactor Perron::Data to Perron::DataSource by @eelcoj in #108
- Updated bin/release script by @eelcoj in #110
- Added deprecation message to syntax highlight processor by @eelcoj in #113
- Cleaned up content generator USAGE by @eelcoj in #114
- Content generator fixes by @eelcoj in #115
- Improve performance of related resources by @ianyamey in #117
- Default RAILS_ENV to production for perron:build by @ianyamey in #121
- Add inline rendering support to Perron::Resource by @ianyamey in #122
- Move helpers by @eelcoj in #129
- Added HMR/live-reload via Mata gem 🕵️💃 by @eelcoj in #126
- Soft-deprecate
Resource#findby @eelcoj in #124 - Updated data README by @eelcoj in #125
- Improve data errors output by @eelcoj in #130
- Added
Relationclass for chainable methods (where, order and scopes) by @eelcoj in #118 - Use
find!in generated controller by @eelcoj in #131 - Reorder config by @eelcoj in #132
- Added Appraisals by @eelcoj in #133
- Return Perron::Relation from has_many associations by @ianyamey in #136
- Added preview indicator when serving output by @eelcoj in #134
New Contributors
Full Changelog: v0.17.0...v0.18.0
v0.17.0
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
endAfter:
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
endMigration
- Remove
include Perron::Rootfrom your pages controller - Add the explicit
rootmethod shown above - Ensure you have
root to: "content/pages#root"in yourconfig/routes.rb - Your
app/content/pages/root.erbfile remains unchanged
Note: New projects using the generator (bin/rails generate content page) will have this code generated automatically.
What's Changed
- Add
--dataflag 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
markdownifyby default to the content resource show action by @eelcoj in #102 - Check for existince of
authorassociation 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
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_emailconfiguration by @eelcoj in #79 - Added
preview?alias forpreviewable?by @eelcoj in #87 - Add OutputServer middleware to serve /output/ folder by @eelcoj in #88
- Add Data class associations and deprecate
Perron::Site.databy @eelcoj in #92
Full Changelog: v0.15.0...v0.16.0
v0.15.0
v0.14.0
What's Changed
- Added
estimated_reading_timemethod 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
- @goose3228 made their first contribution in #69
Full Changelog: v0.13.3...v0.14.0
v0.13.3
v0.13.2
v0.13.1
v0.13.0
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_contentmethod by @eelcoj in #55
Full Changelog: v0.12.0...v0.13.0