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
1d276368
Commit
1d276368
authored
Mar 11, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Hooks] Restore compatiblity with Podfile::TargetDefinition#copy_resources_script_name
parent
e7d736e4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
installer_representation.rb
lib/cocoapods/hooks/installer_representation.rb
+9
-0
library_representation.rb
lib/cocoapods/hooks/library_representation.rb
+1
-1
library_representation_spec.rb
spec/unit/hooks/library_representation_spec.rb
+1
-1
No files found.
lib/cocoapods/hooks/installer_representation.rb
View file @
1d276368
...
...
@@ -8,6 +8,15 @@ module Pod
end
end
class
Podfile
::
TargetDefinition
def
copy_resources_script_name
UI
.
warn
"TargetDefinition#copy_resources_script_name is deprecated. "
\
"The value is accessible directly from the representation of the "
\
"library using the #copy_resources_script_path method."
Config
.
instance
.
sandbox
.
root
+
"
#{
label
}
-resources.sh"
end
end
module
Hooks
# The installer representation to pass to the hooks.
...
...
lib/cocoapods/hooks/library_representation.rb
View file @
1d276368
...
...
@@ -32,7 +32,7 @@ module Pod
# @return [Pathname] The path of the script used to copy the resources.
#
def
copy_resources_script_
name
def
copy_resources_script_
path
library
.
copy_resources_script_path
end
...
...
spec/unit/hooks/library_representation_spec.rb
View file @
1d276368
...
...
@@ -33,7 +33,7 @@ module Pod
it
"returns the path of the copy resources script"
do
@lib
.
support_files_root
=
temporary_directory
@rep
.
copy_resources_script_
name
.
should
==
temporary_directory
+
'Pods-MyApp-resources.sh'
@rep
.
copy_resources_script_
path
.
should
==
temporary_directory
+
'Pods-MyApp-resources.sh'
end
it
"returns the pods project"
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