-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing build error #6
base: master
Are you sure you want to change the base?
Conversation
rake aborted! NoMethodError: undefined method `start_with?' for #<Array:0x007ffb81278c40> /.rvm/gems/ruby-2.0.0-p481/bundler/gems/Flow-70322b758ce8/lib/cocoa.rb:27:in `block (3 levels) in <top (required)>'
I'm curious, how did you manage to have an Array inside |
I have 2 rather large arrays:
To: HipByte/Flow [email protected] I'm curious, how did you manage to have an Array inside app.files? Could you print the value of app.files in lib/cocoa.rb before the delete_if loop so that we can see what's inside?— |
I get the same error occurs. I do not know why that create a redundant array. I'm monkey-patching ! lib/cocoa.rb app.files.flatten!
samples = %w(android ios osx).delete_if {|t| t == template}
samples.each do |sample|
app.files.delete_if { |path| path.start_with?("./app/#{sample}") }
end |
rake aborted!
NoMethodError: undefined method
start_with?' for #<Array:0x007ffb81278c40> /.rvm/gems/ruby-2.0.0-p481/bundler/gems/Flow-70322b758ce8/lib/cocoa.rb:27:in
block (3 levels) in <top (required)>'