Granite一种Rails应用程序体系结构框架
Granite一种Rails应用程序体系结构框架
Ruby Web开发框架
共119Star
详细介绍
Granite
Granite is an alternative Rails application architecture framework.
Installation
Add this line to your application's Gemfile:
gem 'granite'
And then execute:
$ bundle
Or install it yourself as:
$ gem install granite
Usage
Please see our official documentation or check the granite application example.
Versioning
We use semantic versioning for our releases.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/toptal/granite.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Running specs
To run specs you can run
bin/setup
rspec
Or, alternatively you can copy and adapt the spec/support/database.yml
for your environment:
cp spec/support/database.yml.example spec/support/database.yml
[Necessary customization here]
psql -c 'create database granite;' -U granite
rspec
Using Granite's Rubocop config
Add this to your Rubocop config file:
require:
- rubocop-granite
This will add config for Lint/UselessAccessModifier
to treat projector
as separate context. It is equivalent to:
Lint/UselessAccessModifier:
ContextCreatingMethods:
- projector
License
Granite is released under the MIT License.
-
3362 Star
-
0 Star
-
611 Star
-
1532 Star
-
0 Star
-
914 Star
-
0 Star