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
289ca870
Commit
289ca870
authored
Jan 19, 2016
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4763 from CocoaPods/seg-open-uri
Actually use the CocoaPods OpenURI hotfix
parents
ff4535ca
6393d001
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
lint.rb
lib/cocoapods/command/spec/lint.rb
+1
-1
podspec_source.rb
lib/cocoapods/external_sources/podspec_source.rb
+1
-1
xcconfig_integrator.rb
...oject_integrator/target_integrator/xcconfig_integrator.rb
+2
-2
open-uri.rb
lib/cocoapods/open-uri.rb
+2
-0
No files found.
lib/cocoapods/command/spec/lint.rb
View file @
289ca870
...
...
@@ -91,7 +91,7 @@ module Pod
@podspecs_paths
<<
'.'
if
@podspecs_paths
.
empty?
@podspecs_paths
.
each
do
|
path
|
if
path
=~
%r{https?://}
require
'open-uri'
require
'
cocoapods/
open-uri'
output_path
=
podspecs_tmp_dir
+
File
.
basename
(
path
)
output_path
.
dirname
.
mkpath
open
(
path
)
do
|
io
|
...
...
lib/cocoapods/external_sources/podspec_source.rb
View file @
289ca870
...
...
@@ -14,7 +14,7 @@ module Pod
if
podspec_path
.
exist?
store_podspec
(
sandbox
,
podspec_path
,
is_json
)
else
require
'open-uri'
require
'
cocoapods/
open-uri'
begin
open
(
podspec_uri
)
{
|
io
|
store_podspec
(
sandbox
,
io
.
read
,
is_json
)
}
rescue
OpenURI
::
HTTPError
=>
e
...
...
lib/cocoapods/installer/user_project_integrator/target_integrator/xcconfig_integrator.rb
View file @
289ca870
...
...
@@ -146,7 +146,7 @@ module Pod
SILENCE_WARNINGS_STRING
=
'// @COCOAPODS_SILENCE_WARNINGS@ //'
def
self
.
xcconfig_includes_target_xcconfig?
(
base_config_ref
,
target_config_path
)
return
unless
base_config_ref
&&
base_config_ref
.
real_path
.
file?
regex
=
/
regex
=
%r{
^(
(
\s
* # Possible, but unlikely, space before include statement
\#
include
\s
+ # Include statement
...
...
@@ -158,7 +158,7 @@ module Pod
|
(
#{
Regexp
.
quote
(
SILENCE_WARNINGS_STRING
)
}
) # Token to treat xcconfig as good and silence pod install warnings
)
/
x
}
x
base_config_ref
.
real_path
.
readlines
.
find
{
|
line
|
line
=~
regex
}
end
...
...
lib/cocoapods/open
_
uri.rb
→
lib/cocoapods/open
-
uri.rb
View file @
289ca870
# rubocop:disable Style/FileName
require
'open-uri'
# Allow OpenURI to follow http to https redirects.
...
...
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