2013 Fukuoka Ruby Award Competition—Entries to be judged by Matz Dear Ruby Enthusiasts, The Government of Fukuoka, Japan, together with "Matz" Matsumoto, would like to invite you to enter the 2013 Fukuoka Ruby Competition. If you have developed Ruby programs within the past 12 months,...
2012 Fukuoka Ruby Award Competition with Matz - Grand Prize, 1,000,000JPY! Dear Ruby Enthusiasts, The Government of Fukuoka, Japan together with the creator of Ruby, "Matz" Matsumoto would like to invite you to enter the following Ruby competitions. If you have developed an interestin...
Content available in English , French , Japanese , Korean , Polish , Spanish , Portuguese , Simplified Chinese , Traditional Chinese , Bahasa Indonesia , German , Italian , Czech , Bulgarian and Turkish . このサイトはRubyとRadiant CMS によって構築されています。 また、コンテンツはRubyコミュニティによって管理されています。 質問やコメントは w...
Ruby 1.9.3-p327 がリリースされました。 このリリースには、脆弱性対応を含む以下の修正が取り込まれています。 ruby 1.9 におけるハッシュ飽和攻撃による DoS 脆弱性への対応 (CVE-2012-5371) その他多数のバグ修正 詳しくは、対応するチケット および ChangeLog を確認して下さい。 ダウンロード 以下の URL から本リリースをダウンロードできます。 <URL:ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.bz2> SIZE: 9975835 bytes...
Content available in English , French , Japanese , Korean , Polish , Spanish , Portuguese , Simplified Chinese , Traditional Chinese , Bahasa Indonesia , German , Italian , Czech , Bulgarian and Turkish . このサイトはRubyとRadiant CMS によって構築されています。 また、コンテンツはRubyコミュニティによって管理されています。 質問やコメントは w...
Ruby 1.9.3-p327 is released. This release includes some security fixes, and many other bug fixes. Hash-flooding DoS vulnerability for ruby 1.9 many other bug fixes. See tickets and ChangeLog for details. Download <URL:ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.bz2> SIZE:...
Hash-flooding DoS attack reported for the Hash function ruby 1.9 series were using. This vulnerability is different from CVS-2011-4815 for ruby 1.8.7. All ruby 1.9 users are recommended to upgrade to ruby-1.9.3 patchlevel 327 to get this security fix. Impact Carefully crafted sequence...
p File.exists?("foo") #=> false open("foo\0bar", "w") { |f| f.puts "hai" } p File.exists?("foo") #=> true p File.exists?("foo\0bar") #=> raises ArgumentError
Ruby 1.9.3-p286 がリリースされました。 このリリースには、脆弱性対応を含む以下の修正が取り込まれてい ます。 Exception#to_s 等による $SAFE 機構をバイパス可能な脆弱性の対応 (CVE-2012-4464, CVE-2012-4466) 不当な NUL 文字挿入によって意図しないファイルが生成されうる脆弱性の対応 その他多数のバグ修正 詳しくは、対応するチケット および ChangeLog を確認して下さい。 ダウンロード 以下の URL から本リリースをダウンロードできます。 <URL:ftp://ftp.ruby-lang....
Unintentional file creation caused by inserting a illegal NUL character A vulnerability was found that file creation routines can create unintended files by strategically inserting NUL(s) in file paths. Details Ruby can handle arbitrary binary patterns as Strings, including NUL chars....
Ruby 1.9.3-p286 is released. This release includes some security fixes, and other many bug fixes. $SAFE escaping vulnerability about Exception#to_s / NameError#to_s (CVE-2012-4464, CVE-2012-4466) Unintentional file creation caused by inserting a illegal NUL character other many bug fi...
inf = 1.0/0 p inf p inf.infinite? => Infinity 1 inf = -1.0/0 p inf p inf.infinite? => -Infinity -1
Ruby 1.8.7-p248 dan Ruby 1.9.1-p376 diluncurkan Ruby versi 1.8.7-p248 dan Ruby 1.9.1-p376 telah diluncurkan. Ada berbagai bugs yang dibenahi dalam rilis tersebut. Informasi lebih lanjut: Pengumuman rilis Ruby 1.8.7-p248 Pengumuman rilis Ruby 1.9.1-p376 Anda dipersilakan mengunduh Ruby...
requireは$SAFE = 0で実行される Level 1以上では起動時に以下の違いがある 環境変数 RUBYLIB を $: に加えない カレントディレクトリを $: に加えない 環境変数 RUBYOPT を処理しない 以下のスイッチを使用できない -s -S -e -r -i -I -x (スクリプトがsetgid, setuidされている時も同様) 標準入力からのプログラム読み込みを行わない (スクリプトがsetgid, setuidされている時も同様) setuid, setgid されたスクリプトは $SAFE = 1 以上で実行される。 Procは...
Instance variables are hidden away inside the object. They’re not terribly hidden, you see them whenever you inspect the object, and there are other ways of accessing them, but Ruby uses the good object-oriented approach of keeping data sort-of hidden away.
Sortie de la version 1.8.7-p370 de Ruby Comme nous vous l'avions expliqué précédemment, nous mettons à votre disposition une nouvelle version de Ruby 1.8.7 qui ne comporte que des corrections de bugs. Ruby 1.8.7 est sorti le 1er juin 2008. Cette version célèbre son quatrième anniversa...
CレベルのポインタをRubyオブジェクトとして見せるためのラッパー。 Cポインタと、mark関数、free関数から作る。Cを使ってRubyに機能 を追加しようとする人はぜひこのクラスの使い方をマスターする必 要がある。逆にいうとそういう予定のない人には用事がないクラス でもある。 defined? いろいろなもの(式)が本当に定義されているかどうか調べてくれる 演算子。定義されていなければnil 、定義されてい ればその式の種別を示す文字列を返す。defined? は メソッドのようにみえるがRubyの文法に組み込まれた演算子で、引 数の評価を行わない。よって d...
作成した拡張ライブラリを $archdir にインストールします。カレン トディレクトリにディレクトリ lib があればその配下の ruby スクリプト (.rb ファイル)をディレクトリ階層ごと $libdir にインストールし ます。 独立したライブラリとしてコンパイルされた場合、拡張ライブラリは $sitearchdir に、 ruby スクリプトは $sitelibdir にインストールされます。
Was ist gerade passiert? Haben wir etwa gerade das kürzeste “Hallo, Welt!”-Programm der Welt geschrieben? Nun, nicht direkt: Mit der zweiten Zeile teilt uns IRB lediglich das Ergebnis des letzten ausgewerteten Ausdrucks mit. Wenn wir “Hallo, Welt!” auf den Bildschirm ausgeben wollen, ...
Now is a fantastic time to follow Ruby’s development, with Ruby 2.0 development underway. With the increased attention Ruby has received in the past few years, there’s a growing need for good talent to help enhance Ruby and document its parts. So, where do you start? The topics relate...
SVNレポジトリ RubyのソースコードはSVNレポジトリに保存されており、ViewVC経由で参照できます: <URL:http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?root=ruby> また、Anonymous SVNも利用可能です: trunkの場合: $ svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby 1.8の場合: $ svn co http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8 ruby その他...
説明文の中でのみ使われる(Ruby言語の要素ではない)。クラスのインスタンスメソッドであることを簡単に表示するための表記法です。(クラスメソッドは「Range.new」のように「.」でつなぐ)
Wenn du zum ersten Mal Ruby-Code siehst, wird er dich wahrscheinlich an andere Programmiersprachen erinnern, die du benutzt hast. Das ist Absicht. Der größte Teil der Syntax ist (unter anderem) Perl-, Python- und Java-Programmierern vertraut. Wenn du diese Sprachen also schon mal benu...
Java is mature. It’s tested. And it’s fast (contrary to what the anti-Java crowd may still claim). It’s also quite verbose. Going from Java to Ruby, expect your code size to shrink down considerably. You can also expect it to take less time to knock together quick prototypes. Similari...
An interactive tutorial that lets you try out Ruby right in your browser. This 15-minute tutorial is aimed at beginners who want to get a feeling of the language. Ruby Koans The Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby langua...
配列を生成します。size を指定したときにはその大きさの配列を 生成し nil で初期化します。第二引数 val も指定したとき には nil の代わりにそのオブジェクトを全要素にセットします。 (要素毎に val が複製されるわけではないことに注意してください。 全要素が同じオブジェクト val を参照しますtrap::Array )。 ruby 1.7 feature : 二番目の形式では引数に指定した配列を複製し て返します。 p Array.new([1,2,3]) # => [1,2,3] 三番目の形式では、ブロックの評価結果で値を設定します。ブロック...
在这里可以下载到适合您的最新的 Ruby 版本,当前稳定的版本是 1.9.3 。下载前请先阅读 Ruby 开源许可 。 Ruby 源代码 如果您欲使之与您的平台更为兼容或者需要专一设置您的环境,那么从源代码安装是最好的解决方案。如果有预先做好的 packages 需要安装到您的平台上,这也是一个好的方法。 Ruby 1.9.3-p0 (md5: 8e2fef56185cfbaf29d0c8329fc77c05) 稳定版 (推荐 ) 稳定版快照 这里的 tar’ed 和 gzip’ed 文件是最新稳定的 CVS 。它应该比上次发布的版本更稳定。 开发版快照 这里的 ...
As we posted earlier , we provide you a normal bugfix-only relrease of 1.8.7 now. Ruby 1.8.7 was released on June 1st, 2008. This release is to celebrate its fourth birthday. Thank you all. Downloads ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p370.tar.gz ftp://ftp.ruby-lang.org/p...
一直以来,Ruby 在中国都没有一个靠谱的社区,如今,Ruby China Group 出现了,Ruby China Group 是一个非营利组织,它旨在为中国的 Ruby 和 Rails 爱好者提供一个自由,开放的交流平台。 如果你: 爱 Ruby,爱 Rails 爱互联网,爱 Web 开发,爱最新最潮的技术 爱学习,爱沟通,也爱传播 我们不管你是谁,只要你喜欢 Ruby,喜欢 Rails 欢迎加入 Ruby & Rails 的中国社区! Ruby 中国社区: Ruby China 因为 Ruby China 社区是用 Rails 开发,所以... 如果你精通R...
이 문서는 20분 정도면 따라해볼 수 있는 간단한 루비 튜토리얼입니다. 이 튜토리얼을 따라하기 위해서는 컴퓨터에 루비가 설치되어 있어야 합니다. (아직 루비가 설치되어 있지 않다면, 이곳 에서 다운로드 받아 설치하기 바랍니다.)