Activity
From 02/14/2016 to 02/20/2016
02/20/2016
-
05:32 PM Feature #12094 (Open): parameterized property assignment: o.prop(arg) = 1
- ```ruby
module Mod
@foo = {}
def self.foo(k)
@foo[k]
end
def self.foo=(k, v)
@foo[k] = v
end
end
Mod1.foo(:key1) ||= 'val1'
``` -
03:34 PM Feature #12079: Loosening the condition for refinement
- To the list of relevant constructions, I would also like to add `inject` when it takes a symbol argument.
~~~RUBY
module Foo
refine String do
def baz a, b; a + b * 2 end
end
end
using Foo
["x", "y", "z"].inject(:baz) ... -
12:00 PM Feature #12093 (Rejected): Eval InstructionSequence with binding
- Implementing this feature can boost template engine performance
Currently Kernel#eval can accept binding argument, so code running with eval will have access to local variables and current instance. This feature used by template langu... -
09:36 AM Revision ab86bab9 (git): test_dir_m17n.rb: fix ASCII-8BIT env
- * test/ruby/test_dir_m17n.rb (test_glob_encoding): get rid of
conversion when LC_ALL=C and filesystem encoding is ASCII-8BIT.
[ruby-core:73868] [Bug #12081]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53881 b2dd03c8-39d4-4d8f-... - 06:39 AM Revision 68d4d7e4 (git): doc/extension.rdoc: update paths for defs/ directory
- These files were moved in r19844
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:44 AM Revision 7cb7b5f7 (git): Fix Module#module_eval rdoc [ci skip]
- * vm_eval.c (rb_mod_module_eval): [DOC] Fix documentation
signature for Module#module_eval. [Fix GH-1258]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:41 AM Revision 27c7dfa7 (git): Update README.md
- * README.md: a few grammatical changes to the main Ruby README.md.
[Fix GH-1259]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:04 AM Revision 4f969f6e (git): dir.c: paths as UTF-8
- * dir.c (push_pattern, push_glob): deal with read paths as UTF-8
to stat later, on Windows as well as OS X.
[ruby-core:73868] [Bug #12081]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:04 AM Bug #12081 (Closed): Dir['*'] doesn't list files which name include Chinese character on Simplefied Chinese Windows
- Applied in changeset r53877.
----------
dir.c: paths as UTF-8
* dir.c (push_pattern, push_glob): deal with read paths as UTF-8
to stat later, on Windows as well as OS X.
[ruby-core:73868] [Bug #12081]
02/19/2016
-
11:10 PM Feature #12075: some container#nonempty?
- Perhaps the name .contains? might be good?
Although, .include? sort of is more or less synonymous with .contains? so perhaps this is not a good choice either.
.nonempty? seems a bit long, .non_empty? would be even longer :)
.emp... -
08:34 PM Feature #12092 (Rejected): Allow Object#clone to yield cloned object before freezing
- This allows creating modified clones of frozen objects that have
singleton classes:
~~~ruby
a = [1,2,3]
def a.fl; first + last; end
a.freeze
a.fl # => 4
clone = a.clone{|c| c << 10}
clone.last # => 10
clone.fl # => 11
clone... -
07:27 PM Bug #12091 (Closed): Freezing a SortedSet breaks Enumerable
- If you freeze a `SortedSet` it looses most functionality because of the way `to_a` is implemented:
```
irb(main):001:0> require 'set'
=> true
irb(main):002:0> Set.new.freeze
=> #<Set: {}>
irb(main):003:0> SortedSet.new.freeze
Ru... -
05:01 PM Bug #12090: `Range#cover` does not raise an exception when comparison fails
- Raising an error would break backward compatibility. Maybe `cover?` should just return `nil` to indicate incomparable values.
("a".."z").cover?("c") # => true
("a".."z").cover?("5") # => false
("a".."z").cover?(1) #... -
03:37 PM Bug #12090 (Closed): `Range#cover` does not raise an exception when comparison fails
- The documentation for `Range#cover?` says,
~~~
cover?(obj) → true or false
Returns true if obj is between the begin and end of the range.
This tests begin <= obj <= end when exclude_end? is false and begin <= obj < end when exc... - 04:54 PM Revision 094cfc44 (git): * 2016-02-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:54 PM Revision 8790fdce (git): object.c: fix error message
- * object.c (rb_mod_const_get): make error message at uninterned
string consistent with symbols. [ruby-dev:49498] [Bug #12089]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:53 PM Bug #12089 (Closed): Raise not stable NameError
- Applied in changeset r53875.
----------
object.c: fix error message
* object.c (rb_mod_const_get): make error message at uninterned
string consistent with symbols. [ruby-dev:49498] [Bug #12089] -
01:46 PM Bug #12089 (Closed): Raise not stable NameError
- Is this intentional?
```
irb(main):001:0> Object.const_get('A')
NameError: uninitialized constant Object::A
irb(main):002:0> :A
=> :A
irb(main):003:0> Object.const_get('A')
NameError: uninitialized constant A
``` -
04:53 PM Bug #12088: Segmentation fault at 0x00000000000000 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
- Also sometimes getting this error
~~~
*** glibc detected *** ruby: double free or corruption (fasttop): 0x00007f5978043ad0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x349b675e66)[0x7f59b0da8e66]
ruby(ruby_xfree+0x3c)[0x7... -
02:21 PM Bug #12088 (Feedback): Segmentation fault at 0x00000000000000 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
- Seems a GC problem.
Could you try the latest 2.2? -
11:09 AM Bug #12088 (Closed): Segmentation fault at 0x00000000000000 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
- Sometimes getting subj error on Jenkins machine
~~~ruby
# convert [[1,1][2,2]] to {1:1,2:2}
def columns_hash
Hash[columns.map { |col|
[col.name, col]
}]
end
~~~
~~~
[BUG] Segmentatio... -
02:38 PM Revision 3ad8210c (git): find.rb: raise with the name
- * lib/find.rb (Find#find): raise with the given path name if it
does not exist. [ruby-dev:49497] [Bug #12087]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:37 PM Bug #12087 (Closed): Find.find に存在しないパスを渡した時のエラーにパス名がない
- Applied in changeset r53874.
----------
find.rb: raise with the name
* lib/find.rb (Find#find): raise with the given path name if it
does not exist. [ruby-dev:49497] [Bug #12087] -
09:08 AM Bug #12087 (Closed): Find.find に存在しないパスを渡した時のエラーにパス名がない
- `ruby -rfind -e 'Find.find("/hoge"){}'` で /hoge が存在しない場合に発生するエラーが `No such file or directory (Errno::ENOENT)` でパス名が含まれてません。
エラーにパス名を含めて欲しいです。次の修正で `No such file or directory - /hoge (Errno::ENOENT)` となります。
```diff
diff --git a/lib... -
12:02 PM Misc #12004: Code of Conduct
- Brad Grzesiak wrote:
> I'm not a fan of the published document. I do not believe it adequately defines the qualities of a hospitable community. I assert that a reasonable Code of Conduct requires 4 things:
> ...
you assert. I assert ot... -
07:58 AM Revision c7f815ee (git): test/ruby: suppress runtime warnings
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:48 AM Revision 41f4317f (git): test/ruby: suppress parser warnings
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:45 AM Revision 311b7154 (git): test: use assert_not_*
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:34 AM Feature #12086 (Open): using: option for instance_eval etc.
- Currently refinements can be activated only in toplevel or class/module definitions.
If they can be activated in block-level, it's useful to implement internal DSLs.
How about to add a new option using: for Kernel#instance_eval and M... -
04:06 AM Bug #12071 (Closed): Gem installation fails with 2.3.0 on Cygwin
-
03:45 AM Revision 6286ff63 (git): * enc/unicode.c: Activated use of case mapping data in CaseUnfold_11 array.
- (with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:20 AM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
- This feature is **only** for "did_you_mean" gem, so I think that any name is OK, including implementation details.
`private_call?`
`explicit_receiver?`
`fcall?`
`were_you_a_function?`
`demon_from_the_nose?`
etc. - 02:09 AM Revision 1f5a0995 (git): * 2016-02-19
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:09 AM Revision 9bfa5d91 (git): extmk.rb: cygwin case
- * ext/extmk.rb: add cygwin case, nothing excluded.
[ruby-core:73806] [Bug#12071]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:02 AM Feature #12085 (Closed): [PATCH] openssl: document `exception: false' for *_nonblock
- * ext/openssl/lib/openssl/buffering.rb
(read_nonblock, write_nonblock): document `exception: false'
Updated v2 patch since [Bug #12126] is split out.
Also updated for read_nonblock.
02/18/2016
-
10:54 PM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
- If this can help you, here is the `config.log` and `build.log` from compilation.
-
08:03 PM Misc #12004: Code of Conduct
- Coraline Ada Ehmke wrote:
> Since people are repeatedly bringing up Opal as a reason not to adopt a code of conduct, I'd like to point to a blog post giving my perspective on what happened. It includes a quote by the project owner, Adam... -
12:33 PM Revision cf87846f (git): fix output in EXAMPLES [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:06 PM Revision 49a272d7 (git): string.c: Symbol#match
- * string.c (sym_match_m): delegate to String#match but not
String#=~. [ruby-core:72864] [Bug #11991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:05 PM Bug #11991 (Closed): `Symbol#match` returns the match position, unlike `String#match` and `Regexp#match`
- Applied in changeset r53866.
----------
string.c: Symbol#match
* string.c (sym_match_m): delegate to String#match but not
String#=~. [ruby-core:72864] [Bug #11991] -
09:31 AM Feature #12084 (Closed): `Class#instance`
- For meta-programming/debugging purposes, I would like to request the inverse of `Object#singleton_class`. Namely, a method that is called on a class that is a singleton class, and returns the object it is a singleton of. Since the `Singl...
-
08:54 AM Bug #12081: Dir['*'] doesn't list files which name include Chinese character on Simplefied Chinese Windows
- Nobuyoshi Nakada wrote:
> What is your code page?
CP936 -
07:31 AM Bug #12081: Dir['*'] doesn't list files which name include Chinese character on Simplefied Chinese Windows
- What is your code page?
-
01:40 AM Bug #12081 (Closed): Dir['*'] doesn't list files which name include Chinese character on Simplefied Chinese Windows
- ```
>dir A:\Build
驱动器 A 中的卷是 RAMDISK
卷的序列号是 411D-42E2
A:\Build 的目录
2016/02/18 09:23 <DIR> .
2016/02/18 09:23 <DIR> ..
2016/02/18 09:23 <DIR> dir1
2016/02/18 09:22 0 f... -
07:53 AM Revision 38c0bdcc (git): downloader.rb: defer warning
- * tool/downloader.rb (Downloader.download): warn using http only
when really downloading.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:22 AM Bug #11928 (Closed): Segmentation fault in did_you_mean extension
- Never change the status!
"Open" means that it's not fixed in trunk and then not be able to be backported yet.
"Closed" means "It's already fixed! Now it can be backported!" -
06:05 AM Bug #11928 (Open): Segmentation fault in did_you_mean extension
- I'm re-opening this ticket as the fix needs to be backported to 2.3.0 as well.
- 05:29 AM Revision 5a6b0903 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:29 AM Revision e8074a38 (git): * re.c: Add MatchData#named_captures
- [Feature #11999] [ruby-core:72897]
* test/ruby/test_regexp.rb(test_match_data_named_captures): Test for above.
* NEWS: News about MatchData#named_captures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53863 b2dd03c8-39d4-4d8f-98f... -
05:28 AM Feature #11999 (Closed): MatchData#to_h to get a Hash from named captures
- Applied in changeset r53863.
----------
* re.c: Add MatchData#named_captures
[Feature #11999] [ruby-core:72897]
* test/ruby/test_regexp.rb(test_match_data_named_captures): Test for above.
* NEWS: News about MatchData#named_captures. -
04:35 AM Feature #12083 (Open): $_ and $~ by Binding#local_variable_{get,set}
- I think `Binding#local_variable_get` and `Binding#local_variable_set` may deal with special method-local variables, `$_` and `$~`.
https://github.com/ruby/ruby/compare/trunk...nobu:feature/Binding-svar -
04:35 AM Bug #12082 (Closed): Tail-calling method can't catch exception raised by tail-called method
- The following code doesn't work as expected, on all versions of Ruby with tail call optimization (1.9.1 to 2.3.0).
~~~ruby
def do_raise
raise "should be rescued"
end
options = {
tailcall_optimization: true,
trace_instructi...
02/17/2016
-
11:21 PM Feature #9969: Add File.empty? as alias to File.zero?
- I added a comment on issue #10121 before knowing this specific issue already existed.
I just wanted to say that, with the arrival of Dir.empty?, I like the idea of the File.empty? alias for the reason of having some symmetry between D... -
10:48 PM Misc #12004: Code of Conduct
- I'm not a fan of the published document. I do not believe it adequately defines the qualities of a hospitable community. I assert that a reasonable Code of Conduct requires 4 things:
1. Sufficiently specific and mostly comprehensive d... -
07:47 AM Misc #12004 (Closed): Code of Conduct
- We have set our Code of Conduct.
https://www.ruby-lang.org/en/conduct/
I hope it works. We may upgrade it if something happens.
Matz.
-
09:35 PM Bug #12070: "wrong argument type nil" when installing any gem with Puppet on Arch Linux
- Looks like [the code](https://github.com/ruby/ruby/blob/ruby_2_3/lib/rubygems/installer.rb#L674) fails because Puppet's default environment doesn't contain the `HOME` variable.
Workaround: Use Puppet's `Exec` directive and set the `HO... -
03:16 PM Revision e4809b05 (git): test_dir.rb: Dir.empty? with directories
- * test/ruby/test_dir.rb (test_empty): check with directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:14 PM Revision be9699a2 (git): test_dir.rb: Dir.empty? with dot file
- * test/ruby/test_dir.rb (test_empty): check with a dot file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:00 PM Revision 5b24766d (git): * 2016-02-18
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:00 PM Revision 527a1eb0 (git): ChangeLog: remove duplicate entry [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:33 PM Revision 19413ef4 (git): fix typos [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:21 PM Revision 6202b67d (git): * test/ruby/test_dir.rb (TestDir#test_empty?): fix a platform dependent test.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:09 PM Bug #11928: Segmentation fault in did_you_mean extension
- I've changed the backport flag as requested, but can't change ticket status. Hope a responsible party will be notified.
-
02:06 AM Bug #11928: Segmentation fault in did_you_mean extension
- ruby-2.3 seems to have the bug as pointed by #12078.
I guess the issue should be set "2.3: REQUIRED" to make r53514 and r53524 backported, shouldn't this? -
01:58 PM Feature #10121: Dir.empty?
- Now that Ruby got a Dir.empty? method, do you think it makes sense to add a File.empty? as an alias for File.zero? ?
(I didn't know if it was worth opening a new issue for this simple suggestion, so I just appended it here, since I se... -
01:38 PM Feature #12080 (Open): Enumerable#first, Array#last with block
- I propose a new feature: {Enumerable,Array,Range}#first, {Array,Range}#last with block.
If no argument is passed:
* `enum.first { block }` works as the same as `enum.find { block }`
* `ary.last { block }` works as the same as `ary... -
01:14 PM Feature #11934 (Rejected): A feature to drop dynamics dynamically
- I temporarily withdraw my proposal. I don't think my proposal is so bad, but I'll add quantitative information when I reopen. Thank you all for your comments.
-
12:42 PM Revision 0201900d (git): id.def: $~ and $_
- * defs/id.def (predefined): add idLASTLINE and idBACKREF for $~
and $_ respectively.
* parse.y: use idLASTLINE and idBACKREF instead of rb_intern.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53856 b2dd03c8-39d4-4d8f-98ff-823fe69... -
11:24 AM Revision 5a6a502e (git): string.c: fix rb_str_init
- * string.c (rb_str_init): fix segfault and memory leak, consider
wide char encoding terminator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:15 AM Revision d092fc53 (git): Additional fix and tests for r53851
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:29 AM Revision c00d51c7 (git): assertions.rb: fix assert_no_memory_leak
- * test/lib/test/unit/assertions.rb (assert_no_memory_leak): fix
path of memory_status.rb, as this method has been moved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:00 AM Feature #11999: MatchData#to_h to get a Hash from named captures
- Accepted.
Matz.
-
07:37 AM Revision b6053df0 (git): remove unnecessary declaration so that rdoc works
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:24 AM Revision 49dee548 (git): fix rubyspec error from r53850
- http://rubyci.s3.amazonaws.com/tk2-243-31075/ruby-trunk/log/20160217T061402Z.fail.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:21 AM Revision d46e2aea (git): * string.c (rb_str_init): introduce String.new(capacity: size)
- [Feature #12024]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:21 AM Feature #12024 (Closed): Add String.buffer, for creating strings with large capacities
- Applied in changeset r53850.
----------
* string.c (rb_str_init): introduce String.new(capacity: size)
[Feature #12024] -
02:54 AM Revision a8f43986 (git): numeric.c: adjust types
- * numeric.c (coerce_rescue, coerce_rescue_quiet): rescue functions
should have errinfo too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:38 AM Revision 9f6ba3f1 (git): * 2016-02-17
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:38 AM Revision e18654ff (git): numeric.c: adjust types
- * numeric.c (coerce_body, coerce_rescue, coerce_rescue_quiet):
adjust parameter types for rb_rescue.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
02/16/2016
-
09:03 PM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
- Note that when compiling 2.2.4, `win32` is entered because there is `mkmf.log`.
-
08:36 PM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
- Nobuyoshi Nakada wrote:
> Does `fiddle` get installed and work?
> ...
Well, I've found some snippets on using `fiddle`, and it's working.
I guess during compilation `ext/win32` dir isn't even entered.
-
01:32 AM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
- Does `fiddle` get installed and work?
`win32` requires it. -
05:30 PM Feature #12075: some container#nonempty?
- The implementation doesn't have to be the same as the one implemented by ActiveSupport. I think it would be fine to simply check for nil? and empty?. But I'd like to keep the names present? and blank? anyway.
-
03:28 PM Feature #12075: some container#nonempty?
- Shyouhei Urabe wrote:
> No, the OP wants to detect things that are _not_ empty. This is not what blank? means.
Yes, I meant that `blank?` is the opposite of what OP wants. `present?` is what the OP wants. I replaced `if ` in the ori... -
02:17 PM Feature #12075: some container#nonempty?
- No, the OP wants to detect things that are _not_ empty. This is not what blank? means. Also note that blank? in ActiveSupport has different (far more Rails-centric) semantics than what is described in #3.
https://github.com/rails/ra... -
10:02 AM Feature #12075: some container#nonempty?
- +1 for bringing blank? and present? to Ruby core. I often use (a || '').empty? checks for not having to depend on ActiveSupport directly in my Ruby code. I'd love to see them in Ruby core though.
-
08:52 AM Feature #12075: some container#nonempty?
- That is a use case for Rails' `blank?` (or `present?`).
~~~RUBY
class Object
def blank?
respond_to?(:empty?) ? !!empty? : !self
end
end
unless ary.blank?
# some code
end
~~~
What about incorporating these meth... -
08:31 AM Feature #12075: some container#nonempty?
- How about "some?".
-
08:30 AM Feature #12075: some container#nonempty?
- How about `ary.include_something?` ?
-
08:08 AM Feature #12075 (Feedback): some container#nonempty?
- I sometimes write following code.
```ruby
ary = some_metho_returns_nil_or_empty_container() # nil or "" or [] or {}
if ary && !ary.empty?
# some code
end
```
But the condition `ary && !ary.empty?` is too long and complex.... -
05:05 PM Feature #10121: Dir.empty?
- Woot! Woot!
Thanks to nobu the patch monster and matz! -
08:34 AM Feature #10121 (Closed): Dir.empty?
- Applied in changeset r53841.
----------
dir.c: Dir.empty?
* dir.c (rb_dir_s_empty_p): add Dir.empty? method, which tells the
argument is the name of an empty directory. [Feature #10121] -
02:56 PM Feature #12063: KeyError#receiver and KeyError#name
- I made a patch https://github.com/ruby/ruby/pull/1251
-
01:29 PM Feature #12079 (Rejected): Loosening the condition for refinement
- There are a few non-standard ways of calling a method that cannot be used when the relevant method is a refined method:
* a symbol used with `&` as a block via symbol to proc
* a symbol used with `send` or `__send__`
For example, ... -
12:35 PM Feature #11999: MatchData#to_h to get a Hash from named captures
- Updated patch (11999-2.diff).
-
11:24 AM Feature #11999: MatchData#to_h to get a Hash from named captures
- Discussed at https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20160216Japan with Matz and several committers:
Log: https://docs.google.com/document/d/1rj7ODOCSfcsQeBd6-p-NiVwqxDUg05G66LwDOkKOGTw/pub
- #to_h is inappro... -
12:25 PM Revision cee9c58e (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:25 PM Revision 45aa35cd (git): fix indent [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:25 PM Revision 0395a51e (git): ChangeLog should be us-ascii [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:40 AM Bug #12078 (Closed): Segmentation fault in did_you_mean with ruby revision 53608
- A segmentation bug occurred when running rspec tests on an app. This first appeared using ruby 2.3.0p0 revision 53290, and appeared similar to bugs reported in issues https://bugs.ruby-lang.org/issues/12000 and https://bugs.ruby-lang.org...
-
11:33 AM Feature #12077 (Open): Consolidate SSLSocket interface with TCPSocket
- Hello,
Is there a reason why `SSLSocket#read` doesn't work the same as `SSLSocket#sysread` and why there is no `SSLSocket#recv`?
Right now it is impossible to have code agnostic in regards to the socket type.
One solution is to... -
10:10 AM Revision 6a808bda (git): * enc/unicode/case-folding.rb, casefold.h: Used only first element
- (rather than all) of target in CaseUnfold_11 array.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:44 AM Feature #12024: Add String.buffer, for creating strings with large capacities
- The original proposal #905 was 7 years old. But now we have keyword argument, so adding `capacity:` keyword to `String#new` is better idea, I think.
Matz. -
09:43 AM Feature #12076 (Rejected): The 'ditto' operator
- Rejected. Adding new keyword is not a good idea, besides `ditto` behavior is not clear.
Matz.
-
08:42 AM Feature #12076: The 'ditto' operator
- The example code can be refactored to:
~~~RUBY
case user
when "foo", "bar"
else user = "stranger"
end
puts "welcome" + user
~~~ -
08:30 AM Feature #12076 (Rejected): The 'ditto' operator
- I like to introduce and propose an idea to use a 'ditto' operator in 'else' or 'elsif' statement,
the ditto operator is a reference to the true statement in the if conditions to be used in the proceeding else and elsif statements,
the ... -
09:29 AM Bug #9810 (Assigned): Numeric#step behavior with mixed Float, String arguments inconsistent with documentation
-
09:25 AM Bug #11991 (Assigned): `Symbol#match` returns the match position, unlike `String#match` and `Regexp#match`
- Considered a bug but for compatibility this shouldn't be backported.
2.4 will introduce incompatibility. -
09:25 AM Revision 527fa610 (git): numeric.c: fix segfault
- * numeric.c (compare_with_zero): fix variable name, rb_cmperr
requires VALUEs but not an ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:34 AM Revision 135a171c (git): dir.c: Dir.empty?
- * dir.c (rb_dir_s_empty_p): add Dir.empty? method, which tells the
argument is the name of an empty directory. [Feature #10121]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:54 AM Feature #10720 (Rejected): A proposal for something like: attr_reader :foo? - with the trailing '?' question mark
- See #12046.
Matz.
-
06:54 AM Feature #11167 (Rejected): Allow an attr_ variant for query-methods that end with a question mark '?' character, such as: def foo? returning @foo
- See #12046.
Matz.
-
06:53 AM Feature #12046 (Rejected): Allow attr_reader :foo? to define instance method foo? for accessing @foo
- as a rule, `attr_reader x` creates an instance variable `@x`, but we cannot have `@x?`.
that's the reason, we reject `attr_reader :foo?`. If you have any concrete use-case for
the new (more complex) behavior, please tell me.
Matz. -
06:33 AM Feature #11666 (Assigned): IPAddr#private?
- The maintainer is knu.
* feature issues
* conflict with private visibility
* “private?” is different from visivility
* Behavior when address family is IPv6
* nil? false?
* or treat link-local, site-local (deprecat... -
02:04 AM Bug #12074 (Closed): [PERF] bm_app_erb.rb slower
- Hi I'm noticing a regression on RubyBench for `bm_app_erb.rb`
http://rubybench.org/ruby/ruby/commits?result_type=app_erb&display_count=2000
Narrowed down to https://github.com/ruby/ruby/commit/32b4a8b
Results on my local machine... -
12:51 AM Revision 9cedfbcb (git): rbinstall.rb: drive letter in without_destdir
- * tool/rbinstall.rb (without_destdir): just strip a drive letter
which is prepended by with_destdir.
pointed out by @DavidEGrayson.
https://github.com/ruby/ruby/commit/0e5f9ae#commitcomment-16101763
git-svn-id: svn+ssh://ci.ruby-l... -
12:35 AM Bug #11542: Zlib::DataError: incorrect data check
- Tomoyuki Chikanaga wrote:
> Hello, Lingaraj.
> ...
I get this error too - for me it is loading PNG screenshots from Android device (OS 4.4.4):
Zlib::DataError: incorrect data check
from /Users/EE/.rvm/gems/ruby-2.1.5/gems/chunk...
02/15/2016
-
09:16 PM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
- Nobuyoshi Nakada wrote:
> How did you install ruby, and did `fiddle` get installed successfully?
I installed with rbenv, and I'm pretty sure that it doesn't work with the "common way". I can test if you want?
> ...
You'll find fid... -
02:45 AM Bug #12071 (Feedback): Gem installation fails with 2.3.0 on Cygwin
- Since Cygwin does not have its own `resolv.conf` file, it is not correct.
How did you install ruby, and did `fiddle` get installed successfully?
Please show `mkmf.log` files under `ext/fiddle` and `ext/win32`. -
07:42 PM Revision 2708fb6b (git): * insns.def (opt_plus): simply use LONG2NUM() instead of wrongly
- complex overflow case.
* insns.def (opt_sub): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:50 PM Revision 0e5f9aea (git): rbinstall.rb: drive letter in without_destdir
- * tool/rbinstall.rb (without_destdir): compare with the destdir
after stripping a drive letter, on dosish platforms.
pointed out by @DavidEGrayson.
https://github.com/ruby/ruby/commit/d0cf23b#commitcomment-16100407
git-svn-id: svn... - 05:41 PM Revision afc0a5f0 (git): * 2016-02-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:41 PM Revision 8b019eed (git): parse.y: short circuit by result
- * parse.y (parse_ident): short circuit by result, as only
tIDENTIFIER can be a local variable, but tFID and tCONSTANT not.
fix up r53834.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:44 AM Revision fbb51ff4 (git): parse.y: kwarg to method with same name variable
- * parse.y (parse_ident): allow keyword arguments just after a
method where the same name local variable is defined.
[ruby-core:73816] [Bug#12073]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53835 b2dd03c8-39d4-4d8f-98ff-823fe6... -
06:06 AM Revision 5e59be3e (git): parse.y: simplify local ID condition
- * parse.y (tokenize_ident, parse_ident): ident in tokenize_ident()
can be a local id only when called from parse_ident(), but never
from parse_gvar() and parse_atmark().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53834 b2dd03... -
05:43 AM Revision c3554cde (git): * enc/unicode/case-folding.rb: Added debugging option
- (with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:15 AM Revision 49079911 (git): bignum.c: micro optimization
- * bignum.c (rb_big_uminus, bigsub_int): use BIGNUM_NEGATE.
* internal.h (BIGNUM_NEGATE): simplify negation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:09 AM Revision 174be800 (git): use particlar macros
- * bignum.c: use particlar macros for positive/negative conditions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:23 AM Revision 73e29d2c (git): win32/resolv.rb: invert the condition
- * ext/win32/lib/win32/resolv.rb: invert the condition to return
immediately in the future.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:42 AM Revision 486f3f42 (git): win32/resolv.rb: check pointer size
- * ext/win32/lib/win32/resolv.rb: check pointer size first, NT if
it is larger than 4 as Windows 9X are 32-bit mode only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:36 AM Bug #12073 (Closed): local variable interferes with keyword arguments
- This code causes a syntax error:
~~~ruby
def a(b:)
b
end
a = 1
a b: 9
# !> program.rb:5: syntax error, unexpected ':', expecting end-of-input
# !> a b: (9)
# !> ^
~~~
However, if we remove the local assignment it ... -
03:31 AM Feature #11758: Add keyword assignment syntax
- I keep trying to do this, too, and being surprised when it doesn't work.
-
03:29 AM Revision 0f5a8418 (git): avoid ruby-mode.el bug
- * ext/win32/lib/win32/{resolv,resolv9x}.rb: get rid of
ruby-mode.el of Emacs 24.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:29 AM Revision a1feed65 (git): * 2016-02-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:28 AM Revision 2ece5109 (git): split win32/resolv9x.rb
- * ext/win32/lib/win32/resolv9x.rb: split code for Windows 9x from
resolv.rb. now it is rarely used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
02/14/2016
-
05:26 PM Bug #11834: Backport r53168, r53169 (String#scrub, #encode infection)
- r49096, r51353, r53168 and r53169 were backported into `ruby_2_2` branch at r53825.
-
05:25 PM Revision 5ad41fa1 (git): merge revision(s) 49096,51353,53168,53169: [Backport #11834]
- test_m17n.rb: split test_scrub
* test/ruby/test_m17n.rb (TestM17N#test_scrub): split into some
tests.
* include/ruby/ruby.h: add raw FL macros, which assume always the
argument object is not a special constan... -
05:23 PM Bug #12070: "wrong argument type nil" when installing any gem with Puppet on Arch Linux
- From running `'/usr/bin/gem install --no-rdoc --no-ri --backtrace --debug travis-lint'` in Puppet:
Exception `ArgumentError' at /usr/lib/ruby/2.3.0/rubygems.rb:498 - couldn't find HOME environment -- expanding `~'
Exception `... -
12:12 PM Bug #12070: "wrong argument type nil" when installing any gem with Puppet on Arch Linux
- This is easily reproducible by cloning [the repository](https://github.com/l0b0/root) and running `make test`.
-
12:10 PM Bug #12070 (Third Party's Issue): "wrong argument type nil" when installing any gem with Puppet on Arch Linux
- Based on [Stack Exchange question](https://unix.stackexchange.com/questions/252937/how-to-install-a-ruby-gem-on-arch-linux-using-puppet):
I've got [the following][1]:
class travis_linter {
include shell
pack... -
05:18 PM Feature #11934: A feature to drop dynamics dynamically
- I agree with Chris: JRuby + Truffle showed that it is possible to have dynamic features without loosing performance. Philosophically I am reminded of Ruby's syntax. It is **really** hard to write a Ruby parser but it that hard to parse s...
-
04:48 PM Bug #11860: Double splat does not work on empty hash assigned via variable
- A similar bug happens when using the double splat operator in the parameter list of a method definition. See #12022.
-
04:46 PM Bug #12022: Inconsistent behavior with splatted named arguments
- Sorry, I didn't see that issue. The cause is probably the same, but the difference is that #11860 deals with using the double splat in the **argument** list of a method call, whereas this issue deals using with the double splat in the **...
-
03:55 AM Bug #12022: Inconsistent behavior with splatted named arguments
- This is a duplicate, or is at least related to #11860.
-
04:39 PM Bug #11932: Ripper.sexp can't parse some files from ruby repository and returns nil
- r53411 and r53425 were backported into `ruby_2_2` branch at r53824.
-
04:38 PM Revision 145ee4b4 (git): merge revision(s) 53411,53425: [Backport #11932]
- * parse.y (regexp): set_yylval_num sets u1, should use nd_tag
instead of nd_state. [ruby-core:72638] [Bug #11932]
* parse.y (set_yylval_num): should be used as nd_state, set to u3.
[ruby-core:72638] [Bug #11... -
03:35 PM Bug #12068: raise overwrites exception cause even if exception is not new
- Please don't backport to the stable branches by yourself. The branch maintainers (usa and me) will do.
I fill Backport field.
I don't think the existing application depend on this behavior. Any opinions? -
10:30 AM Bug #12068: raise overwrites exception cause even if exception is not new
- May I backport this change to 2.3? Matz? I believe the original behavior was unintentional and should be fixed.
-
10:17 AM Bug #12068: raise overwrites exception cause even if exception is not new
- Thanks, nobu!
-
07:19 AM Bug #12068 (Closed): raise overwrites exception cause even if exception is not new
- Applied in changeset r53819.
----------
not overwrite cause
* eval.c (setup_exception): set the cause only if it is explicitly
given or not set yet. [Bug #12068] -
05:12 AM Bug #12068: raise overwrites exception cause even if exception is not new
- Yes...the exception inherits current $! only in initialize, and carries it until overwritten.
-
04:21 AM Bug #12068: raise overwrites exception cause even if exception is not new
- In JRuby, `cause` is set just in `initialize`?
```
$ jruby -v -e 'raise "a" rescue p RuntimeError.new("b").cause'
jruby 9.1.0.0-SNAPSHOT (2.2.3) 2016-02-14 c08ca7a Java HotSpot(TM) 64-Bit Server VM 25.25-b02 on 1.8.0_25-b17 +jit [da... -
03:17 PM Bug #12072 (Closed): SortedSet#superset? raises NoMethodError if rbtree is installed
- If rbtree is installed, the following code doesn't work.
~~~ruby
require "set"
set_a = SortedSet.new([1, 2])
set_b = SortedSet.new([1, 2, 3])
p set_a >= set_b
# /home/k/.rbenv/versions/trunk/lib/ruby/2.4.0/set.rb:223:in `supe... -
01:30 PM Bug #12071 (Closed): Gem installation fails with 2.3.0 on Cygwin
- Hello,
I would like report an issue when installing gem on Cygwin with ruby 2.3.0.
Backtrace is:
~~~
/home/USER/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load suc... -
11:09 AM Bug #12069 (Closed): [PATCH] document OpenSSL::SSL::SSLContext#setup as MT-unsafe
- document OpenSSL::SSL::SSLContext#setup as MT-unsafe
On a cursory inspection, using rb_block_call for extra_chain_cert
is thread-unsafe. There may be other instances of thread-unsafe
behavior in this method, but one is enough.
*... -
08:52 AM Revision 8a180ee4 (git): test_cgi_util.rb: test_cgi_unescapeHTML_invalid
- * test/cgi/test_cgi_util.rb (test_cgi_unescapeHTML_invalid): test
for invalid escaped HTML, borrowed from rubyspec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:37 AM Revision 65c9555d (git): test_exception.rb: fix commit miss
- * test/ruby/test_exception.rb: remove duplicate method. fix
commit miss at r53819.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:32 AM Revision fdcc924f (git): mkmf.rb: Do not modify caller strings
- * lib/mkmf.rb (with_{cpp,c,ld}flags): copy caller strings not to
be modified, in append_{cpp,c,ld}flags respectively.
[Fix GH-1246]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:19 AM Revision a7a5bd59 (git): * 2016-02-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:19 AM Revision e294f4cf (git): not overwrite cause
- * eval.c (setup_exception): set the cause only if it is explicitly
given or not set yet. [Bug #12068]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:51 AM Bug #12035 (Rejected): scanf suspicious results.
- From http://ruby-doc.org/stdlib-2.2.4/libdoc/scanf/rdoc/Scanf.html#module-Scanf-label-Conversions
> Matches a nonempty sequence of characters from the specified set of accepted characters. **The usual skip of leading white space is su... -
04:01 AM Bug #12065 (Rejected): problem with multiplication 2 numbers