bootstrappers 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ 0.0.8 (Oct 12, 2012)
2
+ * fix db config replace problem
1
3
  0.0.7 (Oct 10, 2012)
2
4
  * fix typo, add more guides
3
5
  0.0.6 (Oct 10, 2012)
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/suspenders)
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
- 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: ""', "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
@@ -1,3 +1,3 @@
1
1
  module Bootstrappers
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  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","Link-1")
20
- li << link_to("Link-2","Link-2")
21
- li << link_to("Link-3","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
- - 7
9
- version: 0.0.7
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-10 00:00:00 +08:00
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: 1539331621632405407
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: 1539331621632405407
116
+ hash: 3216173812893648341
117
117
  segments:
118
118
  - 0
119
119
  version: "0"