comfortable-mexican-sofa

ComfortableMexicanSofa is a powerful Ruby on Rails 5.2+ CMS (Content Management System) Engine

MIT License

Downloads
1.7M
Stars
2.7K
Committers
154

Bot releases are visible (Hide)

comfortable-mexican-sofa - 2.0.19 Latest Release

Published by GBH almost 5 years ago

  • Support for Rails 6.0 (file upload bug is fixed)
comfortable-mexican-sofa - 2.0.17

Published by GBH over 5 years ago

Quick fix so proper form builder is used.

comfortable-mexican-sofa - 2.0.18

Published by GBH over 5 years ago

  • Fixing bugs mostly related to ActiveStorage attachments
  • Since Ruby SASS is getting deprecated dependency is changed from sass-rails to sassc-rails
  • Minor tweaks that accumulated over the last several months.

Note that existing Files might get their labels blanked-out. There was a label method that would output filename if label is blank. Now label is always set during creation.

comfortable-mexican-sofa - 2.0.16

Published by GBH over 6 years ago

  • Fixing ERB injection vulnerability with #825. Good idea to upgrade if you're letting un-trusted users edit content.
  • Updating vendored Bootstrap to v4.1.1
comfortable-mexican-sofa - 2.0.15

Published by GBH over 6 years ago

  • Updated Spanish translations
  • New Finnish translations
  • Fixing issue with cms_snippet_render and cms_fragment_render not working with some tags.
comfortable-mexican-sofa - 2.0.14

Published by GBH over 6 years ago

Content tags have support for nested hashes and arrays. For example:

{{ cms:partial "path/to/partial", foo: { a: b, c: d }, bar: [a, b, c] }}

Will translate to:

<%= render partial: "path/to/partial", locals: {"foo" => {"a" => "b", "c" => "d"}, "bar" => ["a", "b", "c"] } %>

Keep in mind that hash keys and values are always going to be strings

Also fixed how AS variants are using image magic options. See https://github.com/rails/rails/issues/31518 for details

comfortable-mexican-sofa - 2.0.13

Published by GBH over 6 years ago

This release is brought you by @glebm

New tag: page_file_link

It's similar to file_link tag that you can link previously uploaded files into content somewhere. Difference is that this tag links files uploaded for a specific page. Basically, you set up a bucket with all the files and then you can selectively drop them into the content.

Example set up:

On Layout content have {{ cms:files attachments, render: false }} tag defined.

During page creation populate that field with files and save. Now, during editing you may drag-and-drop previously uploaded files. See PR for more details: https://github.com/comfy/comfortable-mexican-sofa/pull/799

Ability to drag and drop is also extended to files uploaded site-wide.

See it in action:

File linking in action

  • All Javascript is converted from Coffeescript back to Javascript. Dependency on coffee-rails is dropped.
  • Support for Ruby < 2.3 is dropped. All strings are frozen now.
comfortable-mexican-sofa - 2.0.10 - Bootstrap 4 final

Published by GBH over 6 years ago

comfortable-mexican-sofa - 2.0.0 - Rails 5.2 release

Published by GBH almost 7 years ago

  • Paperclip is out, ActiveStorage that comes with Rails 5.2 is in. (No support for Rails apps lower than 5.2)
  • Site mirroring is gone. It was used as a clunky mechanism to support multi-language sites. Now you can have translations directly associated with pages.
  • Completely overhauled content parsing and rendering engine.
    • New tag format: {{ cms:tag_class params}}.
    • Old {{ cms:page:content:rich_text }} now looks like {{ cms:wysiwyg content }}
    • Tags handle params that may look like this: {{ cms:partial "path/to/partial", local_var_a: "a,b,c", local_var_b: 123 }}
    • Parser handles block tags. {{cms:block}} some content {{cms:end}}. No tags that use this just yet.
  • Renamed Comfy::Cms::Block to Comfy::Cms::Fragment.
  • CMS Fixtures are CMS Seeds now. Completely rewritten. Now all fragments are found in a single file.
  • Timepicker is replaced with Flatpickr.
  • Admin area is using Bootstrap 4 and is fully responsive (looks nice on a smartphone)
  • Generator updated to make 99% ready to go CRUDS.
  • Built-in sitemap generator is gone. Too clunky when you need to add more items there. Easy enough to make one for your own app.
  • Million of other small fixes and tweaks.
