看板 Ruby 關於我們 聯絡資訊
※ 引述《tonytonyjan (南洋大兜蟲)》之銘言: : → godfat:可是bundler卻去讀mogilefs/client.rb #autorequire failed 12/12 03:52 : 抱歉沒仔細看原 po 的 log : 研究後發現滿奇怪的 :( : 因為有 `require 'mogilefs/client'` 地方只有 `mogilefs.rb`,在 line 87 : 但是 `MogileFS` 也在 `mogilefs.rb` 被定義,而且在 line 6 : 這是什麼巫術@@ 因為那是 bundler 的巫術。bundler 是個很髒的東西。 我有想過寫一個簡單的東西替代 bundler, 不過還沒空弄, 再加上我的 dirty hack 暫時夠我用,動力就沒有很夠了 反正除了 rails 強迫使用外我也不用 bundler https://github.com/carlhuda/bundler/blob/v1.2.3/lib/bundler/runtime.rb#L62-L85 my dirty hack: http://blogger.godfat.org/2012/09/save-myself-from-bundler-3.html -- #!/usr/bin/env ruby [露比] /Programming (Kn|N)ight/ 看板《Ruby》 # if a dog nailed extra legs that http://www.ptt.cc/bbs/Ruby/index.html # walks like an octopus, and Welcome ~Ruby@ptt~ # talks like an octopus, then ◢█◣ http://www.ruby-lang.org/ # we are happy to treat it as http://www.ruby-doc.org/ # if it were an octopus. http://www.rubyforge.org/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.137.165.237
mars90226:很髒是指甚麼意思啊,感覺很常看到,不過不是很清楚 12/12 23:46
godfat:拿上面程式為例,做多餘事讓人以為是mogilefs-client的問題 12/12 23:53
tonytonyjan:找到有趣的東西w http://amplicate.com/hate/bundler 12/13 03:53
godfat:上面的留言都好老就是了 XD 12/13 16:07