Permalink
Browse files

r44: setting eol-style to native where appropriate

  • Loading branch information...
1 parent 54efc20 commit a91a0c2af337a88a0a233744bb048a4a5f015130 @alexeyv alexeyv committed Jan 25, 2007
Showing with 9,238 additions and 9,238 deletions.
  1. +16 −16 CHANGELOG
  2. +201 −201 LICENSE
  3. +226 −226 README
  4. +28 −28 Rakefile
  5. +7 −7 app/controllers/application.rb
  6. +58 −58 app/controllers/projects_controller.rb
  7. +18 −18 app/controllers/test_controller.rb
  8. +6 −6 app/helpers/application_helper.rb
  9. +10 −10 app/helpers/projects_helper.rb
  10. +150 −150 app/models/build.rb
  11. +29 −29 app/models/build_mailer.rb
  12. +6 −6 app/models/changeset_entry.rb
  13. +10 −10 app/models/configuration.rb
  14. +33 −33 app/models/polling_scheduler.rb
  15. +164 −164 app/models/project.rb
  16. +54 −54 app/models/projects.rb
  17. +15 −15 app/models/revision.rb
  18. +62 −62 app/models/status.rb
  19. +89 −89 app/models/subversion.rb
  20. +54 −54 app/models/subversion_log_parser.rb
  21. +39 −39 app/views/layouts/default.rhtml
  22. +18 −18 app/views/projects/_list.rhtml
  23. +27 −27 app/views/projects/_plugins.rhtml
  24. +25 −25 app/views/projects/index.rhtml
  25. +11 −11 app/views/projects/settings.rhtml
  26. +52 −52 app/views/projects/show.rhtml
  27. +2 −2 app/views/test/index.rhtml
  28. +8 −8 app/views/test/test_mail.rhtml
  29. +44 −44 config/boot.rb
  30. +60 −60 config/environment.rb
  31. +3 −3 config/environments/builder.rb
  32. +21 −21 config/environments/development.rb
  33. +18 −18 config/environments/production.rb
  34. +19 −19 config/environments/test.rb
  35. +29 −29 config/routes.rb
  36. +15 −15 config/rubyforge.yml
  37. +32 −32 config/site_config.rb_example
  38. +1 −1 doc/README_FOR_APP
  39. +89 −89 doc/tasks.txt
  40. +172 −172 lib/command_line.rb
  41. +42 −42 lib/cruise_plugins/email_notifier.rb
  42. +10 −10 lib/cruisecontrol/version.rb
  43. +16 −16 lib/log.rb
  44. +25 −25 lib/platform.rb
  45. +32 −32 lib/project_blocker.rb
  46. +32 −32 lib/project_logger.rb
  47. +3 −3 lib/tasks/clear_database_prerequisites.rake
  48. +32 −32 lib/tasks/package.rake
  49. +4 −4 lib/tasks/pgem.rake
  50. +14 −14 lib/tasks/release.rake
  51. +29 −29 public/404.html
  52. +29 −29 public/500.html
  53. +9 −9 public/dispatch.cgi
  54. +24 −24 public/dispatch.fcgi
  55. +9 −9 public/dispatch.rb
  56. +6 −6 public/javascripts/application.js
  57. +833 −833 public/javascripts/controls.js
  58. +942 −942 public/javascripts/dragdrop.js
  59. +1,087 −1,087 public/javascripts/effects.js
  60. +2,425 −2,425 public/javascripts/prototype.js
  61. +208 −208 public/stylesheets/cruisecontrol.css
  62. +1 −1 script/set_svn_eol_style
  63. +36 −36 tasks/cc_build.rake
  64. +1 −1 test/fixtures/build_mailer/build_failed
  65. +112 −112 test/functional/projects_controller_test.rb
  66. +143 −143 test/integration/builder_integration_test.rb
  67. +58 −58 test/test_helper.rb
  68. +37 −37 test/unit/build_mailer_test.rb
  69. +184 −184 test/unit/build_test.rb
  70. +82 −82 test/unit/command_line_test.rb
  71. +62 −62 test/unit/email_notifier_test.rb
  72. +44 −44 test/unit/project_blocker_test.rb
  73. +66 −66 test/unit/project_logger_test.rb
  74. +198 −198 test/unit/project_test.rb
  75. +130 −130 test/unit/projects_test.rb
  76. +71 −71 test/unit/status_test.rb
  77. +123 −123 test/unit/subversion_log_parser_test.rb
  78. +158 −158 test/unit/subversion_test.rb
