Skip to content

Commit

Permalink
add platforms option to Gemfile template
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Apr 24, 2016
1 parent 9debde7 commit cbac5d6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions moduleroot/Gemfile
Expand Up @@ -19,12 +19,13 @@ end
group <%= group %> do
<% maxlen = gems.map! do |gem| -%>
<% { -%>
<% 'gem' => gem['gem'], -%>
<% 'version' => gem['version'], -%>
<% 'require' => gem['require'], -%>
<% 'git' => gem['git'], -%>
<% 'branch' => gem['branch'], -%>
<% 'length' => gem['gem'].length + (("', '".length if gem['version']) || 0) + gem['version'].to_s.length -%>
<% 'gem' => gem['gem'], -%>
<% 'version' => gem['version'], -%>
<% 'platforms' => gem['options']['platforms'], -%>
<% 'require' => gem['require'], -%>
<% 'git' => gem['git'], -%>
<% 'branch' => gem['branch'], -%>
<% 'length' => gem['gem'].length + (("', '".length if gem['version']) || 0) + gem['version'].to_s.length -%>
<% } -%>
<% end.map do |gem| -%>
<% gem['length'] -%>
Expand Down

0 comments on commit cbac5d6

Please sign in to comment.