rails_baseline 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +25 -5
- data/lib/rails_baseline/template.rb +11 -0
- data/lib/rails_baseline/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79dca9f6fd951cf25f49cf90e8d55f02dac3f4f2
|
4
|
+
data.tar.gz: 7cc958a2d8fd7f14d80b12653013c038ddbdcbab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a7b27b9b56096fe5096e93bd7353a7394323320dd57e2199e4ce46624bc76762c958f9b76a06c9bdbb2429d38ce4d910577cf0c142fba1bdddb85d2d605f3d2
|
7
|
+
data.tar.gz: 9028682277b0ee8461ede88b74758f76dad3ba6b2c6fd4b7dee1de6bdc236f5fc2734426dd97590ec11edc54bc3d71a6d1a9082154f81ef71429c75e247a89d5
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,27 +2,47 @@
|
|
2
2
|
|
3
3
|
This gem is still under active development.
|
4
4
|
|
5
|
-
# Rails 4
|
5
|
+
# Rails 4 Baseline
|
6
6
|
|
7
7
|
This gem is a wrapper of a Rails Applications Template to create a new Rails 4.2 application based on the normal practices in [cloudcoder.com.my](http://cloudcoder.com.my). Just go through a simple wizard to get all the gems set and you'll be good to proceed with migrations and start coding your project.
|
8
8
|
|
9
9
|
This gem is heavily based on [rails_wizard](https://github.com/intridea/rails_wizard) for the overall idea of the gem and refers to [rails-composer](https://github.com/RailsApps/rails-composer) for the code organization.
|
10
10
|
|
11
|
+
## Compatibility
|
12
|
+
|
13
|
+
This gem is tested on Rails 4.2 and meant to build new Rails 4.2 app, it is unknown whether the gem is working fine in Rails 4.0.x and 4.1.x or not. The only difference at the moment is a configuration of ActiveJob for adding `Delayed Job` as the background worker.
|
14
|
+
|
11
15
|
## Installation
|
12
16
|
|
13
17
|
$ gem install rails_baseline
|
14
18
|
|
15
19
|
## Usage
|
16
20
|
|
17
|
-
|
21
|
+
#### List out all available recipes:
|
22
|
+
|
23
|
+
$ rails_baseline list
|
24
|
+
|
25
|
+
The list is available to view through lib/recipes.txt as well.
|
26
|
+
|
27
|
+
#### Create a new Rails app:
|
18
28
|
|
19
29
|
$ rails_baseline new APP_NAME
|
20
30
|
|
21
31
|
Please replace APP_NAME with your new Rails app name.
|
22
32
|
|
23
|
-
|
33
|
+
#### Post-Wizard Configuration
|
24
34
|
|
25
|
-
|
35
|
+
After the wizard, please configure these files according to your title, details and credentials:
|
36
|
+
|
37
|
+
1. SMTP Settings: `config/environments/development.rb` and `config/environments/production.rb`
|
38
|
+
2. Application Layout: `app/views/layouts/application.html.erb`
|
39
|
+
3. Devise initializer, modules and migration(refer to [https://github.com/plataformatec/devise](https://github.com/plataformatec/devise) for more information)
|
40
|
+
4. ActiveAdmin initializer and migration(refer to [https://github.com/activeadmin/activeadmin](https://github.com/activeadmin/activeadmin) for more information)
|
41
|
+
|
42
|
+
and run migration for the pending migration files:
|
43
|
+
|
44
|
+
$ rake db:create
|
45
|
+
$ rake db:migrate
|
26
46
|
|
27
47
|
## Changelog
|
28
48
|
|
@@ -42,4 +62,4 @@ List out all available recipes:
|
|
42
62
|
|
43
63
|
## License
|
44
64
|
|
45
|
-
|
65
|
+
Please refer to LICENSE.txt for more information
|
@@ -516,6 +516,17 @@ after_bundler do
|
|
516
516
|
generate "kaminari:views bootstrap3" if @configs["bootstrap"]
|
517
517
|
end
|
518
518
|
|
519
|
+
# >----------------------------[ Home Controller ]-----------------------------<
|
520
|
+
|
521
|
+
@current_recipe = "views"
|
522
|
+
@before_configs["views"].call if @before_configs["views"]
|
523
|
+
say_recipe 'Home Controller'
|
524
|
+
|
525
|
+
after_bundler do
|
526
|
+
generate "controller home index"
|
527
|
+
inject_into_file "config/routes.rb", "\n root 'home#index'", :after => "devise_for :users"
|
528
|
+
end
|
529
|
+
|
519
530
|
# >----------------------------------[ Git ]----------------------------------<
|
520
531
|
|
521
532
|
@current_recipe = "git"
|