View
@@ -1,16 +1,16 @@
-TRUNK
- - builder is building 'cruise', 'test' or 'default' target, depending on what is defined in the project
- - when build is running, OS variable CC_BUILD_ARTIFACTS is pointing to the build artifacts directory
- - Bugfix: explicitly require 'rubygems' before trying to require 'rake', do not rely on RUBYOPT=-rubygems to be set.
- - customizable Rake task and build command
---------------------------------------------------------------------------------
-* 0.2
- - Unified command-line interface to web app, builder and add_project script
- - Default port changed to 3333 (to avoid clashing with other Rails apps)
- - Bugfix: builder invoking Rake with RAILS_ENV OS variable set to 'builder'
- - Bugfix: not all Windows installations have rake.cmd
- - Bugfix: CC.rb trying to build itself when a project has no Rakefile
-
---------------------------------------------------------------------------------
-* 0.1
- - Initial release.
+TRUNK
+ - builder is building 'cruise', 'test' or 'default' target, depending on what is defined in the project
+ - when build is running, OS variable CC_BUILD_ARTIFACTS is pointing to the build artifacts directory
+ - Bugfix: explicitly require 'rubygems' before trying to require 'rake', do not rely on RUBYOPT=-rubygems to be set.
+ - customizable Rake task and build command
+--------------------------------------------------------------------------------
+* 0.2
+ - Unified command-line interface to web app, builder and add_project script
+ - Default port changed to 3333 (to avoid clashing with other Rails apps)
+ - Bugfix: builder invoking Rake with RAILS_ENV OS variable set to 'builder'
+ - Bugfix: not all Windows installations have rake.cmd
+ - Bugfix: CC.rb trying to build itself when a project has no Rakefile
+
+--------------------------------------------------------------------------------
+* 0.1
+ - Initial release.
View
402 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
452 README

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,28 +1,28 @@
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
-require(File.join(File.dirname(__FILE__), 'config', 'boot'))
-
-require 'rubygems'
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-
-require 'rake/packagetask'
-require 'rake/gempackagetask'
-require 'rake/contrib/rubyforgepublisher'
-
-require File.dirname(__FILE__) + '/lib/cruisecontrol/version'
-
-PKG_NAME = 'cruisecontrol'
-PKG_VERSION = CruiseControl::VERSION::STRING
-PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
-
-RELEASE_NAME = "REL #{PKG_VERSION}"
-
-RUBY_FORGE_PROJECT = "cruisecontrolrb"
-RUBY_FORGE_USER = "stellsmi"
-
-
-require 'tasks/rails'
-
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require(File.join(File.dirname(__FILE__), 'config', 'boot'))
+
+require 'rubygems'
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+require 'rake/packagetask'
+require 'rake/gempackagetask'
+require 'rake/contrib/rubyforgepublisher'
+
+require File.dirname(__FILE__) + '/lib/cruisecontrol/version'
+
+PKG_NAME = 'cruisecontrol'
+PKG_VERSION = CruiseControl::VERSION::STRING
+PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
+
+RELEASE_NAME = "REL #{PKG_VERSION}"
+
+RUBY_FORGE_PROJECT = "cruisecontrolrb"
+RUBY_FORGE_USER = "stellsmi"
+
+
+require 'tasks/rails'
+
@@ -1,7 +1,7 @@
-# Filters added to this controller apply to all controllers in the application.
-# Likewise, all the methods added will be available for all controllers.
-
-class ApplicationController < ActionController::Base
- # Pick a unique cookie name to distinguish our session data from others'
- session :session_key => '_ci_session_id'
-end
+# Filters added to this controller apply to all controllers in the application.
+# Likewise, all the methods added will be available for all controllers.
+
+class ApplicationController < ActionController::Base
+ # Pick a unique cookie name to distinguish our session data from others'
+ session :session_key => '_ci_session_id'
+end
@@ -1,59 +1,59 @@
-class ProjectsController < ApplicationController
- layout "default"
-
- def index
- @projects = load_projects
- end
-
- def show
- @project = find_project(load_projects)
-
- if params.has_key? :build
- @build = @project.builds.find {|build| build.label.to_s == params[:build]}
- end
-
- if !@build
- @build = @project.last_build
- end
- end
-
- def settings
- @project = find_project(load_projects)
- end
-
- def add_email
- projects = load_projects
- @project = find_project(projects)
-
- @project.add_email(params[:value])
-
- projects.save_project(@project)
- update_emails
- end
-
- def remove_email
- projects = load_projects
- @project = find_project(projects)
-
- @project.delete_email(params[:value])
-
- projects.save_project(@project)
- update_emails
- end
-
- private
-
- def update_emails
- render :update do |page|
- page.replace_html "email_list", :partial => 'list'
- end
- end
-
- def load_projects
- Projects.load_all
- end
-
- def find_project(projects)
- projects.find {|p| p.name == params[:id] }
- end
+class ProjectsController < ApplicationController
+ layout "default"
+
+ def index
+ @projects = load_projects
+ end
+
+ def show
+ @project = find_project(load_projects)
+
+ if params.has_key? :build
+ @build = @project.builds.find {|build| build.label.to_s == params[:build]}
+ end
+
+ if !@build
+ @build = @project.last_build
+ end
+ end
+
+ def settings
+ @project = find_project(load_projects)
+ end
+
+ def add_email
+ projects = load_projects
+ @project = find_project(projects)
+
+ @project.add_email(params[:value])
+
+ projects.save_project(@project)
+ update_emails
+ end
+
+ def remove_email
+ projects = load_projects
+ @project = find_project(projects)
+
+ @project.delete_email(params[:value])
+
+ projects.save_project(@project)
+ update_emails
+ end
+
+ private
+
+ def update_emails
+ render :update do |page|
+ page.replace_html "email_list", :partial => 'list'
+ end
+ end
+
+ def load_projects
+ Projects.load_all
+ end
+
+ def find_project(projects)
+ projects.find {|p| p.name == params[:id] }
+ end
end
@@ -1,18 +1,18 @@
-class TestController < ApplicationController
- layout "default"
-
- def test_mail
- end
-
- def send_test_mail
- time = Time.now.strftime("%I:%M:%S")
- email = BuildMailer.deliver_test(params[:email][:recipients])
- render :text => email_result("green", "Email Sent... (#{time})")
- rescue
- render :text => email_result("red", "Error : #{$!} (%{time})")
- end
-
- def email_result(color, message)
- "<font color='#{color}'>#{message}</font>"
- end
-end
+class TestController < ApplicationController
+ layout "default"
+
+ def test_mail
+ end
+
+ def send_test_mail
+ time = Time.now.strftime("%I:%M:%S")
+ email = BuildMailer.deliver_test(params[:email][:recipients])
+ render :text => email_result("green", "Email Sent... (#{time})")
+ rescue
+ render :text => email_result("red", "Error : #{$!} (%{time})")
+ end
+
+ def email_result(color, message)
+ "<font color='#{color}'>#{message}</font>"
+ end
+end
@@ -1,6 +1,6 @@
-# Methods added to this helper will be available to all templates in the application.
-module ApplicationHelper
- def color_for_status(build)
- build.successful? ? 'green' : 'red'
- end
-end
+# Methods added to this helper will be available to all templates in the application.
+module ApplicationHelper
+ def color_for_status(build)
+ build.successful? ? 'green' : 'red'
+ end
+end
@@ -1,11 +1,11 @@
-def format_changeset_log(log)
- log.strip
-end
-
-def format_build_log(log)
- convert_new_lines(log.gsub(/(\d+ tests, \d+ assertions, \d+ failures, \d+ errors)/, '<div class="test-results">\1</div>'))
-end
-
-def convert_new_lines(value)
- value.gsub(/\n/, "<br/>\n")
+def format_changeset_log(log)
+ log.strip
+end
+
+def format_build_log(log)
+ convert_new_lines(log.gsub(/(\d+ tests, \d+ assertions, \d+ failures, \d+ errors)/, '<div class="test-results">\1</div>'))
+end
+
+def convert_new_lines(value)
+ value.gsub(/\n/, "<br/>\n")
end
Oops, something went wrong.

0 comments on commit a91a0c2

Please sign in to comment.