From 834002baa50d96a3754e42f4008c9e04c930195c Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Fri, 2 Dec 2016 19:01:52 +0100 Subject: [PATCH] Fix 'Your Gemfile.lock is corrupt.' on Travis CI couple of things changed due to https://github.com/bundler/bundler/issues/4467 incl. Ruby (RVM) bump from 2.2.5 to 2.3.1 (just to be in line with local) --- .gitignore | 5 ++ .travis.yml | 4 +- Gemfile.lock | 160 --------------------------------------------------- README.md | 15 +++++ 4 files changed, 23 insertions(+), 161 deletions(-) delete mode 100644 Gemfile.lock diff --git a/.gitignore b/.gitignore index 5c91b60..c184730 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ _site/ .sass-cache/ .jekyll-metadata +.bundle/ +vendor/ + +# https://github.com/bundler/bundler/issues/4467 +Gemfile.lock diff --git a/.travis.yml b/.travis.yml index a5711e4..b47ffe0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,9 @@ sudo: false # route your build to the container-based infrastructure for a faste language: ruby rvm: -- 2.2.5 +- 2.3.1 + +install: bundle install script: ./.travis.sh diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 1da0754..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,160 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - RedCloth (4.2.9) - activesupport (5.0.0.1) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (~> 0.7) - minitest (~> 5.1) - tzinfo (~> 1.1) - addressable (2.4.0) - blankslate (2.1.2.4) - classifier-reborn (2.0.4) - fast-stemmer (~> 1.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.11.1) - colorator (0.1) - colored (1.2) - concurrent-ruby (1.0.2) - ethon (0.9.1) - ffi (>= 1.3.0) - execjs (2.7.0) - faraday (0.10.0) - multipart-post (>= 1.2, < 3) - fast-stemmer (1.0.2) - ffi (1.9.14) - gemoji (2.1.0) - github-pages (39) - RedCloth (= 4.2.9) - github-pages-health-check (~> 0.2) - jekyll (= 2.4.0) - jekyll-coffeescript (= 1.0.1) - jekyll-feed (= 0.3.1) - jekyll-mentions (= 0.2.1) - jekyll-redirect-from (= 0.8.0) - jekyll-sass-converter (= 1.3.0) - jekyll-sitemap (= 0.8.1) - jemoji (= 0.5.0) - kramdown (= 1.5.0) - liquid (= 2.6.2) - maruku (= 0.7.0) - mercenary (~> 0.3) - pygments.rb (= 0.6.3) - rdiscount (= 2.1.7) - redcarpet (= 3.3.2) - terminal-table (~> 1.4) - github-pages-health-check (0.3.2) - net-dns (~> 0.6) - public_suffix (~> 1.4) - typhoeus (~> 0.7) - html-pipeline (1.9.0) - activesupport (>= 2) - nokogiri (~> 1.4) - html-proofer (3.3.1) - activesupport (>= 4.2, < 6.0) - addressable (~> 2.3) - colored (~> 1.2) - mercenary (~> 0.3.2) - nokogiri (~> 1.5) - parallel (~> 1.3) - typhoeus (~> 0.7) - yell (~> 2.0) - i18n (0.7.0) - jekyll (2.4.0) - classifier-reborn (~> 2.0) - colorator (~> 0.1) - jekyll-coffeescript (~> 1.0) - jekyll-gist (~> 1.0) - jekyll-paginate (~> 1.0) - jekyll-sass-converter (~> 1.0) - jekyll-watch (~> 1.1) - kramdown (~> 1.3) - liquid (~> 2.6.1) - mercenary (~> 0.3.3) - pygments.rb (~> 0.6.0) - redcarpet (~> 3.1) - safe_yaml (~> 1.0) - toml (~> 0.1.0) - jekyll-coffeescript (1.0.1) - coffee-script (~> 2.2) - jekyll-feed (0.3.1) - jekyll-gist (1.4.0) - octokit (~> 4.2) - jekyll-mentions (0.2.1) - html-pipeline (~> 1.9.0) - jekyll (~> 2.0) - jekyll-paginate (1.1.0) - jekyll-redirect-from (0.8.0) - jekyll (>= 2.0) - jekyll-sass-converter (1.3.0) - sass (~> 3.2) - jekyll-sitemap (0.8.1) - jekyll-watch (1.5.0) - listen (~> 3.0, < 3.1) - jemoji (0.5.0) - gemoji (~> 2.0) - html-pipeline (~> 1.9) - jekyll (>= 2.0) - kramdown (1.5.0) - libv8 (3.16.14.17) - liquid (2.6.2) - listen (3.0.8) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - maruku (0.7.0) - mercenary (0.3.6) - minima (2.0.0) - minitest (5.9.1) - multipart-post (2.0.0) - net-dns (0.8.0) - nokogiri (1.6.8.1) - octokit (4.6.2) - sawyer (~> 0.8.0, >= 0.5.3) - parallel (1.10.0) - parslet (1.5.0) - blankslate (~> 2.0) - posix-spawn (0.3.12) - public_suffix (1.5.3) - pygments.rb (0.6.3) - posix-spawn (~> 0.3.6) - yajl-ruby (~> 1.2.0) - rb-fsevent (0.9.8) - rb-inotify (0.9.7) - ffi (>= 0.5.0) - rdiscount (2.1.7) - redcarpet (3.3.2) - ref (2.0.0) - safe_yaml (1.0.4) - sass (3.4.22) - sawyer (0.8.1) - addressable (>= 2.3.5, < 2.6) - faraday (~> 0.8, < 1.0) - terminal-table (1.7.3) - unicode-display_width (~> 1.1.1) - therubyracer (0.12.2) - libv8 (~> 3.16.14.0) - ref - thread_safe (0.3.5) - toml (0.1.2) - parslet (~> 1.5.0) - typhoeus (0.8.0) - ethon (>= 0.8.0) - tzinfo (1.2.2) - thread_safe (~> 0.1) - unicode-display_width (1.1.1) - yajl-ruby (1.2.1) - yell (2.0.7) - -PLATFORMS - ruby - -DEPENDENCIES - github-pages - html-proofer - minima - therubyracer - -BUNDLED WITH - 1.13.6 diff --git a/README.md b/README.md index 1d1d825..c236856 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,21 @@ Your contributions are more than welcome! ## Troubleshooting +Use `rm -rf .bundle/ vendor/ ; git clean -fX` to solve this problem if it occurs locally: + +``` +Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES section: 'mini_portile2' + +``` + +and if it occurs on Tracis CI then add `install: bundle install` to `.travis.yml` +and git rm Gemfile.lock && echo "Gemfile.lock" >>.gitignore; +needed because its default is `bundle install --jobs=3 --retry=3 --deployment`, +the `--deployment` if a `Gemfile.lock` exists, +see https://docs.travis-ci.com/user/languages/ruby/#Travis-CI-uses-Bundler, +and that is causing some issues, see https://github.com/bundler/bundler/issues/4467. + + Use `sudo dnf install ruby-devel` to solve this problem: ```