CocoaPods/metrics.cocoapods.org

Metric API not returning correct result

cezheng opened this issue · 0 comments

I updated my Pod yesterday(actually 20 hours ago), it went well right after the update but today it rolled back to even older version than before the update.
http://metrics.cocoapods.org/api/v1/pods/PySwiftyRegex.json

  • My Pod is now at 0.1.2(I made a better readme at 0.1.2), yet "rendered_readme_url":"http://cocoadocs.org/docsets/PySwiftyRegex/0.1.1/README.html"
  • The "doc_percent":38 is the coverage rate at 0.1.0, I already made it 100% at 0.1.1
  • "builds_independently":false -> I already added shared schemes and I tried running xcodebuild in the cloned repo successfully, but only when using Xcode 7 beta since it is swift 2. Is this the reason why it is false?

These caused incorrect result on the pod quality page. It just look so weird that the pod quality did show correct result right after update, but getting back to the previous version after like 20 hours later.

At the moment the API returns

{"github":{"subscribers":1,"stargazers":13,"forks":0,"contributors":1,"open_issues":0,"open_pull_requests":0,"created_at":"2015-06-27 12:12:20 UTC","updated_at":"2015-07-24 00:14:12 UTC","language":"Swift","closed_issues":0,"closed_pull_requests":0},"cocoadocs":{"install_size":32,"total_files":1,"total_comments":203,"total_lines_of_code":226,"doc_percent":38,"readme_complexity":56,"initial_commit_date":"2015-07-16 22:57:07 UTC","rendered_readme_url":"http://cocoadocs.org/docsets/PySwiftyRegex/0.1.1/README.html","created_at":"2015-06-30 10:22:11 UTC","updated_at":"2015-08-02 19:19:49 UTC","license_short_name":"MIT","license_canonical_url":"http://opensource.org/licenses/MIT","total_test_expectations":171,"dominant_language":"Swift","quality_estimate":59,"builds_independently":false,"is_vendored_framework":null,"rendered_changelog_url":null,"rendered_summary":null},"stats":{"download_total":0,"download_week":0,"download_month":0,"app_total":0,"app_week":0,"tests_total":0,"tests_week":0,"created_at":"2015-06-28 10:07:02 UTC","updated_at":"2015-07-07 10:12:38 UTC","extension_week":0,"extension_total":0,"watch_week":0,"watch_total":0,"pod_try_week":0,"pod_try_total":0,"is_active":false}}

This issue is related to CocoaPods/cocoadocs.org#374. I looked into the metrics api after I saw incorrect content on the quality page.