From 7365b29ee152f16aa153a7bb5eb2548219446800 Mon Sep 17 00:00:00 2001 From: Jakub Hampl Date: Mon, 9 Nov 2009 20:10:16 +0000 Subject: [PATCH] Removed comments containing OMG, f**k and other --- actionpack/lib/action_controller/metal/testing.rb | 2 +- actionpack/lib/action_view/template/resolver.rb | 1 - .../test/template/html-scanner/sanitizer_test.rb | 4 ++-- .../lib/rails/vendor/bundler/lib/bundler/dsl.rb | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/actionpack/lib/action_controller/metal/testing.rb b/actionpack/lib/action_controller/metal/testing.rb index a4a1116..c5b2bc2 100644 --- a/actionpack/lib/action_controller/metal/testing.rb +++ b/actionpack/lib/action_controller/metal/testing.rb @@ -4,7 +4,7 @@ module ActionController include RackConvenience - # OMG MEGA HAX + # TODO : This is a hack. Consider rewriting. def process_with_new_base_test(request, response) @_request = request @_response = response diff --git a/actionpack/lib/action_view/template/resolver.rb b/actionpack/lib/action_view/template/resolver.rb index 7336114..e959221 100644 --- a/actionpack/lib/action_view/template/resolver.rb +++ b/actionpack/lib/action_view/template/resolver.rb @@ -142,7 +142,6 @@ module ActionView end end - # OMG HAX # TODO: remove hax class FileSystemResolverWithFallback < Resolver def initialize(path, options = {}) diff --git a/actionpack/test/template/html-scanner/sanitizer_test.rb b/actionpack/test/template/html-scanner/sanitizer_test.rb index e85a5c7..db2165b 100644 --- a/actionpack/test/template/html-scanner/sanitizer_test.rb +++ b/actionpack/test/template/html-scanner/sanitizer_test.rb @@ -48,7 +48,7 @@ class SanitizerTest < ActionController::TestCase assert_sanitized "a b cd e f", "a b cd e f" end - # fucked + # not working def test_sanitize_js_handlers raw = %{onthis="do that" hello} assert_sanitized raw, %{onthis="do that" hello} @@ -193,7 +193,7 @@ class SanitizerTest < ActionController::TestCase assert_sanitized img_hack, "" end - # fucked + # not working def test_should_sanitize_attributes assert_sanitized %(blah), %(blah) end diff --git a/railties/lib/rails/vendor/bundler/lib/bundler/dsl.rb b/railties/lib/rails/vendor/bundler/lib/bundler/dsl.rb index d9a86ee..2fe8b97 100644 --- a/railties/lib/rails/vendor/bundler/lib/bundler/dsl.rb +++ b/railties/lib/rails/vendor/bundler/lib/bundler/dsl.rb @@ -59,7 +59,7 @@ module Bundler dep = Dependency.new(name, options.merge(:version => version)) - # OMG REFACTORZ. KTHX + # TODO : Refactor if vendored_at = options[:vendored_at] vendored_at = Pathname.new(vendored_at) vendored_at = @environment.filename.dirname.join(vendored_at) if vendored_at.relative? -- 1.6.4