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
6ee74e0c
Commit
6ee74e0c
authored
Jun 07, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitely read external source files (specs|Podfile) as utf-8.
parent
3bf1cfc3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
5 deletions
+3
-5
.travis.yml
.travis.yml
+1
-1
cocoapods.rb
lib/cocoapods.rb
+0
-2
podfile.rb
lib/cocoapods/podfile.rb
+1
-1
specification.rb
lib/cocoapods/specification.rb
+1
-1
No files found.
.travis.yml
View file @
6ee74e0c
...
@@ -6,4 +6,4 @@ rvm:
...
@@ -6,4 +6,4 @@ rvm:
#- rbx-18mode
#- rbx-18mode
-
rbx-19mode
-
rbx-19mode
install
:
NOEXEC=skip rake travis:setup
install
:
NOEXEC=skip rake travis:setup
script
:
RUBYOPT=-Ku
bundle exec rake spec
script
:
bundle exec rake spec
lib/cocoapods.rb
View file @
6ee74e0c
Encoding
.
default_external
=
Encoding
::
UTF_8
if
RUBY_VERSION
>
'1.8.7'
module
Pod
module
Pod
VERSION
=
'0.6.0.rc2'
VERSION
=
'0.6.0.rc2'
...
...
lib/cocoapods/podfile.rb
View file @
6ee74e0c
...
@@ -153,7 +153,7 @@ module Pod
...
@@ -153,7 +153,7 @@ module Pod
def
self
.
from_file
(
path
)
def
self
.
from_file
(
path
)
podfile
=
Podfile
.
new
do
podfile
=
Podfile
.
new
do
eval
(
path
.
read
,
nil
,
path
.
to_s
)
eval
(
File
.
open
(
path
,
'r:utf-8'
)
{
|
f
|
f
.
read
}
,
nil
,
path
.
to_s
)
end
end
podfile
.
defined_in_file
=
path
podfile
.
defined_in_file
=
path
podfile
.
validate!
podfile
.
validate!
...
...
lib/cocoapods/specification.rb
View file @
6ee74e0c
...
@@ -4,7 +4,7 @@ module Pod
...
@@ -4,7 +4,7 @@ module Pod
extend
Config
::
Mixin
extend
Config
::
Mixin
def
self
.
_eval_podspec
(
path
)
def
self
.
_eval_podspec
(
path
)
eval
(
path
.
read
,
nil
,
path
.
to_s
)
eval
(
File
.
open
(
path
,
'r:utf-8'
)
{
|
f
|
f
.
read
}
,
nil
,
path
.
to_s
)
end
end
class
Specification
class
Specification
...
...
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