Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Understanding Ruby on Rails configuration
Search
Esteban Pintos
October 15, 2014
Technology
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Understanding Ruby on Rails configuration
Basic tools and configuration files to set up a Ruby on Rails application.
Esteban Pintos
October 15, 2014
Other Decks in Technology
See All in Technology
Kiro Crewをはじめよう
kizawa2020
1
160
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
4.9k
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
パッチ更新でterraform initが落ちた日
grimoh
1
140
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
570
Metadata - Section 1: HTML Basics
mohab1
0
120
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
390
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
330
[JAWS-UG彩の国埼玉#12]そろそろ準備する?re:Invent2026をやさしく解説 / reinvent2026-sainokuni
sh_fk2
1
340
宣言型部分更新は何を解決しどこへ向かうのか
shuta13
1
450
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
120
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.6k
Featured
See All Featured
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
The Invisible Side of Design
smashingmag
301
52k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
360
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
What's in a price? How to price your products and services
michaelherold
247
13k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
Making Projects Easy
brettharned
120
6.8k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Transcript
Understanding RoR Configuration
Contenidos • Gemas • Gemfile / Gemfile.lock • Bundler •
Rbenv • Ruby-Build
Gemas • Código zipeado con datos extra • Podemos incluirlas
en nuestros proyectos para facilitar nuestro desarrollo • Versionadas
Gemfile • Archivo de configuración RoR • Gemas en el
proyecto • Permite especificar versiones • Permite ordenarlas por ambiente de ejecución • Requiere un servidor de gemas ◦ http://rubygems.org
Gemfile#Grupos • Permite separar gemas por ambiente: ◦ Development ◦
Test ◦ Production ◦ ... • Gemas tienen sentido en algunos ambientes en particular ◦ rspec en test
Gemfile#Versiones • Permite definir que versiones se requieren: ◦ Evitar
conflictos entre gemas ◦ Incluir funcionalidad específica ◦ Evitar versiones no compatibles con el código actual
Gemfile#Versiones • MAJOR.MINOR.PATCH No compatible hacia atras Compatible hacia atras
Compatible hacia atras. Bug fixes
Gemfile#Versiones • Formas de versionar: ◦ ‘2.1’ 2.1 (bundle =
bundle update) ◦ ‘>=3.0’ [3.0, +inf) ◦ ‘~>2.1’ [2.1, 3.0) ◦ ‘~>2.0.3’ [2.0.3, 2.1) ◦ ‘~>2.2.beta’ 2.2.beta.12
Gemfile@Ejemplo Servidor de Gemas Versión de Ruby Diferentes grupos
Gemfile.lock • Versiones de gemas ya instaladas en el proyecto.
• Si se clona el repo va a instalar las versiones definidas en el mismo.
• Permite crear un ambiente de trabajo consistente. • Instala
las gemas y versiones requeridas • Instalación: gem install bundler • Instalar gemas: bundle [install]
bundle install vs. bundle update • Bundle install genera el
Gemfile.lock y luego lo utiliza. • Bundle update ignora el Gemfile.lock. • Preferible usar bundle update gem_name
bundle exec • Corre el ejecutable de una gema especificada
en el Gemfile • bundle exec rspec • WARNING: Se puede evitar pero podria traer conflictos.
Rbenv • Herramienta para manejar versionado de Ruby • Fija
versión de Ruby y asegura que producción corra la misma • Versión en archivo .ruby-version
Rbenv#Comandos • rbenv rehash: Instala las shims para los ejecutables
de Ruby que rbenv conoce. Necesario cuando se actualiza la versión de Ruby o gemas • rbenv local: Versión local seteada
Ruby Build • Plugin de rbenv que permite compilar e
instalar diferentes versiones de Ruby • rbenv install version_ruby • rbenv install -l: Versiones disponibles. Si no lista alguna existente conocida, hay que pullear el repo
Resumen Configuración - Instalar Rbenv y Ruby-Build - agregar .ruby-version
- configuramos Gemfile - rbenv install version - gem install bundler - rbenv rehash - bundle install
Bibliografia • http://bundler.io/ • http://semver.org/ -> Versiones • https://github.com/sstephenson/rbenv •
https://github.com/sstephenson/ruby-build • http://guides.rubygems. org/patterns/#pessimistic_version_constraint
¿Preguntas?
¡Gracias!