The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Parsing a DSL in Ruby in less than 30 LoC
In this article we’re going to see how to parse and serialize a DSL in less than 30 lines of codes. [more inside]
Dockerize the multi-services application for local development
The handy local development containerization guide for getting the services written in Ruby, Node.js, and Golang work together locally with docker networks.
Ruby gem information, stats and usage for your terminal
whatthegem is a small utility to answer some questions about Ruby gems you work with or planning to work with. It tries to answer—right in your terminal—questions like the following: Colleague added gemname to our Gemfile, what is it? How outdated is my favorite gemname I am using locally, what’s changed since then? What’s that benchmarking gemname’s synopsis was, again? There is gemname advised on the internetz for my problem, is it still maintained? Is it widely used?
Git Cop 3.4.0 - Netlify Support
In case you are using Netlify as your build and deploy service for static web sites, wanted to let you know Git Cop now supports Netlify too. Everything happens automatically so you can ensure your Git commits are of high quality. See the README for details. Enjoy!
Programming Bitcon Script Transaction (Crypto) Contracts Step-by-Step (in Ruby)
Hello, I’ve started a new (free online) book(let) titled “Programming Bitcon Script Transaction (Crypto) Contracts Step-by-Step (in Ruby)”. Let’s start with building your own bitcon stack machine from zero / scratch and let’s run your own bitcon ops (operations)… Unlock the ?+2=4 puzzle on your own computer and win “unspent transaction outputs” on your own testnet. Happy bitcon scripting with ruby.
Records Gem / Library v1.0 - Frozen / Immutable Structs with Copy on Updates
Hello, I’ve put together a new gem / library, that is, records v1.0 that lets you use and build frozen / immutable structs with copy on update and includes some language syntax pragmas {...} and ={...} shortcuts too. Happy (functional) coding with ruby.
JSON dynamic attributes with Rails
We had a tricky problem. We knew that the columns for one particular model would need to change over time. That was easily solved with a JSON field, but we also wanted to support validations on this field – validations that are assigned to the model at the time of creation. Read the article by Heitor Silva
Language Syntax Pragmas: Let's Evolve Ruby by Experimenting in a Pragma(tic) Way
Hello, I’ve put together a new pragmas gem / library for language syntax pragmas that lets you turn on the future today or add your own ideas for easy (re)use for everyone. Let’s evolve the ruby language together by experimenting in the wild in a pragma(tic) way. First language syntax pragmas include match patterns, enum and type types, auto numbered arguments, and more. What’s your idea / pragma? Yes, you can. Happy coding in (future) ruby with pragmas. Cheers. Prost.
Automatic Materialized View Refresh with Usage of Database Triggers
I have described the problem of automatic refresh of materialized database view in PostgreSQL and provided an example solution to that problem using database triggers.
IRB.tools 3.0
Irbtools configures your IRB and adds a bunch of useful IRB commands. Irbtools generally has been pretty stable during the last years and version 3 only brings few new features.
michelson - test simulator / runtime for type-safe 'n' functional (crypto) contracts
Hello, I’ve put together michelson - a test simulator and runtime library / gem that lets you write and run type-safe ‘n’ functional (crypto) contracts in yes, it’s just ruby. See the Let’s Count or the Let’s Vote examples to get started with functional type-safe Liquidity (OCaml/ReasonML)-style programming in ruby. Happy (crypto) contract programming and blockchaining with (secure) ruby.
Never again you have to `x.methods - Object.methods`
Because now use can use an object’s shadow!
[Screencast] Introduction to Kubernetes
In this episode, we take a tour of what Kubernetes is, how to install and configure a local development instance, and deploying a sample application. https://www.driftingruby.com/episodes/introduction-to-kubernetes
Flor workflow engine
Flor is a Ruby workflow engine. It interprets workflow definitions, controlling the flow of work, handing tasks to participants. Flor workflow engine is a blog post presenting the project, its features and characteristics.