Skip to content

Instantly share code, notes, and snippets.

View rclavel's full-sized avatar

Romain Clavel rclavel

View GitHub Profile
@rclavel
rclavel / gist:df7b26fcb849a310a0b2bedffc89457b
Created February 25, 2018 18:56
rubygems error on heroku
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.3.4
remote: -----> Installing dependencies using bundler 1.15.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: Fetching gem metadata from https://rubygems.org/.
remote: Retrying fetcher due to error (2/4): Bundler::HTTPError The checksum of /info/crass does not match the checksum provided by the server! Something is wrong (local checksum is "\"a080a1775e4c3f8b72707ef6a2e071b4\"", was expecting "\"5512cda1-50280\"")..
remote: Retrying fetcher due to error (3/4): Bundler::HTTPError The checksum of /info/erubi does not match the checksum provided by the server! Something is wron
require 'json'
require 'nokogiri'
require 'mechanize'
puts 'Get source'
agent = Mechanize.new
html = agent.get 'http://bulbapedia.bulbagarden.net/wiki/List_of_French_Pok%C3%A9mon_names'
nodes = Nokogiri::HTML.parse html.body
puts 'Parse html'