bootstrappers 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +2 -0
- data/LICENSE.txt +2 -2
- data/README.md +19 -2
- data/lib/bootstrappers/app_builder.rb +12 -5
- data/lib/bootstrappers/version.rb +1 -1
- metadata +5 -5
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2012
|
1
|
+
Copyright (c) 2012 xdite
|
2
2
|
Copyright (c) 2010-2012 Mike Burns and thoughtbot, inc. ( from suspenders)
|
3
3
|
|
4
4
|
MIT License
|
@@ -20,4 +20,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20
20
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
21
21
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
22
22
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
23
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Bootstrappers
|
2
2
|
|
3
|
-
Bootstrappers is the base Rails application
|
3
|
+
Bootstrappers is the base Rails application using Bootstrap template and other goodies.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -35,6 +35,23 @@ It includes application gems like:
|
|
35
35
|
* [Turbo Sprockets for Rails 3.2.x](https://github.com/ndbroadbent/turbo-sprockets-rails3) Speeds up your Rails 3 rake assets:precompile by only recompiling changed assets
|
36
36
|
|
37
37
|
|
38
|
+
## Remind
|
39
|
+
|
40
|
+
config/database.yml default setting:
|
41
|
+
|
42
|
+
```
|
43
|
+
development: &default
|
44
|
+
adapter: mysql2
|
45
|
+
encoding: utf8
|
46
|
+
database: <%= app_name %>_development
|
47
|
+
host: localhost
|
48
|
+
username: root
|
49
|
+
password: ""
|
50
|
+
```
|
51
|
+
|
52
|
+
but we still ask for your preferences
|
53
|
+
|
54
|
+
|
38
55
|
## Contributing
|
39
56
|
|
40
57
|
1. Fork it
|
@@ -59,4 +76,4 @@ some codes of bootstrappers were borrowed from [suspenders](https://github.com/t
|
|
59
76
|
License
|
60
77
|
-------
|
61
78
|
|
62
|
-
Bootstrappers is Copyright © 2012
|
79
|
+
Bootstrappers is Copyright © 2012 xdite. It is free software, and may be redistributed under the terms specified in the LICENSE file.
|
@@ -67,11 +67,18 @@ module Bootstrappers
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def use_mysql_config_template
|
70
|
-
|
71
|
-
template 'mysql_database.yml.erb', 'config/database.yml'
|
72
|
-
|
73
|
-
|
74
|
-
|
70
|
+
|
71
|
+
template 'mysql_database.yml.erb', 'config/database.yml',:force => true
|
72
|
+
template 'mysql_database.yml.erb', 'config/database.yml.example', :force => true
|
73
|
+
|
74
|
+
db_user_name = ask("What is your local database user name? [root]")
|
75
|
+
db_user_name = "root" if db_user_name.blank?
|
76
|
+
db_password = ask("What is your local database password? ['']")
|
77
|
+
db_password = "''" if db_password.blank?
|
78
|
+
replace_in_file 'config/database.yml', 'username: root', "username: #{db_user_name}"
|
79
|
+
replace_in_file 'config/database.yml', 'password: ""', "pasword: '#{db_password}'"
|
80
|
+
|
81
|
+
|
75
82
|
end
|
76
83
|
|
77
84
|
def create_database
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 6
|
9
|
+
version: 0.0.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- xdite
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-10-
|
17
|
+
date: 2012-10-10 00:00:00 +08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
104
|
requirements:
|
105
105
|
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
hash: -
|
107
|
+
hash: -1713060100376784528
|
108
108
|
segments:
|
109
109
|
- 0
|
110
110
|
version: "0"
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
hash: -
|
116
|
+
hash: -1713060100376784528
|
117
117
|
segments:
|
118
118
|
- 0
|
119
119
|
version: "0"
|