mirror of
https://github.com/plashchynski/crono.git
synced 2026-01-13 22:03:27 +01:00
[PR #91] [MERGED] Convert to Rails engine #100
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/plashchynski/crono/pull/91
Author: @cseelus
Created: 2/14/2021
Status: ✅ Merged
Merged: 5/29/2022
Merged by: @plashchynski
Base:
master← Head:convert-to-engine-rspec📝 Commits (5)
d53520bUse Rails plugin generator and adapt551572fMove CronoJob to models dir6fee31fFix testsee79596Cleanup and get rspec to run again333f18dMerge branch 'master' into convert-to-engine-rspec📊 Changes
76 files changed (+775 additions, -1420 deletions)
View changed files
📝
.rspec(+1 -0)📝
Changes.md(+8 -0)📝
Gemfile(+21 -1)📝
Gemfile.lock(+161 -3)📝
README.md(+5 -11)📝
Rakefile(+3 -4)➕
app/assets/javascripts/crono/materialize.min.js(+6 -0)➕
app/assets/stylesheets/crono/application.css(+26 -0)➕
app/assets/stylesheets/crono/materialize.min.css(+31 -0)➕
app/controllers/crono/application_controller.rb(+5 -0)➕
app/controllers/crono/jobs_controller.rb(+11 -0)➕
app/models/crono/application_record.rb(+5 -0)📝
app/models/crono/crono_job.rb(+1 -2)➕
app/views/crono/jobs/index.html.erb(+50 -0)➕
app/views/crono/jobs/show.html.erb(+16 -0)➕
app/views/layouts/crono/application.html.erb(+31 -0)➕
bin/rails(+24 -0)➕
config.ru(+9 -0)➕
config/routes.rb(+4 -0)📝
crono.gemspec(+5 -6)...and 56 more files
📄 Description
First, thanks for this gem. Been using it since ~5 years and it works really reliably.
This PR converts Crono to a Rails Engine. Sinatra (and Haml) are not needed as dependencies for the Web UI anymore.
It also updates Materialize CSS and overhauls the Web UI to make it responsive and display properly on mobile devices:
Before:

After:

After (alternative w/o tables, in different branch):

All tests are green again. A bit of cleanup that I still could do, should this PR be a direction you want to go.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.