~/

rails3_acts_as_paranoid is no longer rails3_acts_as_paranoid, it becomes acts_as_paranoid again!

I'm using rails3_acts_as_paranoid with current project.

gem 'rails3_acts_as_paranoid'

I couldn't update to rails4.0.0.beta1 because of the problem of dependency, so I checked repo of rails3_acts_as_paranoid. then I found this PR, I asked repo owner about backward compatibility, and learned 2 things.

  1. rails3_acts_as_paranoid is no longer rails3_acts_as_paranoid, it becomes acts_as_paranoid.
  2. rails3_acts_as_paranoid (acts_as_paranoid) doesn't support all version of rails. we have to specify the tag acording to version of rails. see: https://github.com/byroot/rails3_acts_as_paranoid#support

If we use rails3_acts_as_paranoid with rails 3.2.*, the Gemfile should be:

gem "acts_as_paranoid", "~>0.4.0"

bundle update で無限ループに入る時のメモ

dependency API が解決できずに無限ループに入ってしまうことがある

https://github.com/carlhuda/bundler/issues/1450

$ DEBUG_RESOLVER=1 bundle update --verbose |& tee bundle.log

こんな感じで実行して無限ループに入ることを確認できる。 で、Gemfile を半分ずつ絞っていって原因を特定できた

今回の場合は、gem 'rspec-rails', '< 2.12.1' という記述があったため、 他の rspec 系が 2.13.0 にあがったため、おかしくなっていたようだ。

github+travis 便利

https://github.com/lostisland/faraday/commit/ac1b537f49bf110e87fe50679d80764367fb2d13

  • README.md に Travis のバッチ貼って誰が気にするの?視覚的にも汚いし、オフラインで README 読むときに意味ないよね?

Being a developer, I prefer not to rely on clicking on web images for important tasks.

  • プログラマとしてぽちぽち Web の UI をクリックしてちゃやばいでしょ?
  • 俺は github+travis 使ってるよ、という↑のやり取りの経緯ででてきた Chrome Extention いれたけどとても便利。