Activity
From 08/06/2012 to 08/12/2012
08/12/2012
-
12:04 PM Bug #5832 (Closed): 意図しないブロック渡しが行われる
- This issue was solved with changeset r36685.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm.c (invoke_block_from_c): fix unintentional block passing.
... -
05:53 AM Bug #5670: Emacs ruby-mode syntax highlighting issue
- The above bug has some updates: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6286
-
04:04 AM Feature #4085: Refinements and nested methods
- trans (Thomas Sawyer) wrote:
> =begin
> ...
Yes, except you need to use `using` and not `include` in `module MyApp`. -
03:12 AM Feature #4085: Refinements and nested methods
- =begin
One question I have is how this would work with something like Facets, including its ability to cherry pick methods.
So lets say we have `facets/object/foo` and `facets/object/bar`.
# facets/object/foo.rb
module Facets... -
03:10 AM Revision a6321085 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:04 AM Revision 9564e9bd (git): * vm.c (invoke_block_from_c): fix unintentional block passing.
- [ruby-dev:45071] [Bug #5832]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/11/2012
-
11:55 PM Feature #6847: Hash#extract
- Ruby Facets has Hash#slice as well.
http://rdoc.info:8080/github/rubyworks/facets/master/Hash#slice-instance_method
+1 for its addition of Hash.
-
06:42 PM Feature #6847: Hash#extract
- claytrump (Clay Trump) wrote:
> Isn't that like the method slice in ActiveSupport?
It's definitely like extract! in ActiveSupport, just non-destructive. I still think this is useful enough to be in core though. I needed it repeatedly... -
11:48 PM Feature #6857: bigdecimal/math BigMath.E/BigMath.exp R. P. Feynman inspired optimization
- * algorithms ;)
-
11:46 PM Feature #6857 (Assigned): bigdecimal/math BigMath.E/BigMath.exp R. P. Feynman inspired optimization
- The algorythms to calculate E and exp programmed in BigMath module are the very straightforward interpretation of the series 1 + x + x^2/2! +
x^3/3! + ....
Therefore they are slow.
Try it yourself:
require 'bigdecimal/math... -
09:18 PM Bug #6830: test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- usa (Usaku NAKAMURA) wrote:
> On my Windows box, OpenSSL::Config::DEFAULT_CONFIG_FILE returns the right path.
> ...
Test is incorrect, it should check if default file exist and skip if doesn't.
On windows if you change location open... -
01:32 PM Bug #6830 (Feedback): test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- > On my Windows box, OpenSSL::Config::DEFAULT_CONFIG_FILE returns the right path.
Which path do your OpenSSL return? I'm ok that only Mac and MinGW skip this test.
-
08:23 PM Bug #6829: Failure using Win32ole (happens in 1.8.7 and 1.9
- Thank you for your reporting of the result and more information.
Could you try the following script using Ruby 1.9?
tlib = WIN32OLE_TYPELIB.new("(The folder of SMUI.TLIB)\SMUI.TLIB")
(or tlib = WIN32OLE_TYPELIB.new("(The... -
10:31 AM Bug #6829: Failure using Win32ole (happens in 1.8.7 and 1.9
- Thanks for looking into this.
Here is what I get.
irb(main):005:0> method = internet_postage.ole_method("PrintPostageEx")
RuntimeError: failed to GetTypeInfo
HRESULT error code:0x80029c4a
Error loading type library/DLL... -
06:57 PM Feature #6693: Don't warn for unused variables starting with _
- It this really necessary to treat the variable name `_` exceptionally at the interpreter's level? Why not to use the same rule for all variables, and for unused variables introduce a special placeholder, for example `-` not followed by ...
- 03:45 PM Revision 00468f21 (git): * 2012-08-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:45 PM Revision 99556813 (git): * benchmark/driver.rb: fix typos.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:18 AM Bug #6851 (Feedback): Result of File.stat("c:/...") is different from 1.9.3
- =begin
h.shirosaki (Hiroshi Shirosaki) wrote:
> The behavior is same (not raises exception) as before r36668.
> ...
I can confirm File.stat('C:/...') did not raised exception even before Hiroshi's change.
C:\Users\Luis>ruby -v -e ... -
08:05 AM Bug #6854 (Closed): ruby-mode.el has radical changes in `ruby-deep-indent-paren' logic
- The following commits make a non-backward compatible change in how `ruby-deep-indent-paren' works:
https://github.com/ruby/ruby/commit/85df40e9ab4559cd4ddde3f106ab56c76a808cc8
https://github.com/ruby/ruby/commit/6b0dc7fd81b25bc666815... - 08:02 AM Revision 50d85014 (git): * 2012-08-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:02 AM Revision 66a40ecc (git): remove trailing spaces
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:20 AM Feature #6852: [].transpose should behave specially
- marcandre (Marc-Andre Lafortune) wrote:
> Oups, I was not thinking straight. [] corresponds to a 0x0 matrix (i.e. Matrix[] or Matrix.empty(0,0)). It is its own transpose.
Then it is not possible to express in the same way a 3 x 0 matri... -
02:29 AM Feature #6852: [].transpose should behave specially
- Hi,
> boris_stitnicky (Boris Stitnicky) wrote:
> ...
Oups, I was not thinking straight. [] corresponds to a 0x0 matrix (i.e. Matrix[] or Matrix.empty(0,0)). It is its own transpose.
So the current behavior is correct.
What coul... -
01:57 AM Feature #6852: [].transpose should behave specially
- Hi,
alexeymuranov (Alexey Muranov) wrote:
> I think it can be agreed that all of the following represent the same "empty matrix": `[]`, `[[]]`, `[[], [], []]`. Otherwise they all would need to be treated exceptionally (how to expres... -
05:17 AM Feature #6373: public #self
- Why no answer for: "Why not just public #self"? Why add YAMS?
(YAM = Yet Another Method)
08/10/2012
-
11:54 PM Bug #5832: 意図しないブロック渡しが行われる
- レビューありがとうございました。
対応しておきます。 -
11:53 PM Feature #6373: public #self - On Fri, Aug 10, 2012 at 4:25 PM, matz (Yukihiro Matsumoto)
<m...@ruby-lang.org> wrote:
> `__id__` returns `object_id` number, identity here is supposed to return itself.
> I agree with introducing method to return self, but not fu... -
04:47 PM Feature #6373: public #self
- boris_stitnicky (Boris Stitnicky) wrote:
> matz (Yukihiro Matsumoto) wrote:
> ...
ID as an identifier or a piece of identification and Id as the *identity function* are two different meanings, as far as i understand. Also it does not ... -
02:22 PM Feature #6373: public #self - matz (Yukihiro Matsumoto) wrote:
> `__id__` returns `object_id` number, identity here is supposed to return itself.
> ...
I did some thinking, and there is hardly anything better than '`identity`'.
'`identity_function`' would be hyper... -
11:35 PM Bug #6839 (Feedback): 1.9.3p194 [BUG] Segmentation fault
- Could you try with recent version?
-
09:16 PM Feature #6852: [].transpose should behave specially
- I think it can be agreed that all of the following represent the same "empty matrix": `[]`, `[[]]`, `[[], [], []]`. Otherwise they all would need to be treated exceptionally (how to express the transposition of each of them?). After al...
-
08:36 PM Feature #6852 (Rejected): [].transpose should behave specially - ```ruby
p = [1, 2, 3]
q = [4, 5, 6]
[p, q].transpose
# => [[1, 4], [2, 5], [3, 6]]
```
As expected, 2 x 3 vector was converted into 3 x 2.
```ruby
[p].transpose
# => [[1], [2], [3]]
```
As expected, 1 x 3 => 3 x 1.
```rub... -
08:56 PM Bug #6851: Result of File.stat("c:/...") is different from 1.9.3
- The behavior is same (not raises exception) as before r36668.
C:\>ruby -ve "p File.stat('C:/...')"
ruby 2.0.0dev (2012-08-08 trunk 36657) [i386-mswin32_100]
#<File::Stat dev=0x2, ino=0, mode=040755, nlink=1, uid=0, gid=0, rdev=0x2... -
03:35 PM Bug #6851 (Assigned): Result of File.stat("c:/...") is different from 1.9.3
- It's bug.
-
03:22 PM Bug #6851 (Closed): Result of File.stat("c:/...") is different from 1.9.3
- What is the correct result of File.stat("c:/...") on Windows?
File#stat for path like "c:/..." succeeds on trunk 36676.
C:\>ruby -ve 'p File.stat("c:/...")'
ruby 2.0.0dev (2012-08-10 trunk 36676) [i386-mswin32_100]
#<File::Stat d... -
04:23 PM Feature #6763: Introduce Flonum technique to speedup floating computation on th 64bit environment
- 2012/7/25 ko1 (Koichi Sasada) <redmine@ruby-lang.org>:
>
>> How do you implement object_id for non integer immediate values?
>
> Good point. It will be considered.
>
> Akr-san proposed that object id of Flonum object shoul... -
03:55 PM Feature #6763: Introduce Flonum technique to speedup floating computation on th 64bit environment
- I attached my patch.
Before (32bit CPU):
3.times{
p ObjectSpace._id2ref(p (0.1+0.2).object_id)
}
#=>
20932740
0.30000000000000004
20932680
0.30000000000000004
20932630
0.30000000000000004
After (64bi... -
11:11 AM Bug #6848 (Feedback): bundle install fails
- It seems because openssl bundled with Mac OS X.
Ruby can't work with Mac bundled OpenSSL
http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/ -
02:27 AM Bug #6848 (Rejected): bundle install fails
- After installing ruby using rvm, on an OSX 10.6, bundle install fails.
This is my ruby:
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]
This is how I get the error:
$ rails new abc
gives a long out... -
11:01 AM Bug #6850 (Assigned): It's not recommended to escape ' to '
-
08:32 AM Bug #6850 (Closed): It's not recommended to escape ' to '
- OWASP doesn't recommend it https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#RULE_.231_-_HTML_Escape_Before_Inserting_Untrusted_Data_into_HTML_Element_Content
and ' is not a valid in HTML4 http://www.w3.o... -
10:53 AM Revision ccf911a0 (git): Refix r36678: switch with zlib and check content-encoding.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:51 AM Bug #6830: test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- On my Windows box, OpenSSL::Config::DEFAULT_CONFIG_FILE returns the right path.
So, this problem is not platform dependent but user's environment dependent.
Therefore, I can't agree r36666. -
09:23 AM Bug #5437 (Rejected): Using fibers leads to huge memory leak
- =begin
Your test does not illustrate any leak and is likely not capable of demonstrating a leak in a diagnosable way.
You seem to have some misconceptions about how malloc() and free() work and how ruby's GC works.
Finalizers are ... -
05:25 AM Revision 89c88eb5 (git): Suppress warnings: Net::HTTPResponse#header is obsolete
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:25 AM Revision 7391ae23 (git): Run automatic deflate decoding only if it has zlib.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:54 AM Bug #6849 (Closed): Psych.load_file throws TypeError for empty file
- When parsing an empty file via Psych.load_file:
TypeError: no implicit conversion from nil to integer
I would expect that an empty hash or array would be returned.
This, more directly, relates to parsing YAML documents using YAML.lo... -
02:53 AM Feature #6847: Hash#extract
- Isn't that like the method slice in ActiveSupport?
On Thu, Aug 9, 2012 at 1:01 PM, citizen428 (Michael Kohl) <
citizen428@gmail.com> wrote:
>
> Issue #6847 has been reported by citizen428 (Michael Kohl).
>
> ----------... -
02:01 AM Feature #6847 (Rejected): Hash#extract
- I often need a method to extract "subhashes" from hashes. I often monkey-patched this into hash and found "extract" to be a good name for the method. Afterwards I found out that there actually is a mutating method called "extract!" in Ac...
-
01:02 AM Feature #6844 (Feedback): Random.rand() requires pre-seeding in forked process
08/09/2012
-
11:42 PM Revision 33a63355 (git): * gc.c (gc_malloc_allocated_size): RDoc does not process macros, so
- mention this method is only available when ruby is built with
CALC_EXACT_MALLOC_SIZE
* gc.c (gc_malloc_allocations): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:38 PM Bug #5437: Using fibers leads to huge memory leak
- Yes the memory usage is stable but that does not change the fact that it is simply huge and never returned back. In real applications this leads to memory usage always as big as in the moment of biggest peak of used fibers. Even after fe...
-
06:23 AM Bug #5437: Using fibers leads to huge memory leak
- "rupert (Robert Pankowecki)" <robert.pankowecki@gmail.com> wrote:
> Any progress ? Looks like this is still a problem in Ruby2.0: https://gist.github.com/bf4b57d5bf419dbf56ae
> ----------------------------------------
> Bug #5437:... -
08:34 PM Feature #6845 (Closed): Optimize stat on Windows - This issue was solved with changeset r36668.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Optimize winnt_stat
* test/ruby/test_file_exhaustive.rb
(Te... -
09:05 AM Feature #6845 (Assigned): Optimize stat on Windows
- seems good.
commit it, please. -
07:46 AM Feature #6845 (Closed): Optimize stat on Windows
- `require` slowness on startup was pointed out and some improvements were done, but startup seems still slow especially on Windows.
I suggest a patch to optimize require(stat) performance on Windows.
https://gist.github.com/3285446#fi... -
07:56 PM Feature #6528: Add Pathname#write and Pathname#binwrite
- どうでしょうか?
何か引っかかっている所があれば指摘してもらえると嬉しいです. -
03:46 PM Revision bb979b86 (git): * sample/coverage.rb: fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:16 PM Revision 773c7e94 (git): * 2012-08-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:16 PM Revision 54f5d4ec (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:46 PM Revision 402edc56 (git): mkrunnable.rb: build_os
- * tool/mkrunnable.rb: see build_os instead of target arch for
cross-compiling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:46 PM Revision 50f3d3fe (git): configure.in: use real path
- * configure.in (MINIRUBY): use real path for include path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:46 PM Revision 1fcc1762 (git): fake.rb.in: remove duplications
- * template/fake.rb.in (builddir): remove duplications
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:37 PM Revision 2b648fb7 (git): * ChangeLog: fix a typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:49 PM Revision b8006774 (git): merge revision(s) 34972:
- * pack.c (pack_unpack): when unpack('M') occurs an illegal byte
sequence, output the "=" character and the following character in
the decoded data without any transformation.
[ruby-dev:44875] [Bug #5635]
g... -
12:42 PM Bug #6830 (Closed): test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- This issue was solved with changeset r36666.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/openssl/test_config.rb (OpenSSL#test_constants): skip ... -
11:10 AM Bug #6830: test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- Thanks for the detailed description! Luis has pointed out the issue on Windows to me already, and we agreed that this is probably a problem with OpenSSL itself. For quick relief, I will implement the check for the existence of the file a...
-
11:34 AM Revision dcd7f09b (git): Optimize winnt_stat
- * test/ruby/test_file_exhaustive.rb
(TestFileExhaustive#test_stat_special_file): add a test.
GetFileAttributesExW fails to get attributes of special files
such as pagefile.sys.
* win32/win32.c (check_valid_dir): for performance, c... -
09:33 AM Revision 0e92dc4b (git): ruby.c: show version only once
- * ruby.c (proc_options): show version only once even if -v and
--verbose are given together.
http://twitter.com/d6rkaiz/status/233491797085671424
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36667 b2dd03c8-39d4-4d8f-98ff-823fe... -
09:31 AM Feature #6841: Shorthand for Assigning Return Value of Method to Self
- If we want lexical multiplicity to equal evaluation multiplicity...
Should:
obj.foo.bar[baz.daz] .= to_i
behave as?:
begin
temp1 = obj.foo.bar
temp2 = baz.daz
temp1[temp2] = temp1[temp2].to_i
end
... ... -
07:54 AM Bug #6836: Improve File.expand_path performance in Windows
- On Wed, Aug 8, 2012 at 9:42 PM, luislavena (Luis Lavena)
<luislavena@gmail.com> wrote:
>
> Issue #6836 has been updated by luislavena (Luis Lavena).
>
>
> h.shirosaki (Hiroshi Shirosaki) wrote:
>> usa (Usaku NAKAMURA) wrot... -
06:23 AM Feature #6844: Random.rand() requires pre-seeding in forked process
- "andrewhavens (Andrew Havens)" <email@andrewhavens.com> wrote:
> Feature #6844: Random.rand() requires pre-seeding in forked process
> https://bugs.ruby-lang.org/issues/6844
>
> Author: andrewhavens (Andrew Havens)
> Status: ... -
05:51 AM Feature #6844 (Rejected): Random.rand() requires pre-seeding in forked process
- I'm submitting this as a feature because I'm not sure if this implementation is intentional.
While using the delayed job gem and the daemons gem, I recently came across a segmentation fault. It was relatively hard to track down becaus... -
03:42 AM Revision f207f779 (git): * test/openssl/test_config.rb (OpenSSL#test_constants): skip this
- test if platform is Mac OS X or Windows. [Bug #6830]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:23 AM Feature #6840: YAML tag method - On Wed, Aug 08, 2012 at 09:52:15PM +0900, trans (Thomas Sawyer) wrote:
>
> Issue #6840 has been updated by trans (Thomas Sawyer).
>
>
> As I stated before, for my use case, I do *not* want users to use a support library. In fact...
08/08/2012
-
10:45 PM Bug #6789 (Closed): parse.y compilation error due not updated id.h
- This issue was solved with changeset r36661.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
common.mk: id.h dependency
* common.mk (.y.h): split from .y.c r... -
10:17 PM Bug #6653: 1.9.2/1.9.3 exhibit SEGV with many threads+tcp connections - I've hit a similar issue while using Chef with Ruby 1.9.3 on Ubuntu 12.04 x86_64. I've tried with both the Ubuntu 1.9.3 packages as well as the packages provided by Brightbox (ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]) a...
-
09:52 PM Feature #6840: YAML tag method
- As I stated before, for my use case, I do *not* want users to use a support library. In fact, it's not just want, its a requirement. This format must be inter-operable. It doesn't mater if the user is programming in Perl, Python, Javascr...
-
06:23 AM Feature #6840: YAML tag method - On Tue, Aug 07, 2012 at 09:30:51AM +0900, trans (Thomas Sawyer) wrote:
>
> Issue #6840 has been reported by trans (Thomas Sawyer).
>
> ----------------------------------------
> Feature #6840: YAML tag method
> https://bugs.ruby... -
06:19 AM Feature #6840 (Rejected): YAML tag method
-
09:42 PM Bug #6836: Improve File.expand_path performance in Windows
- h.shirosaki (Hiroshi Shirosaki) wrote:
> usa (Usaku NAKAMURA) wrote:
> ...
Hiroshi, how that compares with the original patch?
Thank you.
-
05:33 PM Bug #6836: Improve File.expand_path performance in Windows
- usa (Usaku NAKAMURA) wrote:
> If the performance problem is in 'require' and 'load', change only them
> ...
I think that might be possible, though changing that properly seems not easy.
I created an experimental patch for that. This... -
08:25 PM Bug #5637: warnings of shellescape
- As I documented, it's all up to how you use the resulted string.
If you are going to pass it to a shell that lacks support for the encoding of the string, then you should probably encode the original string in ASCII-8BIT before shell-... -
07:54 PM Bug #5437: Using fibers leads to huge memory leak
- Any progress ? Looks like this is still a problem in Ruby2.0: https://gist.github.com/bf4b57d5bf419dbf56ae
-
06:01 PM Bug #6838: class_eval and instance_eval do not scope class names the same as direct code
- I think constants are searched "half-dynamically", as, for example, inheritance hierarchy is searched, but only after the visual "indented" hierarchy. Is #6810 related?
-
01:09 PM Bug #6838 (Rejected): class_eval and instance_eval do not scope class names the same as direct code
- cpoirier (Chris Poirier) wrote:
> My expectation is that class_eval and instance_eval should map class names the same as code written directly in the class, as they do with function names.
The current behavior is intended.
From the ... -
05:49 PM Bug #6843 (Rejected): win32ole save shortcut fail on Windows XP
- Not a bug.
-
05:06 PM Bug #6843: win32ole save shortcut fail on Windows XP
- This is not a bug of ruby.
The error message OLE error code:80070003 means the target folder "#{USERPROFILE}\\Desktop" is not exist on your Windows XP.
I confirmed the folder "#{USERPROFILE}\\Desktop" is not exist on my Windows XP.
... -
02:59 PM Bug #6843 (Rejected): win32ole save shortcut fail on Windows XP
- The following program will success on Windows 7, but fail on Windows XP
=======================================================================
Error message:
(in OLE method `Save': )
OLE error code:80070003 in WshShortcut.Save
... - 05:03 PM Revision 507dc62a (git): * 2012-08-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:03 PM Revision b2fbb39a (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:52 PM Bug #4438 (Closed): rescue args type check omitted
- This issue was solved with changeset r36658.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c, insns.def (checkmatch):
remove checkincludearra... -
01:51 PM Revision 393ed5c9 (git): vm_eval.c: cref-scope hack
- * vm_eval.c (eval_under): singletons other than special constants
don't need cref-scope hack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:46 PM Revision 6b4ecb32 (git): use local variables
- * test/ruby/test_eval.rb: use local variables instead global variables
if possible.
* test/ruby/test_ifunless.rb: ditto.
* test/ruby/test_iterator.rb: ditto.
* test/ruby/test_stringchar.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.o... -
01:45 PM Revision 22e14514 (git): common.mk: id.h dependency
- * common.mk (.y.h): split from .y.c rule to manage dependency on
parse.h. [ruby-core:46741] [Bug #6789]
* common.mk (id.h): keep old file unless changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36661 b2dd03c8-39d4-4d8f-98f... -
01:43 PM Bug #6374: Acces to initialized class variable from included module
- mame (Yusuke Endoh) wrote:
> I guess this is where "the Standard" comes in.
> ...
The current behavior is conforming to ISO/IEC 30170.
In "11.5.4.5 Class variables" of ISO/IEC 30170:
A class-variable-identifier is evaluated as ... -
10:58 AM Feature #6841: Shorthand for Assigning Return Value of Method to Self
- Yes, that's exactly how it would behave. To rewrite your example to make sure I understood it correctly:
obj.foo.bar.baz = obj.foo.bar.baz.to_i
becomes
obj.foo.bar.baz .= to_i -
07:19 AM Feature #6841: Shorthand for Assigning Return Value of Method to Self
- I like the idea, iff:
obj.foo.bar.baz .= to_i
behaves as:
begin
temp = obj.foo.bar
temp.baz = temp.baz.to_i
end
-
10:51 AM Feature #6842: Add Optional Arguments to String#strip
- "<b>b" from the start of the string, and the "</b>" from the end. This is how I remember trim() from php behaved, which I found quite succinct, but maybe that's because defining arrays in PHP is fairly verbose. Ruby has the shorthand arr...
-
08:12 AM Revision dcfaf3e2 (git): * compile.c (ADD_INSNL): make ADD_INSNSL as alias of ADD_INSN1.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:11 AM Revision e2f5d4f9 (git): * bootstrap/test_exception.rb: fix a last committed test.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:52 AM Revision 93b6f8d6 (git): * compile.c, insns.def (checkmatch):
- remove checkincludearray instruction and
add new instruction checkmatch.
This change is to solve
[Bug #4438] "rescue args type check omitted".
* iseq.c: increment ISEQ_MAJOR_VERSION because removal of
checkincludearray instructio... -
12:51 AM Feature #6802: String#scan should have equivalent yielding MatchData
- +1 to have a method to return MatchData.
This is related to (or duplicate of) #5749 and #5606.
Even with the simple implementation I think to establish a standard
name and specification.
08/07/2012
-
11:10 PM Feature #6842: Add Optional Arguments to String#strip
- The first example doesn't seem to make sense, e.g.
```ruby
"<b>bold text</b>".strip("</b>") #=> "old text"
```
I also think the interface needs to be a bit more specific about right and left stripping. Maybe use options:
```ru... -
08:24 PM Feature #6842 (Assigned): Add Optional Arguments to String#strip
- =begin
One of the very few things I miss from the ol' php days many years ago, was the ability to easily strip arbitrary characters from the ends of string using trim(). Typically, this is whitespace characters, and #strip currently ful... -
10:59 PM Bug #6836: Improve File.expand_path performance in Windows
- On Tue, Aug 7, 2012 at 4:28 AM, U.Nakamura <usa@garbagecollect.jp> wrote:
> Hello,
>
> In message "[ruby-core:47045] [ruby-trunk - Bug #6836] Improve File.expand_path performance in Windows"
> on Aug.07,2012 14:46:15, <h.shirosa... -
08:29 PM Bug #6836: Improve File.expand_path performance in Windows
- On Tue, Aug 7, 2012 at 2:34 AM, U.Nakamura <usa@garbagecollect.jp> wrote:
> However, it is very difficult to write safe code because there
> are too many traps in the file system of Windows.
> It's impossible for non-Windows pr... -
04:29 PM Bug #6836: Improve File.expand_path performance in Windows
- Hello,
In message "[ruby-core:47045] [ruby-trunk - Bug #6836] Improve File.expand_path performance in Windows"
on Aug.07,2012 14:46:15, <h.shirosaki@gmail.com> wrote:
> Expanding short name to long name is expensive and usi... -
02:46 PM Bug #6836: Improve File.expand_path performance in Windows
- Other web servers on Windows also have Windows Short (8.3) Filenames security issue.
http://www.coresecurity.com/content/filename-pseudonyms-vulnerabilities
http://www.acunetix.com/blog/web-security-zone/articles/windows-short-8-3-fi... -
10:26 AM Bug #6836: Improve File.expand_path performance in Windows
- On Mon, Aug 6, 2012 at 9:34 PM, U.Nakamura <usa@garbagecollect.jp> wrote:
>
> However, it is very difficult to write safe code because there
> are too many traps in the file system of Windows.
> It's impossible for non-Windows progr... -
09:54 AM Bug #6836: Improve File.expand_path performance in Windows
- Hello,
Thank you for the explanation, Luis.
In message "[ruby-core:47021] [ruby-trunk - Bug #6836] Improve File.expand_path performance in Windows"
on Aug.06,2012 23:02:11, <luislavena@gmail.com> wrote:
> Since this pa... -
10:32 PM Bug #6789 (Open): parse.y compilation error due not updated id.h
- 08:51 PM Revision 8637eac4 (git): * 2012-08-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:51 PM Revision 292a3196 (git): * proc.c (method_clone): Added documentation. Patch by Robin Dupret.
- Fixes #152 on github.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:50 PM Revision f45af0c6 (git): * 2012-08-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:50 PM Revision 6b3bac29 (git): merge revision(s) r36583, r36458, r36414, r36103, r35690, r35681, r35658, r35657, r35655, r35492: [Backport #6815]
- * ext/psych/lib/psych.rb: updated to released version.
* ext/psych/psych.gemspec: ditto
* ext/psych/emitter.c (initialize): allow a configuration object to be
passed to the constructor so that mutation isn't required afte... -
08:29 PM Feature #6841: Shorthand for Assigning Return Value of Method to Self
- Yeah, I thought about making "." a method, but I don't think that would be advantageous. If you were to overload ".", perhaps to intercept all method calls (can't think of any other reasons besides as hook method), it wouldn't really wor...
-
04:05 PM Feature #6841: Shorthand for Assigning Return Value of Method to Self
- =begin
Does `.` effectively become a "call dispatch operator" then? Could one write:
a.send('.', :foo)
I like the idea. But to complete the comparison to other operators, it made me think `.` would be some sort of method.
=end
-
11:39 AM Feature #6841: Shorthand for Assigning Return Value of Method to Self
- =begin
The formatting obviously didn't work. Try this one:
Quite often in Ruby, I find myself doing something like: (({my_var[:foo][:bar] = my_var[:foo][:bar].to_i})) or (({obj.foo.bar = obj.foo.bar.to_i})). Realising this, I thought... -
11:37 AM Feature #6841 (Assigned): Shorthand for Assigning Return Value of Method to Self
- =begin
Quite often in Ruby, I find myself doing something like: (({my_var[:foo][:bar] = my_var[:foo][:bar].to_i})) or (({obj.foo.bar = obj.foo.bar.to_i})). Realising this, I thought of what would be a fairly nice shorthand syntax for th... -
03:11 PM Feature #6596: New method `Array#indexes`
- =begin
Given a ordered list, swap items relative to those that match.
list.index_all{ |x| match?(x) }.each do |i|
list[i], list[i+1] = list[i+1], list[i]
end
vs. what?
list.each_with_index do |x, i|
if match?(x)
li... -
11:22 AM Revision a996b485 (git): * ext/readline/readline.c (Init_readline): rl_catch_signals=0 returns
- back. Without this, on FreeBSD9 and readline 6.2 irb can't catch ^C.
[Bug #5423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:13 AM Revision 0d1a905e (git): * vm_exec.c, insns.def (leave): solve problems on
- OPT_CALL_THREADED_CODE.
Catch up finish frame structure on OPT_CALL_THREADED_CODE.
* vm_core.h: add rb_thread_t#retval for temporary space on
OPT_CALL_THREADED_CODE.
* vm.c (th_init): clear rb_thread_t#retval as Qundef.
* vm_dump.c (... -
10:21 AM Bug #6839: 1.9.3p194 [BUG] Segmentation fault
- Separate crash log because it was too long and truncated.
-
02:46 AM Bug #6839 (Closed): 1.9.3p194 [BUG] Segmentation fault
- =begin
I am trying to process tweets on engineyard for a rails app and constantly get segmentation faults, seemingly at random. The core and trace are below:
require '../config/environment'
Process.daemon true, false #daemon... -
09:30 AM Feature #6840 (Rejected): YAML tag method
- =begin
When loading YAML documents that have a tag, there doesn't seem to be anyway to query for that information.
h = YAML.load("--- !foo\na: 1\nb: 2")
h #=> {"a"=>1, "b"=>2}
h.what_method? #=> "!foo"
I know about `YAML... -
06:20 AM Feature #6373: public #self
- Strikes me as a very good idea! I forgot about that. In Facets it is called `#ergo`. Essentially,
~~~ruby
def ergo
return yield(self) if block_given?
self
end
~~~
Call it `#self` instead and we get two features for the pri... -
06:00 AM Feature #6373: public #self
- How about merging this with feature request #6721 for #yield_self?
Object#self can optionally accept a block, yield self to the block if block given, and return the result of the block. What do you think? -
02:47 AM Feature #6373: public #self
- i also found a previous issue where this behavior would come in handy: http://bugs.ruby-lang.org/issues/2172
-
06:14 AM Feature #6721: Object#yield_self
- This is basically #ergo in Ruby Facets. Essentially:
~~~ruby
def ergo
return yield(self) if block_given?
self
end
~~~ - 02:59 AM Revision fca3c408 (git): * test/ruby/test_require.rb (TestRequire#test_require_twice): added.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:48 AM Bug #5637: warnings of shellescape
- Hi,
Thanks for this patch!.. :)
One question though, from comment #3 it's not clear if it's safe to use it in 1.9.3. This is what Google Translator gave me:
"1.9: this behavior was all the way to 1.9.3 now. Turn off warning bu... -
02:44 AM Revision 0f24f944 (git): * vm_method.c (rb_redefine_opt_method): use RCLASS_ORIGIN to avoid
- SEGV when a module-prepended class is refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:48 AM Revision b361d7d0 (git): * test/ruby/test_file_exhaustive.rb
- (TestFileExhaustive#test_expand_path*): refactoring. split the method
into some chunks of the same kind of tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:43 AM Revision ac37fc37 (git): test String#each_line when separator is longer than string.
- Thanks Charles Nutter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:31 AM Bug #2788 (Closed): nil.instance_eval pushes nil onto cref
- This issue was solved with changeset r36647.
Shugo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
method in instance_eval
* class.c (rb_special_singleton_class_o...
08/06/2012
-
11:02 PM Bug #6836: Improve File.expand_path performance in Windows
- usa (Usaku NAKAMURA) wrote:
> I found that this includes a patch to WEBrick.
> ...
WEBrick relies on File.expand_path to resolve the traversal (by expanding) but also by expanding possible short names into long names.
Since this pat... -
12:28 PM Bug #6836: Improve File.expand_path performance in Windows
- First, I think this is the great job!
This patch is very big, so I've not checked whole yet.
I found that this includes a patch to WEBrick.
So, I guess that this means there is an incompatibility in File.expand_path, doesn't it?
Wh... -
10:35 PM Feature #2172: Enumerable#chunk with no block
- Any decision about this? For me it's a clear +1, chunking by the values unchanged is very common (not that it's representative, but I checked my code: 4 ocurrences of chunk, all with the identity block)
-
10:33 PM Bug #4438: rescue args type check omitted
- Patch attached.
-
07:21 PM Bug #6814 (Closed): Test failures in test_win32ole_variant.rb
- This issue was solved with changeset r36641.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/win32ole/test_win32ole_variant.rb: setting WIN32OLE.loc... -
06:54 PM Bug #6829: Failure using Win32ole (happens in 1.8.7 and 1.9
- Thank you for your reporting.
I'm not sure, but maybe you must specify variant type information
of arguments when you call PrintPostageEx.
I'd like to know what variant type of arguments is needed
to call PrintPostageEx.
What ... -
05:54 PM Bug #2788: nil.instance_eval pushes nil onto cref
- Hello,
In message "[ruby-core:47015] [ruby-trunk - Bug #2788] nil.instance_eval pushes nil onto cref"
on Aug.06,2012 17:15:16, <redmine@ruby-lang.org> wrote:
> Aside from the joke, why not apply the patch, Nobu?
Wait u... -
05:15 PM Bug #2788: nil.instance_eval pushes nil onto cref
- ko1 (Koichi Sasada) wrote:
> nobu has patach.
Does he have a Hebrew niqqud vowel sign?
Aside from the joke, why not apply the patch, Nobu?
-
04:00 PM Bug #2402 (Closed): super in instance_eval
- This issue was solved with changeset r36640.
Shugo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* internal.h, class.c, eval.c, insns.def: find the appropriate
... -
03:31 PM Revision 28827e61 (git): method in instance_eval
- * class.c (rb_special_singleton_class_of): utility function.
* vm_eval.c (eval_under): special deal for class variable scope with
instance_eval.
* vm_eval.c (rb_obj_instance_eval, rb_obj_instance_exec): allow method
definition in ins... - 03:24 PM Revision 353833c4 (git): * 2012-08-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:24 PM Revision 6f677a5e (git): variable.c: split CVAR_LOOKUP
- * variable.c (CVAR_LOOKUP): split into helper functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:24 PM Bug #6838: class_eval and instance_eval do not scope class names the same as direct code
- On more thought, I can understand that Ruby views class names the same way it does variables, and so pulls them from the binding. It just doesn't feel like it's the right behaviour, in this context.
-
01:13 PM Bug #6838 (Rejected): class_eval and instance_eval do not scope class names the same as direct code
- class X
def self.f()
puts "::X"
end
end
class Y
class X
def self.f()
puts "Y::X"
end
end
def self.c()
X.f()
end
end
Y.class_eval do
def self.k()
X.... -
01:06 PM Revision 745de093 (git): test_exception.rb: split tests
- * test/ruby/test_exception.rb (test_exception, test_else): split huge
tests into simple tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:06 PM Revision ddabdd44 (git): test_exception.rb: use local variables
- * test/ruby/test_exception.rb (test_exception, test_else): use local
variables instead unnecessary global variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:18 PM Revision 281e4b61 (git): vm_eval.c: check exceptional condition first
- * vm_eval.c (vm_call_super): check exceptional condition first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:21 AM Revision 906b2110 (git): * test/win32ole/test_win32ole_variant.rb: setting WIN32OLE.locale
- to pass some assertion. Thanks to Hiroshi Shirosaki.
[ruby-core:46873][Bug #6814]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:00 AM Revision 9537e8ff (git): * internal.h, class.c, eval.c, insns.def: find the appropriate
- receiver for super called in instance_eval. If such a receiver is
not found, raise NoMethodError. [ruby-dev:39772] [Bug #2402]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:55 AM Revision 3dd941b2 (git): * include/ruby/ruby.h, eval.c, vm_insnhelper.c: fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:14 AM Revision d93d45fe (git): vm_eval.c: remove dead code
- * vm_eval.c (vm_call_super): since cfp->klass is always class or
iclass, no search from method entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:34 AM Revision cc48423e (git): insns.def: use klass in cfp
- * insns.def (defined): now should use klass in the current control
frame to search superclass, not me->klass. reported by naruse.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:20 AM Revision 7c5336b8 (git): * test/etc/test_etc.rb (TestEtc#test_getpwuid): `s' is never set to nil.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:11 AM Revision e7c6f87c (git): * syslog/test_syslog_logger.rb: miss.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:09 AM Revision 404bb0ef (git): * test/syslog/test_syslog_logger.rb: skip unless Syslog module is
- available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e