Project

framework

0.0
Low commit activity in last 3 years
No release in over a year
Allows to quickly build well structured complex Ruby apps.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.4, >= 2.4
~> 3.12, >= 3.12.0

Runtime

~> 7.0.4
~> 7.0.4
~> 13.0, >= 13.0.6
~> 1.2, >= 1.2.1
 Project Readme

Ruby Framework

Gem Version

Framework to build Ruby applications for all your needs. Rails without web perks.

Features

  • ActiveRecord interface
  • Customizable structure
  • YAML configuration
  • Appication generators
  • Useful console mode
  • ... Find more

When to use

  • Obviously, you need a framework :)
  • You need to quickly start a project from scratch
  • You want to have your backend code to stay separate from any large frameworks (like Rails)
  • You want to build some "worker" application running your business logic with no interface
  • Setting up an interview? Use Framework!
  • Wanna build web application? You can easily integrate your code into any web framework (Rack, Rails etc) (see below)
  • You don't want to learn a new framework, you are the one who knows only Rails :)
  • You want to test something quickly and you don't want to waste your time setting new environment up

Quick start

  1. Install Framework at the command prompt if you haven't yet:
gem install framework
  1. Create a new application:
framework new myapp

Run console to play

rake console

screen shot 2014-11-28 at 17 14 48

Generate database migration

framework g migration create_users

Structure

Pretty similar to Rails (just a sample):

.
|____app
| |____models
| | |____concerns
| | | |____.keep
| | |____task.rb
| | |____user.rb
| |____tasks
| | |____hello.rake
|____config
| |____application.yml
| |____database.yml
| |____environment.rb
| |____initializers
| | |____time_zone.rb
|____db
| |____migrate
| | |____.keep
| | |____20141128085924_create_tasks.rb
| | |____20141128090211_create_users.rb
|____Gemfile
|____Gemfile.lock
|____lib
| |____.keep
|____Rakefile
|____README.md

Configuration

Configurations are stored in config/application.yml. Note, that as opposed to Rails, even initializers and models are listed as custom paths in autoload_paths section. This gives you a flexibility to explicitly say which paths and what exactly used in your app. Don't need no initializers? Don't list them in autoload paths. Order matters.

development: &common
  enable_logging: yes
  autoload_paths:
    - app/models
    - app/managers
  default_timezone: 'Pacific Time (US & Canada)'

test:
  <<: *common
  enable_logging: no

staging:
  <<: *common

production:
  <<: *common
  enable_logging: no

More docu and updates coming soon

I encourage you to contribute! :)