[#25272] [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Yui NARUSE <redmine@...>

Feature #2032: Change the license to "GPLv2+ or Ruby's original".

51 messages 2009/09/02
[#25368] [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Kazuhiko Shiozaki <redmine@...> 2009/09/04

Issue #2032 has been updated by Kazuhiko Shiozaki.

[#25461] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Gregory Brown <gregory.t.brown@...> 2009/09/07

On Fri, Sep 4, 2009 at 1:10 PM, Kazuhiko Shiozaki<redmine@ruby-lang.org> wrote:

[#25463] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Yukihiro Matsumoto <matz@...> 2009/09/08

Hi,

[#30610] [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Shyouhei Urabe <redmine@...> 2010/06/06

Issue #2032 has been updated by Shyouhei Urabe.

[#30611] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Yusuke ENDOH <mame@...> 2010/06/06

Hi,

[#30614] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Urabe Shyouhei <shyouhei@...> 2010/06/06

> To avoid enbugging a new bug, we must choose the another solutions.

[#30616] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Yusuke ENDOH <mame@...> 2010/06/06

2010/6/6 Urabe Shyouhei <shyouhei@ruby-lang.org>:

[#30652] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Urabe Shyouhei <shyouhei@...> 2010/06/08

(2010/06/06 20:27), Yusuke ENDOH wrote:

[#25285] [Feature #2033] Move Core Development to Git — Run Paint Run Run <redmine@...>

Feature #2033: Move Core Development to Git

75 messages 2009/09/02
[#25290] [Feature #2033] Move Core Development to Git — Yui NARUSE <redmine@...> 2009/09/02

Issue #2033 has been updated by Yui NARUSE.

[#25297] Re: [Feature #2033] Move Core Development to Git — Jon <jon.forums@...> 2009/09/02

> Some commiter of Ruby live on Windows.

[#25342] Re: [Feature #2033] Move Core Development to Git — Urabe Shyouhei <shyouhei@...> 2009/09/03

Jon wrote:

[#25343] Re: [Feature #2033] Move Core Development to Git — Michal Suchanek <hramrach@...> 2009/09/03

2009/9/4 Urabe Shyouhei <shyouhei@ruby-lang.org>:

[#25345] Re: [Feature #2033] Move Core Development to Git — Urabe Shyouhei <shyouhei@...> 2009/09/03

Michal Suchanek wrote:

[#25299] Re: [Feature #2033] Move Core Development to Git — Eric Hodel <drbrain@...7.net> 2009/09/02

On Sep 2, 2009, at 11:19, Run Paint Run Run wrote:

[#25306] [Feature #2034] Consider the ICU Library for Improving and Expanding Unicode Support — Run Paint Run Run <redmine@...>

Feature #2034: Consider the ICU Library for Improving and Expanding Unicode Support

16 messages 2009/09/03

[#25394] Unmaintained code (Was: Move Core Development to Git) — Eric Hodel <drbrain@...7.net>

On Sep 4, 2009, at 02:16, Urabe Shyouhei wrote:

10 messages 2009/09/05

[#25420] [Bug #2054] Onigurma Isn't Documented — Run Paint Run Run <redmine@...>

Bug #2054: Onigurma Isn't Documented

17 messages 2009/09/05

[#25442] turning off indentation warnings — Aaron Patterson <aaron@...>

Is there a way in 1.9 to turn off only indentation warnings? I like

19 messages 2009/09/06
[#25510] Re: turning off indentation warnings — Nobuyoshi Nakada <nobu@...> 2009/09/10

Hi,

[#25511] [Bug #2079] win32ole's OLEGEN does not create all classes needed when a TLB has more than one class defined — Bruno Antunes <redmine@...>

Bug #2079: win32ole's OLEGEN does not create all classes needed when a TLB has more than one class defined

18 messages 2009/09/10

[#25644] [Bug #2121] mathn/rational destroys Fixnum#/, Fixnum#quo and Bignum#/, Bignum#quo — Charles Nutter <redmine@...>

Bug #2121: mathn/rational destroys Fixnum#/, Fixnum#quo and Bignum#/, Bignum#quo

12 messages 2009/09/19

[#25709] [Bug #2131] f(not x) => syntax error — "James M. Lawrence" <redmine@...>

Bug #2131: f(not x) => syntax error

16 messages 2009/09/22

[#25769] A challenge: Enumerator#next in JRuby — Charles Oliver Nutter <headius@...>

I have a challenge for anyone who wants to discuss, propose

25 messages 2009/09/25
[#25782] Re: A challenge: Enumerator#next in JRuby — Tanaka Akira <akr@...> 2009/09/26

In article <f04d2210909251312q46bd51c0teacc4b0a8c417f0c@mail.gmail.com>,

[#25820] [Feature #2152] Split functionality of Float#inspect and Float#to_s — Roger Pack <redmine@...>

Feature #2152: Split functionality of Float#inspect and Float#to_s

32 messages 2009/09/28

[#25853] [Bug #2160] JSON can't parse input where top-level object is a string — caleb clausen <redmine@...>

Bug #2160: JSON can't parse input where top-level object is a string

11 messages 2009/09/29

[ruby-core:25497] [Bug #2054] Onigurma Isn't Documented

From: Yui NARUSE <redmine@...>
Date: 2009-09-09 10:02:01 UTC
List: ruby-core #25497
Issue #2054 has been updated by Yui NARUSE.


> >> + *  Capture groups can be referred to by name when defined with the
> >> + *  <tt>(?<name>)</tt> construct.
> 
> > Don't mention an alias (?'name'subexp) ?
> 
> It didn't seem worth it. The material is already dense, without describing
> alternative syntax which appears to have little merit of its own.

I don't like (?'name'subexp) too,
but reference is read not only when people write code but when read code.

> >> + *      /£(?<pounds>\d+)\.(?<pence>\d+)/.match("£3.67")
> > Pound Sign (U+00A3) is non-ASCII.
> > Dollar Sign (U+0024) is in ASCII (but Cent Sign is non-ASCII).
> 
> We need to re-think the ASCII restriction. Documenting a Unicode regular
> expression library without being able to use Unicode in the examples is somewhat limiting.
> See below for an alternative.

Some editors still don't support UTF-8 or
some  environmets don't have fonts.

> Changed to:
> 
>   A regexp can be matched against a string when they either share an encoding, or the regexp's encoding
>   is  _US-ASCII_ and the string's encoding is ASCII-compatible.
> 
> I'm not keen on the phrasing, but hopefully it's more accurate.

good.

> >> + *  The <tt>Regexp#fixed_encoding?</tt> predicate indicates whether the regexp
> > Needs encoding modifiers set FIXED_ENCODING.
>
> I don't understand that part.

This means, /a/e equals Regexp.new("a".force_encoding("EUC-JP"), Regexp::FIXEDENCODING).

> Regexp::FIXED_ENCODING is a constant, so how can an encoding option "set" it?
> I think the current text makes clear that a non-ASCII encoding,
> i.e. one set by an encoding option, is "fixed".
> That is, the modifiers change the state to fixed, which the predicate queries.
> I'll play around with

Hm, ok.

> > Don't mention following?
>
> I didn't know I was writing a book. :-) It's already far more comprehensive that O'Reilly's Programming Ruby...

a reference shall be comprehensive :-(

> > * subexp call \g<..>
> 
> This seemed particularly arcane; even Friedl doesn't mention it in his tome. ;-)
> I'll try and come up with an example use.

exapmles are following:

  # match parenthes
  r = /\A(?<paren>\(\g<paren>*\))*\z/
  r =~ "()"       #=> 0
  r =~ "(()())()" #=> 0
  r =~ ")"        #=> nil

  # match json
  r = Regexp.compile(<<'__REGEXP__'strip, Regexp::EXTENDED)
  (?<json> \g<object> | \g<array> ){0}
  (?<begin-array>  \g<ws> \[ \g<ws> ){0}
  (?<begin-object> \g<ws> \{ \g<ws> ){0}
  (?<end-array>    \g<ws> \] \g<ws> ){0}
  (?<end-object>   \g<ws> \} \g<ws> ){0}
  (?<name-separator>  \g<ws> : \g<ws> ){0}
  (?<value-separator> \g<ws> , \g<ws> ){0}
  (?<ws> [\x20\t\n\r]* ){0}
  (?<value>  false | null | true | \g<object> | \g<array> | \g<number> | \g<string> ){0}
  (?<object> \g<begin-object> (?: \g<member> (?: \g<value-separator> \g<member> )* )? \g<end-object> ){0}
  (?<member> \g<string> \g<name-separator> \g<value> ){0}
  (?<array> \g<begin-array> (?: \g<value> (?: \g<value-separator> \g<value> )* )? \g<end-array> ){0}
  (?<number> \-? \g<int> \g<frac>? \g<exp>? ){0}
  (?<exp> [eE] [-+] [0-9]+ ){0}
  (?<frac> \. [0-9]+ ){0}
  (?<int> 0 | [1-9] [0-9]* ){0}
  (?<string> " \g<char>* " ){0}
  (?<char> [^\x00-\x1F"\\] | \\ (?: ["\\\/\b\f\n\r\t] | u [0-9a-fA-F]{4} ) ){0}
  \A\g<json>\z
  __REGEXP__
  r =~ '{"foo":1,"bar":null,"baz":true}' #=> 0

  # match simplified XML
  r = Regexp.compile(<<'__REGEXP__'strip, Regexp::EXTENDED)
  (?<element> \g<stag> \g<content>* \g<etag> ){0}
  (?<stag> < \g<name> \s* > ){0}
  (?<name> [a-zA-Z_:]+ ){0}
  (?<content> [^<&]+ (\g<element> | [^<&]+)* ){0}
  (?<etag> </ \k<name+1> >){0}
  \A\g<element>\z
  __REGEXP__

> > If you can describe about  /(a|b+)*/ , it will be helpful.
> > http://www.ruby-forum.com/topic/70726
> 
> Hmm... Constructing accurate, performant, and optimal regexps is a significant topic...
> I suppose I could add a "Top 10 Pitfalls" callout. 

This problem sometimes comes to ML.
But you can write, "there is a backtracking problem. see Mastering Regular Expression" :-)
http://swtch.com/~rsc/regexp/regexp1.html is also written in detail.

> Given the scope of this tutorial, the character set limitations, the degree to which it's
> bloating re.c, and the way this text obscures the existing API documentation for Regexp,
> how about we move it to its own file? This could, presumably, either be included in re.c
> with RDoc's _include_ option, or, better, live separately from the API documentation yet
> still be accessible from `ri`. `ri Regexp` could display the API documentation and
> mention the existence of this document; `ri regexp` could display the current document.
> I can commit at least the rest of this week to writing some initial content, if necessary.

I'm not familiar to rdoc but this seems good.
But distingish document by case seems dangerous for some case-insensitive FS, e.g. Windows.
Regexp-intro or some different name is good.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2054

----------------------------------------
http://redmine.ruby-lang.org

In This Thread