Skip to content

Commit

Permalink
Moving default Source to cocoapods gem
Browse files Browse the repository at this point in the history
Removed private helper for master repo
  • Loading branch information
netbe committed Oct 21, 2013
1 parent 49b455d commit eda35a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
13 changes: 1 addition & 12 deletions lib/cocoapods-core/podfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,7 @@ def dependencies
# @return [Array<String>] all the specs source names.

def sources
sources = get_hash_value('sources')
unless sources
return [default_source]
else
sources
end
get_hash_value('sources')
end

# @return [String] the path of the workspace if specified by the user.
Expand Down Expand Up @@ -308,12 +303,6 @@ def self.from_hash(hash, path = nil)

# @!group Private helpers

# @return [String] the default specs source name
#
def default_source
"master"
end

# @return [Hash] The hash which store the attributes of the Podfile.
#
attr_accessor :internal_hash
Expand Down
9 changes: 0 additions & 9 deletions spec/podfile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,6 @@ module Pod
end

describe "source" do

it 'always has at least one source' do
Podfile.new {}.sources.should.include "master"

Podfile.new do
source 'new_repo'
end.sources.should.include "new_repo"
end

it 'can have multiple sources' do
Podfile.new do
source 'new_repo_1'
Expand Down

0 comments on commit eda35a6

Please sign in to comment.