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
# Transform a possible multi-dementional array into one-dimentional array | |
# It returns nil if the giver argument is not an array | |
def flatten(arr) | |
return nil unless arr.is_a?(::Array) | |
# Store the extracted values in the result | |
result = [] | |
# Iterate over the elements appending or merging the parts | |
arr.each do |part| |
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
[2015-08-14 01:29:48] /usr/local/rvm/wrappers/ruby-2.2.2@rubinius/bundle | |
current path: /usr/local/rvm/src/rbx-head | |
PATH=/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin | |
command(2): /usr/local/rvm/wrappers/ruby-2.2.2@rubinius/bundle install | |
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on | |
this machine. | |
Using rake 10.4.2 | |
Using daedalus-core 0.5.0 | |
Using redcard 1.1.0 | |
Using rubinius-ast 2.3.2 |
NewerOlder