comfortable-mexican-sofa - 1.12.10 - Rails 5 release

Published by GBH almost 8 years ago

  • Maintenance update to have CMS working for Rails 5 apps. There a lot of deprecation warnings that will be cleaned up in the future when support for Rails 4 is fully dropped.
  • Added Turkish locale
comfortable-mexican-sofa - 1.12.8

Published by GBH over 9 years ago

  • Fixed a bug that would delete content when a mirrored site is deleted.
  • Made translation files consistent and added a test that should help to keep them that way.
comfortable-mexican-sofa - 1.12.7

Published by GBH over 9 years ago

  • Added Ukrainian locale
  • Small improvement for page files
  • Small js/css tweaks
comfortable-mexican-sofa - 1.12.5

Published by GBH over 9 years ago

  • Thanks to Roman Almeida (@nasmorn) now we have Redactor OEM license. This allows me to replace tinyMCE with Redactor. Normally it would cost at least 99 bucks to integrate it in your project. Now you're getting it for free. It's smaller, easier to extend. It's also hooked up to existing i18n support. It also comes with image/file manager out the box. Of course you can always use whatever wysiwyg editor you want.
  • Restructured assets folder. You might need to adjust things if you were overriding default assets.
  • Should work now with turbolinks enabled installs
  • Made fixtures sync happen only when index actions are triggered. Should decrease unnecessary churn.
comfortable-mexican-sofa - 1.12.4 - Rails 4.2 release

Published by GBH almost 10 years ago

  • Making everything work with Rails 4.2
  • small fixes
comfortable-mexican-sofa - 1.12.3

Published by GBH almost 10 years ago

  • The file widget is dead. Long live the file widget. Now with more pagination, more drag-and-drop with better feedback. Can be opened by clicking on the icon on the 'Files' navigation link.
    • Uploading is handled via plupload so there's a new dependency.
    • Run rails g cms or plug Mime::Type.register 'text/plupload', :plupload into your config/initializers/mime_types.rb
  • There are new rails generators available:
    • rails g comfy:cms:views - copy all cms view templates to your application. Now you can change if you want wysiwyg or normal text for snippets yourself. It's back to plain text by default, by the way.
    • rails g comfy:cms:controllers - copy all cms controllers to your application.
    • rails g comfy:cms:models - copy all cms models to your application.
    • rails g comfy:cms:assets - copy all cms js, css and image files to your application.
  • Small change how defining categories in fixtures works. Categories you define directly on Pages, for example, are only linkages. You need to have those categories defined in categories/pages.yml first.
  • Now there's a new authorization functionality. See config.admin_authorization = 'ComfyAdminAuthorization'. Just create a module with authorize method and put all your logic there. You'll have access to params and instance variables relevant to a given controller. For example:
module ComfyAdminAuthorization
  def authorize
    if params[:controller] == 'comfy/admin/cms/layouts' && !current_user.is_admin?
      flash[:error] = "Bug off, only admins can change layouts"
      redirect_to admin_root_path
    end
  end
end
  • Plus few more small fixes and improvements.
comfortable-mexican-sofa - 1.12.2

Published by GBH about 10 years ago

  • Making jquery-ui-rails v5 work without crashing
  • Merged a bunch of small pull requests
comfortable-mexican-sofa - 1.12.1

Published by GBH over 10 years ago

  • CMS served assets have cache buster and are served with proper headers
  • Random bug fixes
comfortable-mexican-sofa - 1.12.0

Published by GBH over 10 years ago

comfortable-mexican-sofa - 1.11.2

Published by GBH over 10 years ago

  • Paperclip 4.0.0 release broke previous versions of CMS. This one fixes it.
  • Added {{cms:field:some_label:boolean}} tag
  • Added it locale and fixed up pluralization code.
comfortable-mexican-sofa - 1.11.1

Published by GBH almost 11 years ago

  • Some small fixes.
  • Content serving controller can output in json format now.
  • Works with Rails 4.1.0.beta1
Package Rankings
Top 6.75% on Proxy.golang.org
Top 1.51% on Rubygems.org
Badges
Extracted from project README
Gem Version Gem Downloads Build Status Coverage Status Gitter