[#17566] rubychecker - runs checks on a Ruby interpreter — Igal Koshevoy <igal@...>

I've put together a shell script that runs checks on a Ruby interpreter.

14 messages 2008/07/03

[#17615] [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...>

At the moment, ruby-mode.el uses font-lock-keywords as opposed to

22 messages 2008/07/05
[#17657] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Yukihiro Matsumoto <matz@...> 2008/07/08

[#17678] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/09

It was designed to fix the following case:

[#17755] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/13

Here's a third patch that fixes a bug in the second and uses a quicker

[#17772] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/15

One more patch which fixes a few bugs in the the last one.

[#17773] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/15

Hi,

[#17776] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/15

Looks like version 22 doesn't support explicitly numbered regexp groups.

[#17779] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/15

Hi,

[#17783] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/15

Hi,

[#17788] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/15

Alright, here's a version that fixes both the highlighting bug and the

[#17793] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/16

Hi,

[#17644] Features to be included in Ruby 1.9.1 — "Yugui (Yuki Sonoda)" <yugui@...>

Hi, all

27 messages 2008/07/08

[#17674] [Ruby 1.8 - Bug #238] (Open) Ruby doesn't respect the Windows read-only flag — Jim Deville <redmine@...>

Issue #238 has been reported by Jim Deville.

10 messages 2008/07/08

[#17708] [Ruby 1.8 - Bug #252] (Open) Array#sort doesn't respect overridden <=> — Ryan Davis <redmine@...>

Issue #252 has been reported by Ryan Davis.

13 messages 2008/07/09

[#17871] duping the NilClass — "Nasir Khan" <rubylearner@...>

While nil is an object, calling dup on it causes TypeError. This doesnt seem

33 messages 2008/07/20
[#17872] Re: duping the NilClass — Urabe Shyouhei <shyouhei@...> 2008/07/20

Nasir Khan wrote:

[#17873] Re: duping the NilClass — "Meinrad Recheis" <meinrad.recheis@...> 2008/07/20

On Sun, Jul 20, 2008 at 7:55 PM, Urabe Shyouhei <shyouhei@ruby-lang.org>

[#17877] Re: duping the NilClass — Urabe Shyouhei <shyouhei@...> 2008/07/20

Meinrad Recheis wrote:

[#17879] Re: duping the NilClass — Kurt Stephens <ks@...> 2008/07/20

Urabe Shyouhei wrote:

[#17880] Re: duping the NilClass — "Nasir Khan" <rubylearner@...> 2008/07/21

I write a lot of hand crafted dup or clone because I want control as well as

[#17881] Re: duping the NilClass — "David A. Black" <dblack@...> 2008/07/21

Hi --

[#17882] Re: duping the NilClass — Urabe Shyouhei <shyouhei@...> 2008/07/21

+1 to David. A convenient way to do Marshal idiom should be a new

[#17885] Re: duping the NilClass — "Robert Dober" <robert.dober@...> 2008/07/21

On Mon, Jul 21, 2008 at 8:21 AM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:

[#17887] Re: duping the NilClass — "David A. Black" <dblack@...> 2008/07/21

Hi --

[#17889] Re: duping the NilClass — "Robert Dober" <robert.dober@...> 2008/07/21

On Mon, Jul 21, 2008 at 1:02 PM, David A. Black <dblack@rubypal.com> wrote:

[#17883] [Ruby 1.9 - Bug #340] (Open) 1.9/trunk does not work when compiled with llvm-gcc4 2.3 (gcc 4.2.1) — Ollivier Robert <redmine@...>

Issue #340 has been reported by Ollivier Robert.

14 messages 2008/07/21

[#17943] RUBY_ENGINE? — "Vladimir Sizikov" <vsizikov@...>

Hi,

56 messages 2008/07/24
[#17950] Re: RUBY_ENGINE? — Tanaka Akira <akr@...> 2008/07/25

In article <3454c9680807241200xf7cc766qb987905a3987bb78@mail.gmail.com>,

[#17958] Re: RUBY_ENGINE? — "Vladimir Sizikov" <vsizikov@...> 2008/07/25

Hi,

[#17981] Re: RUBY_ENGINE? — Tanaka Akira <akr@...> 2008/07/26

In article <3454c9680807250054i70db563duf44b42d92ba41bfb@mail.gmail.com>,

[ruby-core:17990] Re: RUBY_ENGINE?

From: Brian Ford <brixen@...>
Date: 2008-07-27 06:11:33 UTC
List: ruby-core #17990
On Jul 26, 2:04=A0am, "Luis Lavena" <luislav...@gmail.com> wrote:
> On Sat, Jul 26, 2008 at 5:09 AM, Tanaka Akira <a...@fsij.org> wrote:
> > In article <3454c9680807250054i70db563duf44b42d92ba41...@mail.gmail.com=
>,
> > =A0"Vladimir Sizikov" <vsizi...@gmail.com> writes:
>
> >> 1. RubyGems uses it to invoke #{RUBY_ENGINE}.rb file with
> >> customizations, specific for particular implementation
>
> > I'm not sure what the customizations to be done.
>
> One example is the gem stub files generated by RubyGems that need to
> be changed to reflect the name of the executable for jRuby (jruby.bat)
> at least in Windows.
>
> I've seen and dealt with many regexp that just evaluate /java/ for
> RUBY_PLATFORM and I need to perform customization for it (like using a
> .jar file instead of a C extension).
>
> >> 2. Different implementations have different specifics, like JRuby can
> >> 'require' a JAR file and need different activerecord drivers, etc.
> >> There are also some JRuby-specific libraries that only make sens for
> >> JRuby, and the whole Java Integration layer. So, folks need to figure
> >> out when they run with JRuby and when they not.
>
> > Why don't just try "some feature"?
>
> >...
>
> > is much better becuase it works well with other engines if
> > it provide zlib.
>
> This is for gems or packages that are both compatible (or intend to
> be) with the different implementations. Is not about the rescue of a
> missing feature.
>
> One example is jruby on Windows cannot perform a series of socket
> related functions, while on posix platform it can. So limit your code
> to only RUBY_PLATFORM =3D~ /java/ doesn't work.
>
> So under jRuby there is no way to know the underlying OS because they
> rely on RUBY_PLATFORM to make it looks like java. The same will happen
> with Rubinius when it works on Windows or IronRuby when it build in
> Mono.
>
> Right now, besides query RUBY_PLATFORM, you also need:
>
> defined?(JRUBY_VERSION) or defined?(Rubinius) to deal with specfic
> code for those cases... (dunno about IronRuby).
>
> What about an unified way that doesn't pollute the already complicated
> RUBY_PLATFORM?

RUBY_ENGINE is needed to definitively identify the implementation on
which the code is running. This information needs to be simple and
unambiguous, not tacked onto some other information. When there was a
single implementation, this was not needed, but there are now multiple
implementations.

The RubySpec project needs this information and other code certainly
will. Whether folks use the value of RUBY_ENGINE in conditionals for
requiring code is up to them. They may have a good need to do so.

Also, the name is very clear and descriptive: engine, noun: a thing
that is the agent or instrument of a particular process. RUBY_ENGINE
=3D=3D the thing that makes your Ruby code run.

Cheers,
Brian

In This Thread