RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Telegram::Bot 0.9 is out

Integrate Telegram bot into your Rails app or build standalone one. Now your bots will be more stable, because you can write tests faster with built-in rspec matchers. And don’t worry about network errors: with async: true API requests will be made with worker within job queue and your messages or Botan.io statistics will definitely get delivered! See repo

Present Your 360° Panorama Images With JavaScript

More and more often you can see a cool 360° panorama. Today, I will play with two libraries that present images as 360° panorama views. I will test two libraries, first is Panorama Viewer by Pete R. which is the simplest I could find, and Three.js which is most complex one I could find. Both are free and easy to start with. Also, let’s do it in Rails! http://bamboolab.eu/blog/present-your-360-panorama-images-with-java-script

How to write an MVC-framework in Ruby

What if we wrote a web application similar to a typical rails-application? I.e. it will have MVC, routing, migrations, some configs, all in all, everything like it’s supposed to be. But all this will be a very-very simplified version of our favorite framework Rails. There will be no generators and interactive console, beautiful layouts and messing with assets. - https://mkdev.me/en/posts/how-to-write-an-mvc-framework-in-ruby

Quick Rails Performance Wins

I did a blog post with some input from colleagues about our top 10 quickest performance wins we’ve seen in the wild. The list isn’t exhaustive, just meant to be quick, but it still has some good reminders for things that definitely can affect performance. Hope you like it! [more inside]

manpages - man pages for ruby

I love man pages. And I am a bit disappointed that most command line tools written in ruby don’t offer one. Maybe it’s because of the poor support of rubygems for it. To help fix this, I developed the manpages gem. It scans for man pages in your gem during the installation phase and links them to a folder that the man command can find. Please give it a try.

factbook gem updated - scripts for the world factbook - 250+ country profiles

Hello, I’ve updated the factbook gem that lets you read (public domain) counrtry profile pages (from the CIA World Factbook) and turns the HTML into structured data (e.g. JSON or a nested ruby hash). Build yourself an Almanac in 30 lines of ruby, for example, or find out what countries have the most oil reserves or most cell phones or internet hosts and so on. Happy exploring the world w/ ruby. Cheers.

Hello, Minima! Theme - Get Started w/ GitHub Pages in 60 Seconds (Update V2)

Hello, I’ve updated the Hello, Minima! getting started in 60 seconds guide - using the latest and greatest Jekyll 3.3 version w/ Minima 2.0 (now running live on GitHub Pages). What’s news? Now just two steps to get started (add a _config.yml and an index.md). That’s it. No more step 3 required (that is, importing a style sheet) it will now get included automatically. See the Henry’s Hello, Minima! repo for the article and live demo. Cheers.

Using private attr_accessors is wrong

I’m working on an existing Rails application and there’s one pattern I see repeating often that I’m puzzled with. It’s especially common in service objects. Here’s couple of reasons you should not use private attr_accessors.

While I agree it’s in general bad to use a private attr_accessor (because of th…
I use “protected” attr_accessors Very useful for catching careless typo
Instance variables are not very cool to use because a simple typo in it’s name …

Rubycoders is online

Rubycoders is a place where ruby programmers can find job announcements. The app is in beta testing, I need feedback! Free feel to register and explore the main features, then, if you want, you can drop me a line.

Added a job posting. One thing I noticed was after creating a job it took me…
Loading older posts