Hatena::Grouprubyist

hiro-uedaの日記 このページをアンテナに追加 RSSフィード

2009-12-05

月末の日付 18:21  月末の日付 - hiro-uedaの日記 を含むブックマーク はてなブックマーク -  月末の日付 - hiro-uedaの日記  月末の日付 - hiro-uedaの日記 のブックマークコメント

某所で使用しているスクリプトがエラーを吐くので調べたら、月末の日付の計算のところでエラーになってました。ググってみたら、こんな感じで OK だそうです。

require 'date'

today = Date.today
last_day = Date.new(today.year, today.month, -1)

ややこしい式で計算しようとしていて結局ダメでしたが、まさか -1 で良いなんて orz。いやはや、さすが ruby

トラックバック - http://rubyist.g.hatena.ne.jp/hiro-ueda/20091205

2009-11-29

Rails 2.3.5 リリース 10:42  Rails 2.3.5 リリース - hiro-uedaの日記 を含むブックマーク はてなブックマーク -  Rails 2.3.5 リリース - hiro-uedaの日記  Rails 2.3.5 リリース - hiro-uedaの日記 のブックマークコメント

gem update したら落ちてきたので知ったのですが、Riding Rails にも未だ出てないですね。

ただ、Riding Rails: What’s New in Edge Rails を見ると興味深い記載があります。

XSS escaping is now enabled by default. This means that if you want to explicitly output HTML to your views, you'll probably have to mark it as html_safe! before sending it through.

Riding Rails: What’s New in Edge Rails

Commit 9415935902f120a9bac0bfce7129725a0db38ed3 to rails’s rails - GitHub を見ると Erubis の文字が! これって Erubis そのものが取り込まれた... というより、部分的に ERB に Erubis の機能を取り込んだ、ってことですかね?

最近 Rails ネタを追いかけてないので良く分かりません。他の方の記事に期待...

Riding Rails: Ruby on Rails 2.3.5 Released に出ましたね。

トラックバック - http://rubyist.g.hatena.ne.jp/hiro-ueda/20091129

2009-11-19

Phusion Passenger 2.2.7 released 09:45  Phusion Passenger 2.2.7 released - hiro-uedaの日記 を含むブックマーク はてなブックマーク -  Phusion Passenger 2.2.7 released - hiro-uedaの日記  Phusion Passenger 2.2.7 released - hiro-uedaの日記 のブックマークコメント

何だかチョッとミスってたそうで、2.2.7 がリリースされてます。

Sorry, I made a mistake while releasing 2.2.6. In the past few days we’ve closed about 30 issues in our issue tracker, but in the mids of it I forgot to remove a single line of debugging code in passenger-install-apache2-module, causing it not to compile the Apache module. I’ve just released 2.2.7 which fixes this problem, and it should be indexed by RubyForge any time now. Our apologies again for the inconvenience.

Phusion Passenger 2.2.7 released « Phusion Corporate Blog

ということで、apache 使いの方は 2.2.7 を使いましょう。

トラックバック - http://rubyist.g.hatena.ne.jp/hiro-ueda/20091119

2009-11-18

Phusion Passenger 2.2.6 released 00:15  Phusion Passenger 2.2.6 released - hiro-uedaの日記 を含むブックマーク はてなブックマーク -  Phusion Passenger 2.2.6 released - hiro-uedaの日記  Phusion Passenger 2.2.6 released - hiro-uedaの日記 のブックマークコメント

というメールが来たので見たら、「詳細は Web で!」(意訳)だとさ (^^;。

  • Fixed compatibility with /tmp cleaners such as tmpwatch
  • Autodetection now gives more priority to Rack than to Rails
  • Increased default socket backlog
  • Apache fixes
  • Nginx fixes and changes
  • Various other fixes
Phusion Passenger 2.2.6 released « Phusion Corporate Blog

概要はこんな感じ。バグフィックスリリースなので適当にバージョンアップするタイミングを図れば良さそうですね。おっと、重要なコメントが。

This will be one of the last 2.2.x releases. Next in the pipeline is 3.0. We believe that all the upcoming changes will be well worth the version number bump. But more about this in a later blog post.

詳細は今後のブログにご期待ください! ってことですね。

トラックバック - http://rubyist.g.hatena.ne.jp/hiro-ueda/20091118

2009-07-10

RHEL3 環境だと passenger 2.1.2 までしか build できない... 11:14  RHEL3 環境だと passenger 2.1.2 までしか build できない... - hiro-uedaの日記 を含むブックマーク はてなブックマーク -  RHEL3 環境だと passenger 2.1.2 までしか build できない... - hiro-uedaの日記  RHEL3 環境だと passenger 2.1.2 までしか build できない... - hiro-uedaの日記 のブックマークコメント

 そのまんまですが、検証環境の passenger が古かったので 最新の 2.2.4 に上げて passenger-install-apache2-module したらエラーが出ます。「仕方ないなぁ...」と 2.2.3 にしてもダメ。

 「えー....?」と思いつつ 2.1.2 までバージョンダウンしたら build できました。RHEL3 使ってるのが悪いんでしょうけど、社内で使用している評価用サーバだし、今年でリプレースだから 2.1.2 で我慢するしかないですね。特に困ってないし --;)。

トラックバック - http://rubyist.g.hatena.ne.jp/hiro-ueda/20090710