{"id":1815,"date":"2013-10-26T22:50:18","date_gmt":"2013-10-27T02:50:18","guid":{"rendered":"http:\/\/www.rexfeng.com\/blog\/?p=1815"},"modified":"2013-10-26T22:50:18","modified_gmt":"2013-10-27T02:50:18","slug":"ruby-gems-tip-check-your-version","status":"publish","type":"post","link":"https:\/\/www.rexfeng.com\/blog\/2013\/10\/ruby-gems-tip-check-your-version\/","title":{"rendered":"Ruby Gems Tip: Check Your Version"},"content":{"rendered":"<p>Quick ruby gems tip:<\/p>\n<p>If you are having issues with a gem (and it seems like the issue has been resolved in the github repo), double check your gem version.<\/p>\n<p>Even though I had the latest version of a gem by having [cci]gem &#8216;leaflet-rails'[\/cci] in my Gemfile, the <a href=\"https:\/\/github.com\/axyjo\/leaflet-rails\/pull\/10\">latest version wasn&#8217;t bumped up<\/a> at\u00a0<a href=\"http:\/\/rubygems.org\/\">http:\/\/rubygems.org\/<\/a>\u00a0<em>(Note: Nothing against leaflet-rails, which is awesome. They&#8217;re simply used as a recent, real-life example. )<\/em><\/p>\n<p>You can make sure you&#8217;re using the latest version of a gem (as it appears on github) by specifying the repo &amp; commit hash:<\/p>\n<p>[cc]gem &#8216;leaflet-rails&#8217;, git: &#8216;git@github.com:axyjo\/leaflet-rails.git&#8217;, ref: &#8216;0f50faaa35d41e8ba24c73c97d265e061b159d81&#8242;[\/cc]<\/p>\n<p>This will lock the specific commit in place in your Gemfile.lock<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick ruby gems tip: If you are having issues with a gem (and it seems like the issue has been resolved in the github repo), double check your gem version. Even though I had the latest version of a gem by having [cci]gem &#8216;leaflet-rails'[\/cci] in my Gemfile, the latest version wasn&#8217;t bumped up at\u00a0http:\/\/rubygems.org\/\u00a0(Note: Nothing [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1029],"tags":[1090,1088,1087,338,1030,1038,1089,332],"class_list":["post-1815","post","type-post","status-publish","format-standard","hentry","category-programming","tag-commit","tag-gemfile","tag-gems","tag-git","tag-github","tag-hash","tag-lock","tag-ruby"],"_links":{"self":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/1815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/comments?post=1815"}],"version-history":[{"count":3,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/1815\/revisions"}],"predecessor-version":[{"id":1818,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/1815\/revisions\/1818"}],"wp:attachment":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/media?parent=1815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/categories?post=1815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/tags?post=1815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}