bin/calabash-ios-setup.rb in calabash-cucumber-0.9.28 vs bin/calabash-ios-setup.rb in calabash-cucumber-0.9.29

- old
+ new

@@ -14,17 +14,17 @@ if target_name.start_with?'"' and target_name.end_with?'"' target_name = target_name[1..target_name.length-2] end userdata_dirs.each do |userdata_dir| - scheme_to_find = Regexp.new(Regexp.escape("#{target_name}.xcscheme")) - cal_scheme_to_find = Regexp.new(Regexp.escape("#{target_name}-cal.xcscheme")) + scheme_to_find = "#{target_name}.xcscheme" + cal_scheme_to_find = "#{target_name}-cal.xcscheme" schemes = Dir.foreach("#{pbx_dir}/xcuserdata/#{userdata_dir}/xcschemes") - scheme = schemes.find do |scheme| - scheme_to_find.match(scheme) + scheme = schemes.find do |s| + scheme_to_find == s end - cal_scheme = schemes.find do |scheme| - cal_scheme_to_find.match(scheme) + cal_scheme = schemes.find do |s| + cal_scheme_to_find == s end if scheme.nil? puts "-"*10 + "Warning" + "-"*10 puts "Unable to find scheme: #{target_name}.xcscheme." \ No newline at end of file