bootstrappers 0.0.7 → 0.0.8
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.
- data/CHANGELOG.md +2 -0
- data/README.md +1 -1
- data/lib/bootstrappers/app_builder.rb +3 -4
- data/lib/bootstrappers/version.rb +1 -1
- data/templates/common/_menu.html.erb +3 -3
- metadata +5 -5
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -70,7 +70,7 @@ If you have problems, please create a [Github issue](https://github.com/xdite/bo
|
|
|
70
70
|
|
|
71
71
|
Bootstrappers is maintained and funded by [@xdite](http://github.com/xdite)
|
|
72
72
|
|
|
73
|
-
some codes of bootstrappers were borrowed from [suspenders](https://github.com/thoughtbot/
|
|
73
|
+
some codes of bootstrappers were borrowed from [suspenders](https://github.com/thoughtbot/suspendersus)
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
License
|
|
@@ -72,11 +72,10 @@ module Bootstrappers
|
|
|
72
72
|
template 'mysql_database.yml.erb', 'config/database.yml.example', :force => true
|
|
73
73
|
|
|
74
74
|
db_user_name = ask("What is your local database user name? [root]")
|
|
75
|
-
db_user_name = "root" if db_user_name.blank?
|
|
76
75
|
db_password = ask("What is your local database password? ['']")
|
|
77
|
-
|
|
78
|
-
replace_in_file 'config/database.yml', 'username: root', "username: #{db_user_name}"
|
|
79
|
-
replace_in_file 'config/database.yml', 'password: ""', "password: '#{db_password}'"
|
|
76
|
+
|
|
77
|
+
replace_in_file 'config/database.yml', 'username: root', "username: #{db_user_name}" if db_user_name.present?
|
|
78
|
+
replace_in_file 'config/database.yml', 'password: ""', "password: '#{db_password}'" if db_password.present?
|
|
80
79
|
|
|
81
80
|
|
|
82
81
|
end
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
<div class="nav-collapse">
|
|
17
17
|
|
|
18
18
|
<%= render_list :class => "nav" do |li|
|
|
19
|
-
li << link_to("Link-1","
|
|
20
|
-
li << link_to("Link-2","
|
|
21
|
-
li << link_to("Link-3","
|
|
19
|
+
li << link_to("Link-1","#")
|
|
20
|
+
li << link_to("Link-2","#")
|
|
21
|
+
li << link_to("Link-3","#")
|
|
22
22
|
end %>
|
|
23
23
|
|
|
24
24
|
<%= render :partial => "common/user_nav"%>
|
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
|
+
- 8
|
|
9
|
+
version: 0.0.8
|
|
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-12 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: 3216173812893648341
|
|
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: 3216173812893648341
|
|
117
117
|
segments:
|
|
118
118
|
- 0
|
|
119
119
|
version: "0"
|