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
f5e49dbb
Commit
f5e49dbb
authored
Sep 24, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specs] Minor fixes.
parent
df376df7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
set.rb
lib/cocoapods/specification/set.rb
+2
-1
command.rb
spec/spec_helper/command.rb
+0
-7
pre_flight.rb
spec/spec_helper/pre_flight.rb
+6
-0
No files found.
lib/cocoapods/specification/set.rb
View file @
f5e49dbb
...
@@ -88,7 +88,8 @@ module Pod
...
@@ -88,7 +88,8 @@ module Pod
#
#
def
specification
def
specification
unless
@specification
unless
@specification
sources
=
versions_by_source
.
select
{
|
_
,
versions
|
versions
.
include?
(
required_version
)
}.
keys
sources
=
[]
versions_by_source
.
each
{
|
source
,
versions
|
sources
<<
source
if
versions
.
include?
(
required_version
)
}
source
=
sources
.
sort_by
(
&
:name
).
first
source
=
sources
.
sort_by
(
&
:name
).
first
@specification
=
source
.
specification
(
name
,
required_version
)
@specification
=
source
.
specification
(
name
,
required_version
)
end
end
...
...
spec/spec_helper/command.rb
View file @
f5e49dbb
...
@@ -10,17 +10,10 @@ module SpecHelper
...
@@ -10,17 +10,10 @@ module SpecHelper
def
run_command
(
*
args
)
def
run_command
(
*
args
)
Dir
.
chdir
(
SpecHelper
.
temporary_directory
)
do
Dir
.
chdir
(
SpecHelper
.
temporary_directory
)
do
Pod
::
UI
.
output
=
''
Pod
::
UI
.
output
=
''
# TODO: remove this once all cocoapods has
# TODO: remove this once all cocoapods has
# been converted to use the UI.puts
# been converted to use the UI.puts
config_silent
=
config
.
silent?
config_silent
=
config
.
silent?
config
.
silent
=
false
config
.
silent
=
false
# Very nasty behaviour where the relative increments are
# not reverted and lead to sections being collapsed and
# not being printed to the output.
Pod
::
UI
.
indentation_level
=
0
Pod
::
UI
.
title_level
=
0
command
(
*
args
).
run
command
(
*
args
).
run
config
.
silent
=
config_silent
config
.
silent
=
config_silent
Pod
::
UI
.
output
Pod
::
UI
.
output
...
...
spec/spec_helper/pre_flight.rb
View file @
f5e49dbb
...
@@ -15,6 +15,12 @@ module Bacon
...
@@ -15,6 +15,12 @@ module Bacon
c
.
skip_repo_update
=
true
c
.
skip_repo_update
=
true
end
end
::
Pod
::
UI
.
output
=
''
::
Pod
::
UI
.
output
=
''
# Very nasty behaviour where the relative increments are
# not reverted and lead to sections being collapsed and
# not being printed to the output.
::
Pod
::
UI
.
indentation_level
=
0
::
Pod
::
UI
.
title_level
=
0
old_run_requirement
.
bind
(
self
).
call
(
description
,
spec
)
old_run_requirement
.
bind
(
self
).
call
(
description
,
spec
)
end
end
end
end
...
...
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