From 0d596205555a89c2dbffcaa6a383c6305c55c159 Mon Sep 17 00:00:00 2001 From: Marla Bonar Date: Thu, 4 Feb 2016 11:31:15 -0600 Subject: [PATCH] Fixing build error rake aborted! NoMethodError: undefined method `start_with?' for # /.rvm/gems/ruby-2.0.0-p481/bundler/gems/Flow-70322b758ce8/lib/cocoa.rb:27:in `block (3 levels) in ' --- lib/cocoa.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cocoa.rb b/lib/cocoa.rb index 062a68e..42b49c7 100644 --- a/lib/cocoa.rb +++ b/lib/cocoa.rb @@ -24,9 +24,9 @@ samples = %w(android ios osx).delete_if {|t| t == template} samples.each do |sample| - app.files.delete_if { |path| path.start_with?("./app/#{sample}") } + app.files.delete_if { |path| path.start_with?("./app/#{sample}") if path.is_a?(String)} end - app.spec_files.delete_if { |path| path.start_with?('./spec/helpers/android') } + app.spec_files.delete_if { |path| path.start_with?('./spec/helpers/android') if path.is_a?(String)} app.frameworks += ['SystemConfiguration', 'CoreLocation', 'AddressBookUI'] end