This commit is contained in:
Dustin Bachrach
2014-10-09 16:19:06 -07:00
parent 0acb453076
commit 246b570c2b
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ module Synx
SYNXRONIZE_DIR = File.join(ENV["HOME"], '.synx')
private_constant :SYNXRONIZE_DIR
DEFAULT_EXCLUSIONS = %W(/Libraries /Frameworks /Products)
DEFAULT_EXCLUSIONS = %W(/Libraries /Frameworks /Products /Pods)
private_constant :DEFAULT_EXCLUSIONS
attr_accessor :delayed_groups_set_path, :group_exclusions, :prune
@@ -95,7 +95,7 @@ module Synx
def group_exclusions=(new_exclusions)
new_exclusions.each do |exclusion|
# Group paths always start with a '/', so put one there if it isn't already.
exclusion.prepend("/") unless exclusion[0] == "/"
exclusion = "/" + exclusion unless exclusion[0] == "/"
# Don't check our own default exclusions -- they may not have it in their project.
unless DEFAULT_EXCLUSIONS.include?(exclusion)
# remove leading '/' for this check

View File

@@ -158,7 +158,7 @@ describe Synx::Project do
end
it "should add the group exclusions to the array" do
expect(DUMMY_SYNX_TEST_PROJECT.group_exclusions.sort).to eq(%W(/Libraries /Products /Frameworks /dummy /dummy/SuchGroup/VeryChildGroup).sort)
expect(DUMMY_SYNX_TEST_PROJECT.group_exclusions.sort).to eq(%W(/Libraries /Products /Frameworks /Pods /dummy /dummy/SuchGroup/VeryChildGroup).sort)
end
end