Releases: Rails-Designer/perron
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
v0.12.0
What's Changed
- Add
root to: "content/pages#rooton Page collection creation by @eelcoj in #40 - Use singular class names for content generator by @eelcoj in #41
- Remove unused
to_aby @eelcoj in #42 - Move
assetsfrompubliconrails perron:buildby @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