blegat / mathraining

Site interactif avec théorie, exercices et problèmes
51 stars 3 forks source link

Fixnum deprecation #7

Closed blegat closed 3 years ago

blegat commented 7 years ago

The warnings

warning: constant ::Fixnum is deprecated
warning: constant ::Bignum is deprecated

come from the fact that we use Ruby 2.4.0 or higher. We should use Ruby on Rails 5.0.2 to fix this (we currently use 5.0.1).

Nicolas16 commented 7 years ago

Figure-toi que j'ai fait la même recherche que tout il y a une demi-heure et que je suis arrivé à la même conclusion ! Tu veux passer à Rails 5.0.2 ?

blegat commented 7 years ago

Je suis pas contre, j'ai essayé mais bundle install n'était pas super chaud :D EDIT: J'ai réussi mais mtn c'est les tests qui foirent :-P

Failure/Error: c.prerequisites << a

     ActiveRecord::RecordInvalid:
       La validation a échoué : Prérequis  : Chapitre 79 -> Chapitre 81 est redondant avec Chapitre 79 -> Chapitre 81, Prérequis  : Chapitre 79 -> Chapitre 81 rend Chapitre 79 -> Chapitre 81 redondant en formant la boucle Chapitre 79 -> Chapitre 81. Veuillez supprimer ce lien avant de rajouter celui-ci.
Nicolas16 commented 3 years ago

Fixed when we used Rails v5.0.2 (see commit 984b119345d8aa1780283df115ff3d7e29409e38)