Prefer %w syntax
authorPeter Donald <peter@realityforge.org>
Tue, 20 Nov 2018 02:31:33 +0000 (13:31 +1100)
committerPeter Donald <peter@realityforge.org>
Tue, 20 Nov 2018 02:31:33 +0000 (13:31 +1100)
Rakefile

index e783749..73bec68 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -30,7 +30,7 @@ end
 
 # Load the Gem specification for the current platform (Ruby or JRuby).
 def spec(platform = RUBY_PLATFORM[/java/] || 'ruby')
-  @specs ||= ['ruby', 'java', 'x86-mswin32'].inject({}) { |hash, spec_platform|
+  @specs ||= %w(ruby java x86-mswin32).inject({}) { |hash, spec_platform|
     ENV['BUILDR_PLATFORM'] = spec_platform
     hash.update(spec_platform=> Gem::Specification.load('buildr.gemspec'))
     Gem::Specification._clear_load_cache