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.
Ruby 2.2.3 Module Basics : Part 3
Ruby 2.2.3 Module basics such as autoload, const_defined? and const_get is covered in this video
factbook.sql World Factbook Country Profiles in SQL (Incl. factbook.db Download)
Hello, I’ve updated the factbook gem, that is, v1.1. What’s news? The script now lets you build an SQL database from the official web pages (country profiles) published by the CIA. To make it easy to get started I’ve added (yet another) new project, that is, /factbook.sql that offers an SQL schema for the World Factbook and includes a pre-built single-file SQLite database, that is, factbook.db for download. Note, using the factbook scripts you can build yourself an up-to-date copy. All code and data public domain. Cheers.
Performance/Load testing with Jmeter/Rails
Performance and load testing with Rails and jmeter from Apache. How to set it up and a min-framework to run your benchmarks easily read more
Mac as IDE
Are you using this editor and that version control app? Think bigger. Instead of jumping between apps or forcing yourself to an IDE use your Mac as a system where apps work together for the greater good. http://firedev.com/posts/2015/mac-as-ide/
Ruby's $_ variable
If you’ve ever used Ruby to process text from the command-line, you’ve used — whether you knew it or not — the $_
variable. Knowing where this global is used can help you write shorter and sweeter one-liners that make processing text a breeze; this article explains how.
RailsDB Standalone & runsql to execute SQL directly from command line
https://github.com/igorkasyanchuk/rails_db [more inside]
Class Hierarchies and Factories in an Object-Oriented language
Ruby is a truly object-oriented language, so our thinking shouldn’t be bound by legacy, class-oriented patterns. This article investigates solutions without complex or inadequate hierarchies and factories, using Modules and Method Injection instead.
attache - Open Source File Upload/Download Microservice
This presentation covers the rationale behind creating an open source microservice for doing file (image) uploads and downloads. Essentially, attache is almost like a self-hosted imgix clone and it is a great replacement for paperclip, carrierwave, dragonfly and even refile. Check out the repo and the demo app.
Rails Response and Assets Compression on Heroku
Shrinking your web response and assets is critical in making your app speedy fast on Heroku. In this blog post, I looked at a few methods to achieve web response and assets compression on Heroku.
Dasherize - CI and GitHub Dashboard for your projects
Dasherize is a beautiful material-based dashboard for your projects which provides you with an overview of open Pull Requests and Issues, and statuses of your CI, all on a single web page. Currently supports GitHub, Travis, CodeShip and CircleCI. Read the blog for some technical details.
deppbot - Automated Dependency Updates
deppbot ensures that your Ruby apps are always up-to-date and saves you time by doing so. Based on your configured schedule, deppbot will run bundle update on your Ruby apps and send the update as a Pull Request to GitHub. You just have to review and merge the informative Pull Request if all’s good and wait for the next one from deppbot. Check out the service or read the blog post to find out more.
Release logs for Redmine 3
Redmine release logs plugin: added support for Redmine 3.x version.
Upcoming Ruby Conferences - November 2015 Edition - Live Version Try $ rubyconf
Hello, For you convenience the upcoming Ruby Conferences as listed with the whatson gem and the included rubyconf command line tool (for a live version try $ rubyconf): [more inside]
Best way to learn Rails & Ruby
Learning something from scratch is almost always an arduous affair – you simply have no idea as to where to start, or not to start, to kick things off. You don’t have to worry about finding the best resources, sorting out the bad ones, and figuring out what to learn next. It’s all here. Just follow it, step by step. https://github.com/sagarmred/rails-learning
Building RSpec with Fix
Some Fix gems in hand, let’s build an RSpec clone that can handle some basic features. And maybe replace the original in your next project, who knows? [more inside]
Ruby 2.2.3 Module Basics : Part 2
Ruby 2.2.3 Module methods such as autoload, autoload?, module_eval, class_exec, class_variable_defined?, class_variable_get, class_variable_set, class_variables and const_defined? is covered in this module basics video
Ruby 2.2.3 Module Basics : Part 1
Ruby 2.2.3 Module methods such as constants, nesting, dynamically adding methods to a module, prepend and ancestors is covered in module basics video
Creating custom Heroku buildpack for Webpack and Ruby on Rails integration
In this blogpost I’d like to show you how to integrate Rails and modern JavaScript tooling together on a popular Heroku platform.
aruba 0.10.0 released
I happy to announce the release 0.10.0 of aruba. It’s a an extension for popular TDD and BDD frameworks like “Cucumber”, “RSpec” and “Minitest” to make testing of commandline applications meaningful, easy and fun. To see a diff of changes for v0.10.0 look here. [more inside]
The last one command to setup production server for Rails
There are hundreds of articles about preparing fresh VDS for first RoR app deploy. So much attention for so petty and routine task… So I released a gem with a one command that simply does all that stuff for you without asking any questions: [more inside]
One simple thing to become a better developer
You might pride yourself on your technical knowledge, but sometimes it’s the tiny details that make all the difference: http://theartandscienceofruby.com/2015/10/16/one-simple-thing-you-can-do-to-make-yourself-an-amazing-software-developer/
Jekyll (and Static Site Builder & Design) User Groups Around the World
Hello, I’ve started the Vienna.html user group in - surprise, surprise - Vienna, Austria. First meetup Tue, Nov/24th. It’s as far as I can tell Europe’s 1st Jekyll meetup / fan club / user group. If you know any other Jekyll groups, let us know. Cheers. PS: In the United States there’s the Static Web Tech Group in San Francisco, California and the {static is} The New Dynamic Group in New York City, New York. Any others? Let us know.
Experimenting with canary releases
We’ve been experimenting with canary releases to deploy our Ruby applications, as an alternative to blue/green deployments, so we’ve written an article on our experiences: https://www.madetech.com/blog/canary-releases
Ship "docker" images to remote isolated Islands in your Infrastructure
It’s quite easy to pull images via docker down to your local developer machine. But sometimes you need to get images onto servers which have no access to the World Wide Web (WWW) nor to an internal docker registry. In this article I show you how to use docker save and docker load to get the required images onto those servers.