#author("2018-12-11T21:28:29+09:00","default:wikiwriter","wikiwriter") &tag(Gemfile); *目次 [#o4841464] #contents *関連ページ [#a5da8bdf] -[[Bundler]] *参考情報 [#u28f94ac] *Tips [#d9c985fc] **いろいろな指定方法 [#ld5a1ea8] -[[Ruby - Gemfileでのgem指定色々 - Qiita:http://qiita.com/yaotti/items/510779877e515a1155db]] **バージョンの指定方法 [#r1cbb417] ,'2.1.1', バージョンを完全に固定 ,'>= 2.3',2.3以上のものを指定 ,'<2.3',2.3より古いもの ,'~> 2.0.3',2.0.x:バージョン >= 2.0.3 and バージョン < 2.1 ,'~> 2.1',2.x:バージョン >= 2.1 and バージョン < 3.0 **バージョン指定 [#sda31ad1] -[[gem の '~> 1.2' みたいなバージョン指定を ['>=', '<'] 表記に展開する:https://qiita.com/kyanny/items/a177ab74618436505841]] [#ac94f335] **OSごとに使い分け [#p94d71c0] -MacでインストールするgemとLinuxでインストールするgemが違うことがある。以下のリンクが参考になりそう。 -[[ruby - does using ":platforms =>" in your gemfile work? - Stack Overflow:http://stackoverflow.com/questions/8421321/does-using-platforms-in-your-gemfile-work]] -[[Rails - Gemfile.lockをLinuxとMacで分ける - Qiita:http://qiita.com/moonsubaru/items/e55a1aa7febedf216502]]