gems on davidchua https://dchua.com/tags/gems/ Recent content in gems on davidchua Hugo -- gohugo.io en-us Tue, 04 Nov 2014 00:00:00 +0000 How to Move your Rubygems from one Ruby version to another in RVM https://dchua.com/posts/2014-11-04-moving-your-rubygems-from-one-ruby-version-to-another-in-rvm/ Tue, 04 Nov 2014 00:00:00 +0000 https://dchua.com/posts/2014-11-04-moving-your-rubygems-from-one-ruby-version-to-another-in-rvm/ Today’s post is going to be a pretty short one. So you know how sometimes when requirements change and your entire project have to change (either to upgrade or to downgrade) from one Ruby version to another, you don’t want to have to reinstall and setup your gems all over again? Here’s a quick little tip to quickly move your gems from one version to another. Assuming that you’re currently using Ruby 2. Whenever - Easy Cronnable Rake Tasks! With Capistrano! https://dchua.com/posts/2013-07-17-whenever-easy-cronnable-rake-tasks-with-capistrano/ Wed, 17 Jul 2013 00:00:00 +0000 https://dchua.com/posts/2013-07-17-whenever-easy-cronnable-rake-tasks-with-capistrano/ We all have this problem before. Attempting to write a crontab that runs a rake task is almost a painful endeavor. Especially if you’re running a ruby version manager like RVM. Luckily, this crontab DSL gem, “Whenever”, created by Javan, helps make things so much easier. To get started, make sure you have whenever in your Gemfile: #Gemfile gem 'whenever' Then, run wheneverize: /home/myapp$ wheneverize . This will create your config/scheduler.