From: Michael Orlitzky Date: Mon, 18 Mar 2013 23:46:31 +0000 (-0400) Subject: Whitespace/comment cleanup. X-Git-Tag: 0.0.1~100 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=806cb5223ac1f439cc40b8354a7dad08b380cfd5;p=mailshears.git Whitespace/comment cleanup. --- diff --git a/bin/mailshears b/bin/mailshears index d181d08..a4b0823 100755 --- a/bin/mailshears +++ b/bin/mailshears @@ -95,7 +95,7 @@ Plugin.includers.each do |plugin_class| plugin.delete_account(account) puts "Removed: #{account} (#{account_description})" end - + leftover_domains.each do |domain| # Get the description before we delete the domain. domain_description = plugin.describe_domain(domain) diff --git a/lib/mailshears/configuration.rb b/lib/mailshears/configuration.rb index e77969d..f9a07bf 100644 --- a/lib/mailshears/configuration.rb +++ b/lib/mailshears/configuration.rb @@ -27,7 +27,7 @@ class Configuration @dict = cfg end - + def method_missing(sym, *args) # Replace all missing method calls with dictionary lookups. return @dict[sym] diff --git a/lib/mailshears/exit_codes.rb b/lib/mailshears/exit_codes.rb index f304ff6..8f70919 100644 --- a/lib/mailshears/exit_codes.rb +++ b/lib/mailshears/exit_codes.rb @@ -3,5 +3,5 @@ module ExitCodes SUCCESS = 0 FILESYSTEM_ERROR = 1 DATABASE_ERROR = 2 - + end diff --git a/lib/mailshears/filesystem.rb b/lib/mailshears/filesystem.rb index 473a1ed..72ff901 100644 --- a/lib/mailshears/filesystem.rb +++ b/lib/mailshears/filesystem.rb @@ -3,7 +3,7 @@ class Filesystem def self.begins_with_dot(path) return (path[0..0] == '.') end - + def self.get_subdirs(dir) subdirs = [] @@ -15,8 +15,8 @@ class Filesystem end end end - + return subdirs end - + end diff --git a/lib/mailshears/plugin.rb b/lib/mailshears/plugin.rb index 2d0ded0..2e868c2 100644 --- a/lib/mailshears/plugin.rb +++ b/lib/mailshears/plugin.rb @@ -7,7 +7,7 @@ module Plugin # one. The parameter given is the name of the class or module # that included us. @includers ||= [] - @includers << c + @includers << c end def Plugin.includers @@ -39,14 +39,14 @@ module Plugin end def get_leftover_domains(db_domains) - # Given a list of domains, determine which domains belonging to this plugin - # are not contained in the given list. + # Given a list of domains, determine which domains belonging to + # this plugin are not contained in the given list. raise NotImplementedError end def get_leftover_accounts(db_accounts) - # Given a list of accounts, determine which accounts belonging to this plugin - # are not contained in the given list. + # Given a list of accounts, determine which accounts belonging to + # this plugin are not contained in the given list. raise NotImplementedError end end