Commit b87c2e82 authored by Fabio Pelosin's avatar Fabio Pelosin

Rename SpecTarget to PodTarget

parent 0b42871d
......@@ -46,7 +46,7 @@ module Pod
autoload :SourcesManager, 'cocoapods/sources_manager'
autoload :Target, 'cocoapods/target'
autoload :AggregateTarget, 'cocoapods/target/aggregate_target'
autoload :SpecTarget, 'cocoapods/target/spec_target'
autoload :PodTarget, 'cocoapods/target/pod_target'
autoload :Project, 'cocoapods/project'
autoload :Resolver, 'cocoapods/resolver'
autoload :Sandbox, 'cocoapods/sandbox'
......
......@@ -32,7 +32,7 @@ module Pod
autoload :FileReferencesInstaller, 'cocoapods/installer/file_references_installer'
autoload :PodSourceInstaller, 'cocoapods/installer/pod_source_installer'
autoload :AggregateTargetInstaller, 'cocoapods/installer/target_installer'
autoload :SpecTargetInstaller, 'cocoapods/installer/target_installer'
autoload :PodTargetInstaller, 'cocoapods/installer/target_installer'
autoload :UserProjectIntegrator, 'cocoapods/installer/user_project_integrator'
include Config::Mixin
......@@ -316,7 +316,7 @@ module Pod
UI.message"- Installing libraries" do
libraries.sort_by(&:name).each do |library|
next if library.target_definition.empty?
target_installer = SpecTargetInstaller.new(sandbox, library)
target_installer = PodTargetInstaller.new(sandbox, library)
target_installer.install!
end
......
......@@ -183,7 +183,7 @@ module Pod
end
specs.each do |spec|
spec_target = SpecTarget.new(spec, target_definition, sandbox)
spec_target = PodTarget.new(spec, target_definition, sandbox)
spec_target.user_build_configurations = target.user_build_configurations
target.libraries << spec_target
end
......
......@@ -266,7 +266,7 @@ module Pod
#-------------------------------------------------------------------------#
class SpecTargetInstaller < AbstractTargetInstaller
class PodTargetInstaller < AbstractTargetInstaller
# Creates the target in the Pods project and the relative support files.
#
......
......@@ -6,6 +6,7 @@ module Pod
class AggregateTarget < Target
# @param [TargetDefinition] target_definition @see target_definition
# @param [Sandbox] sandbox @see sandbox
#
def initialize(target_definition, sandbox)
@target_definition = target_definition
......@@ -51,7 +52,7 @@ module Pod
#
attr_accessor :xcconfig
# @return [Array<SpecTarget>] the dependencies for this target (or library).
# @return [Array<PodTarget>] the dependencies for this target (or library).
#
attr_accessor :libraries
......
module Pod
class SpecTarget < Target
# This target is used to compile a single Pod. A pod can have one or more
# activated spec/subspecs.
#
class PodTarget < Target
# @return [Specification] the spec for the target.
#
......
require File.expand_path('../../../spec_helper', __FILE__)
module Pod
describe PodTarget do
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment