Activity
From 07/06/2012 to 07/12/2012
07/12/2012
-
11:08 PM Bug #6726 (Closed): Syslog crashes when the special %m tag (of syslog(3)) is present in the message
- The %m special escape sequence supported by the syslog(3) system call is claimed by the Ruby doc to be supported by the ::Syslog Ruby class. However the implementation of ::Syslog in ext/syslog/syslog.c:49 (https://github.com/ruby/ruby/b...
-
09:11 PM Revision d57103b9 (git): test: dots from a worker
- * lib/test/unit.rb (Test::Unit::StatusLineOutput#print): sometimes
dots from a worker get stuck.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:11 PM Revision b788ff5c (git): test: unnecessary job_status
- * lib/test/unit.rb (Test::Unit::Runner#_prepare_run): no needs to
override job_status option unnecessarily.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:11 PM Revision 12b3c3e1 (git): * 2012-07-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:11 PM Revision e8f714b6 (git): test: separate each outputs
- * lib/test/unit.rb (Test::Unit::Runner#del_status_line): separate each
outputs if not replace mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:38 PM Bug #6725 (Rejected): variables changed in signal handlers are left unchanged in main code
- Asynchronous signals may not dealt with in the order you expect.
-
04:59 PM Bug #6725 (Rejected): variables changed in signal handlers are left unchanged in main code
- Test case:
mkfifo myfifo
ruby -e "a=0;trap(:USR2) {a+=1}; IO.readlines('myfifo') rescue nil; puts a"
killall -USR2 ruby
Output may be 0 or 1.
It's tested with USR1, USR2 and ALRM signals with ruby 1.9.3p194 and today's 2.0.0de... -
01:23 PM Feature #6724: waaaaaaant! (ISeq.load)
- (2012/07/12 12:20), SASADA Koichi wrote:
> ... ah, the signature of this function is not exposed by GCC's
> visibility control. I'll make it public (unofficial).
nobu pointed out that this function is already public. I misund... -
12:23 PM Feature #6724: waaaaaaant! (ISeq.load)
- (2012/07/12 8:58), zenspider (Ryan Davis) wrote:
> GIMME GIMME GIMME! waaaaaant... We don't _need_ a verifier. User responsibility... etc etc.
Without a verifier, it is easy to cause SEGV or critical trouble. Matz
prohibits su... -
10:17 AM Feature #6724: waaaaaaant! (ISeq.load)
- I really like this feature. I have this exact patch applied to my local ruby binary.
But having used it a while, I found that ISeq loading is not what an application programmer would try. It is rather a tool that a library author th... -
08:58 AM Feature #6724 (Closed): waaaaaaant! (ISeq.load)
- GIMME GIMME GIMME! waaaaaant... We don't _need_ a verifier. User responsibility... etc etc.
Can I commit this??? PLEEEEEEASE???
Index: iseq.c
===================================================================
--- iseq.c (revis... -
12:39 PM Bug #6723 (Assigned): Global variable scoping problem.
-
07:50 AM Bug #6723 (Closed): Global variable scoping problem.
- This issue exists from 1.8 to ruby-head.
See the following example:
def foobar
"Foobar".match(/^(\w*)/)
puts $1.inspect
end
foobar
puts $1.inspect
puts global_variables.inspect
This demonstrates that $1 does not beha... -
11:44 AM Bug #5374 (Closed): Weird SecurityError with ruby1.9, File.stat/Dir.glob and $SAFE=1
- This issue was solved with changeset r36373.
Hleb , thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
rb_str_new_frozen: new object if tainted/untrusted unmatch
* st... -
07:38 AM Bug #5374: Weird SecurityError with ruby1.9, File.stat/Dir.glob and $SAFE=1
- nobu (Nobuyoshi Nakada) wrote:
> Does this happen with recent versions?
Yes, at least with 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux].
And today I've made some investigations.
File.stat is rb_file_s_stat, which calls ... -
09:54 AM Feature #6688: Object#replace
- How would it behave for immediate VALUEs (Fixnum, Symbol, etc.)?
Or value classes that are immutable or often occur as literals (Float, Rational, Time, etc.)?
This would probably be very difficult to implement in JRuby (and other Rub... -
08:24 AM Feature #6688: Object#replace
- trans (Thomas Sawyer) wrote:
> =begin
> ...
Object copying is useful but far less powerful. Imagine that you want to redefine files ARGF is linked to. Instead of
ARGV = ['filename','filename2']; puts ARGF
you should write
ARGV.repla... -
08:03 AM Feature #6688: Object#replace
- trans (Thomas Sawyer) wrote:
> =begin
> ...
I've answered Shugo about dangers. I suppose that it's not more dangerous than bang-methods.
Also when one changes constants for stubbing a class it's almost the same dangerous but particu... -
07:38 AM Feature #6688: Object#replace
- shugo (Shugo Maeda) wrote:
> prijutme4ty (Ilya Vorontsov) wrote:
> ...
`#become` is a good name
I can't understand your fears. Monkey patching is also too dangerous. I just propose that one could use all advantages of duck typing.
Im... -
05:37 AM Feature #3346: __DIR__ revisted
- I'm for __dir__ or __DIR__ since I use File.dirname(__FILE__) a lot. Barely prefer __DIR__ since __FILE__ already exists so it keeps parity with it.
-
05:11 AM Bug #6644 (Closed): Weird behavior of defined?(super) check invoked from a metaprogrammatically defined class method
- This issue was solved with changeset r36369.
Alexey, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
defined: me in cfp
* insns.def (defined): use method entry and... -
05:11 AM Bug #6722 (Closed): Weird behavior of defined?(super) check invoked from a metaprogrammatically defined class method
- This issue was solved with changeset r36369.
Alexey, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
defined: me in cfp
* insns.def (defined): use method entry and... -
03:37 AM Feature #6617 (Closed): Net::HTTP: Bind to a specific local IP/port
- This issue was solved with changeset r36367.
Ricardo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/http.rb (Net::HTTP#connect): use local_host and loca... -
03:32 AM Revision c3521bf6 (git): test: skip default gems
- * test/runner.rb: skip default gems to get rid of loading old versions
before installation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:23 AM Bug #6718: ruby segfault in abstract_mysql_adapter.rb when trying to run from command-line
- "dpg (Dan Gailey)" <dan.p.gailey@gmail.com> wrote:
> Target version:
> ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
>
>
> Ruby segfaults in abstract_mysql_adapter.rb:241 when trying to run a simple com... -
02:44 AM Revision d7444332 (git): rb_str_new_frozen: new object if tainted/untrusted unmatch
- * string.c (rb_str_new_frozen): since the result object should have
same tainted/untrusted bits with the original object, return new
object if the shared object unmatch. [ruby-core:39745][Bug #5374]
git-svn-id: svn+ssh://ci.ruby-l... -
01:51 AM Feature #6492: Inflate all HTTP Content-Encoding: deflate, gzip, x-gzip responses by default
- drbrain (Eric Hodel) wrote:
> This patch uses streaming zlib from #6612 which limits the size of a chunk to 16KB (the maximum size of the zlib buffer) for streaming output without the potential for DOS due to large memory growth.
> ...... - 01:48 AM Revision 8cc3fef8 (git): * test/net/http/test_http.rb (TestNetHTTPLocalBind#test_bind_to_local*):
- cannot cross between network interfaces on Windows, so skip this test
until we find better test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:27 AM Revision 558edd51 (git): Use IPv4 address on connecting to 127.0.0.1.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
07/11/2012
- 11:52 PM Revision 9696b3eb (git): Imported minitest 3.2.0 (r7598). Reviewed by drbrain
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:24 PM Bug #6716: FileUtils.mv でリンク先がないシンボリックリンクファイルを指定すると ENOENT エラーになる
- こんな感じにしてみました。いかがでしょうか。
https://github.com/tmtm/ruby/commit/00a677d8f42a36dc3ec5515fde8107e5f41bfd7b -
10:22 PM Feature #6717: Method like #instance_eval that returns self (like #tap)
- alexeymuranov (Alexey Muranov) wrote:
> ((*rosenfeld*)), what did you mean by "won't be suitable for nested tweak calls"?
=begin
{}.self! { {}.self! { store(...) } }
=end
Which store is used? -
10:15 PM Feature #6717 (Rejected): Method like #instance_eval that returns self (like #tap)
-
10:14 PM Feature #6717: Method like #instance_eval that returns self (like #tap)
- =begin
If nobody has anything interesting to say about this, the issue can be closed, as i think (({tap})) works fine here, even in:
hash = {}.tap { |h| h.tap { |hh| hh[1] = 2 } } # => {1=>2}
"Tap" just sounded strange to me in... -
06:12 AM Feature #6717: Method like #instance_eval that returns self (like #tap)
- =begin
I think i've understood the concern of ((*nobu*)): object's private methods will be accessible from the block. This is not what i wanted. Sorry, i'll need to think more about my proposal. Maybe it is not good and (({tap})) is enou... -
12:05 AM Feature #6717: Method like #instance_eval that returns self (like #tap)
- =begin
Another idea: how about "associating" this method with "public self" requested in #6373?
class Object
def self
self
end
def self!(&block)
instance_eval(&block)
self
end
end
room_numbers = {}.self! ... -
09:22 PM Feature #6721: Object#yield_self
- It executes the block and returns its output. For example:
```ruby
2.yield_self { |x| x*x } # => 4
``` -
06:33 PM Feature #6721: Object#yield_self
- How is this significantly different than Object#tap?
-
04:35 PM Feature #6721 (Closed): Object#yield_self
I think the following method is missing from Ruby:
~~~ruby
class Object
def yield_self(*args)
yield(self, *args)
end
end
~~~
I do not know a good use case, but it looks very natural to me. It can be used in me...-
08:11 PM Revision 35784d10 (git): defined: me in cfp
- * insns.def (defined): use method entry and id in cfp for proper
superclass, since klass in iseq is shared by dynamically defined
methods from the same block. [ruby-core:45831][Bug #6644]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub... -
07:59 PM Bug #6722 (Closed): Weird behavior of defined?(super) check invoked from a metaprogrammatically defined class method
- =begin
Hi guys,
Sorry for the duplicate - I already reported ((<this issue|URL:https://bugs.ruby-lang.org/issues/6644)>))
2 weeks ago, but didn't receive any answer.
I had mistakenly assigned "target version", maybe that was the re... - 06:37 PM Revision 2642b690 (git): * 2012-07-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:37 PM Revision 46898537 (git): * lib/net/http.rb (Net::HTTP#connect): use local_host and local_port
- if specified. patched by Ricardo Amorim [Feature #6617]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:23 PM Feature #6720: Discrepancy between DateTime#strftime('%s') and Time#strftime('%s') before 1582-10-15
- 2012/7/11 phasis68 (Heesob Park) <phasis@gmail.com>:
>
> I found some discrepancy between DateTime#strftime('%s') and Time#strftime('%s') on date before 1582-10-15
This is not a bug.
The difference is caused because
Time... -
01:04 PM Feature #6720 (Assigned): Discrepancy between DateTime#strftime('%s') and Time#strftime('%s') before 1582-10-15
- IMO, this is the problem of Time, not DateTime.
I think that this may be a limitation of Time.
Anyway, it is that akr judges.
-
11:28 AM Feature #6720 (Rejected): Discrepancy between DateTime#strftime('%s') and Time#strftime('%s') before 1582-10-15
- I found some discrepancy between DateTime#strftime('%s') and Time#strftime('%s') on date before 1582-10-15
Consider this
C:\>irb
irb(main):001:0> require 'date'
=> true
irb(main):002:0> Time.at(DateTime.new(0).strftime('%s').to_... -
10:20 AM Bug #6692: TestSocket::test_udp_server always fails on OS X with Back to my Mac enabled
- drbrain (Eric Hodel) wrote:
> netstat says this about the iCloud route:
> ...
It's ok if you separate changes to socket and test_udp_server,
and see version of darwin in the test. -
09:02 AM Revision dea58245 (git): sample/test.rb: fix standalone
- * sample/test.rb (Progress#initialize): no rotators when STDOUT is
also tty, that is directly invoked but not from tool/rubytest.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:36 AM Revision c9e4da2a (git): enc/encinit.c for static-linked-ext
- * ext/extmk.rb: append ENCOBJS to DLDOBJS but not EXTSOLIBS which is
not a target, to compile enc/encinit.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:47 AM Bug #6719 (Closed): Documentation Error for String.sub()
- "Returns a copy of str with the first occurrence of pattern substituted for the second argument." should be "Returns a copy of str with the first occurrence of pattern replaced by the second argument."
-
06:39 AM Bug #6718: ruby segfault in abstract_mysql_adapter.rb when trying to run from command-line
- =begin
Could be a bug of mysql2:
-- C level backtrace information -------------------------------------------
/usr/lib/libruby-1.9.1.so.1.9(rb_vm_bugreport+0x5f) [0x2b585b22858f]
/usr/lib/libruby-1.9.1.so.1.9(+0x5a7be) [0x2b5... -
06:05 AM Bug #6718 (Rejected): ruby segfault in abstract_mysql_adapter.rb when trying to run from command-line
- Ruby segfaults in abstract_mysql_adapter.rb:241 when trying to run a simple command from the command-line.
the command:
/bin/bash -l -c 'cd /var/www/schoolyard/releases/20120710202724 && script/rails runner -e production "Email.invi... -
05:55 AM Feature #6373: public #self
- trans (Thomas Sawyer) wrote:
> Please, what's wrong with public #self?
Nothing, just was wondering how to use `_` :). I didn't know IRB uses it.
-
04:37 AM Feature #6373: public #self
- `_` is used by irb. Also, I don't really see why. Code would look much more "perlish" using `_`.
Please, what's wrong with public #self?
-
12:38 AM Feature #6373: public #self
- I've heard that the underscore `_` is commonly used for ignored block variables. Maybe this "public self" can be considered as an "ignored method", and called `Object#_`?
-
05:29 AM Feature #6492: Inflate all HTTP Content-Encoding: deflate, gzip, x-gzip responses by default
- This patch uses streaming zlib from #6612 which limits the size of a chunk to 16KB (the maximum size of the zlib buffer) for streaming output without the potential for DOS due to large memory growth.
running the test from note 15 show... -
03:52 AM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
- Hello,
This patch still works as-is with ruby-1.9.3-p194 and ruby-1.9.2-p320:
https://github.com/sunaku/ruby/compare/trunk...2294_bind_stack.patch
My coroutine example still needs this patch to succeed under Ruby 1.9:
https:/... - 03:46 AM Revision 04051396 (git): * ext/openssl/ossl_pkey_ec.c (ossl_ec_point_mul): nonstatic initializer
- of an aggregate type is a C99ism.
* ext/openssl/ossl_pkey_ec.c (ossl_ec_point_mul): get rid of VC++
warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:25 AM Revision 412c5a96 (git): * vm_eval.c (rb_eval_string_from_file,
- rb_eval_string_from_file_protect): new functions to replace
rb_compile_main_from_string() and ruby_eval_main().
* nacl/pepper_ruby.c: Follows the change in vm_eval.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36363 b2dd03c8-39... -
03:25 AM Revision 64ef091a (git): Reverts a half of r36079. As we discussed on ruby-dev@ and IRC,
- we do not need to disclose intermediate representation of program.
The program embedding CRuby should use rb_eval_string family.
* include/ruby/ruby.h (ruby_opaque_t): removed.
(ruby_compile_main_from_file, ruby_compile_main_from_strin... -
03:17 AM Revision 7bca2f03 (git): get rid of warnings
- * io.c (sysopen_func, rb_sysopen_internal): cast through VALUE to get
rid of warnings. fixup of r36355.
* process.c (rb_waitpid_blocking, rb_waitpid): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36361 b2dd03c8-39d4-4d8f... -
02:00 AM Revision 11bde3ae (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:16 AM Revision ce0b4fea (git): HAVE_RUBY_THREAD_H
- * include/ruby.h (HAVE_RUBY_THREAD_H): to show ruby/thread.h to be
available. fixup of r36355.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:23 AM Revision c444a7e3 (git): * ChangeLog: typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
07/10/2012
-
11:38 PM Feature #6321: Find and repair bad bytes in encodings, without transcoding
- I agree with jrochkind - I think this would be a very useful feature to have. It's not uncommon, when working with dirty source data, to have text which is almost but not quite correct. In circumstances where it's possible to be confiden...
-
07:18 AM Feature #6321: Find and repair bad bytes in encodings, without transcoding
- Another way to solve this, rather than add a new method, could be making String#encode with `:invalid => :replace` option work even when not changing encoding.
Right now:
# \xDF is not a valid byte in UTF-8
bad_bytes_in_u... -
07:08 AM Feature #6321: Find and repair bad bytes in encodings, without transcoding
- PS: I am working on simple not-quite-yet-released gem to do this, as best as I could figure out to do in pure ruby, for those who, like, me, do need it. https://github.com/jrochkind/ensure_valid_encoding
-
06:55 AM Feature #6321: Find and repair bad bytes in encodings, without transcoding
- > Raising exception as soon as possible sounds reasonable.
> ...
Why do you support `:invalid => :replace` on a String#encode operation? It's exactly the same use cases. Note that `:invalid => :replace` on String#encode applies to bytes... -
11:35 PM Feature #6717: Method like #instance_eval that returns self (like #tap)
- on the other hand that approach won't be suitable for nested tweak calls :)
-
10:26 PM Feature #6717: Method like #instance_eval that returns self (like #tap)
- =begin
It seems to me that the main question is if to allow new methods that act like (({instance_eval})), or call it under the hood. The advantage in my opinion is the possibility to use (({self})), instead of choosing and declaring a ... -
09:57 PM Feature #6717: Method like #instance_eval that returns self (like #tap)
- =begin
I'm against adding new methods which call (({instance_eval})) under the hood.
=end
-
09:47 PM Feature #6717: Method like #instance_eval that returns self (like #tap)
- =begin
For a few hours already i like this method so much, that i want to propose a short name for it: (({Object#!})) :) :
room_numbers = {}.! { (1..10).each { |n| self[n] = 100 + n } }
=end
-
08:58 PM Feature #6717 (Rejected): Method like #instance_eval that returns self (like #tap)
- =begin
How about adding a method that acts like (({#instance_eval})), but returns (({self}))?
Call it (({Object#instance_tap})) for example, or (({Object#tweak!})):
class Object
def tweak!(*args, &block)
instance_eval(*... -
11:26 PM Feature #6711: Optional typing and method overloading
- jballanc (Joshua Ballanco) wrote:
> Just a humble suggestion, but it seems like what you want is not so much method overloading as it is multidispatch. Clojure has a feature like this, and there is a gem that simulates the same: https:/... -
11:18 PM Feature #6711: Optional typing and method overloading
- matz (Yukihiro Matsumoto) wrote:
> Good try, but:
> ...
Wow, how did I completely forget about this?! :P
Well, I need to spend some time thinking in some valid syntax that won't conflict with named arguments.
> * You didn't defin... -
05:25 AM Feature #6711: Optional typing and method overloading
- Just a humble suggestion, but it seems like what you want is not so much method overloading as it is multidispatch. Clojure has a feature like this, and there is a gem that simulates the same: https://github.com/psantacl/ruby-multimethod...
-
02:30 AM Feature #6711 (Rejected): Optional typing and method overloading
- Good try, but:
* You cannot use # sign as type specifier, since it's already used as a comment sign.
* You didn't defined how type match should be done, but simple class hierarchy match would hinder duck typing.
Until above concer... -
10:57 PM Feature #5543 (Closed): rb_thread_blocking_region() API is poorly designed
- This issue was solved with changeset r36355.
Christopher, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
rb_thread_call_without_gvl
* include/ruby/thread.h: new h... -
06:53 PM Feature #5543: rb_thread_blocking_region() API is poorly designed
- (2012/07/08 5:06), larskanis1 (Lars Kanis) wrote:
>
> OK, then use 'void *' like rb_thread_call_with_gvl().
We conclude this feature follows:
(1) Don't touch the declaration of rb_thread_blocking_region().
And mark ... -
08:37 PM Feature #2674 (Assigned): RubyVM::InstructionSequence to accept IOs
-
07:27 PM Bug #6716 (Closed): FileUtils.mv でリンク先がないシンボリックリンクファイルを指定すると ENOENT エラーになる
- FileUtils.mv でリンク先がないシンボリックリンクファイルを指定すると ENOENT になります。
~~~
% ln -s unexist hoge
% ruby -v -rfileutils -e 'FileUtils.mv("hoge", "fuga")'
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
/home/tommy/ruby193/lib/ruby/1.9.1/fi... - 06:28 PM Revision 8119a73d (git): * 2012-07-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:28 PM Revision 3cf7d1b5 (git): * ext/zlib/zlib.c: Added streaming support to inflate processing.
- This allows zlib streams to be processed without huge memory growth.
[Feature #6612]
* NEWS: ditto
* ext/zlib/zlib.c (zstream_expand_buffer): Uses rb_yield when a block
is given for streaming support. Refactored to use
zstream_e... -
06:23 PM Feature #6693: Don't warn for unused variables starting with _
- On 09/07/12 14:54, marcandre (Marc-Andre Lafortune) wrote:
>
> Issue #6693 has been updated by marcandre (Marc-Andre Lafortune).
>
>
> Hi,
>
> regularfry (Alex Young) wrote:
>> I don't know about anyone else, but I'm alr... -
04:25 PM Bug #6137: openssl: hardcoded MD5 use leads to SSL server failure in FIPS mode
- Since this was originally reported against 1.8.7, could you please backport it? Or is 1.8.7 maintenance already over? Thank you.
-
03:53 PM Feature #6503: Support for the NPN extension to TLS/SSL
- On 2012/07/06 16:10, MartinBosslet (Martin Bosslet) wrote:
>
> Issue #6503 has been updated by MartinBosslet (Martin Bosslet).
>
>
> duerst (Martin Dürst) wrote:
>> Just a small detail: That should be IETF politics, I gues... -
01:57 PM Revision c51a8267 (git): rb_thread_call_without_gvl
- * include/ruby/thread.h: new header file for thread stuff.
* thread.c (rb_thread_call_without_gvl): export. [Feature#4328]
returns void* instead of VALUE. [Feature #5543]
* thread.c (rb_thread_blocking_region): deprecate. [ruby-core... -
11:12 AM Bug #6715 (Rejected): Dir.mktmpdir fails if you delete it yourself
- Dir.mktmpdir when given a block will call `FileUtil.remove_entry_secure` in the ensure section. If the contents of the block happens to move/delete/modify that folder, then that will fail with Errno::ENOENT. I believe the correct behavio...
-
10:33 AM Feature #6620 (Assigned): Add ' to CGI's HTML escaping
- Sorry, I confirmed this specification in HTML5.
I will import ' later.
Please wait.
-
09:04 AM Feature #6612 (Closed): Add streaming inflate and deflate to Zlib
- This issue was solved with changeset r36349.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/zlib/zlib.c: Added streaming support to inflate processing... -
05:46 AM Bug #6692: TestSocket::test_udp_server always fails on OS X with Back to my Mac enabled
- netstat says this about the iCloud route:
fd92::[…] link#1 UHL lo0
So there's no reason it shouldn't work that I can see.
I think skipping IPv6 addresses for fc00::/7 is the best solution.
The attached patch adds Addrinfo#ipv... -
05:21 AM Feature #6714 (Closed): Code injection framework
- # Abstract
Introducing code injection framework. Different from set_trace_func(), this framework injects codes only specified points.
Note that this proposal is not implemented and well designed (only rough idea) but I dumped it t... -
03:59 AM Feature #6710: new special binding specifier :isolated
- Hi,
(2012/07/09 23:19), jballanc (Joshua Ballanco) wrote:
> I like this idea, but I have one question: why make this a special argument to `eval` and not to `Binding.new`?
Just a performance. My proposal doesn't make any bi... -
03:51 AM Revision 1a853390 (git): * ext/zlib/zlib.c: Revert r36349. Added streaming support to inflate
- processing. rb_block_given_p() is not callable without the GVL.
* ext/zlib/extconf.rb: ditto
* NEWS: ditto
* test/zlib/test_zlib.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:35 AM Revision 25f03737 (git): sample/test.rb: Progress::Rotator
- * sample/test.rb (Progress): refactor to separate Rotator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:00 AM Revision 9804e68f (git): sample/test.rb: newline
- * sample/test.rb (PROGRESS.finish): newline after each tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:05 AM Feature #6712 (Rejected): Introduce super! for calling old definition when reopening classes
- Rejecting because of unworkability and no longer any use cases.
-
01:46 AM Feature #6712: Introduce super! for calling old definition when reopening classes
- good catch :) Have no idea :P Just raise an exception "super! can't be used with eval" :)
-
01:04 AM Feature #6712: Introduce super! for calling old definition when reopening classes
- @rosenfeld remember eval.
def a
eval("super!") * 3
end
should what happen? - 01:49 AM Revision 64ae820d (git): * include/ruby/win32.h (NT, NtInitialize): removed unused old macros.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:45 AM Revision 8a02eed7 (git): * configure.in: removed --enable/disable-win95 options. (see r36432)
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:30 AM Feature #4151: Enumerable#categorize
- =begin
I would add a new method to initialize or fill (({Hash})): (({Hash::new(enum) { |k| value_for_key(k) }}))
Also, how about:
Object#tap_for_each(enum) { |o, e| do something to o using e }
For example:
hash = {}.tap_for_each([... -
12:04 AM Revision 3e419e6c (git): * ext/zlib/zlib.c: Added streaming support to inflate processing.
- This allows zlib streams to be processed without huge memory growth.
[Feature #6612]
* NEWS: ditto
* ext/zlib/zlib.c (zstream_expand_buffer): Uses rb_yield when a block
is given for streaming support. Refactored to use
zstream_e...
07/09/2012
-
11:19 PM Feature #6710: new special binding specifier :isolated
- =begin
I like this idea, but I have one question: why make this a special argument to `eval` and not to `Binding.new`? I've wanted `Binding` to become better specified and more refined for some time now, and I think this would be a good... -
03:34 PM Feature #6710 (Rejected): new special binding specifier :isolated
- =begin
= Abstract
New special binding specifier :isolated for the 2nd argument of eval() method.
eval(src, :isolated) evaluates `src' program on the same environment as `require' and 'load'.
It is a bit different from `TOPLEVEL_B... -
11:02 PM Feature #6265: Remove 'useless' 'concatenation' syntax
- Changing target for 2.0 so that we add the deprecation warning.
A warning is good practice and should happen at the best moment: at parse time. -
10:59 PM Feature #6712: Introduce super! for calling old definition when reopening classes
- @shyouhei, I think the behavior should be the same as the "prepend" behavior described by @marcandre.
def a
super! * 3
end
would be a short syntax for
prepend Module.new {
def a
super * 3
end
}
I'm not really worried about w... -
10:45 PM Feature #6712: Introduce super! for calling old definition when reopening classes
- Hi,
> I'd prefer to have an official non-hacking way of achieving the same with just Ruby. Something simpler like:
> ...
The `alias_method_chain` pattern is now obsolete with `Module#prepend`:
module Triple
def a
super * 3... -
10:40 PM Feature #6712: Introduce super! for calling old definition when reopening classes
- (1) I don't like the name
(2) It's not obvious what'd happen. What if A includes other module, which also define a method? alias_method_chain is clear about it because alias_method_chain is evaluated at the time of class loading. Your ... -
10:23 PM Feature #6712 (Rejected): Introduce super! for calling old definition when reopening classes
- ActiveSupport adds support for alias_method_chain which is a hack for being able to call the original method being overriden when reopening a class:
Extracted from documentation:
http://apidock.com/rails/ActiveSupport/CoreExtension... -
10:54 PM Feature #6693: Don't warn for unused variables starting with _
- Hi,
regularfry (Alex Young) wrote:
> I don't know about anyone else, but I'm already using _foo as a pattern
> ...
I don't think that it would be confusing. We don't confuse variables with methods already, right?
Also, I feel t... -
05:40 PM Feature #6693 (Feedback): Don't warn for unused variables starting with _
- Sorry, missed [ruby-core:46170].
Now I incline to revert the commit. Any idea? -
05:23 PM Feature #6693: Don't warn for unused variables starting with _
- > なかだです。
>
> At Mon, 9 Jul 2012 06:32:58 +0900,
> SASADA Koichi wrote in [ruby-dev:45925]:
>>
>> これって入れるって決まったんでしたっけ.
>
> いや、どうでもよさそうな話だったので適当に突っ込んでみました。
この話、反対意見があったと記憶してます。 [ruby-core:46170]
privateっぽいやつに _ つかって見分... -
04:29 PM Feature #6693: Don't warn for unused variables starting with _
- なかだです。
At Mon, 9 Jul 2012 06:32:58 +0900,
SASADA Koichi wrote in [ruby-dev:45925]:
>
> これって入れるって決まったんでしたっけ.
いや、どうでもよさそうな話だったので適当に突っ込んでみました。
--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
中田 伸悦 -
06:53 AM Feature #6693: Don't warn for unused variables starting with _
- これって入れるって決まったんでしたっけ.
(2012/07/08 7:42), nobu wrote:
> nobu 2012-07-08 07:36:25 +0900 (Sun, 08 Jul 2012)
>
> New Revision: 36337
>
> http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36337
>
> L... -
10:26 PM Feature #6711: Optional typing and method overloading
- Actually the precedence should be:
1 - max number of matched argument types
2 - max number of better matched argument types # Float is a better match for 1.2 than Numeric
3 - max number of consecutive matched argument types -
10:15 PM Feature #6711 (Rejected): Optional typing and method overloading
- Today I woke up with some ideas to overcome some of the features I miss in Ruby. I've searched for similar issues and I found this #5583, which was rejected.
But my idea is a bit different and also concerns about method overloading. S... -
06:41 PM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- erikh (Erik Hollensbe) wrote:
> I've attached a new patch -- this implements the same functionality but refers to it as `all_values` and reverts the old changes to `values_at`. This is fundamentally the same functionality as `values_at`... -
11:50 AM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- Hi folks, can I get some feedback on this patch before feature freeze? Thanks.
-
03:53 PM Revision 428a5a9c (git): * include/ruby/ruby.h: Removed RUBY_GLOBAL_SETUP complely. It is
- no meaning definition since r24894.
* main.c: ditto.
* nacl/pepper_main.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:52 PM Revision fe0b5d49 (git): * 2012-07-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:52 PM Revision 3e1d8aab (git): * dln.c: Simplify and make consistent an ifdef for Mac OS X.
- * ext/socket/rubysocket.h: ditto.
* ext/tk/stubs.c: ditto.
* io.c: ditto.
* process.c: ditto.
* signal.c: ditto.
* vm_dump.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:31 PM Feature #6697 (Feedback): [PATCH] Add Kernel#Symbol conversion method like String(), Array() etc.
- String(obj) calls obj.to_str first, then calls obj.to_s.
So they are different.
Integer("foo") raises ArgumentError, but "foo".to_i returns 0.
Array("foo") returns ["foo"], but "foo".to_a raises NoMethodError on 1.9.
Hash(nil) retu... -
01:26 PM Feature #6620: Add ' to CGI's HTML escaping
- ' is a valid entity for both XHML (http://www.w3.org/TR/xhtml1/dtds.html) and HTML5 (http://www.w3.org/TR/2011/WD-html5-20110525/syntax.html#attributes-0), and is supported by all mainstream browsers. It is a potential security risk...
-
01:12 PM Revision f40412e2 (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:04 AM Bug #6708 (Closed): Remove useless parameter
- https://github.com/ruby/ruby/pull/143
- 08:38 AM Revision 2e5dcb53 (git): * win32/win32.c (win95_stat): remove unnecessary macro.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:33 AM Revision 284d912e (git): * include/ruby/win32.h: sorry, mistaken.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:25 AM Revision 9d271169 (git): * win32/configure.bat, win32/setup.mak, win32/Makefile.sub: omit Win9x
- support. remove --enable/disable-win95 option.
* include/ruby/win32.h, file.c, win32/win32.c: ditto.
* win32/README.win32: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:57 AM Feature #6682: Add a method to return an instance attached by a singleton class
- I opened a pull request for this feature: https://github.com/ruby/ruby/pull/142
-
04:35 AM Revision 9a8a2fd2 (git): ext/zlib/zlib.c: initialize return value
- * ext/zlib/zlib.c (zstream_run_func): initialize the return value,
interrupt flag may set before starting loop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:35 AM Revision 66f4c3f1 (git): suppress warnings on mingw32
- * atomic.h (ATOMIC_SIZE_): cast to suppress warnings on mingw32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:28 AM Revision 349ea593 (git): * 2012-07-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:28 AM Revision 37c8b685 (git): mkmf.rb: add TARGET_NAME
- * configure.in (DLDFLAGS): use TARGET_ENTRY to specify an entry point
instead of TARGET which may contain non-identifer characters.
* lib/mkmf.rb (create_makefile): add TARGET_NAME which is the first
part consists of only word charac... -
01:40 AM Feature #6707 (Rejected): Remove checks for Ruby 1.9 in trunk
- We don't need those checks anymore.
https://github.com/ruby/ruby/pull/141
07/08/2012
-
11:45 PM Feature #4151: Enumerable#categorize
- After a nap I awoke realizing the exact same thing. Which leads me to think likewise, we need such a method --a new "each_with_object" method with very concise name and an the initial object defaulting to {}. Probably also with the block...
-
10:56 PM Feature #4151: Enumerable#categorize
- trans (Thomas Sawyer) wrote:
> I have given this subject matter considerable thought, and I believe the best definition is as follows:
> ...
That's Enumerable#each_with_object with
arguments reversed and a default {} for obj:
[... -
09:28 PM Feature #4151: Enumerable#categorize
- One further point... whether #categorize is still the best name for this given the definition seems a reasonable question. An alternative might be #hinge, in the sense that it hangs consecutive elements on to a hash.
-
09:18 PM Feature #4151: Enumerable#categorize
- =begin
I have given this subject matter considerable thought, and I believe the best definition is as follows:
# Apply each element of an enumerable to a hash
# by iterating over each element and yielding
# the hash and element.
... -
05:16 PM Feature #6684: Object#do
- sorah (Shota Fukumori) wrote:
> No problem to reject?
no problem. thank you.
-
09:47 AM Feature #6684 (Rejected): Object#do
- No problem to reject?
-
08:14 AM Bug #6706 (Closed): Improve documentation for Continuation
- Add links to Kernel#callcc for cross reference.
Improve formatting. -
07:36 AM Feature #6693 (Closed): Don't warn for unused variables starting with _
- This issue was solved with changeset r36337.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
[Feature #6693]
* parse.y (shadowing_lvar_gen, warn_unused... -
07:17 AM Bug #6704: Random core dump
- You mean the Python stuff? I noticed that too, if I were to guess it has to do with Pygments, but maybe not given what the dump says.
Probably should make clear that this is coming from Smeagol app I am working on which is a fairly th... -
06:53 AM Bug #6704: Random core dump
- The most important part, stack trace, is lost, but seems there are unusual extension libraries?
-
03:01 AM Bug #6704: Random core dump
- This one got mangled. Please remove.
-
02:59 AM Bug #6704 (Rejected): Random core dump
- =begin
I keep getting this core dump, but it seems completely random. Here is as much of the dump as I could copy:
513 /home/rubyworks/Projects/rubyworks/smeagol/lib/smeagol.rb
514 /home/trans/.local/lib/ry/rubies/1.9.3-p194/lib... -
05:06 AM Feature #5543: rb_thread_blocking_region() API is poorly designed
- OK, then use 'void *' like rb_thread_call_with_gvl().
-
03:00 AM Bug #6705 (Closed): Random core dump
- =begin
I keep getting this core dump, but it seems completely random. Here is as much of the dump as I could copy:
513 /home/rubyworks/Projects/rubyworks/smeagol/lib/smeagol.rb
514 /home/trans/.local/lib/ry/rubies/1.9.3-p194/lib...
07/07/2012
-
10:36 PM Revision fbacb71b (git): [Feature #6693]
- * parse.y (shadowing_lvar_gen, warn_unused_var): no warnings for
variables starting with _. [ruby-core:46160][Feature #6693]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:38 PM Revision cf06ed4f (git): suppress warning
- * lib/test/unit.rb (terminal_width): suppress uninitialized instance
variable warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:36 PM Revision 191f4734 (git): * 2012-07-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:36 PM Revision 6e469999 (git): test/ruby/test_rubyoptions.rb: tests for another name
- * test/ruby/test_rubyoptions.rb (test_{unused,shadowing_variable):
tests for another name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:28 PM Feature #6697: [PATCH] Add Kernel#Symbol conversion method like String(), Array() etc.
- You could make the same argument against String. Why would you use that over `#to_s`? I can't think of any use cases for that :)
To me, it's really about API consistency. I don't believe you would actually use it frequently, but inclu... -
01:18 PM Feature #6697: [PATCH] Add Kernel#Symbol conversion method like String(), Array() etc.
- I can't think any use cases of Kernel.#Symbol, could you tell me the use case?
(Why Kernel.#Symbol makes sense?) - 02:14 PM Revision 5f7cbbfb (git): * 2012-07-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:14 PM Revision 331352e6 (git): * test/csv/test_features.rb: add require for Tempfile.
- * test/csv/test_serialization.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
07/06/2012
-
08:06 PM Bug #4487: require_relative fails in an eval'ed file
- naruse (Yui NARUSE) wrote:
> Eregon (Benoit Daloze) wrote:
> ...
I see, you're right.
Indeed, with this in mind I think it's not worth changing, and the actual require_relative behavior is clearer (relative to "this file" directory, i... -
07:21 PM Bug #4487: require_relative fails in an eval'ed file
- shyouhei (Shyouhei Urabe) wrote:
> naruse (Yui NARUSE) wrote:
> ...
* irb is not the only user of eval.
* A user won't always use require_relative intentionally.
* There is a suitable another way: require './myfile'
With those rea... -
07:08 PM Bug #4487: require_relative fails in an eval'ed file
- naruse (Yui NARUSE) wrote:
> require_relative is introduced to avoid accidentally require a malicious file on the current working directory.
> ...
I'm not pretty sure about this. Is there a chance for a (proposed behaviour of) require... -
06:59 PM Bug #4487: require_relative fails in an eval'ed file
- Eregon (Benoit Daloze) wrote:
> shyouhei (Shyouhei Urabe) wrote:
> ...
require_relative is introduced to avoid accidentally require a malicious file on the current working directory.
So it can't be acceptable.
Use require or load on ... -
06:13 PM Bug #4487: require_relative fails in an eval'ed file
- shyouhei (Shyouhei Urabe) wrote:
> Current require_relative loads relative from where the require_relative command is written. So when in IRB sessions, it fails to infer where it is beacuse the command is written in a non-file (console... -
05:52 PM Bug #4487: require_relative fails in an eval'ed file
- =begin
@LTe I'd rather ask you "require_relative loads something relative from WHAT?"
Obviously it is not relative from your mind :)
Current require_relative loads relative from where the require_relative command is written. So w... -
04:04 PM Bug #4487: require_relative fails in an eval'ed file
- @shyouhei yes I agree but load method tries to load file from relative path. When load method can't find file in relative path it loads from $LOAD_PATH. The same can be done by require_relative (recognize path).
https://github.com/rub... -
06:53 PM Feature #3346: __DIR__ revisted
- I was against the name __DIR__ for years,
but now I'm for __dir__ if __file__ and __line__ method is also added. -
05:53 PM Bug #6699: rb_barrier_wait() gets blocked when running within a Thread.new { }
- Thanks for the clarification.
-
05:28 PM Bug #6692: TestSocket::test_udp_server always fails on OS X with Back to my Mac enabled
- I notice the existence of this issue for year but can't understand how to reproduce and fix.
Now your info, enabling iCloud, reproduces this, thanks!
But I still cannot understand the reason why ruby can't communicate with the addres... -
04:58 PM Bug #6696: [PATCH] ERB::Util.url_encode should not escape unreserved characters
- This can change but need not, so up to seki, the maintainer.
やってもやらなくてもいい変更だと思っているので、関さんにお任せします。 -
04:32 PM Bug #6696: [PATCH] ERB::Util.url_encode should not escape unreserved characters
- The tilde was added to the unreserved characters in URIs in RFC 2396. It is specifically mentioned in http://tools.ietf.org/html/rfc2396#appendix-G.2:
The tilde "~" character was added to those in the "unreserved" set,
since it... -
04:08 PM Feature #6503: Support for the NPN extension to TLS/SSL
- duerst (Martin Dürst) wrote:
> Just a small detail: That should be IETF politics, I guess. But I'm also
> ...
Just out of curiosity - because IETF is in charge of the TLS extension registry?
That's what I think I understood from [1... -
04:03 PM Feature #6503: Support for the NPN extension to TLS/SSL
- > On 2012/07/06 3:23, igrigorik (Ilya Grigorik) wrote:
> ...
No problem :)
> @Martin: I don't follow the IANA politics,
> ...
Yes, and to be honest, I'm also in favor of the technology, just wanted to make sure that it's stable enou... -
03:53 PM Feature #6503: Support for the NPN extension to TLS/SSL
- On 2012/07/06 3:23, igrigorik (Ilya Grigorik) wrote:
>
> Issue #6503 has been updated by igrigorik (Ilya Grigorik).
>
>
> Hey guys, apologies about the wait.
>
> @Martin: I don't follow the IANA politics,
Just a small... -
03:23 AM Feature #6503: Support for the NPN extension to TLS/SSL
- Hey guys, apologies about the wait.
@Martin: I don't follow the IANA politics, but for what its worth, I would consider it stable at this point. The support is there in OpenSSL, we have 50% of the browser market share using it to nego... -
12:10 PM Bug #6702: Date should be either required or not
- drbrain (Eric Hodel) wrote:
> (As a trade-off, Date and DateTime give you a much larger range than a Time.)
"Date and DateTime *had given* ..."
In 1.9 or later, Time has arbitrary range and precision. -
07:35 AM Bug #6702 (Closed): Date should be either required or not
- The pull request was rejected due to its implementation. For compatibility with old gems a Date class must be defined. I decided to switch to require 'date' since rubygems/specification.rb is lazily loaded now and the cost of loading it...
-
06:06 AM Bug #6702: Date should be either required or not
- By the way, I forgot to say that that pull request was rejected. Please take a look at the link above for the reasoning behind it.
-
06:05 AM Bug #6702: Date should be either required or not
- Is Date that slow to require when compared to Time? Wouldn't it be possible to make it faster to load by lazy loading some parts and include it by default instead of having to require it manually?
That would certainly make programmers... -
12:25 AM Bug #6702: Date should be either required or not
- By the way, what is the reason for Time being included by default but not Date?
-
12:24 AM Bug #6702: Date should be either required or not
- I've sent a pull request: https://github.com/rubygems/rubygems/pull/351
-
12:09 AM Bug #6702 (Assigned): Date should be either required or not
- Hello,
This is caused by rubygems/specification:
$ ruby -rrubygems/specification -e 'p Date; Date.today'
Date
-e:1:in `<main>': undefined method `today' for Date:Class (NoMethodError)
See: https://github.com/rubygems/rub... -
06:54 AM Bug #6680: Unclear rdoc for Array and String slicing
- I incorporated the ideas of your two patches which seem to help clarify things. Let me know if this latest patch needs further adjustment.
-
06:50 AM Bug #6680 (Closed): Unclear rdoc for Array and String slicing
- This issue was solved with changeset r36328.
Marcus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c (rb_ary_aref): Added a description of the behavior o... -
05:42 AM Bug #6680 (Assigned): Unclear rdoc for Array and String slicing
-
06:27 AM Bug #6703 (Rejected): openssl: using a newly registered extension
- When registering a new ASN.1 extension OBJ_create(), it should make it available for OBJ_ln2nid() and OBJ_sn2nid() searches that are performed in OpenSSL::X509::ExtensionFactory.create_ext
I've attached a ruby case where this should wor... -
04:49 AM Feature #6617: Net::HTTP: Bind to a specific local IP/port
- =begin
You need to initialize instance variables to prevent warnings on uninitialized access:
$ ruby -we 'p @x'
-e:1: warning: instance variable @x not initialized
nil
=end
-
03:47 AM Feature #6612: Add streaming inflate and deflate to Zlib
- It looks like using ruby_xrealloc() will solve this, correct?
-
03:46 AM Revision 8a995a56 (git): thread.c: unsigned
- * thread.c (rb_thread_shield_waiting_{inc,dec}): should be unsigned.
int is large enough since ruby requires it to be 32bit at least.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:27 AM Revision 1474cfa8 (git): obsolete Config
- * lib/rbconfig/obsolete.rb (Config): remove obsolete Config.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:24 AM Revision a2d0ee62 (git): ThreadShield: check waiting count
- * thread.c (rb_thread_shield_waiting_{inc,dec}): check waiting count.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e