Cannot build the website
I would like to build the website in order to contribute documentation.
I followed the documentation: https://gitlab.com/fdroid/fdroid-website/tree/master#building
bundle install
However, when I build the site, I get
fdroid-website$ bundle exec jekyll build
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/IndexV1.rb:23:in `require_relative': /home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:98: syntax error, unexpected '.' (SyntaxError)
...e == suggested_version_code }&.version_name,
... ^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:99: syntax error, unexpected =>, expecting :: or '[' or '.'
'issue_tracker' => field('issueTracker'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:99: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:100: syntax error, unexpected =>, expecting keyword_end
'changelog' => field('changelog'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:100: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:101: syntax error, unexpected =>, expecting keyword_end
'license' => field('license'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:101: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:102: syntax error, unexpected =>, expecting keyword_end
'source_code' => field('sourceCode'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:102: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:103: syntax error, unexpected =>, expecting keyword_end
'website' => field('webSite'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:103: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:104: syntax error, unexpected =>, expecting keyword_end
'added' => field('added'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:104: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:105: syntax error, unexpected =>, expecting keyword_end
'last_updated' => field('lastUpdated'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:105: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:106: syntax error, unexpected =>, expecting keyword_end
'whats_new' => App.process_app_description(...
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:106: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:108: syntax error, unexpected =>, expecting keyword_end
'icon' => icon,
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:109: syntax error, unexpected =>, expecting :: or '[' or '.'
'title' => name,
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:110: syntax error, unexpected =>, expecting :: or '[' or '.'
'summary' => summary,
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:112: syntax error, unexpected =>, expecting :: or '[' or '.'
'description' => description,
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:113: syntax error, unexpected =>, expecting :: or '[' or '.'
'feature_graphic' => App.localized_graphic_path(@...
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:113: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:114: syntax error, unexpected =>, expecting keyword_end
'phone_screenshots' => App.localized_graphic_list_p...
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:114: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:115: syntax error, unexpected =>, expecting keyword_end
... 'seven_inch_screenshots' => App.localized_graphic_list_p...
... ^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:115: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:117: syntax error, unexpected =>, expecting keyword_end
'packages' => @packages.sort.reverse.map { |p| p.to_data },
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:117: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:119: syntax error, unexpected =>, expecting keyword_end
'beautiful_url' => "/packages/#{package_name}"
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:120: syntax error, unexpected '}', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:258: syntax error, unexpected end-of-input, expecting keyword_end
from /home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/IndexV1.rb:23:in `<top (required)>'
from /home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/jekyll-fdroid.rb:18:in `require'
from /home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/jekyll-fdroid.rb:18:in `<top (required)>'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:81:in `require'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:76:in `each'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:76:in `block in require'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:65:in `each'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:65:in `require'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler.rb:114:in `require'
from /home/user/.gems/gems/jekyll-3.4.3/lib/jekyll/plugin_manager.rb:37:in `require_from_bundler'
from /home/user/.gems/gems/jekyll-3.4.3/exe/jekyll:9:in `<top (required)>'
from /home/user/.gems/bin/jekyll:23:in `load'
from /home/user/.gems/bin/jekyll:23:in `<main>'
The syntax errors suggest that I use a wrong version of Ruby
$ ruby -v
ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
Please enlighten me.