Project

stones

0.0
A long-lived project that still receives updates
A collection of, hopefully, useful files.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Stones

Gem Version GEM Downloads rake Ruby Style Guide MIT License

Each time I created a new Rails project these files are required. I got tired of it and collected them in a gem.

Some files (e.g. reset.css) can be overwritten by a corresponding one from your project.

Files:

app/assets/images/facebook_32.png
app/assets/images/github_32.png
app/assets/images/google_32.png
app/assets/images/matiq.ico
app/assets/images/twitter_32.png
app/assets/stylesheets/print.css
app/assets/stylesheets/reset.css
app/components/about_component.rb
app/components/flash_component.rb
app/views/layouts/application.html.erb
app/views/layouts/_body.slim
app/views/layouts/_flash.slim
app/views/layouts/_footer.slim
app/views/layouts/_header.slim
app/views/layouts/_html_head.slim
app/views/root/about.slim
app/views/shared/_error_explanation.html.erb
config/initializers/concerns.rb

Installation

As usual:

# Gemfile
gem "stones"

and run "bundle install".

Recommended

  • rvm
  • ruby 3.3+
  • rails 7.2+

Dropped/cleaned files (still available in version 0.2.5):

  • Rakefile
  • .watchr
  • lib/tasks/backup.rake

AboutComponent

Usage

...
render AboutComponent(title: "My App", text: "Does something")
...

FlashComponent

Usage

...
flash[:error] = "Something failed"
...
render FlashComponent.new(flash)
...

Rails

"stones" takes care of a tag-head change introduced by Rails 7.x.

Miscellaneous

Copyright (c) 2012-2024 Dittmar Krall (www.matiq.com), released under the MIT license.