Index: trunk/extensions/Distribution/api/ApiQueryExtensions.php |
— | — | @@ -102,8 +102,15 @@ |
103 | 103 | break; |
104 | 104 | } |
105 | 105 | |
| 106 | + // This is based on |
| 107 | + // http://search.cpan.org/~dagolden/CPAN-Meta-2.101670/lib/CPAN/Meta/Spec.pm |
106 | 108 | $result = array( |
107 | | - //TODO |
| 109 | + 'name' => $extension->unit_name, |
| 110 | + 'description' => $extension->current_desc, |
| 111 | + 'version' => $extension->current_version_nr, |
| 112 | + 'authors' => $extension->current_authors, |
| 113 | + 'url' => $extension->current_url, |
| 114 | + //'licence' => $extension->current_licence |
108 | 115 | ); |
109 | 116 | |
110 | 117 | $this->getResult()->addValue( array( 'query', $this->getModuleName() ), null, $result ); |