lib/synx/project.rb in synx-0.0.61 vs lib/synx/project.rb in synx-0.1.0

- old
+ new

@@ -19,10 +19,11 @@ Synx::Tabber.puts "Syncing files that are included in Xcode project...".bold.white main_group.all_groups.each { |gr| gr.sync(main_group) } Synx::Tabber.puts "\n\n" Synx::Tabber.puts "Syncing files that are not included in Xcode project..".bold.white main_group.all_groups.each(&:move_entries_not_in_xcodeproj) + main_group.sort_by_name transplant_work_project Synx::Tabber.decrease save end @@ -65,11 +66,11 @@ def root_pathname @root_pathname ||= Pathname(path).parent end def work_root_pathname - if @work_root_pathname + if @work_root_pathname @work_root_pathname else @work_root_pathname = Pathname(File.join(SYNXRONIZE_DIR, root_pathname.basename.to_s)) # Clean up any previous synx and start fresh FileUtils.rm_rf(@work_root_pathname.to_s) if @work_root_pathname.exist? @@ -109,19 +110,16 @@ end end def has_object_for_pathname?(pathname) @unmodified_project ||= Synx::Project.open(path) - @unmodified_project.objects.any? do |o| + @unmodified_project.objects.any? do |o| begin - o.real_path.cleanpath == pathname.cleanpath - rescue - false + o.real_path.cleanpath == pathname.cleanpath + rescue + false end end end - end end - -