Repository: buildr Updated Branches: refs/heads/master 6e9ca80a9 -> 01f082444
Prefer %w syntax Project: http://git-wip-us.apache.org/repos/asf/buildr/repo Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/1caac4d0 Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/1caac4d0 Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/1caac4d0 Branch: refs/heads/master Commit: 1caac4d017f4909bdba43dae83b669fd0ccb1c27 Parents: 6e9ca80 Author: Peter Donald <pe...@realityforge.org> Authored: Tue Nov 20 13:31:33 2018 +1100 Committer: Peter Donald <pe...@realityforge.org> Committed: Tue Nov 20 13:31:33 2018 +1100 ---------------------------------------------------------------------- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/buildr/blob/1caac4d0/Rakefile ---------------------------------------------------------------------- diff --git a/Rakefile b/Rakefile index e783749..73bec68 100644 --- 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