buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject [2/5] buildr git commit: Prefer single quotes
Date Thu, 19 Feb 2015 23:38:16 GMT
Prefer single quotes


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/b359ca40
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/b359ca40
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/b359ca40

Branch: refs/heads/master
Commit: b359ca405f968128fd35cb850f7bcdf5db833bff
Parents: c1b21a8
Author: Peter Donald <peter@realityforge.org>
Authored: Sat Feb 14 07:54:12 2015 +1100
Committer: Peter Donald <peter@realityforge.org>
Committed: Sat Feb 14 07:54:12 2015 +1100

----------------------------------------------------------------------
 lib/buildr/core/checks.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/b359ca40/lib/buildr/core/checks.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/core/checks.rb b/lib/buildr/core/checks.rb
index 60e8422..a695fef 100644
--- a/lib/buildr/core/checks.rb
+++ b/lib/buildr/core/checks.rb
@@ -84,7 +84,7 @@ module Buildr #:nodoc:
       def initialize(*args, &block)
         @description = args.pop if String === args.last
         @subject = args.shift
-        raise ArgumentError, "Expecting subject followed by description, and either one is
optional. Not quite sure what to do with this list of arguments." unless args.empty?
+        raise ArgumentError, 'Expecting subject followed by description, and either one is
optional. Not quite sure what to do with this list of arguments.' unless args.empty?
         @block = block || lambda { |klass| info "Pending: #{description}" }
       end
 
@@ -150,9 +150,9 @@ module Buildr #:nodoc:
           end
         end or fail "Checks failed for project #{project.name} (see errors above)."
       end
-      project.task("package").enhance do |task|
+      project.task('package').enhance do |task|
         # Run all actions before checks.
-        task.enhance { project.task("check").invoke }
+        task.enhance { project.task('check').invoke }
       end
     end
 


Mime
View raw message