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
7a838899
Commit
7a838899
authored
Dec 30, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4701 from CocoaPods/seg-spec-remove-docset-url
Update for removal of docset_url attribute
parents
b611ae93
507625d1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
36 deletions
+9
-36
CHANGELOG.md
CHANGELOG.md
+4
-0
Gemfile.lock
Gemfile.lock
+1
-1
validator.rb
lib/cocoapods/validator.rb
+0
-7
integration.rb
spec/integration.rb
+4
-9
validator_spec.rb
spec/unit/validator_spec.rb
+0
-19
No files found.
CHANGELOG.md
View file @
7a838899
...
...
@@ -32,6 +32,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
removed in favor of the equivalent
`default_subspecs`
method.
[
Samuel Giddins
](
https://github.com/segiddins
)
*
The
`docset_url`
Specification attribute has been removed.
[
Samuel Giddins
](
https://github.com/segiddins
)
[
Core#284
](
https://github.com/CocoaPods/Core/issues/284
)
##### Highlighted Enhancements That Need Testing
*
The Podfile DSL has been cleaned up, with the removal of confusing options and
...
...
Gemfile.lock
View file @
7a838899
...
...
@@ -7,7 +7,7 @@ GIT
GIT
remote: https://github.com/CocoaPods/Core.git
revision:
ca0a5d504357e48da31b274430a966d64fd6207
8
revision:
0c386062a4b72b3eb487129f6c8854bcd8ea1b6
8
branch: master
specs:
cocoapods-core (0.39.0)
...
...
lib/cocoapods/validator.rb
View file @
7a838899
...
...
@@ -257,7 +257,6 @@ module Pod
validate_screenshots
(
spec
)
validate_social_media_url
(
spec
)
validate_documentation_url
(
spec
)
validate_docset_url
(
spec
)
valid
=
spec
.
available_platforms
.
send
(
fail_fast
?
:
all?
:
:each
)
do
|
platform
|
UI
.
message
"
\n\n
#{
spec
}
- Analyzing on
#{
platform
}
platform."
.
green
.
reversed
...
...
@@ -342,12 +341,6 @@ module Pod
validate_url
(
spec
.
documentation_url
)
if
spec
.
documentation_url
end
# Performs validations related to the `docset_url` attribute.
#
def
validate_docset_url
(
spec
)
validate_url
(
spec
.
docset_url
)
if
spec
.
docset_url
end
def
setup_validation_environment
validation_dir
.
rmtree
if
validation_dir
.
exist?
validation_dir
.
mkpath
...
...
spec/integration.rb
View file @
7a838899
...
...
@@ -49,6 +49,7 @@ require 'pretty_bacon'
require
'colored'
require
'clintegracon'
require
'cocoapods-core/lockfile'
require
'cocoapods-core/yaml_helper'
require
'fileutils'
require
'integration/file_tree'
...
...
@@ -84,15 +85,9 @@ CLIntegracon.configure do |c|
c
.
transform_produced
%r{(^|/)(Podfile|Manifest).lock$}
do
|
path
|
# Remove CocoaPods version & Podfile checksum
yaml
=
YAML
.
load
(
path
.
read
)
yaml
.
delete
(
'COCOAPODS'
)
yaml
.
delete
(
'PODFILE CHECKSUM'
)
keys_hint
=
[
'PODS'
,
'DEPENDENCIES'
,
'EXTERNAL SOURCES'
,
'CHECKOUT OPTIONS'
,
'SPEC CHECKSUMS'
,
]
deleted_keys
=
[
'COCOAPODS'
,
'PODFILE CHECKSUM'
]
deleted_keys
.
each
{
|
key
|
yaml
.
delete
(
key
)
}
keys_hint
=
Pod
::
Lockfile
::
HASH_KEY_ORDER
-
deleted_keys
path
.
open
(
'w'
)
{
|
f
|
f
<<
Pod
::
YAMLHelper
.
convert_hash
(
yaml
,
keys_hint
,
"
\n\n
"
)
}
end
...
...
spec/unit/validator_spec.rb
View file @
7a838899
...
...
@@ -265,25 +265,6 @@ module Pod
@validator
.
results
.
map
(
&
:to_s
).
first
.
should
.
match
/The URL (.*) is not reachable/
end
end
describe
'docset URL validation'
do
before
do
@validator
.
stubs
(
:validate_homepage
)
end
it
'checks if the docset URL is valid'
do
Specification
.
any_instance
.
stubs
(
:docset_url
).
returns
(
'http://banana-corp.local/'
)
WebMock
::
API
.
stub_request
(
:head
,
/banana-corp.local/
).
to_return
(
:status
=>
200
)
@validator
.
validate
@validator
.
results
.
should
.
be
.
empty?
end
it
"should fail validation if it wasn't able to validate the URL"
do
Specification
.
any_instance
.
stubs
(
:docset_url
).
returns
(
'http://banana-corp.local/not-found'
)
@validator
.
validate
@validator
.
results
.
map
(
&
:to_s
).
first
.
should
.
match
/The URL (.*) is not reachable/
end
end
end
it
'respects the no clean option'
do
...
...
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