[#402707] Require a ruby project to automatically include the modules in classes defined in the same .rb file — Marc Heiler <lists@...>

Hi.

11 messages 2013/01/03
[#402738] Re: Require a ruby project to automatically include the modules in classes defined in the same .rb file — Josh Cheek <josh.cheek@...> 2013/01/04

On Wed, Jan 2, 2013 at 9:58 PM, Marc Heiler <lists@ruby-forum.com> wrote:

[#402764] Best practice for &&, ||, and, or — sto.mar@...

Hi group,

33 messages 2013/01/05
[#402786] Re: Best practice for &&, ||, and, or — "Jan E." <lists@...> 2013/01/05

Hi,

[#402812] newbie question what am I doing wrong? — "Lee V." <lists@...>

I wrote this simple program but it won't work. What am I doing wrong?

13 messages 2013/01/07

[#402856] Ruby on Android - usb/serialport — Scott Macri <lists@...>

Hello,

12 messages 2013/01/07

[#402880] One liner for filenames — Peter Bailey <lists@...>

Hello,

18 messages 2013/01/08

[#402890] Pure Ruby Jobs — Brandon Weaver <keystonelemur@...>

One thing has been bugging me lately. I've been looking around for jobs in

15 messages 2013/01/09

[#402958] how to open pop up window table? — Arup Rakshit <lists@...>

There is `text label` on a webpage, and I am trying to click on that to

13 messages 2013/01/10

[#403015] How Ruby environment varibles work in realtime program? — Arup Rakshit <lists@...>

Hi,

11 messages 2013/01/11

[#403051] Array methods creating confusions as per their functionalities — Arup Rakshit <lists@...>

Can any one just elaborate how the below works in Ruby, by definition

10 messages 2013/01/12

[#403062] How to take information from a text file and add them to an array — Adam Kennedy <lists@...>

Hi Im trying to take a list of usernames from a text file then add them

13 messages 2013/01/12

[#403083] Can anyone tell me the computational logic of Unpack() method of string? — Arup Rakshit <lists@...>

Hi,

17 messages 2013/01/12

[#403116] Garbage Collection and Fibers — Na Na <lists@...>

Hi,

20 messages 2013/01/13

[#403127] Conversion of Ruby-code to c/c++ code :: URGENT Plz help — "Nilesh S." <lists@...>

Hi.. I urgent require to convert the following ruby-code to c/c++ code.

11 messages 2013/01/14

[#403139] Installation query — Ron Herrema <lists@...>

I'm new to Ruby and am enjoying it, but when I installed, I attempted to

19 messages 2013/01/14

[#403205] Escaped backslashes in input strings - newbie question — John Sampson <jrs.idx@...>

I am trying to find a way of removing escaped characters in input

13 messages 2013/01/16
[#403208] Re: Escaped backslashes in input strings - newbie question — Alexander McMillan <alexandermcmillan@...> 2013/01/16

[#403244] Adding file directory automatically — Adam Kennedy <lists@...>

I have a bit of code that will add an amount to an array and then print

23 messages 2013/01/17

[#403326] question about string concatenation — David Richards <lists@...>

I'm puzzled about why the following happens (I'm using v1.9.3):

11 messages 2013/01/20

[#403377] Getting error "getaddrinfo: No such host is known. (Socke tError)" with mechanize gem — Arup Rakshit <lists@...>

I tried the below code:

9 messages 2013/01/22
[#403379] Re: Getting error "getaddrinfo: No such host is known. (Socke tError)" with mechanize gem — Robert Klemme <shortcutter@...> 2013/01/22

On Tue, Jan 22, 2013 at 3:52 PM, Arup Rakshit <lists@ruby-forum.com> wrote:

[#403423] Reading and looping through Excel — cristian cristian <lists@...>

Hi all!

16 messages 2013/01/24

[#403456] Can we attach documents to excel columns using Ruby? — Arup Rakshit <lists@...>

Suppose I do have some folders in a directory. Now say directory name

12 messages 2013/01/24

[#403540] Please explain in English — jooma lavata <lists@...>

I'm learning Ruby and I'm reading some expression that I saw on the

20 messages 2013/01/28

[#403553] Learning Ruby and proving your knowledge — Nathaniel Sokoll-Ward <lists@...>

Hey all,

19 messages 2013/01/28

[#403581] newbie question.. — Zebulon Bowles <lists@...>

So I'm taking a class on Ruby and it seems as though the teacher has

12 messages 2013/01/29

[#403607] (Errno::EINVAL) occurs during the File::rename() execution — Arup Rakshit <lists@...>

Hi I wrote the below code to rename the file names. The logic is during

12 messages 2013/01/30

[#403642] How to copy the directory files only to another directory? — Arup Rakshit <lists@...>

Hi,

18 messages 2013/01/30

[#403656] Does Ruby has any default database with it? — Arup Rakshit <lists@...>

I will do webpage scraping using Ruby and required Gems. But looking for

28 messages 2013/01/30
[#403657] Re: Does Ruby has any default database with it? — Brandon Weaver <keystonelemur@...> 2013/01/30

Normally sqlite is the go to being that it's the default of rails. Check

[#403667] Re: Does Ruby has any default database with it? — Justin Collins <justincollins@...> 2013/01/30

On 01/30/2013 10:21 AM, Arup Rakshit wrote:

[#403671] Re: Does Ruby has any default database with it? — Tony Arcieri <tony.arcieri@...> 2013/01/30

On Wed, Jan 30, 2013 at 12:07 PM, Justin Collins <justincollins@ucla.edu>wrote:

[#403674] Re: Does Ruby has any default database with it? — Arup Rakshit <lists@...> 2013/01/30

Tony Arcieri wrote in post #1094436:

[#403678] Re: Does Ruby has any default database with it? — Justin Collins <justincollins@...> 2013/01/30

On 01/30/2013 12:27 PM, Arup Rakshit wrote:

[#403735] Re: Does Ruby has any default database with it? — tamouse mailing lists <tamouse.lists@...> 2013/02/01

I think the best course for a new project is to start simple, go with

[#403698] Select "columns" from multidimensional array? — Joel Pearson <lists@...>

There's probably a simpler answer to this than the ways I've come up

51 messages 2013/01/31

[#403718] Ruby Project Ideas to get someone hired... — Colby Callahan <colby.callahan@...>

I have started learning Ruby this past week and have down the basics of

15 messages 2013/01/31

[ANN] ruby 2.0.0-rc1 released

From: Yusuke Endoh <mame@...>
Date: 2013-01-07 17:16:50 UTC
List: ruby-talk #402852
Japanese follows; 日本語はあとで

Hello all --

We are pleased to announce the release of Ruby 2.0.0-rc1, the first release
candidate of Ruby 2.0.0.

* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.tar.bz2
  SIZE:   10822768 bytes
  MD5:    24cebdda11e01ff4889ac983cd7dc02c
  SHA256: 4033ddadd0b44eecfcb7686231ebd109ee6f22bf09797a7e15882b9df0b1ee81

* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.tar.gz
  SIZE:   13621408 bytes
  MD5:    7d587dde85e0edf7a2e4f6783e6c0e2e
  SHA256: f9ca3e5b539ccf6bca6875d448a1aec34e73f7c173af180e58500c6f47096916

* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.zip
  SIZE:   15117193 bytes
  MD5:    6ff5475553946c4dba1f68e9ce42e606
  SHA256: 76e7ed7e95057a77bd80f557a60be6a46eb0e17fa7815aadca26d475f7a8f72a

## New features in 2.0.0

  - Keyword arguments
  - Enumerable#lazy
  - Module#prepend
  - #to_h: Convention for conversion to Hash
  - %i: a literal for symbol array
  - Updated regexp engine: Onigmo (a fork of Oniguruma)
  - Enumerator#size and Range#size were introduced [#6636]
  - DTrace support
  - TracePoint
  - Optimized IO performance on Windows
  - NativeClient support
  - Documentation improvement
  - Enhanced asynchronous interrupt handling
  - Launch-time memory usage tuning parameters
  - Refinements [experimental]

.. and more improvements.  See NEWS for details.

  - http://svn.ruby-lang.org/repos/ruby/tags/v2_0_0_rc1/NEWS

Here are some introductory articles by third parties:

  - https://speakerdeck.com/a_matsuda/ruby-2-dot-0-on-rails
  - http://globaldev.co.uk/2012/11/ruby-2-0-0-preview-features/
  - http://www.infoq.com/news/2012/11/ruby-20-preview1
  - http://timelessrepo.com/refinements-in-ruby (Refinements)
  - http://el.jibun.atmarkit.co.jp/rails/2012/11/ruby-20-8256.html (in Japanese)
  - https://speakerdeck.com/nagachika/rubyist-enumeratorlazy
(Enumerator::Lazy, in Japanese)

(If you volunteer to provide additional articles, we may cite or refer to them
in the next release announcement.)

## Notes

### Incompatibility

There are three notable incompatibilities we know of:

  - The default encoding for ruby scripts is now UTF-8 [#6679].  Some people
    report that it affects existing programs, such as a some benchmark programs
    that have become very slow [ruby-dev:46547].
    The spec may change for the official release.

  - iconv was removed, which had already been deprecated when M17N was
introduced
    in ruby 1.9.  Use String#encode, etc. instead.

  - There is ABI breakage [ruby-core:48984].  We think that normal users
    can/should just reinstall extension libraries.
    You should be aware: "DO NOT COPY .so OR .bundle FILES FROM 1.9".

There are some comparatively small incompatibilities.  [ruby-core:49119]
Please report any other incompatibility you notice.

FYI: We are creating upgrade notes, but some parts are already outdated.

  - http://bugs.ruby-lang.org/projects/ruby/wiki/200UpgradeNotesDraft

### Status of Refinements

2.0.0 will include refinements as an "experimental feature" because we could
not agree on its detailed spec.
Note that the behavior may change in future versions of Ruby.

### Support level of Each Platform

We plan to decide "supported level list" depending upon whether 2.0.0-rc1
builds/works or not on each platform.
Please try it on your favorite platform(s), and report if it works all right
or not!

### Schedule

There are still minor known issues.  We are now engaged in fixing them.
We will release 2.0.0-rc2 in early February, and 2.0.0-p0 at 24th Feb.
(the 20th anniversary of Ruby).

Thanks!


こんにちは。
Ruby 2.0.0-rc1 をリリースします。Ruby 2.0.0 の最初の release candidate です。


* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.tar.bz2
  SIZE:   10822768 bytes
  MD5:    24cebdda11e01ff4889ac983cd7dc02c
  SHA256: 4033ddadd0b44eecfcb7686231ebd109ee6f22bf09797a7e15882b9df0b1ee81

* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.tar.gz
  SIZE:   13621408 bytes
  MD5:    7d587dde85e0edf7a2e4f6783e6c0e2e
  SHA256: f9ca3e5b539ccf6bca6875d448a1aec34e73f7c173af180e58500c6f47096916

* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.zip
  SIZE:   15117193 bytes
  MD5:    6ff5475553946c4dba1f68e9ce42e606
  SHA256: 76e7ed7e95057a77bd80f557a60be6a46eb0e17fa7815aadca26d475f7a8f72a

## 2.0.0 の新機能

  - キーワード引数
  - Enumerable#lazy
  - Module#prepend
  - #to_h: Hash への変換メソッド
  - %i: シンボルの配列のリテラル
  - 正規表現エンジンを Onigmo に変更(鬼雲: 鬼車の派生版)
  - Enumerator#size が導入された [#6636]
  - DTrace サポート
  - TracePoint
  - Windows での IO の性能改善
  - NativeClient サポート
  - ドキュメントの改善
  - 非同期割り込み制御機能の改良
  - 起動時のメモリ使用量設定機能
  - Refinements [実験的機能]

その他改善多数。詳しくは NEWS をご覧あれ。

  - http://svn.ruby-lang.org/repos/ruby/tags/v2_0_0_rc1/NEWS

サードパーティによる紹介記事もあります。

  - https://speakerdeck.com/a_matsuda/ruby-2-dot-0-on-rails
  - http://globaldev.co.uk/2012/11/ruby-2-0-0-preview-features/
  - http://www.infoq.com/news/2012/11/ruby-20-preview1
  - http://timelessrepo.com/refinements-in-ruby (Refinements)
  - http://el.jibun.atmarkit.co.jp/rails/2012/11/ruby-20-8256.html (in Japanese)
  - https://speakerdeck.com/nagachika/rubyist-enumeratorlazy
(Enumerator::Lazy, in Japanese)

(他にも記事を書いて頂けると、今後のリリースアナウンスで引用や参照をさせて
 頂くかも)

## 注意点

### 非互換について

特筆すべき非互換を 3 つ把握しています。

  - デフォルトのスクリプトエンコーディングが UTF-8 になりました [#6679] 。
    これは既存のプログラムに影響を与えることが報告されています。例えば、
    ベンチマークプログラムが非常に遅くなるなど [ruby-dev:46547] 。
    公式リリースまでに仕様が変化するかもしれません。

  - iconv が削除されました。元々 M17N が導入された 1.9 の時点で非推奨のもの
    でした。String#encode などを使って書き換えてください。

  - ABI 互換性がなくなっています [ruby-core:48984] 。通常のユーザは、拡張
    ライブラリを再インストールするだけでよいはすです。「1.9 の .so, .bundle
    ファイルをコピーするな」とだけ気をつけてください。

他にも比較的小さな非互換があります。[ruby-core:49119]
さらに非互換に気づいたらぜひ報告してください。

ご参考: 以下にアップグレードガイドを作成中ですが、すでに一部内容が古いです。

  - http://bugs.ruby-lang.org/projects/ruby/wiki/200UpgradeNotesDraft

### refinements の扱い

2.0.0 では refinement を「実験的機能」として提供します。仕様の詳細について
合意に至らなかったためです。
挙動が Ruby の将来のバージョンで変化する可能性があることに注意してください。

### プラットフォームのサポートレベル

各プラットフォームのサポート状況は、2.0.0-rc1 の動作実績を元に決める予定です。
是非あなたのプラットフォームで動作させてみて、問題なく動くかどうかを報告して
ください。

### 今後の予定

まだ小さな既知の問題が残っています。現在修正に取り組んでいます。
2 月上旬に 2.0.0-rc2 を、2 月 24 日 (Ruby 20 周年の日) に 2.0.0-p0 をリリース
する予定です。

-- 
Yusuke Endoh <mame@tsg.ne.jp>

In This Thread

Prev Next