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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Gladiator (short for Glimmer Editor) is a text editor fully written in Ruby as an exercise in using Glimmer DSL for SWT. It was declared the Ugliest Text Editor Ever on reddit. Sadly, it might no longer hold that title since it just got colors with Ruby Syntax Highlighting. Check it out at GitHub: https://github.com/AndyObtiva/glimmer-cs-gladiator
Hello, I have bundled up in the flow-lite gem - a lite (lightweight) workflow engine that let’s you define your workflow steps in Flowfiles (in ruby) and includes the flow command line tool. The original itch / need / inspiration was / is the use in GitHub Actions (Workflows). Happy automating with ruby. Cheers. Prost.
Here is the simple example which uses the group_by method to group records by it’s created_at date differentiating today’s messages with other days’ messages. https://www.botreetechnologies.com/blog/rails-grouping-the-records-by-group-by-method
It is important to know the expected usage of an web endpoint when picking between Activice Records helper create_or_find_by or find_or_create_by. Know the DB interactions that best fit your needs and how one implementation could be up to 4X faster depending on your needs.
Do you know, software engineers are basically carpenters. This analogy will help you to boost your productivity. Read more here: https://mayurkumarpatel.medium.com/how-engineers-are-basically-carpenters-9f1b3c38a511
If the table is huge and such a migration takes a lot of time, it sounds natural to split it into smaller pieces and run them without locking the table. See some thoughts about this approach here: https://veelenga.github.io/splitting-rails-migration-into-smaller-pieces
There could be other such use-cases where we need to use the data available from such third-party service and acquire some new parameters. https://www.botreetechnologies.com/blog/ahoy-an-analytics-for-rails-track-events-and-visits
Glimmer DSL for SWT 22.214.171.124 ships with a number of changes, such as the new code_text syntax highlighting custom widget, the Glimmer Meta-Sample (The Sample of Samples), and the Hello, Sash Form! Sample. One noteworthy thing to mention about implementing
code_text is that with Glimmer Ruby syntax, it was the shortest Syntax Highlighting implementation of SWT StyledText I have ever seen compared to various resources online.
Learn more about how to enable SSL for Rails development environment in two minutes. read about how we can enable SSL on thin server. https://www.botreetechnologies.com/blog/enable-ssl-for-rails-development-environment-two-minutes
You read that right! Not only can you webify desktop apps in Glimmer, but you can also desktopify web apps with a new Glimmer scaffolding command (added in v126.96.36.199)! https://andymaleh.blogspot.com/2020/10/desktopify-web-apps-with-one-glimmer.html