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.
- rails3_acts_as_paranoid is no longer rails3_acts_as_paranoid, it becomes acts_as_paranoid.
- 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"
cheat sheet to send pull request quickly
$ git clone [url]
$ git co -b feature
$ hub fork
$ pr
# function for zsh function pr { git push -u $GITHUB_USER `git rev-parse --abbrev-ref HEAD` url=`hub pull-request` open $url }
- confirm if current repo is already forked.
$ git remote banyan origin
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 いれたけどとても便利。
znc password 変更する
- znc --makepass で generate して、config に上書き
- znc の server の後ろのパスワードも変更 (Server = hogehoge.co.jp +6668 foobar)
- irc client のパスワードも変更
- znc 再起動
spec_helper_lite.rb
rails 環境に依存しない時は spec_helper_lite.rb みたいなのを使うといいと聞いた。
Object#instance_eval
irb(main):008:0> template = %{ say "It works!" } => " say \"It works!\" " irb(main):009:0> template.instance_eval "def read; self; end" => nil irb(main):010:0> template.read => " say \"It works!\" "