Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
one9/lib/one9/defaults.rb
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (29 sloc)
1.68 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
change 'Module#constants', 'Returns array of symbols instead of array of strings' | |
change Module.methods.grep(/_methods$/).map {|e| "Module##{e}" } , 'Returns array of symbols instead of array of strings' | |
change Kernel.methods.grep(/_variables$/).map {|e| "Kernel.#{e}" }, 'Returns array of symbols instead of array of strings' | |
change 'Kernel.proc', 'Same as Proc.new instead of being same as lambda' | |
change 'Hash#to_s', 'An alias of #inspect instead of a spaceless join of the elements' | |
change 'Hash#select', 'Returns a hash instead of an association array' | |
change 'Array#to_s', 'An alias of #inspect instead of a spaceless join of the elements' | |
change 'FileUtils#mkdir_p', 'Returns an array containing directory instead of the directory' | |
change 'Date.parse', 'mm/dd/yyyy syntax does not exist anymore' | |
change 'Time.parse', 'mm/dd/yyyy syntax does not exist anymore' | |
change 'Proc#arity', 'Number of parameters that would not be ignored instead of ...' | |
delete 'Array#choice', 'Use Array#sample instead' | |
delete 'Kernel#to_a', 'Replace with Array()' | |
delete 'Object#type', 'Replace with #class' | |
delete 'Array#nitems', "Replace with #compact.size" | |
delete 'Enumerable#enum_with_index', 'Replace with #to_enum.with_index' | |
delete 'Symbol#to_int' | |
delete 'Hash#indices', 'Replace with #values_at' | |
delete 'Array#indices', 'Replace with #values_at' | |
delete 'Exception#to_str', 'Replace with #to_s' | |
# * BUGGY * | |
# doesn't work when preloaded ('-r') in rails | |
# change 'Object#=~', 'Returns nil instead of false' | |
# causes memory leaks | |
# change 'String#[]', 'Returns string instead of number' | |
# | |
# too many false positives with Array() | |
# delete 'String#to_a', 'Replace with Array()' | |
# delete 'String#each', 'Use String#each_line instead' |