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
d31b291e
Commit
d31b291e
authored
Nov 12, 2014
by
Kyle Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[spec command] Fix weirdly indented code block
parent
f44ca638
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
spec.rb
lib/cocoapods/command/spec.rb
+1
-2
No files found.
lib/cocoapods/command/spec.rb
View file @
d31b291e
...
@@ -129,7 +129,7 @@ module Pod
...
@@ -129,7 +129,7 @@ module Pod
output_path
.
open
(
'w'
)
{
|
f
|
f
<<
io
.
read
}
output_path
.
open
(
'w'
)
{
|
f
|
f
<<
io
.
read
}
end
end
files
<<
output_path
files
<<
output_path
else
if
(
pathname
=
Pathname
.
new
(
path
)).
directory?
els
if
(
pathname
=
Pathname
.
new
(
path
)).
directory?
files
+=
Pathname
.
glob
(
pathname
+
'**/*.podspec{.json,}'
)
files
+=
Pathname
.
glob
(
pathname
+
'**/*.podspec{.json,}'
)
raise
Informative
,
'No specs found in the current directory.'
if
files
.
empty?
raise
Informative
,
'No specs found in the current directory.'
if
files
.
empty?
else
else
...
@@ -137,7 +137,6 @@ module Pod
...
@@ -137,7 +137,6 @@ module Pod
raise
Informative
,
"Unable to find a spec named `
#{
path
}
'."
unless
pathname
.
exist?
&&
path
.
include?
(
'.podspec'
)
raise
Informative
,
"Unable to find a spec named `
#{
path
}
'."
unless
pathname
.
exist?
&&
path
.
include?
(
'.podspec'
)
end
end
end
end
end
files
files
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