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
69303b8f
Commit
69303b8f
authored
Feb 08, 2016
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SandboxPod] Fix escaping paths with quotes in them
parent
ac030a3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
sandbox-pod
bin/sandbox-pod
+12
-12
No files found.
bin/sandbox-pod
View file @
69303b8f
...
@@ -31,7 +31,7 @@ require 'cocoapods/config'
...
@@ -31,7 +31,7 @@ require 'cocoapods/config'
require
'rbconfig'
require
'rbconfig'
require
'erb'
require
'erb'
PROFILE_ERB_TEMPLATE
=
<<-
EOS
PROFILE_ERB_TEMPLATE
=
<<-
'ERB'
(version 1)
(version 1)
(debug allow)
(debug allow)
...
@@ -49,12 +49,12 @@ PROFILE_ERB_TEMPLATE = <<-EOS
...
@@ -49,12 +49,12 @@ PROFILE_ERB_TEMPLATE = <<-EOS
(allow process-exec
(allow process-exec
(literal
(literal
"<%= pod_bin %>"
<%= pod_bin.dump << "
\n
" %>
"<%= ruby_bin %>"
<%= ruby_bin.dump << "
\n
" %>
)
)
(regex
(regex
<% prefixes.each do |prefix| %>
<% prefixes.each do |prefix| %>
#
"^<%= prefix %>/*"
#
<%= "^
#{
prefix
}
/*".dump << "
\n
" %>
<% end %>
<% end %>
)
)
)
)
...
@@ -78,12 +78,12 @@ PROFILE_ERB_TEMPLATE = <<-EOS
...
@@ -78,12 +78,12 @@ PROFILE_ERB_TEMPLATE = <<-EOS
#"^/usr/share/*"
#"^/usr/share/*"
#"^/private/*"
#"^/private/*"
#"^/dev/*"
#"^/dev/*"
#
"^<%= ruby_prefix %>"
#
<%= "^
#{
ruby_prefix
}
".dump << "
\n
" %>
#
"^<%= pod_prefix %>"
#
<%= "^
#{
pod_prefix
}
".dump << "
\n
" %>
#
"^<%= xcode_app_path %>"
#
<%= "^
#{
xcode_app_path
}
".dump << "
\n
" %>
#
"^<%= Pod::Config.instance.repos_dir %>"
#
<%= "^
#{
Pod
::
Config
.
instance
.
repos_dir
}
".dump << "
\n
" %>
<% prefixes.each do |prefix| %>
<% prefixes.each do |prefix| %>
#
"^<%= prefix %>/*"
#
<%= "^
#{
prefix
}
/*".dump << "
\n
" %>
<% end %>
<% end %>
)
)
)
)
...
@@ -94,8 +94,8 @@ PROFILE_ERB_TEMPLATE = <<-EOS
...
@@ -94,8 +94,8 @@ PROFILE_ERB_TEMPLATE = <<-EOS
"/dev/null"
"/dev/null"
)
)
(regex
(regex
#
"^<%= Pod::Config.instance.project_root %>"
#
<%= "^
#{
Pod
::
Config
.
instance
.
project_root
}
".dump << "
\n
" %>
#
"^<%= Pod::Config.instance.repos_dir %>"
#
<%= "^
#{
Pod
::
Config
.
instance
.
repos_dir
}
".dump << "
\n
" %>
#"^/Users/[^.]+/Library/Caches/CocoaPods/*"
#"^/Users/[^.]+/Library/Caches/CocoaPods/*"
#"^/dev/tty"
#"^/dev/tty"
#"^/private/var"
#"^/private/var"
...
@@ -103,7 +103,7 @@ PROFILE_ERB_TEMPLATE = <<-EOS
...
@@ -103,7 +103,7 @@ PROFILE_ERB_TEMPLATE = <<-EOS
)
)
(deny default)
(deny default)
E
OS
E
RB
class
Profile
class
Profile
def
pod_bin
def
pod_bin
...
...
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