RubyGems 導覽選單
指南

使用 API v2 獲得兩倍資訊

寶石版本方法

GET - /api/v2/rubygems/[寶石名稱]/versions/[版本號碼].(json|yaml)

傳回特定寶石版本的版本詳細資料字典。

若要傳回特定平台的版本(例如「ruby」、「java」、「x86_64-linux」),請使用 platform 查詢參數。

$ curl https://rubygems.org/api/v2/rubygems/coulda/versions/0.7.1.json

{
  "authors":"Evan David Light",
  "built_at":"2011-08-08T04:00:00.000Z",
  "created_at":"2011-08-08T21:23:40.254Z",
  "description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse",
  "downloads_count":2469,
  "metadata":{},
  "number":"0.7.1",
  "summary":"Test::Unit-based acceptance testing DSL",
  "platform":"ruby",
  "ruby_version":null,
  "prerelease":false,
  "licenses":null,
  "requirements":null,
  "sha":"777c3a7ed83e44198b0a624976ec99822eb6f4a44bf1513eafbc7c13997cd86c"
}