Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
1a90fb20
Unverified
Commit
1a90fb20
authored
May 08, 2016
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[InstallationOptions] Default to not sharing schemes
parent
2bc3dabb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
installation_options.rb
lib/cocoapods/installer/installation_options.rb
+1
-1
installation_options_spec.rb
spec/unit/installer/installation_options_spec.rb
+2
-1
installer_spec.rb
spec/unit/installer_spec.rb
+10
-1
No files found.
lib/cocoapods/installer/installation_options.rb
View file @
1a90fb20
...
@@ -106,7 +106,7 @@ module Pod
...
@@ -106,7 +106,7 @@ module Pod
option
:deterministic_uuids
,
true
option
:deterministic_uuids
,
true
option
:integrate_targets
,
true
option
:integrate_targets
,
true
option
:lock_pod_sources
,
true
option
:lock_pod_sources
,
true
option
:share_schemes_for_development_pods
,
tru
e
option
:share_schemes_for_development_pods
,
fals
e
module
Mixin
module
Mixin
module
ClassMethods
module
ClassMethods
...
...
spec/unit/installer/installation_options_spec.rb
View file @
1a90fb20
...
@@ -9,6 +9,7 @@ module Pod
...
@@ -9,6 +9,7 @@ module Pod
'deterministic_uuids'
=>
true
,
'deterministic_uuids'
=>
true
,
'integrate_targets'
=>
true
,
'integrate_targets'
=>
true
,
'lock_pod_sources'
=>
true
,
'lock_pod_sources'
=>
true
,
'share_schemes_for_development_pods'
=>
false
,
}.
each
do
|
option
,
default
|
}.
each
do
|
option
,
default
|
it
"includes `
#{
option
}
` defaulting to `
#{
default
}
`"
do
it
"includes `
#{
option
}
` defaulting to `
#{
default
}
`"
do
Installer
::
InstallationOptions
.
defaults
.
fetch
(
option
).
should
==
default
Installer
::
InstallationOptions
.
defaults
.
fetch
(
option
).
should
==
default
...
@@ -62,7 +63,7 @@ module Pod
...
@@ -62,7 +63,7 @@ module Pod
'deterministic_uuids'
=>
false
,
'deterministic_uuids'
=>
false
,
'integrate_targets'
=>
true
,
'integrate_targets'
=>
true
,
'lock_pod_sources'
=>
true
,
'lock_pod_sources'
=>
true
,
'share_schemes_for_development_pods'
=>
tru
e
,
'share_schemes_for_development_pods'
=>
fals
e
,
}
}
end
end
...
...
spec/unit/installer_spec.rb
View file @
1a90fb20
...
@@ -758,7 +758,16 @@ module Pod
...
@@ -758,7 +758,16 @@ module Pod
@installer
.
sandbox
.
stubs
(
:development_pods
).
returns
(
'BananaLib'
=>
nil
)
@installer
.
sandbox
.
stubs
(
:development_pods
).
returns
(
'BananaLib'
=>
nil
)
end
end
it
'shares by default'
do
it
'does not share by default'
do
Xcodeproj
::
XCScheme
.
expects
(
:share_scheme
).
never
@installer
.
send
(
:share_development_pod_schemes
)
end
it
'can share all schemes'
do
@installer
.
installation_options
.
stubs
(
:share_schemes_for_development_pods
).
returns
(
true
)
Xcodeproj
::
XCScheme
.
expects
(
:share_scheme
).
with
(
Xcodeproj
::
XCScheme
.
expects
(
:share_scheme
).
with
(
@installer
.
pods_project
.
path
,
@installer
.
pods_project
.
path
,
'BananaLib'
)
'BananaLib'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment