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
df204f8b
Commit
df204f8b
authored
Mar 18, 2014
by
Kyle Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure file descriptors are closed
parent
7c8e0ceb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
spec.rb
lib/cocoapods/command/spec.rb
+1
-1
integration.rb
spec/integration.rb
+2
-2
No files found.
lib/cocoapods/command/spec.rb
View file @
df204f8b
...
@@ -207,7 +207,7 @@ module Pod
...
@@ -207,7 +207,7 @@ module Pod
get_path_of_spec
(
@spec
)
get_path_of_spec
(
@spec
)
end
end
UI
.
puts
File
.
open
(
filepath
).
read
UI
.
puts
File
.
read
(
filepath
)
end
end
end
end
...
...
spec/integration.rb
View file @
df204f8b
...
@@ -186,8 +186,8 @@ end
...
@@ -186,8 +186,8 @@ end
# The file in the temporary directory after running the pod command.
# The file in the temporary directory after running the pod command.
#
#
def
yaml_should_match
(
expected
,
produced
)
def
yaml_should_match
(
expected
,
produced
)
expected_yaml
=
YAML
::
load
(
File
.
open
(
expected
))
expected_yaml
=
File
.
open
(
expected
)
{
|
f
|
YAML
.
load
(
f
)
}
produced_yaml
=
YAML
::
load
(
File
.
open
(
produced
))
produced_yaml
=
File
.
open
(
produced
)
{
|
f
|
YAML
.
load
(
f
)
}
# Remove CocoaPods version
# Remove CocoaPods version
expected_yaml
.
delete
(
'COCOAPODS'
)
expected_yaml
.
delete
(
'COCOAPODS'
)
produced_yaml
.
delete
(
'COCOAPODS'
)
produced_yaml
.
delete
(
'COCOAPODS'
)
...
...
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