diff --git a/.gitignore b/.gitignore index bfd750037..5e4cc583e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -.bundle Gemfile.lock +.bundle .rvmrc .yardoc *.rbc diff --git a/README.rdoc b/README.rdoc index 347614f06..bedc81364 100644 --- a/README.rdoc +++ b/README.rdoc @@ -81,4 +81,4 @@ The individual Padrino sub-gems also contain README's which outlines their funct == Copyright -Copyright (c) 2011 Padrino. See LICENSE for details. \ No newline at end of file +Copyright (c) 2011 Padrino. See LICENSE for details. diff --git a/load_paths.rb b/load_paths.rb index 38a8af2fe..e02cead5c 100644 --- a/load_paths.rb +++ b/load_paths.rb @@ -3,4 +3,4 @@ else require 'rubygems' end -require 'bundler/setup' \ No newline at end of file +require 'bundler/setup' diff --git a/padrino-admin/README.rdoc b/padrino-admin/README.rdoc index b7be5a7d2..d8491f9b2 100644 --- a/padrino-admin/README.rdoc +++ b/padrino-admin/README.rdoc @@ -67,4 +67,4 @@ For a more complete look at using the Admin panel functionality and access featu == Copyright -Copyright (c) 2011 Padrino. See LICENSE for details. \ No newline at end of file +Copyright (c) 2011 Padrino. See LICENSE for details. diff --git a/padrino-admin/lib/padrino-admin/access_control.rb b/padrino-admin/lib/padrino-admin/access_control.rb index f27dab770..bf20902c7 100644 --- a/padrino-admin/lib/padrino-admin/access_control.rb +++ b/padrino-admin/lib/padrino-admin/access_control.rb @@ -1,6 +1,6 @@ module Padrino module Admin - class AccessControlError < StandardError ## @private + class AccessControlError < StandardError # @private end ## # This module give to a padrino application an access control functionality @@ -22,7 +22,7 @@ def registered(app) end class Base - def initialize ## @private + def initialize # @private @roles, @authorizations, @project_modules = [], [], [] end @@ -80,7 +80,7 @@ def allowed?(account=nil, path=nil) class Authorization attr_reader :allowed, :denied, :project_modules, :roles - def initialize(*roles, &block) ## @private + def initialize(*roles, &block) # @private @roles = roles @allowed = [] @denied = [] @@ -117,7 +117,7 @@ def project_module(name, path) class ProjectModule attr_reader :name - def initialize(name, path) ## @private + def initialize(name, path) # @private @name, @path = name, path end @@ -146,4 +146,4 @@ def path(prefix=nil) end # ProjectModule end # AccessControl end # Admin -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-admin/lib/padrino-admin/generators/templates/account/activerecord.rb.tt b/padrino-admin/lib/padrino-admin/generators/templates/account/activerecord.rb.tt index 9e5fccee7..f8597c739 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/account/activerecord.rb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/account/activerecord.rb.tt @@ -35,4 +35,4 @@ class Account < ActiveRecord::Base def password_required crypted_password.blank? || password.present? end -end \ No newline at end of file +end diff --git a/padrino-admin/lib/padrino-admin/generators/templates/account/couchrest.rb.tt b/padrino-admin/lib/padrino-admin/generators/templates/account/couchrest.rb.tt index a2e275adc..62eda8e8c 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/account/couchrest.rb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/account/couchrest.rb.tt @@ -63,4 +63,4 @@ class Account < CouchRest::Model::Base errors.add(:email, "is not unique") end -end \ No newline at end of file +end diff --git a/padrino-admin/lib/padrino-admin/generators/templates/account/datamapper.rb.tt b/padrino-admin/lib/padrino-admin/generators/templates/account/datamapper.rb.tt index 7af690205..8ba1ffd98 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/account/datamapper.rb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/account/datamapper.rb.tt @@ -52,4 +52,4 @@ class Account def encrypt_password self.crypted_password = ::BCrypt::Password.create(password) if password.present? end -end \ No newline at end of file +end diff --git a/padrino-admin/lib/padrino-admin/generators/templates/account/mongoid.rb.tt b/padrino-admin/lib/padrino-admin/generators/templates/account/mongoid.rb.tt index 4fa7d9fa6..f5ea6fecb 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/account/mongoid.rb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/account/mongoid.rb.tt @@ -50,4 +50,4 @@ class Account def password_required crypted_password.blank? || self.password.present? end -end \ No newline at end of file +end diff --git a/padrino-admin/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt b/padrino-admin/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt index 330e4e8bb..3a5bbb681 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt @@ -43,4 +43,4 @@ class Account def password_required crypted_password.blank? || password.present? end -end \ No newline at end of file +end diff --git a/padrino-admin/lib/padrino-admin/generators/templates/account/seeds.rb.tt b/padrino-admin/lib/padrino-admin/generators/templates/account/seeds.rb.tt index 237cef4d2..b230f549c 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/account/seeds.rb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/account/seeds.rb.tt @@ -25,4 +25,4 @@ else account.errors.full_messages.each { |m| shell.say " - #{m}" } end -shell.say "" \ No newline at end of file +shell.say "" diff --git a/padrino-admin/lib/padrino-admin/generators/templates/account/sequel.rb.tt b/padrino-admin/lib/padrino-admin/generators/templates/account/sequel.rb.tt index c9b3e3cd8..b5dc84ceb 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/account/sequel.rb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/account/sequel.rb.tt @@ -49,4 +49,4 @@ class Account < ::Sequel::Model def password_required crypted_password.blank? || password.present? end -end \ No newline at end of file +end diff --git a/padrino-admin/lib/padrino-admin/generators/templates/app/controllers/base.rb b/padrino-admin/lib/padrino-admin/generators/templates/app/controllers/base.rb index d98538e77..73a00ee73 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/app/controllers/base.rb +++ b/padrino-admin/lib/padrino-admin/generators/templates/app/controllers/base.rb @@ -3,4 +3,4 @@ get :index, :map => "/" do render "base/index" end -end \ No newline at end of file +end diff --git a/padrino-admin/lib/padrino-admin/generators/templates/app/controllers/sessions.rb b/padrino-admin/lib/padrino-admin/generators/templates/app/controllers/sessions.rb index 1557faecf..cf500efe2 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/app/controllers/sessions.rb +++ b/padrino-admin/lib/padrino-admin/generators/templates/app/controllers/sessions.rb @@ -22,4 +22,4 @@ set_current_account(nil) redirect url(:sessions, :new) end -end \ No newline at end of file +end diff --git a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/base.css b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/base.css index f2fa5f761..321b59ef0 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/base.css +++ b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/base.css @@ -92,4 +92,4 @@ ul.list li .item .avatar{float:left;margin:0 5px 5px 0;width:30px;height:30px;} #box .block h2{padding:10px 15px;margin:0;} #box .block .content{padding:10px 20px;} /* custom */ -.code{font-family: Courier, 'Courier New', monospace;color:#36393D;} \ No newline at end of file +.code{font-family: Courier, 'Courier New', monospace;color:#36393D;} diff --git a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/amro/style.css b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/amro/style.css index fc8b388ad..d7ddddd43 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/amro/style.css +++ b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/amro/style.css @@ -361,4 +361,4 @@ ul.list li .item .avatar { -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -} \ No newline at end of file +} diff --git a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/blue/style.css b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/blue/style.css index 0767a09e1..ba0d00988 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/blue/style.css +++ b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/blue/style.css @@ -284,4 +284,4 @@ ul.list li .item .avatar { -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -} \ No newline at end of file +} diff --git a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/djime-cerulean/style.css b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/djime-cerulean/style.css index f466bfa19..119abe6b0 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/djime-cerulean/style.css +++ b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/djime-cerulean/style.css @@ -302,4 +302,4 @@ ul.list li .item .avatar { -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -} \ No newline at end of file +} diff --git a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/olive/style.css b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/olive/style.css index aa6685fa3..d08e838d8 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/olive/style.css +++ b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/olive/style.css @@ -342,4 +342,4 @@ ul.list li .item .avatar { -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -} \ No newline at end of file +} diff --git a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/orange/style.css b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/orange/style.css index 0291bfe90..db54805f1 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/orange/style.css +++ b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/orange/style.css @@ -266,4 +266,4 @@ ul.list li .item .avatar { -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -} \ No newline at end of file +} diff --git a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/reidb-greenish/style.css b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/reidb-greenish/style.css index de81f9ea7..18c239ab2 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/reidb-greenish/style.css +++ b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/reidb-greenish/style.css @@ -299,4 +299,4 @@ ul.list li .item .avatar { -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -} \ No newline at end of file +} diff --git a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/ruby/style.css b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/ruby/style.css index 17959e1cb..4826d8773 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/ruby/style.css +++ b/padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/ruby/style.css @@ -278,4 +278,4 @@ ul.list li .item .avatar { -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -} \ No newline at end of file +} diff --git a/padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/_sidebar.erb.tt b/padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/_sidebar.erb.tt index b6f348242..a9b2256f2 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/_sidebar.erb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/_sidebar.erb.tt @@ -10,4 +10,4 @@
  • <%%= link_to "Link 1" %>
  • <%%= link_to "Link 1" %>
  • - \ No newline at end of file + diff --git a/padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/index.erb.tt b/padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/index.erb.tt index 14ae9ef86..22818e469 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/index.erb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/index.erb.tt @@ -14,4 +14,4 @@ -<%% content_for :sidebar, partial("base/sidebar") %> \ No newline at end of file +<%% content_for :sidebar, partial("base/sidebar") %> diff --git a/padrino-admin/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt b/padrino-admin/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt index 26cb78b99..94e9e9f05 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt @@ -41,4 +41,4 @@ - \ No newline at end of file + diff --git a/padrino-admin/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt b/padrino-admin/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt index 96d701355..b5657756f 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt @@ -53,4 +53,4 @@ - \ No newline at end of file + diff --git a/padrino-admin/lib/padrino-admin/generators/templates/erb/page/_form.erb.tt b/padrino-admin/lib/padrino-admin/generators/templates/erb/page/_form.erb.tt index ea7934642..672399594 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/erb/page/_form.erb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/erb/page/_form.erb.tt @@ -8,4 +8,4 @@ \ No newline at end of file + diff --git a/padrino-admin/lib/padrino-admin/generators/templates/erb/page/edit.erb.tt b/padrino-admin/lib/padrino-admin/generators/templates/erb/page/edit.erb.tt index 548389195..c81c1d966 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/erb/page/edit.erb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/erb/page/edit.erb.tt @@ -15,4 +15,4 @@ -<%% content_for :sidebar, partial("base/sidebar") %> \ No newline at end of file +<%% content_for :sidebar, partial("base/sidebar") %> diff --git a/padrino-admin/lib/padrino-admin/generators/templates/erb/page/index.erb.tt b/padrino-admin/lib/padrino-admin/generators/templates/erb/page/index.erb.tt index 1aecfd21e..5026eae98 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/erb/page/index.erb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/erb/page/index.erb.tt @@ -33,4 +33,4 @@ -<%% content_for :sidebar, partial("base/sidebar") %> \ No newline at end of file +<%% content_for :sidebar, partial("base/sidebar") %> diff --git a/padrino-admin/lib/padrino-admin/generators/templates/erb/page/new.erb.tt b/padrino-admin/lib/padrino-admin/generators/templates/erb/page/new.erb.tt index de16a9e9a..71452ab30 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/erb/page/new.erb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/erb/page/new.erb.tt @@ -14,4 +14,4 @@ -<%% content_for :sidebar, partial("base/sidebar") %> \ No newline at end of file +<%% content_for :sidebar, partial("base/sidebar") %> diff --git a/padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/_sidebar.haml.tt b/padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/_sidebar.haml.tt index c6f06aada..60e8240e8 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/_sidebar.haml.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/_sidebar.haml.tt @@ -8,4 +8,4 @@ %h3 Links %ul.navigation %li=link_to "Link 1" - %li=link_to "Link 2" \ No newline at end of file + %li=link_to "Link 2" diff --git a/padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/index.haml.tt b/padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/index.haml.tt index 65afe1032..ab2ecf16c 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/index.haml.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/index.haml.tt @@ -22,4 +22,4 @@ %span.hightlight Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. --content_for :sidebar, partial("base/sidebar") \ No newline at end of file +-content_for :sidebar, partial("base/sidebar") diff --git a/padrino-admin/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt b/padrino-admin/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt index 6445556b2..178e7ed1b 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt @@ -28,4 +28,4 @@ =Time.now.year Your Site - Powered by =link_to "Padrino v.#{Padrino.version}", "http://padrino.github.com", :target => :_blank - #sidebar=yield_content :sidebar \ No newline at end of file + #sidebar=yield_content :sidebar diff --git a/padrino-admin/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt b/padrino-admin/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt index 3a5368234..4a0dfb21a 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt @@ -27,4 +27,4 @@ %label.label.right Bypass login? .right=check_box_tag :bypass .group.navform.wat-cf - .right=submit_tag('Sign In', :class => :button) \ No newline at end of file + .right=submit_tag('Sign In', :class => :button) diff --git a/padrino-admin/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt b/padrino-admin/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt index 3edf89ea6..1ff3e35c7 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt @@ -9,4 +9,4 @@ .group.navform.wat-cf =f.submit pat(:save), :class => :button - =f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button \ No newline at end of file + =f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button diff --git a/padrino-admin/lib/padrino-admin/generators/templates/haml/page/edit.haml.tt b/padrino-admin/lib/padrino-admin/generators/templates/haml/page/edit.haml.tt index f7c66c418..5577f26ea 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/haml/page/edit.haml.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/haml/page/edit.haml.tt @@ -12,4 +12,4 @@ -form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :update, :id => @<%= @orm.name_singular %>.id), :method => :put, :class => :form do |f| =partial "<%= @orm.name_plural %>/form", :locals => { :f => f } --content_for :sidebar, partial("base/sidebar") \ No newline at end of file +-content_for :sidebar, partial("base/sidebar") diff --git a/padrino-admin/lib/padrino-admin/generators/templates/haml/page/index.haml.tt b/padrino-admin/lib/padrino-admin/generators/templates/haml/page/index.haml.tt index e2c883194..34bfc8a66 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/haml/page/index.haml.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/haml/page/index.haml.tt @@ -26,4 +26,4 @@ .actions-bar.wat-cf .actions=" " --content_for :sidebar, partial("base/sidebar") \ No newline at end of file +-content_for :sidebar, partial("base/sidebar") diff --git a/padrino-admin/lib/padrino-admin/generators/templates/haml/page/new.haml.tt b/padrino-admin/lib/padrino-admin/generators/templates/haml/page/new.haml.tt index 09cd6444b..a660a0773 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/haml/page/new.haml.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/haml/page/new.haml.tt @@ -11,4 +11,4 @@ -form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :create), :class => :form do |f| =partial "<%= @orm.name_plural %>/form", :locals => { :f => f } --content_for :sidebar, partial("base/sidebar") \ No newline at end of file +-content_for :sidebar, partial("base/sidebar") diff --git a/padrino-admin/lib/padrino-admin/generators/templates/page/controller.rb.tt b/padrino-admin/lib/padrino-admin/generators/templates/page/controller.rb.tt index 603478658..6093adc14 100644 --- a/padrino-admin/lib/padrino-admin/generators/templates/page/controller.rb.tt +++ b/padrino-admin/lib/padrino-admin/generators/templates/page/controller.rb.tt @@ -44,4 +44,4 @@ Admin.controllers :<%= @orm.name_plural %> do end redirect url(:<%= @orm.name_plural %>, :index) end -end \ No newline at end of file +end diff --git a/padrino-admin/lib/padrino-admin/helpers/authentication_helpers.rb b/padrino-admin/lib/padrino-admin/helpers/authentication_helpers.rb index 7514b7b41..7e7bcaf21 100644 --- a/padrino-admin/lib/padrino-admin/helpers/authentication_helpers.rb +++ b/padrino-admin/lib/padrino-admin/helpers/authentication_helpers.rb @@ -99,4 +99,4 @@ def login_from_session end # AuthenticationHelpers end # Helpers end # Admin -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-admin/lib/padrino-admin/helpers/view_helpers.rb b/padrino-admin/lib/padrino-admin/helpers/view_helpers.rb index 02a8464f5..dbfa442a9 100644 --- a/padrino-admin/lib/padrino-admin/helpers/view_helpers.rb +++ b/padrino-admin/lib/padrino-admin/helpers/view_helpers.rb @@ -46,4 +46,4 @@ def model_translate(model) end # ViewHelpers end # Helpers end # Admin -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-admin/lib/padrino-admin/locale/admin/da.yml b/padrino-admin/lib/padrino-admin/locale/admin/da.yml index 84ddb564e..14c2c3237 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/da.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/da.yml @@ -13,4 +13,4 @@ da: all: Alle profile: Profil settings: Indstillinger - logout: Log ud \ No newline at end of file + logout: Log ud diff --git a/padrino-admin/lib/padrino-admin/locale/admin/de.yml b/padrino-admin/lib/padrino-admin/locale/admin/de.yml index ac725559e..061f99216 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/de.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/de.yml @@ -13,4 +13,4 @@ de: all: Alle profile: Benutzerkonto settings: Einstellungen - logout: Abmelden \ No newline at end of file + logout: Abmelden diff --git a/padrino-admin/lib/padrino-admin/locale/admin/en.yml b/padrino-admin/lib/padrino-admin/locale/admin/en.yml index 791534668..6fff2d5b7 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/en.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/en.yml @@ -13,4 +13,4 @@ en: all: All profile: Profile settings: Settings - logout: Logout \ No newline at end of file + logout: Logout diff --git a/padrino-admin/lib/padrino-admin/locale/admin/es.yml b/padrino-admin/lib/padrino-admin/locale/admin/es.yml index aaa7b70f2..8b45d097f 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/es.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/es.yml @@ -13,4 +13,4 @@ es: all: Todos profile: Perfil settings: Configuración - logout: Cerrar sesión \ No newline at end of file + logout: Cerrar sesión diff --git a/padrino-admin/lib/padrino-admin/locale/admin/fr.yml b/padrino-admin/lib/padrino-admin/locale/admin/fr.yml index 4a768f99a..023d72967 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/fr.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/fr.yml @@ -13,4 +13,4 @@ fr: all: Tous profile: Profile settings: Paramètres - logout: Déconnexion \ No newline at end of file + logout: Déconnexion diff --git a/padrino-admin/lib/padrino-admin/locale/admin/hu.yml b/padrino-admin/lib/padrino-admin/locale/admin/hu.yml index a8736e1e9..dbd761788 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/hu.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/hu.yml @@ -13,4 +13,4 @@ hu: all: mind profile: adatlap settings: beállítások - logout: kilépés \ No newline at end of file + logout: kilépés diff --git a/padrino-admin/lib/padrino-admin/locale/admin/it.yml b/padrino-admin/lib/padrino-admin/locale/admin/it.yml index 6f9d0fc82..e1aed34c5 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/it.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/it.yml @@ -13,4 +13,4 @@ it: all: Tutti profile: Profilo settings: Impostazioni - logout: Esci \ No newline at end of file + logout: Esci diff --git a/padrino-admin/lib/padrino-admin/locale/admin/nl.yml b/padrino-admin/lib/padrino-admin/locale/admin/nl.yml index 1d688a8f6..464374257 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/nl.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/nl.yml @@ -13,4 +13,4 @@ nl: all: Alle profile: Profiel settings: Voorkeuren - logout: Afmelden \ No newline at end of file + logout: Afmelden diff --git a/padrino-admin/lib/padrino-admin/locale/admin/no.yml b/padrino-admin/lib/padrino-admin/locale/admin/no.yml index 0b4231a6f..94709c7f1 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/no.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/no.yml @@ -13,4 +13,4 @@ all: Alle profile: Profil settings: Instillinger - logout: Logg ut \ No newline at end of file + logout: Logg ut diff --git a/padrino-admin/lib/padrino-admin/locale/admin/pl.yml b/padrino-admin/lib/padrino-admin/locale/admin/pl.yml index 4ca875028..8614d0acd 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/pl.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/pl.yml @@ -13,4 +13,4 @@ pl: all: Wszystkie profile: Profil settings: Ustawienia - logout: Wyloguj \ No newline at end of file + logout: Wyloguj diff --git a/padrino-admin/lib/padrino-admin/locale/admin/pt_br.yml b/padrino-admin/lib/padrino-admin/locale/admin/pt_br.yml index c7698310c..18d67bdf7 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/pt_br.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/pt_br.yml @@ -13,4 +13,4 @@ pt_br: all: Todos profile: Perfil settings: Preferências - logout: Sair \ No newline at end of file + logout: Sair diff --git a/padrino-admin/lib/padrino-admin/locale/admin/ru.yml b/padrino-admin/lib/padrino-admin/locale/admin/ru.yml index c1571ceb3..d6bd65c13 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/ru.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/ru.yml @@ -13,4 +13,4 @@ ru: all: Все profile: Профиль settings: Настройки - logout: Выход \ No newline at end of file + logout: Выход diff --git a/padrino-admin/lib/padrino-admin/locale/admin/tr.yml b/padrino-admin/lib/padrino-admin/locale/admin/tr.yml index 15f70a092..404439439 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/tr.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/tr.yml @@ -13,4 +13,4 @@ tr: all: Hepsi profile: Profil settings: Ayarlar - logout: Çıkış \ No newline at end of file + logout: Çıkış diff --git a/padrino-admin/lib/padrino-admin/locale/admin/uk.yml b/padrino-admin/lib/padrino-admin/locale/admin/uk.yml index e44a17469..d578b4250 100644 --- a/padrino-admin/lib/padrino-admin/locale/admin/uk.yml +++ b/padrino-admin/lib/padrino-admin/locale/admin/uk.yml @@ -13,4 +13,4 @@ uk: all: Всі profile: Профіль settings: Налаштування - logout: Вихід \ No newline at end of file + logout: Вихід diff --git a/padrino-admin/lib/padrino-admin/locale/orm/da.yml b/padrino-admin/lib/padrino-admin/locale/orm/da.yml index fc0670995..90eee6712 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/da.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/da.yml @@ -23,4 +23,4 @@ da: even: "skal være lige" record_invalid: "Valideringsfejl: %{errors}" content_type: "fileformatet er ikke understøttet" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/de.yml b/padrino-admin/lib/padrino-admin/locale/orm/de.yml index dc6542158..f555e5176 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/de.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/de.yml @@ -23,4 +23,4 @@ de: even: "muss gerade sein" record_invalid: "Validierung schlug fehl: %{errors}" content_type: "Datei-Format wird nicht unterstützt" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/en.yml b/padrino-admin/lib/padrino-admin/locale/orm/en.yml index 99dd2abbb..c68ce38d8 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/en.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/en.yml @@ -23,4 +23,4 @@ en: even: "must be even" record_invalid: "Validation failed: %{errors}" content_type: "file format not supported" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/es.yml b/padrino-admin/lib/padrino-admin/locale/orm/es.yml index 4d77e0f12..c80361e17 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/es.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/es.yml @@ -23,4 +23,4 @@ es: even: "debe ser par" record_invalid: "Fallo la validación: %{errors}" content_type: "formato de archivo no soportado" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/fr.yml b/padrino-admin/lib/padrino-admin/locale/orm/fr.yml index bd6b67154..ed2b5dd9c 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/fr.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/fr.yml @@ -23,4 +23,4 @@ fr: even: "doit être pair" record_invalid: "La validation a échoué: %{errors}" content_type: "format de fichier non pris en charge" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/hu.yml b/padrino-admin/lib/padrino-admin/locale/orm/hu.yml index 6fcef3842..e2a73e328 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/hu.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/hu.yml @@ -23,4 +23,4 @@ hu: even: ": párosnak kell lennie" record_invalid: "Érvénytelen: %{errors}" content_type: ": a fájl formátuma nem támogatott" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/it.yml b/padrino-admin/lib/padrino-admin/locale/orm/it.yml index 7aec630c9..b6a915088 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/it.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/it.yml @@ -23,4 +23,4 @@ it: even: "deve essere pari" record_invalid: "Validazione fallita: %{errors}" content_type: "il seguente tipo di file non è supportato" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/nl.yml b/padrino-admin/lib/padrino-admin/locale/orm/nl.yml index d8e27d130..74da758de 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/nl.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/nl.yml @@ -23,4 +23,4 @@ nl: even: "moet even zijn" record_invalid: "Validatie mislukt: %{errors}" content_type: "bestandsformaat niet ondersteund" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/no.yml b/padrino-admin/lib/padrino-admin/locale/orm/no.yml index 7abd1ac68..8048edb76 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/no.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/no.yml @@ -23,4 +23,4 @@ even: "skal være lik" record_invalid: "Valideringsfeil: %{errors}" content_type: "fileformatet er ikke støttet" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/pl.yml b/padrino-admin/lib/padrino-admin/locale/orm/pl.yml index a511386b1..a8c935a48 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/pl.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/pl.yml @@ -24,4 +24,4 @@ pl: even: "musi być parzyste" record_invalid: "Negatywne sprawdzenie poprawności: %{errors}" content_type: "nieodozwolony format pliku" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/pt_br.yml b/padrino-admin/lib/padrino-admin/locale/orm/pt_br.yml index 039f9b638..1a00a9427 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/pt_br.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/pt_br.yml @@ -23,4 +23,4 @@ pt_br: even: "deve ser par" record_invalid: "Falha na validação: %{errors}" content_type: "o seguinte tipo de arquivo não é suportado" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/ru.yml b/padrino-admin/lib/padrino-admin/locale/orm/ru.yml index b866f795f..8f75aa928 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/ru.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/ru.yml @@ -23,4 +23,4 @@ ru: even: "должно быть четным" record_invalid: "Проверка не удалась: %{errors}" content_type: "формат файла не поддерживается" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/tr.yml b/padrino-admin/lib/padrino-admin/locale/orm/tr.yml index 497268031..25e61c40f 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/tr.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/tr.yml @@ -23,4 +23,4 @@ tr: even: "çift olmalı" record_invalid: "Doğrulama gerçekleşmedi: %{errors}" content_type: "Dosya biçimi desteklenmiyor" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/locale/orm/uk.yml b/padrino-admin/lib/padrino-admin/locale/orm/uk.yml index c94e6b523..57f8a3ab5 100644 --- a/padrino-admin/lib/padrino-admin/locale/orm/uk.yml +++ b/padrino-admin/lib/padrino-admin/locale/orm/uk.yml @@ -23,4 +23,4 @@ uk: even: "повинно бути парним" record_invalid: "Перевірка не вдалася: %{errors}" content_type: "формат файлу не підтримується" - activerecord: *activemodel \ No newline at end of file + activerecord: *activemodel diff --git a/padrino-admin/lib/padrino-admin/utils/crypt.rb b/padrino-admin/lib/padrino-admin/utils/crypt.rb index ea133f7b0..411e4e9aa 100644 --- a/padrino-admin/lib/padrino-admin/utils/crypt.rb +++ b/padrino-admin/lib/padrino-admin/utils/crypt.rb @@ -26,7 +26,7 @@ def encrypt(password) end private - def build_cipher(type, password) ## @private + def build_cipher(type, password) # @private cipher = OpenSSL::Cipher::Cipher.new("DES-EDE3-CBC").send(type) cipher.pkcs5_keyivgen(password) cipher @@ -34,4 +34,4 @@ def build_cipher(type, password) ## @private end # Crypt end # Utils end # Admin -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-admin/padrino-admin.gemspec b/padrino-admin/padrino-admin.gemspec index 98ce909a8..055659f0e 100755 --- a/padrino-admin/padrino-admin.gemspec +++ b/padrino-admin/padrino-admin.gemspec @@ -24,4 +24,4 @@ Gem::Specification.new do |s| s.add_dependency("padrino-core", Padrino.version) s.add_dependency("padrino-helpers", Padrino.version) -end \ No newline at end of file +end diff --git a/padrino-admin/test/fixtures/data_mapper.rb b/padrino-admin/test/fixtures/data_mapper.rb index d045d76b9..f486be82c 100644 --- a/padrino-admin/test/fixtures/data_mapper.rb +++ b/padrino-admin/test/fixtures/data_mapper.rb @@ -92,4 +92,4 @@ def password_required %w(News Press HowTo).each do |c| admin.categories.create(:name => c) editor.categories.create(:name => c) -end \ No newline at end of file +end diff --git a/padrino-admin/test/generators/test_admin_page_generator.rb b/padrino-admin/test/generators/test_admin_page_generator.rb index 3d3e076ab..8c8e81cd7 100644 --- a/padrino-admin/test/generators/test_admin_page_generator.rb +++ b/padrino-admin/test/generators/test_admin_page_generator.rb @@ -129,4 +129,4 @@ def teardown assert_match_in_file 'role.project_module :pages, "/pages"', "#{@apptmp}/sample_project/admin/app.rb" end end -end \ No newline at end of file +end diff --git a/padrino-admin/test/helper.rb b/padrino-admin/test/helper.rb index 596becd39..0c61b4696 100644 --- a/padrino-admin/test/helper.rb +++ b/padrino-admin/test/helper.rb @@ -89,4 +89,4 @@ def method_missing(name, *args, &block) end alias :response :last_response -end \ No newline at end of file +end diff --git a/padrino-cache/lib/padrino-cache.rb b/padrino-cache/lib/padrino-cache.rb index 096d1a9e3..81136c8e5 100644 --- a/padrino-cache/lib/padrino-cache.rb +++ b/padrino-cache/lib/padrino-cache.rb @@ -90,7 +90,7 @@ def registered(app) end alias :included :registered - def padrino_route_added(route, verb, path, args, options, block) ## @private + def padrino_route_added(route, verb, path, args, options, block) # @private Padrino::Cache::Helpers::Page.padrino_route_added(route, verb, path, args, options, block) end end diff --git a/padrino-cache/lib/padrino-cache/helpers/cache_store.rb b/padrino-cache/lib/padrino-cache/helpers/cache_store.rb index e274ec405..a694a300b 100644 --- a/padrino-cache/lib/padrino-cache/helpers/cache_store.rb +++ b/padrino-cache/lib/padrino-cache/helpers/cache_store.rb @@ -1,7 +1,7 @@ module Padrino module Cache module Helpers - module CacheStore ## @private + module CacheStore # @private def expire(*key) if key.size == 1 and key.first.is_a?(String) settings.cache.delete(key) @@ -12,4 +12,4 @@ def expire(*key) end # CacheStore end # Helpers end # Cache -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-cache/lib/padrino-cache/helpers/fragment.rb b/padrino-cache/lib/padrino-cache/helpers/fragment.rb index 38e599e78..58f82a60f 100644 --- a/padrino-cache/lib/padrino-cache/helpers/fragment.rb +++ b/padrino-cache/lib/padrino-cache/helpers/fragment.rb @@ -57,4 +57,4 @@ def cache(key, opts = nil, &block) end # Fragment end # Helpers end # Cache -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-cache/lib/padrino-cache/helpers/page.rb b/padrino-cache/lib/padrino-cache/helpers/page.rb index aa6d80acc..d9a6cb7c4 100644 --- a/padrino-cache/lib/padrino-cache/helpers/page.rb +++ b/padrino-cache/lib/padrino-cache/helpers/page.rb @@ -54,7 +54,7 @@ def cache_key(name) @_cache_key = name end - def self.padrino_route_added(route, verb, path, args, options, block) ## @private + def self.padrino_route_added(route, verb, path, args, options, block) # @private if route.cache and %w(GET HEAD).include?(verb) route.add_before_filter(Proc.new { if settings.caching? @@ -83,4 +83,4 @@ def self.padrino_route_added(route, verb, path, args, options, block) ## @privat end # Page end # Helpers end # Cache -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-cache/lib/padrino-cache/store/file.rb b/padrino-cache/lib/padrino-cache/store/file.rb index 38adb0783..3b8c53604 100644 --- a/padrino-cache/lib/padrino-cache/store/file.rb +++ b/padrino-cache/lib/padrino-cache/store/file.rb @@ -96,4 +96,4 @@ def init end # File end # Store end # Cache -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-cache/lib/padrino-cache/store/memcache.rb b/padrino-cache/lib/padrino-cache/store/memcache.rb index dd30663db..791fb4449 100644 --- a/padrino-cache/lib/padrino-cache/store/memcache.rb +++ b/padrino-cache/lib/padrino-cache/store/memcache.rb @@ -77,4 +77,4 @@ def flush end # Memcached end # Store end # Cache -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-cache/lib/padrino-cache/store/memory.rb b/padrino-cache/lib/padrino-cache/store/memory.rb index dea689b74..0075920a5 100644 --- a/padrino-cache/lib/padrino-cache/store/memory.rb +++ b/padrino-cache/lib/padrino-cache/store/memory.rb @@ -88,4 +88,4 @@ def flush end # Memory end # Store end # Cache -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-cache/lib/padrino-cache/store/redis.rb b/padrino-cache/lib/padrino-cache/store/redis.rb index 9518c2fe6..988f68658 100644 --- a/padrino-cache/lib/padrino-cache/store/redis.rb +++ b/padrino-cache/lib/padrino-cache/store/redis.rb @@ -73,4 +73,4 @@ def flush end # Redis end # Store end # Cache -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-cache/padrino-cache.gemspec b/padrino-cache/padrino-cache.gemspec index d2dfdd3fc..71e82185d 100755 --- a/padrino-cache/padrino-cache.gemspec +++ b/padrino-cache/padrino-cache.gemspec @@ -23,4 +23,4 @@ Gem::Specification.new do |s| s.rdoc_options = ["--charset=UTF-8"] s.add_runtime_dependency("padrino-core", Padrino.version) -end \ No newline at end of file +end diff --git a/padrino-cache/test/test_padrino_cache.rb b/padrino-cache/test/test_padrino_cache.rb index 9a4844fd7..a086b7c9e 100644 --- a/padrino-cache/test/test_padrino_cache.rb +++ b/padrino-cache/test/test_padrino_cache.rb @@ -190,4 +190,4 @@ def teardown get "/foo" assert_equal 500, status end -end \ No newline at end of file +end diff --git a/padrino-core/README.rdoc b/padrino-core/README.rdoc index f15e2c25c..9b730b50c 100644 --- a/padrino-core/README.rdoc +++ b/padrino-core/README.rdoc @@ -291,4 +291,4 @@ For a complete overview of Padrino terminal commands, check out the == Copyright -Copyright (c) 2011 Padrino. See LICENSE for details. \ No newline at end of file +Copyright (c) 2011 Padrino. See LICENSE for details. diff --git a/padrino-core/lib/padrino-core.rb b/padrino-core/lib/padrino-core.rb index f64b9652d..c1cd98c8e 100644 --- a/padrino-core/lib/padrino-core.rb +++ b/padrino-core/lib/padrino-core.rb @@ -9,7 +9,7 @@ PADRINO_ROOT = ENV["PADRINO_ROOT"] ||= File.dirname(Padrino.first_caller) unless defined?(PADRINO_ROOT) module Padrino - class ApplicationLoadError < RuntimeError ## @private + class ApplicationLoadError < RuntimeError # @private end class << self @@ -116,4 +116,4 @@ def use(m, *args, &block) middleware << [m, args, block] end end # self -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/lib/padrino-core/application.rb b/padrino-core/lib/padrino-core/application.rb index 262ac4abc..bd2b21213 100644 --- a/padrino-core/lib/padrino-core/application.rb +++ b/padrino-core/lib/padrino-core/application.rb @@ -1,5 +1,5 @@ module Padrino - class ApplicationSetupError < RuntimeError ## @private + class ApplicationSetupError < RuntimeError # @private end ## @@ -11,7 +11,7 @@ class Application < Sinatra::Base class << self - def inherited(base) ## @private + def inherited(base) # @private logger.devel "Setup #{base}" CALLERS_TO_IGNORE.concat(PADRINO_IGNORE_CALLERS) base.default_configuration! @@ -256,4 +256,4 @@ def render(*args) end end # render method end # Application -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/lib/padrino-core/application/rendering.rb b/padrino-core/lib/padrino-core/application/rendering.rb index ca6d40309..9ef1f5c82 100644 --- a/padrino-core/lib/padrino-core/application/rendering.rb +++ b/padrino-core/lib/padrino-core/application/rendering.rb @@ -6,7 +6,7 @@ module Padrino # enhanced layout functionality, locale enabled rendering, among other features. # module Rendering - class TemplateNotFound < RuntimeError ## @private + class TemplateNotFound < RuntimeError # @private end ## @@ -90,7 +90,7 @@ def fetch_layout_path(given_layout=nil) module InstanceMethods attr_reader :current_engine - def content_type(type=nil, params={}) ## @private + def content_type(type=nil, params={}) # @private type.nil? ? @_content_type : super(type, params) end @@ -225,4 +225,4 @@ def locale end end # InstanceMethods end # Rendering -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/lib/padrino-core/application/routing.rb b/padrino-core/lib/padrino-core/application/routing.rb index e26d0f660..a7a68f1e9 100644 --- a/padrino-core/lib/padrino-core/application/routing.rb +++ b/padrino-core/lib/padrino-core/application/routing.rb @@ -1,7 +1,7 @@ require 'http_router' unless defined?(HttpRouter) require 'padrino-core/support_lite' unless defined?(SupportLite) -class Sinatra::Request ## @private +class Sinatra::Request # @private attr_accessor :route_obj def controller @@ -9,7 +9,7 @@ def controller end end -class HttpRouter ## @private +class HttpRouter # @private def rewrite_partial_path_info(env, request); end def rewrite_path_info(env, request); end @@ -53,7 +53,7 @@ def process_destination_path(path, env) end end - class Route ## @private + class Route # @private attr_reader :before_filters, :after_filters attr_accessor :custom_conditions, :use_layout, :controller, :cache @@ -125,7 +125,7 @@ module Routing CONTENT_TYPE_ALIASES = { :htm => :html } unless defined?(CONTENT_TYPE_ALIASES) ROUTE_PRIORITY = {:high => 0, :normal => 1, :low => 2} unless defined?(ROUTE_PRIORITY) - class UnrecognizedException < RuntimeError ## @private + class UnrecognizedException < RuntimeError # @private end ## diff --git a/padrino-core/lib/padrino-core/caller.rb b/padrino-core/lib/padrino-core/caller.rb index 8c65a92b8..bd7c0e776 100644 --- a/padrino-core/lib/padrino-core/caller.rb +++ b/padrino-core/lib/padrino-core/caller.rb @@ -42,4 +42,4 @@ def self.caller_files reject { |file,line| PADRINO_IGNORE_CALLERS.any? { |pattern| file =~ pattern } }. map { |file,line| file } end -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/lib/padrino-core/cli/adapter.rb b/padrino-core/lib/padrino-core/cli/adapter.rb index 0c695bba9..6b47d4a75 100644 --- a/padrino-core/lib/padrino-core/cli/adapter.rb +++ b/padrino-core/lib/padrino-core/cli/adapter.rb @@ -21,4 +21,4 @@ def stop(options) end # self end # Adapter end # Cli -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/lib/padrino-core/cli/rake.rb b/padrino-core/lib/padrino-core/cli/rake.rb index 1f74ca5af..baaccd1fd 100644 --- a/padrino-core/lib/padrino-core/cli/rake.rb +++ b/padrino-core/lib/padrino-core/cli/rake.rb @@ -21,4 +21,4 @@ def self.init(init=false) def shell @_shell ||= Thor::Base.shell.new -end \ No newline at end of file +end diff --git a/padrino-core/lib/padrino-core/command.rb b/padrino-core/lib/padrino-core/command.rb index 1bb3367d0..27ca50c73 100644 --- a/padrino-core/lib/padrino-core/command.rb +++ b/padrino-core/lib/padrino-core/command.rb @@ -24,4 +24,4 @@ def self.ruby_command ruby end end -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/lib/padrino-core/images/404.png b/padrino-core/lib/padrino-core/images/404.png index 902110e16..2dc2538a1 100644 Binary files a/padrino-core/lib/padrino-core/images/404.png and b/padrino-core/lib/padrino-core/images/404.png differ diff --git a/padrino-core/lib/padrino-core/images/500.png b/padrino-core/lib/padrino-core/images/500.png index 57c84c3d9..87187a119 100644 Binary files a/padrino-core/lib/padrino-core/images/500.png and b/padrino-core/lib/padrino-core/images/500.png differ diff --git a/padrino-core/lib/padrino-core/loader.rb b/padrino-core/lib/padrino-core/loader.rb index 7dd6586f7..f04d9a451 100644 --- a/padrino-core/lib/padrino-core/loader.rb +++ b/padrino-core/lib/padrino-core/loader.rb @@ -179,4 +179,4 @@ def set_load_paths(*paths) $:.uniq!; load_paths.uniq! end end # self -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/lib/padrino-core/logger.rb b/padrino-core/lib/padrino-core/logger.rb index ce962122a..65a7b4256 100644 --- a/padrino-core/lib/padrino-core/logger.rb +++ b/padrino-core/lib/padrino-core/logger.rb @@ -347,7 +347,7 @@ def extract_content_length(headers) end # Logger end # Padrino -module Kernel ## @private +module Kernel # @private ## # Define a logger available every where in our app # diff --git a/padrino-core/lib/padrino-core/mounter.rb b/padrino-core/lib/padrino-core/mounter.rb index 3afb8cb6c..72af47a05 100644 --- a/padrino-core/lib/padrino-core/mounter.rb +++ b/padrino-core/lib/padrino-core/mounter.rb @@ -9,7 +9,7 @@ module Padrino # Mounter.new("blog_app", :app_file => "/path/to/blog/app.rb").to("/blog") # class Mounter - class MounterException < RuntimeError ## @private + class MounterException < RuntimeError # @private end attr_accessor :name, :uri_root, :app_file, :app_class, :app_root, :app_obj, :app_host @@ -189,4 +189,4 @@ def mount(name, options={}) Mounter.new(name, options) end end # Mounter -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/lib/padrino-core/router.rb b/padrino-core/lib/padrino-core/router.rb index 68332007c..039b1b205 100644 --- a/padrino-core/lib/padrino-core/router.rb +++ b/padrino-core/lib/padrino-core/router.rb @@ -76,4 +76,4 @@ def call(env) [404, {"Content-Type" => "text/plain", "X-Cascade" => "pass"}, ["Not Found: #{rPath}"]] end end # Router -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/lib/padrino-core/server.rb b/padrino-core/lib/padrino-core/server.rb index dc114e9dc..ffa24457b 100644 --- a/padrino-core/lib/padrino-core/server.rb +++ b/padrino-core/lib/padrino-core/server.rb @@ -67,4 +67,4 @@ def self.detect_rack_handler fail "Server handler (#{Handlers.join(', ')}) not found." end end # Server -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/lib/padrino-core/support_lite.rb b/padrino-core/lib/padrino-core/support_lite.rb index 664d72f72..edef3c120 100644 --- a/padrino-core/lib/padrino-core/support_lite.rb +++ b/padrino-core/lib/padrino-core/support_lite.rb @@ -144,4 +144,4 @@ def self.glob_require(glob_pattern, file_path=nil) ## # Used to know if this file has already been required # -module SupportLite; end \ No newline at end of file +module SupportLite; end diff --git a/padrino-core/lib/padrino-core/tasks.rb b/padrino-core/lib/padrino-core/tasks.rb index 81171e7cb..4b708fb4e 100644 --- a/padrino-core/lib/padrino-core/tasks.rb +++ b/padrino-core/lib/padrino-core/tasks.rb @@ -20,4 +20,4 @@ def self.files @files ||= [] end end # Tasks -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-core/test/fixtures/apps/complex.rb b/padrino-core/test/fixtures/apps/complex.rb index 3f6a49384..1d0a39752 100644 --- a/padrino-core/test/fixtures/apps/complex.rb +++ b/padrino-core/test/fixtures/apps/complex.rb @@ -29,4 +29,4 @@ class Complex2Demo < Padrino::Application Complex2Demo.controllers do end -Padrino.load! \ No newline at end of file +Padrino.load! diff --git a/padrino-core/test/fixtures/apps/simple.rb b/padrino-core/test/fixtures/apps/simple.rb index 2314e5c68..99d81a213 100644 --- a/padrino-core/test/fixtures/apps/simple.rb +++ b/padrino-core/test/fixtures/apps/simple.rb @@ -30,4 +30,4 @@ class SimpleDemo < Padrino::Application # Then run it from your console: ruby -I"lib" test/fixtures/apps/simple.rb # -Padrino.load! \ No newline at end of file +Padrino.load! diff --git a/padrino-core/test/fixtures/dependencies/a.rb b/padrino-core/test/fixtures/dependencies/a.rb index 1cb4d5a4b..eecc84102 100644 --- a/padrino-core/test/fixtures/dependencies/a.rb +++ b/padrino-core/test/fixtures/dependencies/a.rb @@ -6,4 +6,4 @@ # But here we need some of b.rb A_result = [B, C] -A = "A" \ No newline at end of file +A = "A" diff --git a/padrino-core/test/fixtures/dependencies/b.rb b/padrino-core/test/fixtures/dependencies/b.rb index 4d40f3db8..a9fcf5acf 100644 --- a/padrino-core/test/fixtures/dependencies/b.rb +++ b/padrino-core/test/fixtures/dependencies/b.rb @@ -1,4 +1,4 @@ # But here we need some of c.rb and a.rb B_result = C -B = "B" \ No newline at end of file +B = "B" diff --git a/padrino-core/test/fixtures/dependencies/c.rb b/padrino-core/test/fixtures/dependencies/c.rb index 6c649dfd8..adb57549e 100644 --- a/padrino-core/test/fixtures/dependencies/c.rb +++ b/padrino-core/test/fixtures/dependencies/c.rb @@ -1 +1 @@ -C = "C" \ No newline at end of file +C = "C" diff --git a/padrino-core/test/fixtures/dependencies/d.rb b/padrino-core/test/fixtures/dependencies/d.rb index ff3c44e61..851aae1fa 100644 --- a/padrino-core/test/fixtures/dependencies/d.rb +++ b/padrino-core/test/fixtures/dependencies/d.rb @@ -1,4 +1,4 @@ D = 0 unless defined?(D) D += 1 -raise "SomeThing" \ No newline at end of file +raise "SomeThing" diff --git a/padrino-core/test/test_application.rb b/padrino-core/test/test_application.rb index 880daf9c2..a42617bd6 100644 --- a/padrino-core/test/test_application.rb +++ b/padrino-core/test/test_application.rb @@ -80,4 +80,4 @@ def teardown end # content_type to :html end # application functionality -end \ No newline at end of file +end diff --git a/padrino-core/test/test_core.rb b/padrino-core/test/test_core.rb index 05b10cbb1..3ccc85189 100644 --- a/padrino-core/test/test_core.rb +++ b/padrino-core/test/test_core.rb @@ -76,4 +76,4 @@ class Foo < Padrino::Application; end assert_equal "yes", res["Middleware-Called"] end end -end \ No newline at end of file +end diff --git a/padrino-core/test/test_logger.rb b/padrino-core/test/test_logger.rb index 42721bc26..f5c7573f7 100644 --- a/padrino-core/test/test_logger.rb +++ b/padrino-core/test/test_logger.rb @@ -88,4 +88,4 @@ def setup_logger(options={}) end end end -end \ No newline at end of file +end diff --git a/padrino-core/test/test_mounter.rb b/padrino-core/test/test_mounter.rb index 291b8e523..b437af47e 100644 --- a/padrino-core/test/test_mounter.rb +++ b/padrino-core/test/test_mounter.rb @@ -173,4 +173,4 @@ class ::PublicApp < Padrino::Application assert_equal File.read(__FILE__), res.body end end -end \ No newline at end of file +end diff --git a/padrino-core/test/test_reloader_complex.rb b/padrino-core/test/test_reloader_complex.rb index 70feeb99d..e7687820f 100644 --- a/padrino-core/test/test_reloader_complex.rb +++ b/padrino-core/test/test_reloader_complex.rb @@ -70,4 +70,4 @@ class TestComplexReloader < Test::Unit::TestCase end end end -end \ No newline at end of file +end diff --git a/padrino-core/test/test_reloader_simple.rb b/padrino-core/test/test_reloader_simple.rb index af73bd8cc..8eb70924d 100644 --- a/padrino-core/test/test_reloader_simple.rb +++ b/padrino-core/test/test_reloader_simple.rb @@ -94,4 +94,4 @@ class TestSimpleReloader < Test::Unit::TestCase assert_equal 0, @app.templates.size end end -end \ No newline at end of file +end diff --git a/padrino-core/test/test_rendering.rb b/padrino-core/test/test_rendering.rb index 510a81060..01fbe09b8 100644 --- a/padrino-core/test/test_rendering.rb +++ b/padrino-core/test/test_rendering.rb @@ -434,4 +434,4 @@ def is; "IS."; end assert_equal 'THIS. IS. SPARTA!', body end end -end \ No newline at end of file +end diff --git a/padrino-core/test/test_restful_routing.rb b/padrino-core/test/test_restful_routing.rb index d8324e242..ac84dddc1 100644 --- a/padrino-core/test/test_restful_routing.rb +++ b/padrino-core/test/test_restful_routing.rb @@ -30,4 +30,4 @@ class TestRouting < Test::Unit::TestCase delete "/parents/1/hi" assert_equal "/parents/1/hi delete", body end -end \ No newline at end of file +end diff --git a/padrino-core/test/test_router.rb b/padrino-core/test/test_router.rb index 7a64f330b..40f1460d1 100644 --- a/padrino-core/test/test_router.rb +++ b/padrino-core/test/test_router.rb @@ -143,4 +143,4 @@ def setup res = Rack::MockRequest.new(Padrino.application).get("/foo/", "HTTP_HOST" => "bar.padrino.org") assert res.ok? end -end \ No newline at end of file +end diff --git a/padrino-gen/README.rdoc b/padrino-gen/README.rdoc index d7d73aa34..768d8865f 100644 --- a/padrino-gen/README.rdoc +++ b/padrino-gen/README.rdoc @@ -160,4 +160,4 @@ To learn more about the mailer generator, check out the guide to == Copyright -Copyright (c) 2011 Padrino. See LICENSE for details. \ No newline at end of file +Copyright (c) 2011 Padrino. See LICENSE for details. diff --git a/padrino-gen/lib/padrino-gen.rb b/padrino-gen/lib/padrino-gen.rb index 588f5a572..5bdd184b1 100644 --- a/padrino-gen/lib/padrino-gen.rb +++ b/padrino-gen/lib/padrino-gen.rb @@ -74,4 +74,4 @@ def load_components! ## # We add our tasks to padrino-core # -Padrino::Tasks.files << Dir[File.dirname(__FILE__) + "/padrino-gen/padrino-tasks/**/*.rb"] \ No newline at end of file +Padrino::Tasks.files << Dir[File.dirname(__FILE__) + "/padrino-gen/padrino-tasks/**/*.rb"] diff --git a/padrino-gen/lib/padrino-gen/command.rb b/padrino-gen/lib/padrino-gen/command.rb index ed7832a0d..78195efe9 100644 --- a/padrino-gen/lib/padrino-gen/command.rb +++ b/padrino-gen/lib/padrino-gen/command.rb @@ -9,4 +9,4 @@ def self.bin_gen(*args) @_padrino_gen_bin ||= [Padrino.ruby_command, File.expand_path("../../../bin/padrino-gen", __FILE__)] args.empty? ? @_padrino_gen_bin : system(args.unshift(@_padrino_gen_bin).join(" ")) end -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-gen/lib/padrino-gen/generators/app.rb b/padrino-gen/lib/padrino-gen/generators/app.rb index 0716ba6bc..c79177fda 100644 --- a/padrino-gen/lib/padrino-gen/generators/app.rb +++ b/padrino-gen/lib/padrino-gen/generators/app.rb @@ -51,4 +51,4 @@ def create_app end end # App end # Generators -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-gen/lib/padrino-gen/generators/app/app.rb.tt b/padrino-gen/lib/padrino-gen/generators/app/app.rb.tt index fcda66b5a..ba3170e21 100644 --- a/padrino-gen/lib/padrino-gen/generators/app/app.rb.tt +++ b/padrino-gen/lib/padrino-gen/generators/app/app.rb.tt @@ -56,4 +56,4 @@ class <%= @app_name %> < Padrino::Application # render 'errors/505' # end # -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/cli.rb b/padrino-gen/lib/padrino-gen/generators/cli.rb index d98e02be2..d75c716d6 100644 --- a/padrino-gen/lib/padrino-gen/generators/cli.rb +++ b/padrino-gen/lib/padrino-gen/generators/cli.rb @@ -50,4 +50,4 @@ def setup end end # Cli end # Generators -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-gen/lib/padrino-gen/generators/components/actions.rb b/padrino-gen/lib/padrino-gen/generators/components/actions.rb index a6e0994c7..ba2d1bd16 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/actions.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/actions.rb @@ -117,4 +117,4 @@ def controller_actions(fields) end # Actions end # Components end # Generators -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-gen/lib/padrino-gen/generators/components/mocks/mocha.rb b/padrino-gen/lib/padrino-gen/generators/components/mocks/mocha.rb index a772f230d..6d93032ca 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/mocks/mocha.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/mocks/mocha.rb @@ -6,4 +6,4 @@ def setup_mock else insert_mocking_include "Mocha::API" end -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/mocks/rr.rb b/padrino-gen/lib/padrino-gen/generators/components/mocks/rr.rb index 78a838474..19e152f9d 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/mocks/rr.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/mocks/rr.rb @@ -8,4 +8,4 @@ def setup_mock else insert_mocking_include "RR::Adapters::RRMethods", :path => "test/test_config.rb" end -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/renderers/erb.rb b/padrino-gen/lib/padrino-gen/generators/components/renderers/erb.rb index 06e42c842..e4ae2a3d1 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/renderers/erb.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/renderers/erb.rb @@ -1,3 +1,3 @@ def setup_renderer require_dependencies 'erubis', :version => "~> 2.7.0" -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/renderers/haml.rb b/padrino-gen/lib/padrino-gen/generators/components/renderers/haml.rb index bc3b86d35..20fa596a1 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/renderers/haml.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/renderers/haml.rb @@ -1,3 +1,3 @@ def setup_renderer require_dependencies 'haml' -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/renderers/liquid.rb b/padrino-gen/lib/padrino-gen/generators/components/renderers/liquid.rb index c4e57197f..e162a20fc 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/renderers/liquid.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/renderers/liquid.rb @@ -1,4 +1,4 @@ def setup_renderer require_dependencies 'liquid', :version => "= 2.1.2" require_dependencies 'liquify' -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/renderers/slim.rb b/padrino-gen/lib/padrino-gen/generators/components/renderers/slim.rb index 9474087e1..6f84da72a 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/renderers/slim.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/renderers/slim.rb @@ -1,3 +1,3 @@ def setup_renderer require_dependencies 'slim' -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/scripts/dojo.rb b/padrino-gen/lib/padrino-gen/generators/components/scripts/dojo.rb index ec4a94a69..3e677bda1 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/scripts/dojo.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/scripts/dojo.rb @@ -7,4 +7,4 @@ def setup_script copy_file('templates/static/ujs/dojo.js', destination_root("/public/javascripts/dojo-ujs.js")) end create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here") -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/scripts/extcore.rb b/padrino-gen/lib/padrino-gen/generators/components/scripts/extcore.rb index 38a670c81..68a01011e 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/scripts/extcore.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/scripts/extcore.rb @@ -7,4 +7,4 @@ def setup_script copy_file('templates/static/ujs/ext.js', destination_root("/public/javascripts/ext-ujs.js")) end create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here") -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/scripts/jquery.rb b/padrino-gen/lib/padrino-gen/generators/components/scripts/jquery.rb index d5ded940f..1c5870b7b 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/scripts/jquery.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/scripts/jquery.rb @@ -7,4 +7,4 @@ def setup_script copy_file('templates/static/ujs/jquery.js', destination_root("/public/javascripts/jquery-ujs.js")) end create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here") -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/scripts/mootools.rb b/padrino-gen/lib/padrino-gen/generators/components/scripts/mootools.rb index ba7f195bc..a046ba06d 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/scripts/mootools.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/scripts/mootools.rb @@ -7,4 +7,4 @@ def setup_script copy_file('templates/static/ujs/mootools.js', destination_root("/public/javascripts/mootools-ujs.js")) end create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here") -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/scripts/prototype.rb b/padrino-gen/lib/padrino-gen/generators/components/scripts/prototype.rb index a5e40e533..ed65f6b2e 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/scripts/prototype.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/scripts/prototype.rb @@ -9,4 +9,4 @@ def setup_script copy_file('templates/static/ujs/prototype.js', destination_root("/public/javascripts/prototype-ujs.js")) end create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here") -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/scripts/rightjs.rb b/padrino-gen/lib/padrino-gen/generators/components/scripts/rightjs.rb index d8aaebc29..82035a52c 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/scripts/rightjs.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/scripts/rightjs.rb @@ -7,4 +7,4 @@ def setup_script copy_file('templates/static/ujs/right.js', destination_root("/public/javascripts/right-ujs.js")) end create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here") -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass.rb b/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass.rb index 7e98b3ac5..80d12f9a5 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass.rb @@ -36,4 +36,4 @@ def setup_stylesheet inject_into_file destination_root('/app/app.rb'), COMPASS_REGISTER, :after => "register Padrino::Helpers\n" directory "components/stylesheets/compass/", destination_root('/app/stylesheets') -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/application.scss b/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/application.scss index d950f8af6..cf60405df 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/application.scss +++ b/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/application.scss @@ -40,4 +40,4 @@ form.bp { #sidebar { @include column(3); } #content { - @include column(21, true); } } \ No newline at end of file + @include column(21, true); } } diff --git a/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/partials/_base.scss b/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/partials/_base.scss index ff999b163..ed25d4861 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/partials/_base.scss +++ b/padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/partials/_base.scss @@ -7,4 +7,4 @@ $blueprint-grid-margin: 10px; // Use this to calculate the width based on the total width. // Or you can set !blueprint_grid_width to a fixed value and unset !blueprint_container_size -- it will be calculated for you. -$blueprint-grid-width: ($blueprint-container-size + $blueprint-grid-margin) / $blueprint-grid-columns - $blueprint-grid-margin; \ No newline at end of file +$blueprint-grid-width: ($blueprint-container-size + $blueprint-grid-margin) / $blueprint-grid-columns - $blueprint-grid-margin; diff --git a/padrino-gen/lib/padrino-gen/generators/components/stylesheets/less.rb b/padrino-gen/lib/padrino-gen/generators/components/stylesheets/less.rb index d8973463c..3c58d8e83 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/stylesheets/less.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/stylesheets/less.rb @@ -19,4 +19,4 @@ def setup_stylesheet require_dependencies 'less', 'rack-less' initializer :less, LESS_INIT empty_directory destination_root('/app/stylesheets') -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/components/stylesheets/sass.rb b/padrino-gen/lib/padrino-gen/generators/components/stylesheets/sass.rb index 8d66b1853..55975d144 100644 --- a/padrino-gen/lib/padrino-gen/generators/components/stylesheets/sass.rb +++ b/padrino-gen/lib/padrino-gen/generators/components/stylesheets/sass.rb @@ -12,4 +12,4 @@ def setup_stylesheet require_dependencies 'sass' initializer :sass, SASS_INIT.chomp empty_directory destination_root('/app/stylesheets') -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/controller.rb b/padrino-gen/lib/padrino-gen/generators/controller.rb index 7d319d007..8fc21a72e 100644 --- a/padrino-gen/lib/padrino-gen/generators/controller.rb +++ b/padrino-gen/lib/padrino-gen/generators/controller.rb @@ -46,4 +46,4 @@ def create_controller end end # Controller end # Generators -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-gen/lib/padrino-gen/generators/mailer.rb b/padrino-gen/lib/padrino-gen/generators/mailer.rb index 4a818212a..87a5ab55c 100644 --- a/padrino-gen/lib/padrino-gen/generators/mailer.rb +++ b/padrino-gen/lib/padrino-gen/generators/mailer.rb @@ -44,4 +44,4 @@ def create_mailer end end # Mailer end # Generators -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-gen/lib/padrino-gen/generators/migration.rb b/padrino-gen/lib/padrino-gen/generators/migration.rb index c1a023d2f..c0ec744dc 100644 --- a/padrino-gen/lib/padrino-gen/generators/migration.rb +++ b/padrino-gen/lib/padrino-gen/generators/migration.rb @@ -41,4 +41,4 @@ def create_migration end end # Migration end # Generators -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-gen/lib/padrino-gen/generators/plugin.rb b/padrino-gen/lib/padrino-gen/generators/plugin.rb index eea3b03ae..77f61cf46 100644 --- a/padrino-gen/lib/padrino-gen/generators/plugin.rb +++ b/padrino-gen/lib/padrino-gen/generators/plugin.rb @@ -54,4 +54,4 @@ def setup_plugin end end # Plugins end # Generators -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-gen/lib/padrino-gen/generators/project/config/boot.rb b/padrino-gen/lib/padrino-gen/generators/project/config/boot.rb index 53c666d14..56e371e57 100644 --- a/padrino-gen/lib/padrino-gen/generators/project/config/boot.rb +++ b/padrino-gen/lib/padrino-gen/generators/project/config/boot.rb @@ -26,4 +26,4 @@ Padrino.after_load do end -Padrino.load! \ No newline at end of file +Padrino.load! diff --git a/padrino-gen/lib/padrino-gen/generators/templates/controller.rb.tt b/padrino-gen/lib/padrino-gen/generators/templates/controller.rb.tt index ab46639a1..c93e5cce6 100644 --- a/padrino-gen/lib/padrino-gen/generators/templates/controller.rb.tt +++ b/padrino-gen/lib/padrino-gen/generators/templates/controller.rb.tt @@ -19,4 +19,4 @@ # end <%= @actions %> -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/templates/helper.rb.tt b/padrino-gen/lib/padrino-gen/generators/templates/helper.rb.tt index a64ce7ac4..de9cd2ad8 100644 --- a/padrino-gen/lib/padrino-gen/generators/templates/helper.rb.tt +++ b/padrino-gen/lib/padrino-gen/generators/templates/helper.rb.tt @@ -4,4 +4,4 @@ # def simple_helper_method # ... # end -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/templates/initializer.rb.tt b/padrino-gen/lib/padrino-gen/generators/templates/initializer.rb.tt index 1c21f0c41..f0942ede3 100644 --- a/padrino-gen/lib/padrino-gen/generators/templates/initializer.rb.tt +++ b/padrino-gen/lib/padrino-gen/generators/templates/initializer.rb.tt @@ -2,4 +2,4 @@ module <%= "#{@_init_name.to_s.camelize}Initializer" %> def self.registered(app) <%= @_init_data %> end -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/generators/templates/mailer.rb.tt b/padrino-gen/lib/padrino-gen/generators/templates/mailer.rb.tt index c52436f98..1e6fa49c5 100644 --- a/padrino-gen/lib/padrino-gen/generators/templates/mailer.rb.tt +++ b/padrino-gen/lib/padrino-gen/generators/templates/mailer.rb.tt @@ -45,4 +45,4 @@ <%- end -%> <%- end -%> -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/padrino-tasks/seed.rb b/padrino-gen/lib/padrino-gen/padrino-tasks/seed.rb index 7ce84262e..8184445ca 100644 --- a/padrino-gen/lib/padrino-gen/padrino-tasks/seed.rb +++ b/padrino-gen/lib/padrino-gen/padrino-tasks/seed.rb @@ -2,4 +2,4 @@ task :seed => :environment do seed_file = Padrino.root('db', 'seeds.rb') load(seed_file) if File.exist?(seed_file) -end \ No newline at end of file +end diff --git a/padrino-gen/lib/padrino-gen/padrino-tasks/sequel.rb b/padrino-gen/lib/padrino-gen/padrino-tasks/sequel.rb index b1030a4ed..20d87b51b 100644 --- a/padrino-gen/lib/padrino-gen/padrino-tasks/sequel.rb +++ b/padrino-gen/lib/padrino-gen/padrino-tasks/sequel.rb @@ -34,4 +34,4 @@ end end end -end \ No newline at end of file +end diff --git a/padrino-gen/test/fixtures/admin_template.rb b/padrino-gen/test/fixtures/admin_template.rb index 495b37066..18b12c152 100644 --- a/padrino-gen/test/fixtures/admin_template.rb +++ b/padrino-gen/test/fixtures/admin_template.rb @@ -4,4 +4,4 @@ rake "ar:create" generate :admin rake "ar:migrate" -generate :admin_page, "post" \ No newline at end of file +generate :admin_page, "post" diff --git a/padrino-gen/test/fixtures/git_template.rb b/padrino-gen/test/fixtures/git_template.rb index 5feb9a562..f4194f1db 100644 --- a/padrino-gen/test/fixtures/git_template.rb +++ b/padrino-gen/test/fixtures/git_template.rb @@ -1,4 +1,4 @@ project :test => :rspec, :orm => :activerecord git :init git :add, "." -git :commit, "hello" \ No newline at end of file +git :commit, "hello" diff --git a/padrino-gen/test/fixtures/plugin_template.rb b/padrino-gen/test/fixtures/plugin_template.rb index 3ea1b4052..831ff5a10 100644 --- a/padrino-gen/test/fixtures/plugin_template.rb +++ b/padrino-gen/test/fixtures/plugin_template.rb @@ -10,4 +10,4 @@ HOPTOAD require_dependencies 'rack_hoptoad', :require => 'rack/hoptoad' initializer :hoptoad,HOPTOAD -inject_into_file destination_root('/app/app.rb')," enable :raise_errors\n", :after => "configure do\n" \ No newline at end of file +inject_into_file destination_root('/app/app.rb')," enable :raise_errors\n", :after => "configure do\n" diff --git a/padrino-gen/test/fixtures/rake_template.rb b/padrino-gen/test/fixtures/rake_template.rb index af546ba4f..4f1b2b108 100644 --- a/padrino-gen/test/fixtures/rake_template.rb +++ b/padrino-gen/test/fixtures/rake_template.rb @@ -6,4 +6,4 @@ # } # end # RAKE -rake "custom" \ No newline at end of file +rake "custom" diff --git a/padrino-gen/test/helper.rb b/padrino-gen/test/helper.rb index e072757c8..d618b1e18 100644 --- a/padrino-gen/test/helper.rb +++ b/padrino-gen/test/helper.rb @@ -151,4 +151,4 @@ def logger # # @private @logger = nil end end -end \ No newline at end of file +end diff --git a/padrino-gen/test/test_cli.rb b/padrino-gen/test/test_cli.rb index 0f8ddfa03..5f42b3ae7 100644 --- a/padrino-gen/test/test_cli.rb +++ b/padrino-gen/test/test_cli.rb @@ -23,4 +23,4 @@ def teardown assert_nothing_raised { silence_logger { generate(:cli, "--root=#{@apptmp}/sample_project") } } end end -end \ No newline at end of file +end diff --git a/padrino-gen/test/test_generator.rb b/padrino-gen/test/test_generator.rb index e3b6f274b..3dabef8f0 100644 --- a/padrino-gen/test/test_generator.rb +++ b/padrino-gen/test/test_generator.rb @@ -11,4 +11,4 @@ class TestGenerator < Test::Unit::TestCase end end end -end \ No newline at end of file +end diff --git a/padrino-gen/test/test_mailer_generator.rb b/padrino-gen/test/test_mailer_generator.rb index b4acc47de..6e7acffcf 100644 --- a/padrino-gen/test/test_mailer_generator.rb +++ b/padrino-gen/test/test_mailer_generator.rb @@ -66,4 +66,4 @@ def teardown assert_no_file_exists("#{@apptmp}/sample_project/app/mailers/demo.rb") end end -end \ No newline at end of file +end diff --git a/padrino-gen/test/test_migration_generator.rb b/padrino-gen/test/test_migration_generator.rb index a59d2390d..ca31d63f9 100644 --- a/padrino-gen/test/test_migration_generator.rb +++ b/padrino-gen/test/test_migration_generator.rb @@ -191,4 +191,4 @@ def teardown assert_no_file_exists("#{@apptmp}/sample_project/db/migrate/002_remove_email_from_users.rb") end end -end \ No newline at end of file +end diff --git a/padrino-helpers/README.rdoc b/padrino-helpers/README.rdoc index ea796a24e..3e3f2fee4 100644 --- a/padrino-helpers/README.rdoc +++ b/padrino-helpers/README.rdoc @@ -236,4 +236,4 @@ For more information on using the render and partial helpers, check out the guid == Copyright -Copyright (c) 2011 Padrino. See LICENSE for details. \ No newline at end of file +Copyright (c) 2011 Padrino. See LICENSE for details. diff --git a/padrino-helpers/lib/padrino-helpers.rb b/padrino-helpers/lib/padrino-helpers.rb index 62fd24914..f1ff6c7c3 100644 --- a/padrino-helpers/lib/padrino-helpers.rb +++ b/padrino-helpers/lib/padrino-helpers.rb @@ -48,4 +48,4 @@ def registered(app) alias :included :registered end end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/asset_tag_helpers.rb b/padrino-helpers/lib/padrino-helpers/asset_tag_helpers.rb index 347d881dc..288d84774 100644 --- a/padrino-helpers/lib/padrino-helpers/asset_tag_helpers.rb +++ b/padrino-helpers/lib/padrino-helpers/asset_tag_helpers.rb @@ -285,4 +285,4 @@ def parse_js_attributes(options) end end # AssetTagHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/form_builder/abstract_form_builder.rb b/padrino-helpers/lib/padrino-helpers/form_builder/abstract_form_builder.rb index a709b793a..7200b088c 100644 --- a/padrino-helpers/lib/padrino-helpers/form_builder/abstract_form_builder.rb +++ b/padrino-helpers/lib/padrino-helpers/form_builder/abstract_form_builder.rb @@ -1,7 +1,7 @@ module Padrino module Helpers - module FormBuilder ## @private - class AbstractFormBuilder ## @private + module FormBuilder # @private + class AbstractFormBuilder # @private attr_accessor :template, :object def initialize(template, object, options={}) @@ -217,4 +217,4 @@ def root_form? end # AbstractFormBuilder end # FormBuilder end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/form_builder/standard_form_builder.rb b/padrino-helpers/lib/padrino-helpers/form_builder/standard_form_builder.rb index 595132c87..cbe11cc1e 100644 --- a/padrino-helpers/lib/padrino-helpers/form_builder/standard_form_builder.rb +++ b/padrino-helpers/lib/padrino-helpers/form_builder/standard_form_builder.rb @@ -2,8 +2,8 @@ module Padrino module Helpers - module FormBuilder ## @private - class StandardFormBuilder < AbstractFormBuilder ## @private + module FormBuilder # @private + class StandardFormBuilder < AbstractFormBuilder # @private ## # StandardFormBuilder @@ -40,4 +40,4 @@ def image_submit_block(source, options={}) end # StandardFormBuilder end # FormBuilder end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/form_helpers.rb b/padrino-helpers/lib/padrino-helpers/form_helpers.rb index 1fc1b64af..7835f3ac4 100644 --- a/padrino-helpers/lib/padrino-helpers/form_helpers.rb +++ b/padrino-helpers/lib/padrino-helpers/form_helpers.rb @@ -443,4 +443,4 @@ def option_is_selected?(value, caption, selected_values) end end # FormHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/format_helpers.rb b/padrino-helpers/lib/padrino-helpers/format_helpers.rb index 17b9c0e88..d09bff986 100644 --- a/padrino-helpers/lib/padrino-helpers/format_helpers.rb +++ b/padrino-helpers/lib/padrino-helpers/format_helpers.rb @@ -257,4 +257,4 @@ def js_escape_html(html_content) end end # FormatHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/locale/da.yml b/padrino-helpers/lib/padrino-helpers/locale/da.yml index 34485f50d..c4664bf83 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/da.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/da.yml @@ -88,4 +88,4 @@ da: header: one: "En fejl forhindrede %{model} i at blive gemt" other: "%{count} fejl forhindrede denne %{model} i at blive gemt" - body: "Der var problemer med følgende felter:" \ No newline at end of file + body: "Der var problemer med følgende felter:" diff --git a/padrino-helpers/lib/padrino-helpers/locale/en.yml b/padrino-helpers/lib/padrino-helpers/locale/en.yml index 39799d3b9..1d747701e 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/en.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/en.yml @@ -100,4 +100,4 @@ en: header: one: "1 error prohibited this %{model} from being saved" other: "%{count} errors prohibited this %{model} from being saved" - body: "There were problems with the following fields:" \ No newline at end of file + body: "There were problems with the following fields:" diff --git a/padrino-helpers/lib/padrino-helpers/locale/es.yml b/padrino-helpers/lib/padrino-helpers/locale/es.yml index 108b4584b..946680c5a 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/es.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/es.yml @@ -100,4 +100,4 @@ es: header: one: "1 error impidió que %{model} se guardara" other: "%{count} erroress impidieron que %{model} se guardara" - body: "Hay problemas con los siguientes campos:" \ No newline at end of file + body: "Hay problemas con los siguientes campos:" diff --git a/padrino-helpers/lib/padrino-helpers/locale/hu.yml b/padrino-helpers/lib/padrino-helpers/locale/hu.yml index 72c123cae..704510d73 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/hu.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/hu.yml @@ -100,4 +100,4 @@ hu: header: one: "1 hiba akadályozza a(z) %{model} mentését" other: "%{count} hiba akadályozza a(z) %{model} mentését" - body: "A következő mezőkkel van baj:" \ No newline at end of file + body: "A következő mezőkkel van baj:" diff --git a/padrino-helpers/lib/padrino-helpers/locale/it.yml b/padrino-helpers/lib/padrino-helpers/locale/it.yml index daf583591..7962fea85 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/it.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/it.yml @@ -86,4 +86,4 @@ it: header: one: "Non posso salvare questo %{model}: 1 errore" other: "Non posso salvare questo %{model}: %{count} errori." - body: "Per favore ricontrolla i seguenti campi:" \ No newline at end of file + body: "Per favore ricontrolla i seguenti campi:" diff --git a/padrino-helpers/lib/padrino-helpers/locale/no.yml b/padrino-helpers/lib/padrino-helpers/locale/no.yml index ac083b32d..4a475b611 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/no.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/no.yml @@ -88,4 +88,4 @@ header: one: "En feil forhindrer %{model} å bli lagret" other: "%{count} feil forhindrer denne %{model} i å bli lagret" - body: "Det er problemer med følgende felter:" \ No newline at end of file + body: "Det er problemer med følgende felter:" diff --git a/padrino-helpers/lib/padrino-helpers/locale/pl.yml b/padrino-helpers/lib/padrino-helpers/locale/pl.yml index a151f222b..b690a5b94 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/pl.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/pl.yml @@ -92,4 +92,4 @@ pl: header: one: "%{model} nie został zachowany z powodu jednego błędu" other: "%{model} nie został zachowany z powodu %{count} błędów" - body: "Błędy dotyczą następujących pól:" \ No newline at end of file + body: "Błędy dotyczą następujących pól:" diff --git a/padrino-helpers/lib/padrino-helpers/locale/pt_br.yml b/padrino-helpers/lib/padrino-helpers/locale/pt_br.yml index 986c44450..35c4b1bc2 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/pt_br.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/pt_br.yml @@ -100,4 +100,4 @@ pt_br: header: one: "Não posso salvar %{model}: 1 erro" other: "Não posso salvar %{model}: %{count} erros." - body: "Por favor, verifique novamente os seguintes campos:" \ No newline at end of file + body: "Por favor, verifique novamente os seguintes campos:" diff --git a/padrino-helpers/lib/padrino-helpers/locale/ru.yml b/padrino-helpers/lib/padrino-helpers/locale/ru.yml index d77829b0d..838de2ba8 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/ru.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/ru.yml @@ -100,4 +100,4 @@ ru: header: one: "Данные «%{model}» не могут быть сохранены из-за 1 ошибки" other: "Данные «%{model}» не могут быть сохранены из-за %{count} ошибок" - body: "Допущены ошибки в следующих полях:" \ No newline at end of file + body: "Допущены ошибки в следующих полях:" diff --git a/padrino-helpers/lib/padrino-helpers/locale/tr.yml b/padrino-helpers/lib/padrino-helpers/locale/tr.yml index 64c63d014..22200cd7b 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/tr.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/tr.yml @@ -100,4 +100,4 @@ tr: header: one: "1 hata oluştu; %{model} kaydedilemedi" other: "%{count} hata oluştu; %{model} kaydedilemedi" - body: "Hata oluşan alanlar:" \ No newline at end of file + body: "Hata oluşan alanlar:" diff --git a/padrino-helpers/lib/padrino-helpers/locale/uk.yml b/padrino-helpers/lib/padrino-helpers/locale/uk.yml index c6a3d152e..e24615185 100644 --- a/padrino-helpers/lib/padrino-helpers/locale/uk.yml +++ b/padrino-helpers/lib/padrino-helpers/locale/uk.yml @@ -100,4 +100,4 @@ uk: header: one: "Дані «%{model}» не можуть бути збережені через 1 помилки" other: "Дані «%{model}» не можуть бути збережені через %{count} помилок" - body: "Допущені помилки в наступних полях:" \ No newline at end of file + body: "Допущені помилки в наступних полях:" diff --git a/padrino-helpers/lib/padrino-helpers/number_helpers.rb b/padrino-helpers/lib/padrino-helpers/number_helpers.rb index 65547b7d5..d30cbc7a0 100644 --- a/padrino-helpers/lib/padrino-helpers/number_helpers.rb +++ b/padrino-helpers/lib/padrino-helpers/number_helpers.rb @@ -270,4 +270,4 @@ def number_to_human_size(number, *args) end end # NumberHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/output_helpers.rb b/padrino-helpers/lib/padrino-helpers/output_helpers.rb index 1e43d304f..56733ff51 100644 --- a/padrino-helpers/lib/padrino-helpers/output_helpers.rb +++ b/padrino-helpers/lib/padrino-helpers/output_helpers.rb @@ -2,7 +2,7 @@ module Padrino module Helpers module OutputHelpers - def self.included(base) ## @private + def self.included(base) # @private base.send(:include, SinatraCurrentEngine) unless base.method_defined?(:current_engine) end @@ -12,7 +12,7 @@ def self.included(base) ## @private module SinatraCurrentEngine attr_reader :current_engine - def render(engine, *) ## @private + def render(engine, *) # @private @current_engine, engine_was = engine, @current_engine output = super @current_engine = engine_was @@ -125,4 +125,4 @@ def find_proper_handler end end # OutputHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/output_helpers/abstract_handler.rb b/padrino-helpers/lib/padrino-helpers/output_helpers/abstract_handler.rb index 735d08be6..1220d7b65 100644 --- a/padrino-helpers/lib/padrino-helpers/output_helpers/abstract_handler.rb +++ b/padrino-helpers/lib/padrino-helpers/output_helpers/abstract_handler.rb @@ -100,4 +100,4 @@ def concat_to_template(text="") end # AbstractHandler end # OutputHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/output_helpers/erb_handler.rb b/padrino-helpers/lib/padrino-helpers/output_helpers/erb_handler.rb index bd42c73ac..d527aef99 100644 --- a/padrino-helpers/lib/padrino-helpers/output_helpers/erb_handler.rb +++ b/padrino-helpers/lib/padrino-helpers/output_helpers/erb_handler.rb @@ -76,4 +76,4 @@ def output_buffer=(val) OutputHelpers.register(ErbHandler) end # OutputHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/output_helpers/haml_handler.rb b/padrino-helpers/lib/padrino-helpers/output_helpers/haml_handler.rb index 4240a11f4..0dd72994d 100644 --- a/padrino-helpers/lib/padrino-helpers/output_helpers/haml_handler.rb +++ b/padrino-helpers/lib/padrino-helpers/output_helpers/haml_handler.rb @@ -61,4 +61,4 @@ def engines OutputHelpers.register(HamlHandler) end # OutputHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/output_helpers/slim_handler.rb b/padrino-helpers/lib/padrino-helpers/output_helpers/slim_handler.rb index 924b539b7..31283851e 100644 --- a/padrino-helpers/lib/padrino-helpers/output_helpers/slim_handler.rb +++ b/padrino-helpers/lib/padrino-helpers/output_helpers/slim_handler.rb @@ -79,4 +79,4 @@ def output_buffer=(val) OutputHelpers.register(SlimHandler) end # OutputHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/render_helpers.rb b/padrino-helpers/lib/padrino-helpers/render_helpers.rb index a91aaf625..b6f29a625 100644 --- a/padrino-helpers/lib/padrino-helpers/render_helpers.rb +++ b/padrino-helpers/lib/padrino-helpers/render_helpers.rb @@ -37,4 +37,4 @@ def partial(template, options={}) alias :render_partial :partial end # RenderHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/tag_helpers.rb b/padrino-helpers/lib/padrino-helpers/tag_helpers.rb index ca2d97d1f..caf05802d 100644 --- a/padrino-helpers/lib/padrino-helpers/tag_helpers.rb +++ b/padrino-helpers/lib/padrino-helpers/tag_helpers.rb @@ -56,4 +56,4 @@ def identity_tag_attributes end end # TagHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/lib/padrino-helpers/translation_helpers.rb b/padrino-helpers/lib/padrino-helpers/translation_helpers.rb index 265d3aa46..06029cb10 100644 --- a/padrino-helpers/lib/padrino-helpers/translation_helpers.rb +++ b/padrino-helpers/lib/padrino-helpers/translation_helpers.rb @@ -18,4 +18,4 @@ def localize(*args) alias :l :localize end # TranslationHelpers end # Helpers -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-helpers/padrino-helpers.gemspec b/padrino-helpers/padrino-helpers.gemspec index c37285f0c..efca5af2d 100755 --- a/padrino-helpers/padrino-helpers.gemspec +++ b/padrino-helpers/padrino-helpers.gemspec @@ -24,4 +24,4 @@ Gem::Specification.new do |s| s.add_dependency("padrino-core", Padrino.version) s.add_dependency("i18n", "~> 0.5.0") -end \ No newline at end of file +end diff --git a/padrino-helpers/test/fixtures/markup_app/app.rb b/padrino-helpers/test/fixtures/markup_app/app.rb index 1c43b1e70..6c44f893a 100644 --- a/padrino-helpers/test/fixtures/markup_app/app.rb +++ b/padrino-helpers/test/fixtures/markup_app/app.rb @@ -70,4 +70,4 @@ def can_delete; false; end module Outer class UserAccount; end -end \ No newline at end of file +end diff --git a/padrino-helpers/test/fixtures/markup_app/views/capture_concat.erb b/padrino-helpers/test/fixtures/markup_app/views/capture_concat.erb index d5471a4d9..395536ad7 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/capture_concat.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/capture_concat.erb @@ -11,4 +11,4 @@ This is erb <% end %> -<% ruby_not_template_block %> \ No newline at end of file +<% ruby_not_template_block %> diff --git a/padrino-helpers/test/fixtures/markup_app/views/content_for.erb b/padrino-helpers/test/fixtures/markup_app/views/content_for.erb index 789b90b94..dea7a6365 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/content_for.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/content_for.erb @@ -8,4 +8,4 @@

    This is content yielded with name <%= fname + " " + lname %>

    <% end %> -
    <%= yield_content :demo2, "Johnny", "Smith" %>
    \ No newline at end of file +
    <%= yield_content :demo2, "Johnny", "Smith" %>
    diff --git a/padrino-helpers/test/fixtures/markup_app/views/content_for.haml b/padrino-helpers/test/fixtures/markup_app/views/content_for.haml index 00656e87e..32c4c58dd 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/content_for.haml +++ b/padrino-helpers/test/fixtures/markup_app/views/content_for.haml @@ -6,4 +6,4 @@ - content_for :demo2 do |fname, lname| %h1 This is content yielded with name #{fname + " " + lname} -.demo2= yield_content :demo2, "Johnny", "Smith" \ No newline at end of file +.demo2= yield_content :demo2, "Johnny", "Smith" diff --git a/padrino-helpers/test/fixtures/markup_app/views/content_for.slim b/padrino-helpers/test/fixtures/markup_app/views/content_for.slim index 1eee26b28..2c386b11d 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/content_for.slim +++ b/padrino-helpers/test/fixtures/markup_app/views/content_for.slim @@ -6,4 +6,4 @@ - content_for :demo2 do |fname, lname| h1 This is content yielded with name #{fname + " " + lname} -.demo2== yield_content :demo2, "Johnny", "Smith" \ No newline at end of file +.demo2== yield_content :demo2, "Johnny", "Smith" diff --git a/padrino-helpers/test/fixtures/markup_app/views/content_tag.erb b/padrino-helpers/test/fixtures/markup_app/views/content_tag.erb index a73f6d3bf..2771f33ad 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/content_tag.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/content_tag.erb @@ -8,4 +8,4 @@ <% content_tag(:p) do %> Test 4 -<% end %> \ No newline at end of file +<% end %> diff --git a/padrino-helpers/test/fixtures/markup_app/views/current_engine.erb b/padrino-helpers/test/fixtures/markup_app/views/current_engine.erb index a992c8bee..94f9d7f0d 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/current_engine.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/current_engine.erb @@ -2,4 +2,4 @@

    <%= haml :'partials/_haml' %>

    <%= erb :'partials/_erb' %>

    <%= slim :'partials/_slim' %>

    -

    <%= current_engine %>

    \ No newline at end of file +

    <%= current_engine %>

    diff --git a/padrino-helpers/test/fixtures/markup_app/views/current_engine.haml b/padrino-helpers/test/fixtures/markup_app/views/current_engine.haml index 78bfc262f..3522395ce 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/current_engine.haml +++ b/padrino-helpers/test/fixtures/markup_app/views/current_engine.haml @@ -2,4 +2,4 @@ %p.haml= haml :'partials/_haml' %p.erb= erb :'partials/_erb' %p.slim= slim :'partials/_slim' -%p.end= current_engine \ No newline at end of file +%p.end= current_engine diff --git a/padrino-helpers/test/fixtures/markup_app/views/current_engine.slim b/padrino-helpers/test/fixtures/markup_app/views/current_engine.slim index d7c6b4d2d..6c7d0926d 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/current_engine.slim +++ b/padrino-helpers/test/fixtures/markup_app/views/current_engine.slim @@ -2,4 +2,4 @@ p.start= current_engine p.haml= haml :'partials/_haml' p.erb= erb :'partials/_erb' p.slim= slim :'partials/_slim' -p.end= current_engine \ No newline at end of file +p.end= current_engine diff --git a/padrino-helpers/test/fixtures/markup_app/views/fields_for.erb b/padrino-helpers/test/fixtures/markup_app/views/fields_for.erb index 4ddc70cb9..cb43d2e08 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/fields_for.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/fields_for.erb @@ -17,4 +17,4 @@ <%= child_form.label '_destroy', :caption => 'Remove' %> <% end %> <% end %> -<% end %> \ No newline at end of file +<% end %> diff --git a/padrino-helpers/test/fixtures/markup_app/views/fields_for.haml b/padrino-helpers/test/fixtures/markup_app/views/fields_for.haml index 115495c4d..6a67d79b7 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/fields_for.haml +++ b/padrino-helpers/test/fixtures/markup_app/views/fields_for.haml @@ -12,4 +12,4 @@ = child_form.text_field :name - unless child_form.object.new_record? = child_form.check_box '_destroy' - = child_form.label '_destroy', :caption => 'Remove' \ No newline at end of file + = child_form.label '_destroy', :caption => 'Remove' diff --git a/padrino-helpers/test/fixtures/markup_app/views/fields_for.slim b/padrino-helpers/test/fixtures/markup_app/views/fields_for.slim index 75007ba63..517ef2106 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/fields_for.slim +++ b/padrino-helpers/test/fixtures/markup_app/views/fields_for.slim @@ -12,4 +12,4 @@ == child_form.text_field :name - unless child_form.object.new_record? == child_form.check_box '_destroy' - == child_form.label '_destroy', :caption => 'Remove' \ No newline at end of file + == child_form.label '_destroy', :caption => 'Remove' diff --git a/padrino-helpers/test/fixtures/markup_app/views/form_for.erb b/padrino-helpers/test/fixtures/markup_app/views/form_for.erb index 184e623ea..f36a6f0b7 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/form_for.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/form_for.erb @@ -53,4 +53,4 @@ <% form_for :markup_user, '/third_demo', :id => 'demo3', :method => 'get' do |f| %> <%= f.text_field_block :username %> -<% end %> \ No newline at end of file +<% end %> diff --git a/padrino-helpers/test/fixtures/markup_app/views/form_for.haml b/padrino-helpers/test/fixtures/markup_app/views/form_for.haml index 3a798bee8..669b09a65 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/form_for.haml +++ b/padrino-helpers/test/fixtures/markup_app/views/form_for.haml @@ -44,4 +44,4 @@ = f.image_submit_block "buttons/ok.png", { :class => 'image' } - form_for :markup_user, '/third_demo', :id => 'demo3', :method => 'get' do |f| - = f.text_field_block :username \ No newline at end of file + = f.text_field_block :username diff --git a/padrino-helpers/test/fixtures/markup_app/views/form_for.slim b/padrino-helpers/test/fixtures/markup_app/views/form_for.slim index 31a711bd3..7a7c3590e 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/form_for.slim +++ b/padrino-helpers/test/fixtures/markup_app/views/form_for.slim @@ -44,4 +44,4 @@ == f.image_submit_block "buttons/ok.png", { :class => 'image' } == form_for :markup_user, '/third_demo', :id => 'demo3', :method => 'get' do |f| - == f.text_field_block :username \ No newline at end of file + == f.text_field_block :username diff --git a/padrino-helpers/test/fixtures/markup_app/views/form_tag.erb b/padrino-helpers/test/fixtures/markup_app/views/form_tag.erb index d8956a10c..0872d78e9 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/form_tag.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/form_tag.erb @@ -53,4 +53,4 @@ <%= button_tag "Cancel" %> <%= image_submit_tag "buttons/submit.png" %> <% end %> -<% end %> \ No newline at end of file +<% end %> diff --git a/padrino-helpers/test/fixtures/markup_app/views/form_tag.haml b/padrino-helpers/test/fixtures/markup_app/views/form_tag.haml index b09aeddee..bf3928617 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/form_tag.haml +++ b/padrino-helpers/test/fixtures/markup_app/views/form_tag.haml @@ -42,4 +42,4 @@ - field_set_tag(:class => 'buttons') do = submit_tag "Login" = button_tag "Cancel" - = image_submit_tag "buttons/submit.png" \ No newline at end of file + = image_submit_tag "buttons/submit.png" diff --git a/padrino-helpers/test/fixtures/markup_app/views/form_tag.slim b/padrino-helpers/test/fixtures/markup_app/views/form_tag.slim index 7966d5b43..e71846c77 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/form_tag.slim +++ b/padrino-helpers/test/fixtures/markup_app/views/form_tag.slim @@ -42,4 +42,4 @@ == field_set_tag(:class => 'buttons') do == submit_tag "Login" == button_tag "Cancel" - == image_submit_tag "buttons/submit.png" \ No newline at end of file + == image_submit_tag "buttons/submit.png" diff --git a/padrino-helpers/test/fixtures/markup_app/views/link_to.erb b/padrino-helpers/test/fixtures/markup_app/views/link_to.erb index 00479fee4..56631c4f6 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/link_to.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/link_to.erb @@ -2,4 +2,4 @@ <% link_to("/test2", :class => 'test', :id => 'test2') do %> Test 2 With Block -<% end %> \ No newline at end of file +<% end %> diff --git a/padrino-helpers/test/fixtures/markup_app/views/link_to.haml b/padrino-helpers/test/fixtures/markup_app/views/link_to.haml index 02378a953..b53277d4f 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/link_to.haml +++ b/padrino-helpers/test/fixtures/markup_app/views/link_to.haml @@ -1,4 +1,4 @@ = link_to "Test 1 No Block", '/test1', :class => 'test', :id => 'test1' - link_to("/test2", :class => 'test', :id => 'test2') do - %span Test 2 With Block \ No newline at end of file + %span Test 2 With Block diff --git a/padrino-helpers/test/fixtures/markup_app/views/link_to.slim b/padrino-helpers/test/fixtures/markup_app/views/link_to.slim index a09acf848..5e0a837fc 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/link_to.slim +++ b/padrino-helpers/test/fixtures/markup_app/views/link_to.slim @@ -1,4 +1,4 @@ = link_to "Test 1 No Block", '/test1', :class => 'test', :id => 'test1' - link_to("/test2", :class => 'test', :id => 'test2') do - span Test 2 With Block \ No newline at end of file + span Test 2 With Block diff --git a/padrino-helpers/test/fixtures/markup_app/views/mail_to.erb b/padrino-helpers/test/fixtures/markup_app/views/mail_to.erb index 2465ccf0c..a0b54128e 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/mail_to.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/mail_to.erb @@ -1,3 +1,3 @@

    <%= mail_to 'test@demo.com' %>

    -

    <%= mail_to 'test@demo.com', "Click my Email" %>

    \ No newline at end of file +

    <%= mail_to 'test@demo.com', "Click my Email" %>

    diff --git a/padrino-helpers/test/fixtures/markup_app/views/mail_to.haml b/padrino-helpers/test/fixtures/markup_app/views/mail_to.haml index 77ec21234..4cd7b7917 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/mail_to.haml +++ b/padrino-helpers/test/fixtures/markup_app/views/mail_to.haml @@ -1,3 +1,3 @@ %p.simple= mail_to 'test@demo.com' -%p.captioned= mail_to 'test@demo.com', "Click my Email" \ No newline at end of file +%p.captioned= mail_to 'test@demo.com', "Click my Email" diff --git a/padrino-helpers/test/fixtures/markup_app/views/mail_to.slim b/padrino-helpers/test/fixtures/markup_app/views/mail_to.slim index cd9d6e529..e17a1a44a 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/mail_to.slim +++ b/padrino-helpers/test/fixtures/markup_app/views/mail_to.slim @@ -1,3 +1,3 @@ p.simple== mail_to 'test@demo.com' -p.captioned== mail_to 'test@demo.com', "Click my Email" \ No newline at end of file +p.captioned== mail_to 'test@demo.com', "Click my Email" diff --git a/padrino-helpers/test/fixtures/markup_app/views/meta_tag.erb b/padrino-helpers/test/fixtures/markup_app/views/meta_tag.erb index c8703a6e9..a9d086d34 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/meta_tag.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/meta_tag.erb @@ -1,3 +1,3 @@ <%= meta_tag "weblog,news", :name => "keywords" %> -<%= meta_tag "text/html; charset=UTF-8", :"http-equiv" => "Content-Type" %> \ No newline at end of file +<%= meta_tag "text/html; charset=UTF-8", :"http-equiv" => "Content-Type" %> diff --git a/padrino-helpers/test/fixtures/markup_app/views/meta_tag.haml b/padrino-helpers/test/fixtures/markup_app/views/meta_tag.haml index 745acb12e..9ed5ae35e 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/meta_tag.haml +++ b/padrino-helpers/test/fixtures/markup_app/views/meta_tag.haml @@ -1,3 +1,3 @@ = meta_tag "weblog,news", :name => "keywords" -= meta_tag "text/html; charset=UTF-8", :"http-equiv" => "Content-Type" \ No newline at end of file += meta_tag "text/html; charset=UTF-8", :"http-equiv" => "Content-Type" diff --git a/padrino-helpers/test/fixtures/markup_app/views/meta_tag.slim b/padrino-helpers/test/fixtures/markup_app/views/meta_tag.slim index 840a7aceb..7d809deb4 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/meta_tag.slim +++ b/padrino-helpers/test/fixtures/markup_app/views/meta_tag.slim @@ -1,3 +1,3 @@ == meta_tag "weblog,news", :name => "keywords" -== meta_tag "text/html; charset=UTF-8", :"http-equiv" => "Content-Type" \ No newline at end of file +== meta_tag "text/html; charset=UTF-8", :"http-equiv" => "Content-Type" diff --git a/padrino-helpers/test/fixtures/markup_app/views/partials/_erb.erb b/padrino-helpers/test/fixtures/markup_app/views/partials/_erb.erb index e14d52737..365e638f8 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/partials/_erb.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/partials/_erb.erb @@ -1 +1 @@ -<%= current_engine %> \ No newline at end of file +<%= current_engine %> diff --git a/padrino-helpers/test/fixtures/markup_app/views/partials/_haml.haml b/padrino-helpers/test/fixtures/markup_app/views/partials/_haml.haml index ec99a2e92..790066c9c 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/partials/_haml.haml +++ b/padrino-helpers/test/fixtures/markup_app/views/partials/_haml.haml @@ -1 +1 @@ -=current_engine \ No newline at end of file +=current_engine diff --git a/padrino-helpers/test/fixtures/markup_app/views/partials/_slim.slim b/padrino-helpers/test/fixtures/markup_app/views/partials/_slim.slim index ec99a2e92..790066c9c 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/partials/_slim.slim +++ b/padrino-helpers/test/fixtures/markup_app/views/partials/_slim.slim @@ -1 +1 @@ -=current_engine \ No newline at end of file +=current_engine diff --git a/padrino-helpers/test/fixtures/markup_app/views/simple_partial.erb b/padrino-helpers/test/fixtures/markup_app/views/simple_partial.erb index c900c0eb1..1bfd39aeb 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/simple_partial.erb +++ b/padrino-helpers/test/fixtures/markup_app/views/simple_partial.erb @@ -1 +1 @@ -

    <%= partial 'partials/erb', :engine => "erb" %>

    \ No newline at end of file +

    <%= partial 'partials/erb', :engine => "erb" %>

    diff --git a/padrino-helpers/test/fixtures/markup_app/views/simple_partial.haml b/padrino-helpers/test/fixtures/markup_app/views/simple_partial.haml index 397d24b3d..bc120c588 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/simple_partial.haml +++ b/padrino-helpers/test/fixtures/markup_app/views/simple_partial.haml @@ -1 +1 @@ -%p.haml= partial 'partials/haml', :engine => "haml" \ No newline at end of file +%p.haml= partial 'partials/haml', :engine => "haml" diff --git a/padrino-helpers/test/fixtures/markup_app/views/simple_partial.slim b/padrino-helpers/test/fixtures/markup_app/views/simple_partial.slim index ca16c418e..698d9a0ef 100644 --- a/padrino-helpers/test/fixtures/markup_app/views/simple_partial.slim +++ b/padrino-helpers/test/fixtures/markup_app/views/simple_partial.slim @@ -1 +1 @@ -p.slim= partial 'partials/slim', :engine => "slim" \ No newline at end of file +p.slim= partial 'partials/slim', :engine => "slim" diff --git a/padrino-helpers/test/fixtures/render_app/app.rb b/padrino-helpers/test/fixtures/render_app/app.rb index 07c0948fd..23c754625 100644 --- a/padrino-helpers/test/fixtures/render_app/app.rb +++ b/padrino-helpers/test/fixtures/render_app/app.rb @@ -42,4 +42,4 @@ class RenderDemo < Padrino::Application get '/partial/locals' do partial 'template/user', :locals => { :user => RenderUser.new('John'), :extra => "bar" } end -end \ No newline at end of file +end diff --git a/padrino-helpers/test/fixtures/render_app/views/current_engine.haml b/padrino-helpers/test/fixtures/render_app/views/current_engine.haml index ef0b2fd5d..e49423d18 100644 --- a/padrino-helpers/test/fixtures/render_app/views/current_engine.haml +++ b/padrino-helpers/test/fixtures/render_app/views/current_engine.haml @@ -2,4 +2,4 @@ %p.haml= partial 'current_engines/haml' %p.erb= partial 'current_engines/erb' %p.slim= partial 'current_engines/slim' -%p.end= current_engine \ No newline at end of file +%p.end= current_engine diff --git a/padrino-helpers/test/fixtures/render_app/views/current_engines/_erb.erb b/padrino-helpers/test/fixtures/render_app/views/current_engines/_erb.erb index 9ea39c1c3..d10c2b3b8 100644 --- a/padrino-helpers/test/fixtures/render_app/views/current_engines/_erb.erb +++ b/padrino-helpers/test/fixtures/render_app/views/current_engines/_erb.erb @@ -1 +1 @@ -<%= current_engine %> \ No newline at end of file +<%= current_engine %> diff --git a/padrino-helpers/test/fixtures/render_app/views/current_engines/_haml.haml b/padrino-helpers/test/fixtures/render_app/views/current_engines/_haml.haml index f76f97780..4db543bca 100644 --- a/padrino-helpers/test/fixtures/render_app/views/current_engines/_haml.haml +++ b/padrino-helpers/test/fixtures/render_app/views/current_engines/_haml.haml @@ -1 +1 @@ -%span=current_engine \ No newline at end of file +%span=current_engine diff --git a/padrino-helpers/test/fixtures/render_app/views/current_engines/_slim.slim b/padrino-helpers/test/fixtures/render_app/views/current_engines/_slim.slim index cec51751d..480cb50bb 100644 --- a/padrino-helpers/test/fixtures/render_app/views/current_engines/_slim.slim +++ b/padrino-helpers/test/fixtures/render_app/views/current_engines/_slim.slim @@ -1 +1 @@ -span=current_engine \ No newline at end of file +span=current_engine diff --git a/padrino-helpers/test/fixtures/render_app/views/erb/test.erb b/padrino-helpers/test/fixtures/render_app/views/erb/test.erb index 4d97c8b67..6549fd1e8 100644 --- a/padrino-helpers/test/fixtures/render_app/views/erb/test.erb +++ b/padrino-helpers/test/fixtures/render_app/views/erb/test.erb @@ -1 +1 @@ -

    This is a <%= @template %> template!

    \ No newline at end of file +

    This is a <%= @template %> template!

    diff --git a/padrino-helpers/test/fixtures/render_app/views/explicit_engine.haml b/padrino-helpers/test/fixtures/render_app/views/explicit_engine.haml index 044e090e1..337ff1474 100644 --- a/padrino-helpers/test/fixtures/render_app/views/explicit_engine.haml +++ b/padrino-helpers/test/fixtures/render_app/views/explicit_engine.haml @@ -2,4 +2,4 @@ %p.haml= partial "current_engines/haml", :engine => :haml %p.erb= partial 'current_engines/erb', :engine => :erb %p.slim= partial 'current_engines/slim', :engine => :slim -%p.end= current_engine \ No newline at end of file +%p.end= current_engine diff --git a/padrino-helpers/test/fixtures/render_app/views/haml/test.haml b/padrino-helpers/test/fixtures/render_app/views/haml/test.haml index 795d6248a..352e28f61 100644 --- a/padrino-helpers/test/fixtures/render_app/views/haml/test.haml +++ b/padrino-helpers/test/fixtures/render_app/views/haml/test.haml @@ -1 +1 @@ -%h1 This is a #{@template} template! \ No newline at end of file +%h1 This is a #{@template} template! diff --git a/padrino-helpers/test/fixtures/render_app/views/template/_user.haml b/padrino-helpers/test/fixtures/render_app/views/template/_user.haml index f8144ccf2..cba4cc4b1 100644 --- a/padrino-helpers/test/fixtures/render_app/views/template/_user.haml +++ b/padrino-helpers/test/fixtures/render_app/views/template/_user.haml @@ -4,4 +4,4 @@ %p Extra is #{extra} - if defined?(user_counter) - %p My counter is #{user_counter} \ No newline at end of file + %p My counter is #{user_counter} diff --git a/padrino-helpers/test/fixtures/render_app/views/template/haml_template.haml b/padrino-helpers/test/fixtures/render_app/views/template/haml_template.haml index 4ee1417f8..519fc9d20 100644 --- a/padrino-helpers/test/fixtures/render_app/views/template/haml_template.haml +++ b/padrino-helpers/test/fixtures/render_app/views/template/haml_template.haml @@ -1 +1 @@ -%h1 This is a #{@template} template sent from render_template! \ No newline at end of file +%h1 This is a #{@template} template sent from render_template! diff --git a/padrino-helpers/test/fixtures/render_app/views/template/some_template.haml b/padrino-helpers/test/fixtures/render_app/views/template/some_template.haml index fbba69eb0..c98a33e5e 100644 --- a/padrino-helpers/test/fixtures/render_app/views/template/some_template.haml +++ b/padrino-helpers/test/fixtures/render_app/views/template/some_template.haml @@ -1,2 +1,2 @@ -%h1 This is a haml template which was detected! \ No newline at end of file +%h1 This is a haml template which was detected! diff --git a/padrino-helpers/test/helper.rb b/padrino-helpers/test/helper.rb index 2ae2f361c..c62958d75 100644 --- a/padrino-helpers/test/helper.rb +++ b/padrino-helpers/test/helper.rb @@ -75,4 +75,4 @@ def logger # # @private @logger = nil end end -end \ No newline at end of file +end diff --git a/padrino-helpers/test/test_asset_tag_helpers.rb b/padrino-helpers/test/test_asset_tag_helpers.rb index 1ff5ca383..bcd327114 100644 --- a/padrino-helpers/test/test_asset_tag_helpers.rb +++ b/padrino-helpers/test/test_asset_tag_helpers.rb @@ -317,4 +317,4 @@ def flash assert_has_tag('link', :type => 'my-type', :rel => 'my-rel', :href => "/blog/post.rss", :title => 'my-title') { feed_tag :rss, "/blog/post.rss", :type => "my-type", :rel => "my-rel", :title => "my-title" } end end -end \ No newline at end of file +end diff --git a/padrino-helpers/test/test_form_helpers.rb b/padrino-helpers/test/test_form_helpers.rb index 6571e3648..8eec3e380 100644 --- a/padrino-helpers/test/test_form_helpers.rb +++ b/padrino-helpers/test/test_form_helpers.rb @@ -642,4 +642,4 @@ def app assert_have_selector 'form.advanced-form input[type=image]', :count => 1, :src => "/images/buttons/submit.png?#{@stamp}" end end -end \ No newline at end of file +end diff --git a/padrino-helpers/test/test_format_helpers.rb b/padrino-helpers/test/test_format_helpers.rb index e203b16ca..42d2bcb5c 100644 --- a/padrino-helpers/test/test_format_helpers.rb +++ b/padrino-helpers/test/test_format_helpers.rb @@ -224,4 +224,4 @@ def setup assert_equal "", js_escape_html("") end end -end \ No newline at end of file +end diff --git a/padrino-helpers/test/test_number_helpers.rb b/padrino-helpers/test/test_number_helpers.rb index 4c4112856..81404534e 100644 --- a/padrino-helpers/test/test_number_helpers.rb +++ b/padrino-helpers/test/test_number_helpers.rb @@ -133,4 +133,4 @@ def terabytes(number) assert_equal '1.000,1 TB', number_to_human_size(terabytes(1000.1), :delimiter => '.', :separator => ',') end end -end \ No newline at end of file +end diff --git a/padrino-helpers/test/test_output_helpers.rb b/padrino-helpers/test/test_output_helpers.rb index b2efcd82a..722376eb7 100644 --- a/padrino-helpers/test/test_output_helpers.rb +++ b/padrino-helpers/test/test_output_helpers.rb @@ -130,4 +130,4 @@ def app assert_have_selector 'p.slim', :content => "slim" end end -end \ No newline at end of file +end diff --git a/padrino-helpers/test/test_render_helpers.rb b/padrino-helpers/test/test_render_helpers.rb index 53825d269..dae5d8dfa 100644 --- a/padrino-helpers/test/test_render_helpers.rb +++ b/padrino-helpers/test/test_render_helpers.rb @@ -66,4 +66,4 @@ def app assert_have_selector 'p.end', :content => "haml" end end -end \ No newline at end of file +end diff --git a/padrino-helpers/test/test_tag_helpers.rb b/padrino-helpers/test/test_tag_helpers.rb index 582a1486d..7fe94a0c0 100644 --- a/padrino-helpers/test/test_tag_helpers.rb +++ b/padrino-helpers/test/test_tag_helpers.rb @@ -97,4 +97,4 @@ def app assert_has_tag('input[type=checkbox]', :disabled => 'disabled') { actual_html } end end -end \ No newline at end of file +end diff --git a/padrino-mailer/README.rdoc b/padrino-mailer/README.rdoc index ee985fae5..5e1ff6bc7 100644 --- a/padrino-mailer/README.rdoc +++ b/padrino-mailer/README.rdoc @@ -100,4 +100,4 @@ The mailer also supports the attachment of files and various other options. Be s == Copyright -Copyright (c) 2011 Padrino. See LICENSE for details. \ No newline at end of file +Copyright (c) 2011 Padrino. See LICENSE for details. diff --git a/padrino-mailer/lib/padrino-mailer.rb b/padrino-mailer/lib/padrino-mailer.rb index 73a011613..15dda15d2 100644 --- a/padrino-mailer/lib/padrino-mailer.rb +++ b/padrino-mailer/lib/padrino-mailer.rb @@ -31,4 +31,4 @@ def registered(app) alias :included :registered end end # Mailer -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-mailer/lib/padrino-mailer/base.rb b/padrino-mailer/lib/padrino-mailer/base.rb index 707bd0eee..845ba0f4d 100644 --- a/padrino-mailer/lib/padrino-mailer/base.rb +++ b/padrino-mailer/lib/padrino-mailer/base.rb @@ -27,7 +27,7 @@ module Mailer class Base attr_accessor :delivery_settings, :app, :mailer_name, :messages - def initialize(app, name, &block) ## @private + def initialize(app, name, &block) # @private @mailer_name = name @messages = {} @defaults = {} @@ -78,4 +78,4 @@ def defaults(attributes=nil) end end # Base end # Mailer -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-mailer/lib/padrino-mailer/ext.rb b/padrino-mailer/lib/padrino-mailer/ext.rb index c67e6580c..91e6219cb 100644 --- a/padrino-mailer/lib/padrino-mailer/ext.rb +++ b/padrino-mailer/lib/padrino-mailer/ext.rb @@ -1,5 +1,5 @@ -module Mail ## @private - class Message ## @private +module Mail # @private + class Message # @private include Sinatra::Templates include Padrino::Rendering if defined?(Padrino::Rendering) attr_reader :template_cache @@ -236,4 +236,4 @@ def render(engine, data=nil, options={}, locals={}, &block) end end # Message -end # Mail \ No newline at end of file +end # Mail diff --git a/padrino-mailer/lib/padrino-mailer/helpers.rb b/padrino-mailer/lib/padrino-mailer/helpers.rb index ab873951f..6a50e4c9c 100644 --- a/padrino-mailer/lib/padrino-mailer/helpers.rb +++ b/padrino-mailer/lib/padrino-mailer/helpers.rb @@ -1,7 +1,7 @@ module Padrino module Mailer module Helpers - def self.included(base) ## @private + def self.included(base) # @private base.extend(ClassMethods) end @@ -35,7 +35,7 @@ def deliver(mailer_name, message_name, *attributes) end module ClassMethods - def inherited(subclass) ## @private + def inherited(subclass) # @private @_registered_mailers ||= {} super(subclass) end @@ -124,4 +124,4 @@ def delivery_settings end end # Helpers end # Mailer -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-mailer/lib/padrino-mailer/mime.rb b/padrino-mailer/lib/padrino-mailer/mime.rb index 8d61629c6..d7f456e07 100644 --- a/padrino-mailer/lib/padrino-mailer/mime.rb +++ b/padrino-mailer/lib/padrino-mailer/mime.rb @@ -39,4 +39,4 @@ def self.mime_type(mime, fallback=:plain) } end # Mime end # Mailer -end # Padrino \ No newline at end of file +end # Padrino diff --git a/padrino-mailer/padrino-mailer.gemspec b/padrino-mailer/padrino-mailer.gemspec index f58b5b6c2..215fa0689 100755 --- a/padrino-mailer/padrino-mailer.gemspec +++ b/padrino-mailer/padrino-mailer.gemspec @@ -25,4 +25,4 @@ Gem::Specification.new do |s| s.add_dependency("padrino-core", Padrino.version) s.add_dependency("mail", "~> 2.3.0") s.add_dependency("tlsmail") if RUBY_VERSION == "1.8.6" -end \ No newline at end of file +end diff --git a/padrino-mailer/test/fixtures/basic.erb b/padrino-mailer/test/fixtures/basic.erb index f624a02af..d90e31d34 100644 --- a/padrino-mailer/test/fixtures/basic.erb +++ b/padrino-mailer/test/fixtures/basic.erb @@ -1 +1 @@ -This is a body of text from a template \ No newline at end of file +This is a body of text from a template diff --git a/padrino-mailer/test/fixtures/layout.erb b/padrino-mailer/test/fixtures/layout.erb index ba16626d9..4510a04a6 100644 --- a/padrino-mailer/test/fixtures/layout.erb +++ b/padrino-mailer/test/fixtures/layout.erb @@ -1 +1 @@ -Layout Basic <%= yield %> \ No newline at end of file +Layout Basic <%= yield %> diff --git a/padrino-mailer/test/fixtures/padrino_app/app.rb b/padrino-mailer/test/fixtures/padrino_app/app.rb index 4fe25fd56..947628441 100644 --- a/padrino-mailer/test/fixtures/padrino_app/app.rb +++ b/padrino-mailer/test/fixtures/padrino_app/app.rb @@ -76,4 +76,4 @@ class PadrinoApp < Padrino::Application end Padrino.mount("PadrinoApp").to("/") -Padrino.load! \ No newline at end of file +Padrino.load! diff --git a/padrino-mailer/test/fixtures/padrino_app/views/mailers/demo/sample_mail.erb b/padrino-mailer/test/fixtures/padrino_app/views/mailers/demo/sample_mail.erb index c98ec9252..a9bb96e9f 100644 --- a/padrino-mailer/test/fixtures/padrino_app/views/mailers/demo/sample_mail.erb +++ b/padrino-mailer/test/fixtures/padrino_app/views/mailers/demo/sample_mail.erb @@ -1 +1 @@ -This is a sample message \ No newline at end of file +This is a sample message diff --git a/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/anniversary.erb b/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/anniversary.erb index 73efd7935..c4970ab17 100644 --- a/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/anniversary.erb +++ b/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/anniversary.erb @@ -1,2 +1,2 @@

    Yay <%= names %>!

    -

    You have been married <%= years_married %> years

    \ No newline at end of file +

    You have been married <%= years_married %> years

    diff --git a/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/birthday.erb b/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/birthday.erb index dbcd59c5f..8b5b8c9b9 100644 --- a/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/birthday.erb +++ b/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/birthday.erb @@ -1,2 +1,2 @@ Happy Birthday <%= name %>! -You are turning <%= age %> \ No newline at end of file +You are turning <%= age %> diff --git a/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/foo_message.erb b/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/foo_message.erb index 434f23c4f..2b45dcd90 100644 --- a/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/foo_message.erb +++ b/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/foo_message.erb @@ -1 +1 @@ -Hello to <%= name %> \ No newline at end of file +Hello to <%= name %> diff --git a/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/helper_message.erb b/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/helper_message.erb index 42a053413..f2311a00d 100644 --- a/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/helper_message.erb +++ b/padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/helper_message.erb @@ -1 +1 @@ -<%= link_to name, "#" %> \ No newline at end of file +<%= link_to name, "#" %> diff --git a/padrino-mailer/test/fixtures/sinatra_app/views/mailers/demo/sample_mail.erb b/padrino-mailer/test/fixtures/sinatra_app/views/mailers/demo/sample_mail.erb index c98ec9252..a9bb96e9f 100644 --- a/padrino-mailer/test/fixtures/sinatra_app/views/mailers/demo/sample_mail.erb +++ b/padrino-mailer/test/fixtures/sinatra_app/views/mailers/demo/sample_mail.erb @@ -1 +1 @@ -This is a sample message \ No newline at end of file +This is a sample message diff --git a/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/anniversary.erb b/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/anniversary.erb index 73efd7935..c4970ab17 100644 --- a/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/anniversary.erb +++ b/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/anniversary.erb @@ -1,2 +1,2 @@

    Yay <%= names %>!

    -

    You have been married <%= years_married %> years

    \ No newline at end of file +

    You have been married <%= years_married %> years

    diff --git a/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/birthday.erb b/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/birthday.erb index dbcd59c5f..8b5b8c9b9 100644 --- a/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/birthday.erb +++ b/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/birthday.erb @@ -1,2 +1,2 @@ Happy Birthday <%= name %>! -You are turning <%= age %> \ No newline at end of file +You are turning <%= age %> diff --git a/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/foo_message.erb b/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/foo_message.erb index 434f23c4f..2b45dcd90 100644 --- a/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/foo_message.erb +++ b/padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/foo_message.erb @@ -1 +1 @@ -Hello to <%= name %> \ No newline at end of file +Hello to <%= name %> diff --git a/padrino-mailer/test/fixtures/views/mailers/alternate/foo.erb b/padrino-mailer/test/fixtures/views/mailers/alternate/foo.erb index 30a301f55..af18285fd 100644 --- a/padrino-mailer/test/fixtures/views/mailers/alternate/foo.erb +++ b/padrino-mailer/test/fixtures/views/mailers/alternate/foo.erb @@ -1 +1 @@ -This is a foo message in mailers/alternate dir \ No newline at end of file +This is a foo message in mailers/alternate dir diff --git a/padrino-mailer/test/fixtures/views/mailers/bar.erb b/padrino-mailer/test/fixtures/views/mailers/bar.erb index e47b806cf..19aa6283f 100644 --- a/padrino-mailer/test/fixtures/views/mailers/bar.erb +++ b/padrino-mailer/test/fixtures/views/mailers/bar.erb @@ -1 +1 @@ -This is a bar message in mailers dir \ No newline at end of file +This is a bar message in mailers dir diff --git a/padrino-mailer/test/fixtures/views/mailers/i18n/hello.en.erb b/padrino-mailer/test/fixtures/views/mailers/i18n/hello.en.erb index 5e1c309da..557db03de 100644 --- a/padrino-mailer/test/fixtures/views/mailers/i18n/hello.en.erb +++ b/padrino-mailer/test/fixtures/views/mailers/i18n/hello.en.erb @@ -1 +1 @@ -Hello World \ No newline at end of file +Hello World diff --git a/padrino-mailer/test/fixtures/views/mailers/i18n/hello.it.erb b/padrino-mailer/test/fixtures/views/mailers/i18n/hello.it.erb index e25a03014..bf35334e1 100644 --- a/padrino-mailer/test/fixtures/views/mailers/i18n/hello.it.erb +++ b/padrino-mailer/test/fixtures/views/mailers/i18n/hello.it.erb @@ -1 +1 @@ -Salve Mondo \ No newline at end of file +Salve Mondo diff --git a/padrino-mailer/test/fixtures/views/mailers/layouts/sample.erb b/padrino-mailer/test/fixtures/views/mailers/layouts/sample.erb index c2a67f154..4f9aeeda8 100644 --- a/padrino-mailer/test/fixtures/views/mailers/layouts/sample.erb +++ b/padrino-mailer/test/fixtures/views/mailers/layouts/sample.erb @@ -1 +1 @@ -Layout Sample <%= yield %> \ No newline at end of file +Layout Sample <%= yield %> diff --git a/padrino-mailer/test/fixtures/views/mailers/multipart/basic.html.erb b/padrino-mailer/test/fixtures/views/mailers/multipart/basic.html.erb index 8bb74c99d..16bd41bd9 100644 --- a/padrino-mailer/test/fixtures/views/mailers/multipart/basic.html.erb +++ b/padrino-mailer/test/fixtures/views/mailers/multipart/basic.html.erb @@ -1 +1 @@ -text html \ No newline at end of file +text html diff --git a/padrino-mailer/test/fixtures/views/mailers/multipart/basic.plain.erb b/padrino-mailer/test/fixtures/views/mailers/multipart/basic.plain.erb index 7ebac23ab..a52e2823a 100644 --- a/padrino-mailer/test/fixtures/views/mailers/multipart/basic.plain.erb +++ b/padrino-mailer/test/fixtures/views/mailers/multipart/basic.plain.erb @@ -1 +1 @@ -plain text \ No newline at end of file +plain text diff --git a/padrino-mailer/test/fixtures/views/mailers/sample/foo.erb b/padrino-mailer/test/fixtures/views/mailers/sample/foo.erb index e94b3b9bb..a3da88d12 100644 --- a/padrino-mailer/test/fixtures/views/mailers/sample/foo.erb +++ b/padrino-mailer/test/fixtures/views/mailers/sample/foo.erb @@ -1 +1 @@ -This is a foo message in mailers/sample dir \ No newline at end of file +This is a foo message in mailers/sample dir diff --git a/padrino-mailer/test/helper.rb b/padrino-mailer/test/helper.rb index d84f2fcce..0056b6819 100644 --- a/padrino-mailer/test/helper.rb +++ b/padrino-mailer/test/helper.rb @@ -68,4 +68,4 @@ def method_missing(name, *args, &block) end end alias :response :last_response -end \ No newline at end of file +end diff --git a/padrino-mailer/test/test_email.rb b/padrino-mailer/test/test_email.rb index 4a66ad87a..ab0f7f54f 100644 --- a/padrino-mailer/test/test_email.rb +++ b/padrino-mailer/test/test_email.rb @@ -158,4 +158,4 @@ class TestEmail < Test::Unit::TestCase end end end -end \ No newline at end of file +end diff --git a/padrino-mailer/test/test_message.rb b/padrino-mailer/test/test_message.rb index 72ff67e70..f46842b5f 100644 --- a/padrino-mailer/test/test_message.rb +++ b/padrino-mailer/test/test_message.rb @@ -150,4 +150,4 @@ class TestMessage < Test::Unit::TestCase assert_equal 'plain text', message.body.to_s end end -end \ No newline at end of file +end diff --git a/padrino-mailer/test/test_padrino_mailer.rb b/padrino-mailer/test/test_padrino_mailer.rb index 58b111da4..43ec0660f 100644 --- a/padrino-mailer/test/test_padrino_mailer.rb +++ b/padrino-mailer/test/test_padrino_mailer.rb @@ -92,4 +92,4 @@ class TestPadrinoMailer < Test::Unit::TestCase end end -end \ No newline at end of file +end diff --git a/padrino-mailer/test/test_part.rb b/padrino-mailer/test/test_part.rb index c48c9f18c..f6509f28e 100644 --- a/padrino-mailer/test/test_part.rb +++ b/padrino-mailer/test/test_part.rb @@ -116,4 +116,4 @@ class TestPart < Test::Unit::TestCase # assert_equal "test HTML
    \nline #2", message.parts.first.parts[1].body.decoded # end end -end \ No newline at end of file +end diff --git a/padrino/README.rdoc b/padrino/README.rdoc index a217c43c5..b1f14a39e 100644 --- a/padrino/README.rdoc +++ b/padrino/README.rdoc @@ -18,4 +18,4 @@ For the Padrino documentation overview, check out the == Copyright -Copyright (c) 2011 Padrino. See LICENSE for details. \ No newline at end of file +Copyright (c) 2011 Padrino. See LICENSE for details. diff --git a/padrino/padrino.gemspec b/padrino/padrino.gemspec index db92b7d56..1aff23cd9 100755 --- a/padrino/padrino.gemspec +++ b/padrino/padrino.gemspec @@ -29,4 +29,4 @@ Gem::Specification.new do |s| s.add_dependency("padrino-gen", Padrino.version) s.add_dependency("padrino-cache", Padrino.version) s.add_dependency("padrino-admin", Padrino.version) -end \ No newline at end of file +end diff --git a/padrino/test/helper.rb b/padrino/test/helper.rb index f56e67c69..1abd4eba0 100644 --- a/padrino/test/helper.rb +++ b/padrino/test/helper.rb @@ -3,4 +3,4 @@ require 'shoulda' class Test::Unit::TestCase -end \ No newline at end of file +end diff --git a/padrino/test/test_padrino.rb b/padrino/test/test_padrino.rb index 71917a685..dcd0e20a7 100644 --- a/padrino/test/test_padrino.rb +++ b/padrino/test/test_padrino.rb @@ -8,4 +8,4 @@ class TestPadrino < Test::Unit::TestCase assert_not_nil defined?(Padrino::Mailer) assert_not_nil defined?(Padrino::Helpers) end -end \ No newline at end of file +end