Today I learned
  • Github
  • Linkedin
  • Nomad Life(Travel Blog)
  • About
Sign in Subscribe

gem

A collection of 4 posts
rails

Testing carrierwave file uploads with RSpec and FactoryGirl.

TLDR; In this blog post, I am gonna focus only on testing carrierwave. So if you are looking for instruction on installing/setting up carrierwave in your project I would suggest you looking at the carrierwave's wiki over here. So let's assume we have everything setup,
25 Apr 2016 2 min read
ruby

Visualise your Gemfile dependencies

If you ever wanted to visualise the gem dependencies of in your ruby/rails app, then bundler is there for rescue. Type in the following from your terminal: bundle viz Viz generates a PNG file of the current Gemfile as a dependency graph. Viz requires the ruby-graphviz gem (and its
03 Jan 2016
ruby

Problem installing puma on OS X with openssl

When installing puma on OSX 10.11 El Capitan, if you are facing issues compiling mini_ssl.c fatal error: 'openssl/bio.h' file not found. all you need to do is to specify --with-opt-dir You can make this applicable for all your Gemfiles: bundle config build.puma
17 Nov 2015
til

How do I make --no-ri --no-rdoc the default for gem install?

If you are deploying to a server, or you do not want to wait around for rdoc and ri to install for each gem, you can disable them for gem installs and updates. Just add the following line to your ~/.gemrc or /etc/gemrc: gem: --no-rdoc --no-ri or gem: --no-document
13 Jul 2015
Page 1 of 1
Today I learned © 2025
Powered by Ghost