A few things have changed under the hood since the release of Bundler 2 last year. In order to take advantage of the new version, you will need to make sure you are using the most recent version. Open your Gemfile.lock and see that the current bundler version stored at the end of the file. … Continue reading Bundler version update in Gemfile.lock
Tag: ruby
Rails ships with an easy way to get some quick code metrics about your application’s code and test coverage. For instance, running bin/rails stats will provide you with some important bits of information about the status and health of your project: +———————-+——–+——–+———+———+—–+——-+ | Name | Lines | LOC | Classes | Methods | M/C | … Continue reading Extend Rails code metrics
Let’s say you’re using Docker for your local development in order to keep your development system nice and clean. Not having to install all needed dependencies on your local machine (like for instance PostgreSQL) and have everything packaged and documented for all developers is one of the advantages containers bring us. But when developing in Rails, … Continue reading How to install ruby pg gem without PostgreSQL locally
If you are anything of a geek, you like to stay up2date about your craft. Nothing better then reading about peoples experiences to improve your own skills and insights. So the easiest way to keep on following someones blog is to add it to your favourite RSS aggregator. Unfortunately, even in 2015, you still find … Continue reading Creating RSS feeds from web pages with Ruby
How do you prevent your application to deteriorate over time? Or even improve your coding skills? That’s a question a lot of developers ask. I like to include some handy tools that help me check the state of an application and code. Since everything is changing so rapidly, it is sometimes hard to keep up with … Continue reading Useful Ruby gems to improve your code quality and skills
Nothing is more annoying then wanting to change web services and not being able to export your data. You would think in this digital day and age that exporting your data would be a default feature. Think again. First thing you can do is check if there is an API you can use. When here … Continue reading Scraping data from the web
Some time ago, I was involved in a project that contained vast number of documents (PDF files). Although the files where still mostly accurate, they contained a lot of links to external resources. Over time, a lot of these links changed, resulting into dead links. If you don’t have a lot of PDF files, you could … Continue reading Finding dead links in PDF files
When developing using Ruby on Rails, you probably already used Rake. Rake is a simple ruby build program. Basically, rake offers somewhat of the same capabilities that make does. Using rails, you probably already used tasks like db:migrate, db:seed, etc In this post, I’ll try to cover the most used features of rake, or at … Continue reading Rake & ruby: some basics to get you started
Every ruby developer will probably use some kind of ruby version manager. As far as I know, it all started with rvm. Rvm has a ton of features, but I never really was fan. Most of the features that are available where not necessary for me. So since I wanted a minimal tool to manage … Continue reading Chruby: ruby version manager
When working on a CRUD based application, starting with the index view, you’ll want to display a collection. But when the collection is empty, you’ll want to let the user know the collection is empty, by showing a message. Most common scenario I have seen so far is the following construction: <% if @collection.length > … Continue reading Rails: display message when collection is empty