diff --git a/Gemfile b/Gemfile index f6154cb..1339752 100644 --- a/Gemfile +++ b/Gemfile @@ -10,6 +10,7 @@ gem 'jquery-rails' gem 'friendly_id' gem 'thin' gem 'strong_parameters' +gem 'pg', '0.14.1' group :sqlite do gem 'sqlite3' diff --git a/Gemfile.lock b/Gemfile.lock index 1005335..660cd7c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -99,6 +99,7 @@ GEM mysql2 (0.3.13) nokogiri (1.6.0) mini_portile (~> 0.5.0) + pg (0.14.1) polyglot (0.3.3) pry (0.9.12.2) coderay (~> 1.0.5) @@ -188,6 +189,7 @@ DEPENDENCIES kaminari mocha mysql2 + pg (= 0.14.1) pry-rails rails (= 3.2.14) sass-rails diff --git a/app/controllers/admin/projects/repositories_controller.rb b/app/controllers/admin/projects/repositories_controller.rb index 4223437..874ff47 100644 --- a/app/controllers/admin/projects/repositories_controller.rb +++ b/app/controllers/admin/projects/repositories_controller.rb @@ -32,7 +32,7 @@ def update end if @repository.update_attributes(params[:repository]) - log current_user, "Alterou o reposiotio #{@repository.name} no projeto #{current_project.name}" + log current_user, "Alterou o repositório #{@repository.name} no projeto #{current_project.name}" redirect_to current_project, notice: 'Repository was successfully updated.' else render action: "edit" diff --git a/lib/cranelift/scm.rb b/lib/cranelift/scm.rb index 3e4d34f..75c56b6 100644 --- a/lib/cranelift/scm.rb +++ b/lib/cranelift/scm.rb @@ -30,7 +30,7 @@ def log (start = 0, limit = 0) def delete_files if File.directory?(project_path) - FileUtils.rm_rf(project_pathadd_ssl_server_trust_prompt_provider) + FileUtils.rm_rf(project_path) end end