Skip to content

Commit

Permalink
Merge branch 'master' into remove-sassc-sprockets
Browse files Browse the repository at this point in the history
  • Loading branch information
langalex committed Dec 20, 2024
2 parents 8d0e8b2 + 80db548 commit aac7ecb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 52 deletions.
1 change: 0 additions & 1 deletion .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
- "3.2"
- "3.3"
rails-version:
- "6.1"
- "7.1"
- "7.2"
continue-on-error: [true]
Expand Down
30 changes: 14 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,28 @@

# ComfortableMediaSurfer

ComfortableMediaSurfer is a powerful Ruby 6.1+ CMS (Content Management System) Engine, picking up where [ComfortableMexicanSofa](https://github.com/comfy/comfortable-mexican-sofa) left off.
ComfortableMediaSurfer is a powerful Ruby 7.0+ CMS (Content Management System) Engine, picking up where [ComfortableMexicanSofa](https://github.com/comfy/comfortable-mexican-sofa) left off.

## Features

* Simple drop-in integration with Rails 6.1+ apps with minimal configuration
* The CMS keeps clear from the rest of your application
* Powerful page templating capability using [Content Tags](https://github.com/comfy/comfortable-mexican-sofa/wiki/Docs:-Content-Tags)
* [Multiple Sites](https://github.com/comfy/comfortable-mexican-sofa/wiki/Docs:-Sites) from a single installation
* Multi-Language Support (i18n) (ca, cs, da, de, en, es, fi, fr, gr, hr, it, ja, nb, nl, pl, pt-BR, ru, sv, tr, uk, zh-CN, zh-TW) and page localization.
* [CMS Seeds](https://github.com/comfy/comfortable-mexican-sofa/wiki/Docs:-CMS-Seeds) for initial content population
* [Revision History](https://github.com/comfy/comfortable-mexican-sofa/wiki/Docs:-Revisions) to revert changes
* [Extendable Admin Area](https://github.com/comfy/comfortable-mexican-sofa/wiki/HowTo:-Reusing-Admin-Area) built with [Bootstrap 4](http://getbootstrap.com) (responsive design). Using [CodeMirror](http://codemirror.net) for HTML and Markdown highlighing and [Redactor](http://imperavi.com/redactor) as the WYSIWYG editor.
- Simple drop-in integration with Rails 7.0+ apps with minimal configuration
- The CMS keeps clear from the rest of your application
- Powerful page templating capability using [Content Tags](https://github.com/comfy/comfortable-mexican-sofa/wiki/Docs:-Content-Tags)
- [Multiple Sites](https://github.com/comfy/comfortable-mexican-sofa/wiki/Docs:-Sites) from a single installation
- Multi-Language Support (i18n) (ca, cs, da, de, en, es, fi, fr, gr, hr, it, ja, nb, nl, pl, pt-BR, ru, sv, tr, uk, zh-CN, zh-TW) and page localization.
- [CMS Seeds](https://github.com/comfy/comfortable-mexican-sofa/wiki/Docs:-CMS-Seeds) for initial content population
- [Revision History](https://github.com/comfy/comfortable-mexican-sofa/wiki/Docs:-Revisions) to revert changes
- [Extendable Admin Area](https://github.com/comfy/comfortable-mexican-sofa/wiki/HowTo:-Reusing-Admin-Area) built with [Bootstrap 4](http://getbootstrap.com) (responsive design). Using [CodeMirror](http://codemirror.net) for HTML and Markdown highlighing and [Redactor](http://imperavi.com/redactor) as the WYSIWYG editor.

## Dependencies

* File attachments are handled by [ActiveStorage](https://github.com/rails/rails/tree/master/activestorage). Make sure that you can run appropriate migrations by running: `rails active_storage:install`
* Image resizing is done with with [ImageMagick](http://www.imagemagick.org/script/download.php), so make sure it's installed.
* Pagination is handled by [kaminari](https://github.com/amatsuda/kaminari) or [will_paginate](https://github.com/mislav/will_paginate). Please add one of those to your Gemfile.
- File attachments are handled by [ActiveStorage](https://github.com/rails/rails/tree/master/activestorage). Make sure that you can run appropriate migrations by running: `rails active_storage:install`
- Image resizing is done with with [ImageMagick](http://www.imagemagick.org/script/download.php), so make sure it's installed.
- Pagination is handled by [kaminari](https://github.com/amatsuda/kaminari) or [will_paginate](https://github.com/mislav/will_paginate). Please add one of those to your Gemfile.

## Compatibility

- Ruby >= 3.0 with Rails >= 6.1
- On Ruby 3.x, Rails 7.x + is recommended, since performance is noticably better than on 6.x
On Ruby 3.x, Rails 7.x +

## Installation

Expand All @@ -55,7 +54,7 @@ comfy_route :cms, path: "/"

After finishing installation you should be able to navigate to http://localhost:3000/admin

Default username and password is 'user' and 'pass'. You probably want to change it right away. Admin credentials (among other things) can be found and changed in the cms initializer: [/config/initializers/comfortable\_media\_surfer.rb](https://github.com/shakacode/comfortable-media-surfer/blob/master/config/initializers/comfortable_media_surfer.rb)
Default username and password is 'user' and 'pass'. You probably want to change it right away. Admin credentials (among other things) can be found and changed in the cms initializer: [/config/initializers/comfortable_media_surfer.rb](https://github.com/shakacode/comfortable-media-surfer/blob/master/config/initializers/comfortable_media_surfer.rb)

Before creating pages and populating them with content we need to create a Site. Site defines a hostname, content path and its language.

Expand Down Expand Up @@ -96,7 +95,6 @@ in Github releases.

ComfortableMediaSurfer can run like any Rails application in development. It's as easy to work on as any other Rails app. For more detail see [CONTRIBUTING](CONTRIBUTING.md)


#### Testing

- `bin/rails db:migrate RAILS_ENV=test`
Expand Down
6 changes: 3 additions & 3 deletions comfortable_media_surfer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
spec.authors = ['Oleg Khabarov', 'Andrew vonderLuft', 'ShakaCode']
spec.email = ['[email protected]']
spec.homepage = 'https://github.com/shakacode/comfortable-media-surfer'
spec.summary = 'Rails 6.1-7.1+ CMS Engine'
spec.description = 'ComfortableMediaSurfer is a powerful Rails 6.1-7.1+ CMS Engine'
spec.summary = 'Rails 7.0+ CMS Engine'
spec.description = 'ComfortableMediaSurfer is a powerful Rails 7.0+ CMS Engine'
spec.license = 'MIT'

spec.files = `git ls-files -z`.split("\x0").reject do |f|
Expand All @@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
spec.add_dependency 'kramdown', '~> 2.4', '>= 2.4.0'
spec.add_dependency 'mimemagic', '~> 0.4', '>= 0.4.3'
spec.add_dependency 'mini_magick', '~> 4.12', '>= 4.12.0'
spec.add_dependency 'rails', '>= 6.1.0'
spec.add_dependency 'rails', '>= 7.0.0'
spec.add_dependency 'rails-i18n', '>= 6.0.0'
end
32 changes: 0 additions & 32 deletions gemfiles/6.1.gemfile

This file was deleted.

0 comments on commit aac7ecb

Please sign in to comment.