ruby: add French translation, update page (#10817)

* ruby: add French translation, update page

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
pull/23/head
Alexandre ZANNI 2023-10-08 17:55:35 +02:00 committed by GitHub
parent ba681f2d0b
commit 3cf7a89a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

29
pages.fr/common/ruby.md Normal file
View File

@ -0,0 +1,29 @@
# ruby
> Interpréteur du langage de programmation Ruby.
> Voir aussi : `gem`, `bundler`, `rake`, `irb`.
> Plus d'informations : <https://www.ruby-lang.org>.
- Exécute un script Ruby :
`ruby {{script.rb}}`
- Exécute une seule commande Ruby dans la ligne de commande :
`ruby -e {{commande}}`
- Vérifie les erreurs de syntaxe d'un script Ruby donné :
`ruby -c {{script.rb}}`
- Démarre le serveur HTTP intégré sur le port 8080 dans le répertoire actuel :
`ruby -run -e httpd`
- Exécute localement un binaire Ruby sans installer la bibliothèque requise dont il dépend :
`ruby -I {{chemin/vers/dossier_bibliothèque}} -r {{nom_chargement_bibliothèque}} {{chemin/vers/dossier_bin/nom_bin}}`
- Affiche la version de Ruby utilisée :
`ruby -v`

View File

@ -20,6 +20,10 @@
`ruby -run -e httpd`
- Locally execute a Ruby binary without installing the required library it depends on:
`ruby -I {{path/to/library_folder}} -r {{library_require_name}} {{path/to/bin_folder/bin_name}}`
- Show the version of Ruby you are using:
`ruby -v`