Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ruby specs #173

Merged
merged 3 commits into from Sep 16, 2016
Merged

Update ruby specs #173

merged 3 commits into from Sep 16, 2016

Conversation

MattiSG
Copy link
Member

@MattiSG MattiSG commented Sep 15, 2016

See commits list.

@MattiSG
Copy link
Member Author

MattiSG commented Sep 15, 2016

Est-ce que @Flightan, @Morendil, @jdesboeufs ou @l-vincent-l pourraient tester cette PR en local ? :)

@Morendil
Copy link
Contributor

Hmm, il y a un souci avec rvm:

RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /app/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.

Unknown ruby interpreter version (do not know how to handle): versions[ruby]ifENV[CI].

Je n'ai pas ce message pour beta.gouv.fr, probablement parce que RVM parse le Gemfile d'une manière ad-hoc en faisant plein d'hypothèses qui ne sont pas vérifiées selon les cas. 😣

Sinon, en passant outre, j'arrive à exécuter jekyll.

@MattiSG
Copy link
Member Author

MattiSG commented Sep 16, 2016

Je n'ai pas ce message pour beta.gouv.fr,

Voilà qui est très étrange, étant donné que je n'ai fait que copier-coller le contenu du Gemfile de beta.gouv.fr dans celui-ci, en ajoutant seulement algolia (en attendant #172 :) ).

@Morendil
Copy link
Contributor

Au temps pour moi, j'ai eu ce message sur la baseline et non sur la branche. 😣

@MattiSG
Copy link
Member Author

MattiSG commented Sep 16, 2016

Aaah tu me rassures ! Avec rbenv c'était encore pire, j'avais #134… Du coup c'est GTM ?

@Morendil
Copy link
Contributor

Je ne suis pas forcément la bonne personne pour te faire ce retour: je n'exécute pas "en local" au sens classique, je fais tourner ça sous Docker, avec https://hub.docker.com/r/morendil/github-pages/ qui n'est pas "officiellement" un environnement que nous supportons.

J'ai des soucis avec cet environnement, mais je ne sais pas s'il faut les attribuer à la mécanique du Gemfile-qui-checke-la-version-de-prod ou à la manière dont je construis mon image.

Voici le message d'erreur que je vois si je ne force pas manuellement un bundle update:

laurent@HotAir ~/D/C/api.gouv.fr> docker run -it -v (pwd):/app -p 4000:4000 morendil/github-pages
/usr/local/rvm/gems/ruby-2.1.7@global/gems/bundler-1.13.1/lib/bundler/definition.rb:181:in `rescue in specs': Your bundle is locked to rake (11.2.2), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of rake (11.2.2) has removed it. You'll need to update your bundle to a different version of rake (11.2.2) that hasn't been removed in order to install. (Bundler::GemNotFound)
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/bundler-1.13.1/lib/bundler/definition.rb:175:in `specs'
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/bundler-1.13.1/lib/bundler/definition.rb:235:in `specs_for'
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/bundler-1.13.1/lib/bundler/definition.rb:224:in `requested_specs'
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/bundler-1.13.1/lib/bundler/runtime.rb:118:in `block in definition_method'
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/bundler-1.13.1/lib/bundler/runtime.rb:19:in `setup'
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/bundler-1.13.1/lib/bundler.rb:99:in `setup'
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/plugin_manager.rb:36:in `require_from_bundler'
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/exe/jekyll:9:in `<top (required)>'
        from /usr/local/rvm/gems/ruby-2.1.7@global/bin/jekyll:23:in `load'
        from /usr/local/rvm/gems/ruby-2.1.7@global/bin/jekyll:23:in `<main>'
        from /usr/local/rvm/gems/ruby-2.1.7@global/bin/ruby_executable_hooks:15:in `eval'
        from /usr/local/rvm/gems/ruby-2.1.7@global/bin/ruby_executable_hooks:15:in `<main>'

@Flightan
Copy link
Member

Ça tourne chez moi !

@MattiSG MattiSG assigned MattiSG and unassigned Flightan Sep 16, 2016
@MattiSG MattiSG merged commit 3688215 into gh-pages Sep 16, 2016
@MattiSG MattiSG deleted the update-ruby-specs branch September 16, 2016 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants