From c3d7db4967c3a93e7250147c022e1c8313765607 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Fri, 29 Jul 2016 15:52:07 +0200 Subject: [PATCH] make condition more readable --- moduleroot/Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moduleroot/Gemfile b/moduleroot/Gemfile index f3061231..ddcb81fe 100644 --- a/moduleroot/Gemfile +++ b/moduleroot/Gemfile @@ -44,7 +44,7 @@ group <%= group %> do gem 'beaker-rspec', :require => false end <% else -%> - gem '<%= gem['gem'] %>'<%= ", '#{gem['version']}'" if gem['version'] %>, <%= ' ' * (maxlen - gem['length']) %> :require => false<%= ", :git => '#{gem['git']}'" if gem['git'] %><%= ", :branch => '#{gem['branch']}'" if gem['branch'] %><%= ", :platforms => #{gem['platforms']}" if gem['platforms'] %><%= " if RUBY_VERSION #{gem['ruby-operator']} #{gem['ruby-version']}" if gem['ruby-operator'] && gem['ruby-version'] %> + gem '<%= gem['gem'] %>'<%= ", '#{gem['version']}'" if gem['version'] %>, <%= ' ' * (maxlen - gem['length']) %> :require => false<%= ", :git => '#{gem['git']}'" if gem['git'] %><%= ", :branch => '#{gem['branch']}'" if gem['branch'] %><%= ", :platforms => #{gem['platforms']}" if gem['platforms'] %><%= " if RUBY_VERSION #{gem['ruby-operator']} #{gem['ruby-version']}" if (gem['ruby-operator'] && gem['ruby-version']) %> <% end -%> <% end -%> end