作者godfat (godfat 真常)
看板Ruby
標題Re: [問題] mogilefs-client 在 ror 3.2.9
時間Wed Dec 12 22:50:53 2012
※ 引述《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://webptt.com/m.aspx?n=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
1F:→ mars90226:很髒是指甚麼意思啊,感覺很常看到,不過不是很清楚 12/12 23:46
2F:→ godfat:拿上面程式為例,做多餘事讓人以為是mogilefs-client的問題 12/12 23:53
4F:→ godfat:上面的留言都好老就是了 XD 12/13 16:07