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
c821caaf
Commit
c821caaf
authored
Feb 08, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the specs run on MRI 1.9.3
parent
0f8df375
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
13 deletions
+21
-13
Rakefile
Rakefile
+4
-4
Xcodeproj
external/Xcodeproj
+1
-1
file_list.rb
lib/cocoapods/file_list.rb
+9
-1
spec_helper.rb
spec/spec_helper.rb
+2
-1
downloader_spec.rb
spec/unit/downloader_spec.rb
+1
-1
specification_spec.rb
spec/unit/specification_spec.rb
+3
-4
xcodeproj_ext_spec.rb
spec/unit/xcodeproj_ext_spec.rb
+1
-1
No files found.
Rakefile
View file @
c821caaf
...
...
@@ -85,21 +85,21 @@ end
namespace
:spec
do
desc
"Run the unit specs"
task
:unit
do
sh
"
mac
bacon spec/unit/**/*_spec.rb"
sh
"bacon spec/unit/**/*_spec.rb"
end
desc
"Run the functional specs"
task
:functional
do
sh
"
mac
bacon spec/functional/*_spec.rb"
sh
"bacon spec/functional/*_spec.rb"
end
desc
"Run the integration spec"
task
:integration
do
sh
"
mac
bacon spec/integration_spec.rb"
sh
"bacon spec/integration_spec.rb"
end
task
:all
do
sh
"
macbacon -a
"
sh
"
bacon spec/**/*_spec.rb
"
end
desc
"Run all specs and build all examples"
...
...
Xcodeproj
@
23a54f40
Subproject commit
ca3fe8f63cdaddbdf6a465e6352c7ca6501ee164
Subproject commit
23a54f4021bcfebf284e3cb62decc7c832594285
lib/cocoapods/file_list.rb
View file @
c821caaf
require
'rake'
if
RUBY_VERSION
>=
"1.9"
require
'rake/file_list'
else
require
'rake'
end
# This makes Rake::FileList usable with the Specification attributes
# source_files, clean_paths, and resources.
...
...
@@ -19,6 +23,10 @@ module Rake
end
end
module
Pod
FileList
=
Rake
::
FileList
end
class
Pathname
alias_method
:_original_sum
,
:
+
def
+
(
other
)
...
...
spec/spec_helper.rb
View file @
c821caaf
require
'rubygems'
require
'
mac_
bacon'
require
'bacon'
require
'pathname'
ROOT
=
Pathname
.
new
(
File
.
expand_path
(
'../../'
,
__FILE__
))
$:
.
unshift
File
.
expand_path
(
'../../external/xcodeproj/ext'
,
__FILE__
)
$:
.
unshift
File
.
expand_path
(
'../../external/xcodeproj/lib'
,
__FILE__
)
$:
.
unshift
(
ROOT
+
'lib'
).
to_s
require
'cocoapods'
...
...
spec/unit/downloader_spec.rb
View file @
c821caaf
...
...
@@ -4,7 +4,7 @@ describe "Pod::Downloader" do
it
"returns a git downloader"
do
downloader
=
Pod
::
Downloader
.
for_source
(
'/path/to/pod_root'
,
:git
=>
'http://example.local/banana.git'
,
:tag
=>
'v1.0'
,
:git
=>
'http://example.local/banana.git'
,
:tag
=>
'v1.0'
)
downloader
.
should
.
be
.
instance_of
Pod
::
Downloader
::
Git
downloader
.
pod_root
.
should
==
'/path/to/pod_root'
...
...
spec/unit/specification_spec.rb
View file @
c821caaf
...
...
@@ -263,7 +263,7 @@ describe "A Pod::Specification, in general," do
@spec
.
platform
.
should
==
:ios
end
it
"returns the license of the Pod
’
s code"
do
it
"returns the license of the Pod
'
s code"
do
@spec
.
license
=
'MIT'
@spec
.
license
.
should
==
'MIT'
end
...
...
@@ -274,10 +274,9 @@ describe "A Pod::Specification, in general," do
end
it
"takes any object for clean_paths as long as it responds to #glob (we provide this for Rake::FileList)"
do
Pod
::
FileList
# autoload
@spec
.
clean_paths
=
FileList
[
'*'
].
exclude
(
'Rakefile'
)
@spec
.
clean_paths
=
Pod
::
FileList
[
'*'
].
exclude
(
'Rakefile'
)
list
=
ROOT
+
@spec
.
clean_paths
.
first
list
.
glob
.
should
==
FileList
[(
ROOT
+
'*'
).
to_s
].
exclude
(
'Rakefile'
).
map
{
|
path
|
Pathname
.
new
(
path
)
}
list
.
glob
.
should
==
Pod
::
FileList
[(
ROOT
+
'*'
).
to_s
].
exclude
(
'Rakefile'
).
map
{
|
path
|
Pathname
.
new
(
path
)
}
end
end
...
...
spec/unit/xcodeproj_ext_spec.rb
View file @
c821caaf
...
...
@@ -7,7 +7,7 @@ describe 'Xcodeproj::Project' do
def
find_object
(
conditions
)
@project
.
objects_hash
.
select
do
|
_
,
object
|
object
.
objectsForKeys
(
conditions
.
keys
,
notFoundMarker
:Object
.
new
)
==
conditions
.
values
(
conditions
.
keys
-
object
.
keys
).
empty?
&&
object
.
values_at
(
*
conditions
.
keys
)
==
conditions
.
values
end
.
first
end
...
...
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