Welcome to Pure Ruby, a collection of episodes exploring the Ruby programming language using the power of interactive Jupyter Notebooks.
Whether you're brushing up on Ruby syntax, exploring object-oriented programming, or experimenting with gems and DSLs, this notebook-driven series is here to help you learn by doing.
To use Ruby inside Jupyter Notebooks, you’ll need the IRuby kernel. Follow these steps:
sudo apt update
sudo apt install ruby ruby-dev build-essential libzmq3-dev libtool pkg-config
If you're using pip:
pip install notebook
Or with conda:
conda install -c conda-forge notebook
gem install iruby
iruby register --force
⚠️ Tip: You might need to install bundler if it’s not present:
gem install bundler
jupyter notebook
You should now see a "Ruby" kernel option available when you create a new notebook.
Each episode is a focused lesson or theme in Ruby, written in notebook format:
06 - Rails Session & Cookie Playground: Understand and experiment with session and cookie storage in Rails 8
📂 Notebooks for each episode are in the /notebooks folder.
📖 Where to Read
You can follow the episodes on Medium:
Or download and run them locally.
📦 Contributing
Feel free to fork this repository and add new episodes, improve examples, or open issues with suggestions.
📜 License
MIT License. Do as you wish — just keep learning and coding Ruby! user_info = { name: payload["name"], email: payload["email"], preferred_username: payload["preferred_username"], given_name: payload["given_name"], family_name: payload["family_name"] }
user_info.each do |key, value| puts "#{key.to_s.ljust(20)}: #{value || '[not provided]'}" end
This is an accurate explanaition about this middleware implemented by J3. Please be aware of this upgrate. Bye! 👉⬇️