[#22637] [Bug #1240] parser bug in 1.8.7 and 1.9.1p0 — Thomer Gil <redmine@...>
Bug #1240: parser bug in 1.8.7 and 1.9.1p0
Issue #1240 has been updated by Yusuke Endoh.
[#22640] [Bug #1241] Segfault with Nokogiri 1.2.1 on Ruby 1.9.1p0 — Raven Ex <redmine@...>
Bug #1241: Segfault with Nokogiri 1.2.1 on Ruby 1.9.1p0
[#22646] [Bug #1243] 1 is prime — Yuki Sonoda <redmine@...>
Bug #1243: 1 is prime
Issue #1243 has been updated by Dave B.
[#22684] [Bug #1247] YAML::load converts some dates into strings — Matthew Wilson <redmine@...>
Bug #1247: YAML::load converts some dates into strings
Issue #1247 has been updated by Yusuke Endoh.
On Thu, Apr 08, 2010 at 10:22:57PM +0900, Yusuke Endoh wrote:
On 4/8/10, Aaron Patterson <aaron@tenderlovemaking.com> wrote:
Hi,
[#22685] 1.9 conditional wait has no timeout support — Nasir Khan <rubylearner@...>
In ruby 1.8 we could use -
[#22687] [Bug #1248] e.exception(e) returns self — Tomas Matousek <redmine@...>
Bug #1248: e.exception(e) returns self
Hi,
Well the reason is that arg is supposed to be a message, right? A message can be an arbitrary object. So if I pass e as a message, why it doesn't become a value of the message property?
Hi,
[#22715] [Bug #1251] gsub problem — Alexander Pettelkau <redmine@...>
Bug #1251: gsub problem
[#22725] [Bug #1253] Fix MSVC Build Issues — Charlie Savage <redmine@...>
Bug #1253: Fix MSVC Build Issues
[#22727] Moving ruby 1.9.1 forward on windows — Charlie Savage <cfis@...>
Hi everyone,
On Sat, Mar 7, 2009 at 7:01 PM, Charlie Savage <cfis@savagexi.com> wrote:
> This works until you start linking third-party upstream source that
On Sun, Mar 8, 2009 at 3:45 PM, Charlie Savage <cfis@savagexi.com> wrote:
Hi Austin,
On Sun, Mar 8, 2009 at 4:26 PM, Charlie Savage <cfis@savagexi.com> wrote:
[#22731] [Bug #1255] += for large strings egrigiously slow — James Lee <redmine@...>
Bug #1255: += for large strings egrigiously slow
[#22736] Ruby 1.9.1 and tail recursion optimization — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>
Moin, moin!
Wolfgang N疆asi-Donner schrieb:
Hi,
>
On Sun, Mar 8, 2009 at 16:57, James Coglan <jcoglan@googlemail.com> wrote:
2009/3/8 Nikolai Weibull <now@bitwi.se>
James Coglan wrote:
daz schrieb:
Wolfgang N叩dasi-Donner wrote:
Charles Oliver Nutter schrieb:
[#22748] [Feature #1256] Add constant TAILRECURSION to let a program recognize if tail recursion optimization is implemented — Wolfgang Nádasi-Donner <redmine@...>
Feature #1256: Add constant TAILRECURSION to let a program recognize if tail recursion optimization is implemented
Hi,
[#22803] Relegate 1.8.6 to Engine Yard, part II — Urabe Shyouhei <shyouhei@...>
Hello and sorry for my being slow for this issue. It's OK now for me to pass
Ryan Davis wrote:
Urabe Shyouhei wrote:
Hi,
Nobuyoshi Nakada wrote:
Urabe Shyouhei wrote:
[#22812] [Bug #1261] cross-compiling Ruby extensions using mkmf doesn't fully respect DESTDIR — Daniel Golle <redmine@...>
Bug #1261: cross-compiling Ruby extensions using mkmf doesn't fully respect DESTDIR
[#22859] [Bug #1277] Incorrect passing of file handle between runtime libraries in OpenSSL extension — Charlie Savage <redmine@...>
Bug #1277: Incorrect passing of file handle between runtime libraries in OpenSSL extension
[#22892] Ruby Time — valodzka <valodzka@...>
Got tired of current ruby Time limitation, I have written this -
In article <9e19ed87-9d12-4f98-af3c-bd49a71b0bd4@p11g2000yqe.googlegroups.com>,
valodzka wrote:
> I bet you'll get tired of updating that database. There's a major difference
valodzka wrote:
In article <b5d0a489-4613-4b63-9664-8627358b2dd9@g19g2000yql.googlegroups.com>,
> I found a discussion in PHP.
In article <deab6882-12ac-4aa1-a901-681795ed863b@z9g2000yqi.googlegroups.com>,
[#22893] [Feature #1291] O_CLOEXEC flag missing for Kernel::open — David Martin <redmine@...>
Feature #1291: O_CLOEXEC flag missing for Kernel::open
Issue #1291 has been updated by Motohiro KOSAKI.
[#22894] [Bug #1292] 1.8 compile time error with mingw gcc 4.3 — Roger Pack <redmine@...>
Bug #1292: 1.8 compile time error with mingw gcc 4.3
Hi,
[#22916] [Bug #1296] [trunk/22981] 64-bit issues on trunk in ext/zlib — Ollivier Robert <redmine@...>
Bug #1296: [trunk/22981] 64-bit issues on trunk in ext/zlib
[#22927] [Bug #1301] Poor RegExp Matching Performance — Andreas Grau <redmine@...>
Bug #1301: Poor RegExp Matching Performance
[#22935] 1.8.6 rdoc breaks when rdoc'ing 1.9 — James Britt <james.britt@...>
I'm running ruby 1.8.6 (2009-03-10 patchlevel 362) [i686-linux] and
[#22937] Ruby not to be a part of Google's 2009 Summer of Code? — Rocky Bernstein <rocky.bernstein@...>
The list of participating organizations for Google's 2009 Summer of Code has
[#22978] Ruby 1.9 bloc parameters — Vincent Isambart <vincent.isambart@...>
Hi,
[#22979] Ruby 1.9 bloc parameters — Vincent Isambart <vincent.isambart@...>
Hi,
[#22990] [Bug #1309] dl tests — Charlie Savage <redmine@...>
Bug #1309: dl tests
[#23026] [Bug #1317] Creating a range with strings — Ian Bailey <redmine@...>
Bug #1317: Creating a range with strings
[#23050] [Bug #1322] define_method scope bug — "coderrr ." <redmine@...>
Bug #1322: define_method scope bug
[#23051] [Bug #1323] Sockets broken on windows — Charlie Savage <redmine@...>
Bug #1323: Sockets broken on windows
[#23053] [Bug #1325] fiber tests kill windows — Charlie Savage <redmine@...>
Bug #1325: fiber tests kill windows
[#23054] [Bug #1326] Failing unit tests on windows — Charlie Savage <redmine@...>
Bug #1326: Failing unit tests on windows
[#23060] [Bug #1327] CSV unit test failures on windows — Charlie Savage <redmine@...>
Bug #1327: CSV unit test failures on windows
[#23063] [Bug #1332] Reading file on Windows is 500x slower then with previous Ruby version — Damjan Rems <redmine@...>
Bug #1332: Reading file on Windows is 500x slower then with previous Ruby version
Issue #1332 has been updated by Roger Pack.
Hello,
[#23075] [Bug #1336] Change in string representation of Floats — Brian Ford <redmine@...>
Bug #1336: Change in string representation of Floats
Issue #1336 has been updated by Roger Pack.
On Fri, Apr 3, 2009 at 11:49 PM, Roger Pack <redmine@ruby-lang.org> wrote:
Issue #1336 has been updated by Roger Pack.
Hi,
Hi,
Hi,
Gary Wright wrote:
[#23082] [Bug #1341] pthread_cond_timedwait failing in 1.9.1-p0 thread tests — Graham Agnew <redmine@...>
Bug #1341: pthread_cond_timedwait failing in 1.9.1-p0 thread tests
[ruby-core:22783] Tool to extract non-RIPPER content from parse.y
* parse.y used to be so easy to read ;)
Could this, or something like this, go into <source>/sample/
where exyacc.rb is distributed?
It's not really a RIPPER tool because it does nothing to help that.
It may look ugly but the FSM I wrote is 3 times the line count. :)
I wouldn't want anyone else to have to waste time writing this.
Use as you wish - no need to ask.
daz
#--------------------------- unRIPPER.rb
#
# Strip #IF/ELSE/ENDIF RIPPER code (as #undef RIPPER)
# and all RIPPER pre-processing blocks from parse.y
#
# Written in 'perlish' with inspiration from:
# <RubySource>/sample/exyacc.rb
#
# daz - 2009/03/09 (12:00) - Free of copyright
#
require 'optparse'
### ==========
Ecc = "\x10" # Comment End Code (temp)
Hcc = "\x11" # Comment Control Code (replaces '#' within C-comment)
IFcc = "\x12" # #IF(*) Control Code
IF_RE =
/^(?!\n)\s*#\s*#{IFcc}(N?DEF)?\s+([^\n]*?)\n^([^#{IFcc}]*?\n)^(?!\n)\s*#\s*END#{IFcc}[^\n]*?\n/mi
# RIPPER pre-processing regex (for '/*%%%*/' and '/*%c%*/' blocks)
# ( ref: <RubyDir>/ext/ripper/tools/preproc.rb )
RIP_RE = %r{^\s*?/\*%(%|c)%\*/.*?\r?\n(.*?)^\s*/\*%(c?).*?%\*/.*?\r?\n}m
# [ ( 1 ) ] ^(_2_)^ [ (3)] [ ]
### ==========
def run(input, output)
y_source = nil
File.open(input) do |fin|
y_source = fin.read
end
# Make all '*/' a single character to simplify next regex
y_source.gsub!(%r{\*/}, Ecc)
#
# Temporarily substitute '#'-within-comment by Hcc code
# to prevent disruption of real #IF blocks.
y_source.gsub!(%r</\*[^#{Ecc}]*?#{Ecc}>) do |cm|
cm.gsub!(/(^\s*?)#(\s*IF|ELIF|ELSE|ENDIF)/i, "\\1#{Hcc}\\2")
cm.chop! << '*/' # restore '*/' (from Ecc control code)
end
# Temporarily replace all 'IF's and END'IF's with a control code
# so that nested blocks are correctly grouped.
y_source.gsub!(/^(\s*)#(\s*)IF(N?DEF)?(\s)/i, "\\1#\\2#{IFcc}\\3\\4")
y_source.gsub!(/^(\s*)#(\s*END)IF(\s)/i, "\\1#\\2#{IFcc}\\3")
# Process #IF/#ELSE/#ENDIF blocks
rep = true
rep = y_source.gsub!(IF_RE) do |if_blk|
m0, df, dfid, ieblk = [$&, ($1 && $1.downcase == 'def'), $2, $3]
if true and dfid == 'RIPPER'
iblk, eblk = ieblk.split(/(?!\n)^\s*#\s*ELSE(?>.*?\n)/i)
(df ? eblk : iblk) #IF def : ndef RIPPER
else
m0.gsub!("#{IFcc}", 'if') # copy entire non-RIPPER IF/ENDIF
end
end while rep
# Restore all '#'-within-comment
y_source.gsub!("#{Hcc}", '/*?*/')
## Remove RIPPER pre-processing directives
y_source.gsub!(RIP_RE) do
m0, m1, m2, m3 = [$&, $1, $2, $3]
if m1 == 'c'
if m3 != 'c' or m2 !~ /\A\s*\z/
puts '~~'*30, m0, ' ~'*30
p [m1, m2, m3], m0
puts '^^'*30
raise '? FIXME ?'
end
m2 = ''
end
m2
end
yield y_source if block_given?
if output
File.open(output, 'w') do |fout|
fout.write y_source
end
else
STDOUT.write y_source
end
end
output = nil
parser = OptionParser.new
parser.banner = "Usage: #{File.basename($0)} [--output=PATH] <parse.y>"
parser.on('--output=PATH', 'The output file - defaults to STDOUT') do |path|
output = path.gsub("\\", '/')
end
parser.on('--help', 'Prints this message and quits.') do
puts parser.help
exit true
end
begin
parser.parse!
rescue OptionParser::ParseError => err
STDERR.puts err.message
STDERR.puts parser.help
exit false
end
unless ARGV.size == 1
p ARGV
abort "Wrong number of arguments (#{ARGV.size} for 1)"
end
input = ARGV[0].gsub("\\", '/')
out_name = output || 'STDOUT'
STDERR.puts 'Input : ' << input
STDERR.puts 'Output: ' << out_name
raise '^ ? Oops ? ^' if output == input
run(input, output) do |y_source|
# --- Any custom processing, here ---
STDERR.puts 'Writing output file ' << out_name
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^
end
#--------------------------- END