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.
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. https://www.netguru.com/codestories/materialized-view-refresh-problem-and-how-to-solve-using-database-triggers-in-ror-based-application
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.
Dockerizing a Rails application
I published a new tutorial for Dockerizing a Rails application. [more inside]
Messages on Rails Part 2: Kafka
In the first part of this series, we were exploring some potential options for communication between services – what their advantages and disadvantages are, why HTTP API is not necessarily the best possible choice and suggesting that asynchronous messaging might be a better solution, using, e.g. RabbitMQ and Kafka. Let’s focus this time entirely on the latter. [more inside]
Stop using views: frontend components architecture for Ruby on Rails
component_party gem that allows us to organize our Rails frontend code in components and keep our css, view models and templates organized by domain. [more inside]
(Secure) Ruby to Liquidity (w/ ReasonML Syntax) (Source-to-Source) Cheat Sheet
Hello, I’ve put together a cheat sheet / white paper that lets you compare “pragmatic” (Secure) Ruby to “functional” Liquidity (w/ ReasonML Syntax) / Michelson side-by-side with a Counter, Vote and Minimial Viable Token contract example. Happy crypto (contract) programming with ruby. Cheers. Prost.
JsonapiErrorsHandler - A new way of catching API exceptions in ruby
Recently we came with a new little gem for ruby API applications and I decided to come with an article about it. [more inside]
Using LDAP to Login and Logout Users in Rails apps
How to use LDAP to login and logout a user using OmniAuth and LDAP. We will also see how to search for a user and test LDAP server connectivity. Read more: Using LDAP to Login and Logout Users in Rails apps