From 24ba88eb1ce2b4309e2faa5e3861c41b93c65207 Mon Sep 17 00:00:00 2001 From: Vasiliy Ermolovich Date: Wed, 25 Apr 2012 23:12:30 +0300 Subject: [PATCH] add new lines :sweat: --- lib/draper.rb | 1 - lib/draper/helper_support.rb | 2 +- lib/draper/lazy_helpers.rb | 2 +- lib/draper/rspec_integration.rb | 1 - lib/generators/draper/decorator/templates/decorator.rb | 2 +- lib/generators/draper/decorator/templates/decorator_test.rb | 1 - lib/generators/draper/install/install_generator.rb | 2 +- .../draper/install/templates/application_decorator.rb | 2 +- lib/generators/rails/decorator_generator.rb | 2 +- performance/active_record.rb | 2 +- performance/models.rb | 2 +- spec/support/samples/application_helper.rb | 2 +- spec/support/samples/decorator.rb | 2 +- spec/support/samples/decorator_with_allows.rb | 2 +- spec/support/samples/specific_product_decorator.rb | 2 +- 15 files changed, 12 insertions(+), 15 deletions(-) diff --git a/lib/draper.rb b/lib/draper.rb index 90712b4..318c739 100644 --- a/lib/draper.rb +++ b/lib/draper.rb @@ -8,4 +8,3 @@ require 'draper/view_context' require 'draper/decorated_enumerable_proxy' require 'draper/rspec_integration' if defined?(RSpec) and RSpec.respond_to?(:configure) require 'draper/railtie' if defined?(Rails) - diff --git a/lib/draper/helper_support.rb b/lib/draper/helper_support.rb index 5806b73..07a8d00 100644 --- a/lib/draper/helper_support.rb +++ b/lib/draper/helper_support.rb @@ -2,4 +2,4 @@ module Draper::HelperSupport def decorate(input, &block) capture { block.call(input.decorate) } end -end \ No newline at end of file +end diff --git a/lib/draper/lazy_helpers.rb b/lib/draper/lazy_helpers.rb index 277efc0..09215f5 100644 --- a/lib/draper/lazy_helpers.rb +++ b/lib/draper/lazy_helpers.rb @@ -8,4 +8,4 @@ module Draper end end end -end \ No newline at end of file +end diff --git a/lib/draper/rspec_integration.rb b/lib/draper/rspec_integration.rb index 96ed6df..8d8f969 100644 --- a/lib/draper/rspec_integration.rb +++ b/lib/draper/rspec_integration.rb @@ -19,4 +19,3 @@ module Draper end end end - diff --git a/lib/generators/draper/decorator/templates/decorator.rb b/lib/generators/draper/decorator/templates/decorator.rb index 2c91919..59303ea 100644 --- a/lib/generators/draper/decorator/templates/decorator.rb +++ b/lib/generators/draper/decorator/templates/decorator.rb @@ -29,4 +29,4 @@ class <%= resource_name.singularize.camelize %>Decorator < ApplicationDecorator # h.content_tag :span, time.strftime("%a %m/%d/%y"), # :class => 'timestamp' # end -end \ No newline at end of file +end diff --git a/lib/generators/draper/decorator/templates/decorator_test.rb b/lib/generators/draper/decorator/templates/decorator_test.rb index fd2f64d..656be86 100644 --- a/lib/generators/draper/decorator/templates/decorator_test.rb +++ b/lib/generators/draper/decorator/templates/decorator_test.rb @@ -9,4 +9,3 @@ class <%= resource_name.singularize.camelize %>DecoratorTest < ActiveSupport::Te # assert true # end end - diff --git a/lib/generators/draper/install/install_generator.rb b/lib/generators/draper/install/install_generator.rb index 11d4e10..ee18425 100644 --- a/lib/generators/draper/install/install_generator.rb +++ b/lib/generators/draper/install/install_generator.rb @@ -36,4 +36,4 @@ module Draper end end -end \ No newline at end of file +end diff --git a/lib/generators/draper/install/templates/application_decorator.rb b/lib/generators/draper/install/templates/application_decorator.rb index 9dd031c..74151a3 100644 --- a/lib/generators/draper/install/templates/application_decorator.rb +++ b/lib/generators/draper/install/templates/application_decorator.rb @@ -25,4 +25,4 @@ class ApplicationDecorator < Draper::Base # def updated_at # formatted_timestamp(model.updated_at) # end -end \ No newline at end of file +end diff --git a/lib/generators/rails/decorator_generator.rb b/lib/generators/rails/decorator_generator.rb index d2b3061..572a47d 100644 --- a/lib/generators/rails/decorator_generator.rb +++ b/lib/generators/rails/decorator_generator.rb @@ -12,4 +12,4 @@ class Rails::DecoratorGenerator < Draper::DecoratorGenerator end end -end \ No newline at end of file +end diff --git a/performance/active_record.rb b/performance/active_record.rb index 146c865..e34cbb4 100644 --- a/performance/active_record.rb +++ b/performance/active_record.rb @@ -1,4 +1,4 @@ module ActiveRecord class Base end -end \ No newline at end of file +end diff --git a/performance/models.rb b/performance/models.rb index f9d106f..7886ae5 100644 --- a/performance/models.rb +++ b/performance/models.rb @@ -17,4 +17,4 @@ class FastProduct < ActiveRecord::Base def hello_world "Hello, World" end -end \ No newline at end of file +end diff --git a/spec/support/samples/application_helper.rb b/spec/support/samples/application_helper.rb index 7782ac0..1a5db0e 100644 --- a/spec/support/samples/application_helper.rb +++ b/spec/support/samples/application_helper.rb @@ -2,4 +2,4 @@ module ApplicationHelper def hello_world "Hello, World!" end -end \ No newline at end of file +end diff --git a/spec/support/samples/decorator.rb b/spec/support/samples/decorator.rb index 9569853..5a60ba6 100644 --- a/spec/support/samples/decorator.rb +++ b/spec/support/samples/decorator.rb @@ -2,4 +2,4 @@ class Decorator < Draper::Base def self.own_class_method "own class method" end -end \ No newline at end of file +end diff --git a/spec/support/samples/decorator_with_allows.rb b/spec/support/samples/decorator_with_allows.rb index b7558ab..4833d65 100644 --- a/spec/support/samples/decorator_with_allows.rb +++ b/spec/support/samples/decorator_with_allows.rb @@ -1,3 +1,3 @@ class DecoratorWithAllows < Draper::Base allows :goodnight_moon -end \ No newline at end of file +end diff --git a/spec/support/samples/specific_product_decorator.rb b/spec/support/samples/specific_product_decorator.rb index ba514bd..54fd7c4 100644 --- a/spec/support/samples/specific_product_decorator.rb +++ b/spec/support/samples/specific_product_decorator.rb @@ -1,4 +1,4 @@ require './spec/support/samples/product_decorator' class SpecificProductDecorator < ProductDecorator -end \ No newline at end of file +end