lib/cocoapods_plugin.rb in cocoapods-stats-0.5.3 vs lib/cocoapods_plugin.rb in cocoapods-stats-0.6.0
- old
+ new
@@ -34,10 +34,11 @@
targets.flat_map { |t| t[:pods] }.uniq.sort_by { |p| p[:name] }.each do |pod|
Pod::UI.message "#{pod[:name]}, #{pod[:version]}", '- '
end
is_pod_try = defined?(Pod::Command::Try::TRY_TMP_DIR) &&
- context.sandbox_root.start_with?(Pod::Command::Try::TRY_TMP_DIR.to_s)
+ Pod::Command::Try::TRY_TMP_DIR.exist? &&
+ context.sandbox_root.start_with?(Pod::Command::Try::TRY_TMP_DIR.realpath.to_s)
# Send the analytics stuff up
Sender.new.send(targets, :pod_try => is_pod_try)
end
end