lib/jazzy/podspec_documenter.rb in jazzy-0.4.1 vs lib/jazzy/podspec_documenter.rb in jazzy-0.5.0
- old
+ new
@@ -14,11 +14,11 @@
installer = Pod::Installer.new(sandbox, podfile)
installer.install!
stdout = Dir.chdir(sandbox.root) do
pod_targets.map do |t|
SourceKitten.run_sourcekitten(
- %W(doc --module-name #{podspec.module_name} -target #{t}),
+ %W(doc --module-name #{podspec.module_name} -target #{t})
)
end
end
stdout.reduce([]) { |a, s| a + JSON.load(s) }.to_json
end
@@ -88,10 +88,11 @@
Pod::Config.instance.tap do |c|
c.installation_root = Pathname(Dir.mktmpdir)
c.installation_root.rmtree if c.installation_root.exist?
c.integrate_targets = false
c.deduplicate_targets = false
+ c.deterministic_uuids = false
end
end
def pod_path
if podspec.defined_in_file
@@ -107,9 +108,14 @@
targets = (@pod_targets ||= [])
@podfile ||= Pod::Podfile.new do
platform :ios, '8.0'
[podspec, *podspec.recursive_subspecs].each do |ss|
ss.available_platforms.each do |p|
+ # Travis builds take too long when building docs for all available
+ # platforms for the Moya integration spec, so we just document OSX.
+ # TODO: remove once jazzy is fast enough.
+ next if ENV['JAZZY_INTEGRATION_SPECS'] &&
+ !p.to_s.start_with?('OS X')
t = "Jazzy-#{ss.name.gsub('/', '__')}-#{p.name}"
targets << "Pods-#{t}-#{ss.root.name}"
target(t) do
use_frameworks!
platform p.name, p.deployment_target