[Pharo-dev] [ANN] Hubcap - a SmalltalkHub API and browser for Pharo

Torsten Bergmann astares at gmx.de
Fri Nov 21 02:32:31 EST 2014


Hi,

as I wanted to browse the SmalltalkHub contents directly from within Pharo image
I wrote a simple browser:

  Gofer it
     url: 'http://www.smalltalkhub.com/mc/TorstenBergmann/Hubcap/main';
     configurationOf: 'Hubcap';
     loadDevelopment.

Attached is a screenshot. Works on Pharo 4.0. Still not finished but maybe it is 
already useful to others as well.

One can access the tool from the world menu, implementation lives in 
"Hubcap-Tools" package. The UI shows and allows to filter users, shows
their projects and packages. Special icons display the state (loaded, 
modified, public writable, ...). One can load from the UI or open Monticello tools.

The "Hubcap-Core" package includes an API to query STHub and write
expressions like:

   HubClient new allProjectsForUserNamed: 'TorstenBergmann' 

   HubClient new hasUserNamed: 'TorstenBergmann'

So "Hubcap-Core" may be usefull to people who want to build other tools
that depend on STHub infos. Basic documentation lives on 

 http://www.smalltalkhub.com/#!/~TorstenBergmann/Hubcap

and as class comment on ConfigurationOfHubcap.

Beware: the tool is sill not optimized, any clicking involves a query 
to STHub (hope STHub will not crash when many people use it). API
may still undergo changes in the future.

Also teams are not yet supported as STHub still returns an MNU error 
in the REST interface: http://www.smalltalkhub.com/hub/teams?term=Pharo
Anyone able to fix that?

Thanks to Stephan Eggermonts who gave me the initial idea with some code
I've found in "Deprecation finder" and to Sven for the easy to use NeoJSON
package.

Contributors can just commit, the project is public.

Bye
T.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sthubbrowser.png
Type: image/png
Size: 297543 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20141121/3dba1b1e/attachment-0001.png>


More information about the Pharo-dev mailing list