Commit a6029d66 authored by Fabio Pelosin's avatar Fabio Pelosin

[Integration] Cleaned specs.

parent 5190db62
GIT
remote: git://github.com/CocoaPods/Core.git
revision: 08a308017a4fbf327143f14353cf698460088ac9
revision: 65076d5eb9b6b99ecce7b4628ce08b4c0f98f192
specs:
cocoapods-core (0.17.0.alpha)
activesupport (~> 3.2.6)
......@@ -63,7 +63,7 @@ GEM
multipart-post (~> 1.1)
faraday_middleware (0.9.0)
faraday (>= 0.7.4, < 0.9)
github-markup (0.7.4)
github-markup (0.7.5)
hashie (1.2.0)
i18n (0.6.1)
json (1.7.5)
......
......@@ -128,6 +128,13 @@ module Pod
#-------------------------------------------------------------------------#
# @!group Hooks compatiblity
alias :project :pods_project
alias :pods :local_pods
#-------------------------------------------------------------------------#
# @!group Installation steps
private
......@@ -238,7 +245,7 @@ module Pod
unless analyzer.sandbox_state.deleted.empty?
UI.section "Removing deleted dependencies" do
pods_deleted_from_the_lockfile.each do |pod_name|
analyzer.sandbox_state.deleted.each do |pod_name|
UI.section("Removing #{pod_name}", "-> ".red) do
path = sandbox.root + pod_name
path.rmtree if path.exist?
......
......@@ -203,7 +203,7 @@ module Pod
lib.user_targets = []
lib.user_build_configurations = {}
lib.platform = target_definition.platform
raise Informative "It is necessary to specify the platform in the Podfile if not integrating." unless target_definition.platform
raise Informative, "It is necessary to specify the platform in the Podfile if not integrating." unless target_definition.platform
end
libraries << lib
end
......
This diff is collapsed.
......@@ -33,7 +33,6 @@ module Bacon
include Pod::Config::Mixin
include SpecHelper::Fixture
include SpecHelper::Command
def skip_xcodebuild?
ENV['SKIP_XCODEBUILD']
end
......@@ -64,6 +63,28 @@ def copy_fixture_to_pod(name, pod)
FileUtils.cp_r(path, pod.root)
end
#-----------------------------------------------------------------------------#
# Override {Specification#source} to return sources from fixtures and limit
# network connections.
#
module Pod
class Specification
alias :original_source :source
def source
fixture = SpecHelper.fixture("integration/#{name}")
result = super
if fixture.exist?
# puts "Using fixture [#{name}]"
result[:git] = fixture.to_s
else
# puts "MISSING fixture [#{name}]"
end
result
end
end
end
SpecHelper::Fixture.fixture('banana-lib') # ensure it exists
require "active_support/core_ext/string/strip"
......@@ -81,7 +81,7 @@ module Bacon
end
def handle_requirement(description, disabled = false)
if false && @first_error
if @first_error
print Bacon.color(nil, '_')
else
error = yield
......
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