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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0197101d4fad8115dc206bd0cd11f4477a1bc867
4
- data.tar.gz: 769f81096b5bb85d04f3dd2c993d96a4c4e6fb6b
3
+ metadata.gz: 79dca9f6fd951cf25f49cf90e8d55f02dac3f4f2
4
+ data.tar.gz: 7cc958a2d8fd7f14d80b12653013c038ddbdcbab
5
5
  SHA512:
6
- metadata.gz: e35585dafe0f8e2d9b12bca70feb8aad49d66bf13a08e78908cb19102d701cd39879904232e4b1367d979a463e6dd27c847b5279253fb9771234f8994e2622b7
7
- data.tar.gz: 025529648e1a3b040edb06eef3bac6c9790a2f0bd6da864e42fe38d6e0ad08eab193d8d79ea95c079e535444374de4eac53db6f751fffe131579ba7ed24e1fa7
6
+ metadata.gz: 0a7b27b9b56096fe5096e93bd7353a7394323320dd57e2199e4ce46624bc76762c958f9b76a06c9bdbb2429d38ce4d910577cf0c142fba1bdddb85d2d605f3d2
7
+ data.tar.gz: 9028682277b0ee8461ede88b74758f76dad3ba6b2c6fd4b7dee1de6bdc236f5fc2734426dd97590ec11edc54bc3d71a6d1a9082154f81ef71429c75e247a89d5
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 Cloud Coder Sdn. Bhd.
1
+ Copyright (c) 2015 Cloud Coder Sdn Bhd
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -2,27 +2,47 @@
2
2
 
3
3
  This gem is still under active development.
4
4
 
5
- # Rails 4.2 Baseline
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
- Create a new Rails app:
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
- List out all available recipes:
33
+ #### Post-Wizard Configuration
24
34
 
25
- $ rails_baseline list
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
- Copyright (c) 2015 Cloud Coder Sdn. Bhd.
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"
@@ -1,3 +1,3 @@
1
1
  module RailsBaseline
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_baseline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoon Wai Yan