507 lines
15 KiB
Smalltalk
507 lines
15 KiB
Smalltalk
"
|
|
I manage the installation of Grafoscopio. Grafoscopio is a tool for interative notebooks/documentation and data visualization.
|
|
|
|
For more details about this project, look for the
|
|
Grafoscopio package in the system browser or at: http://mutabit.com/grafoscopio/index.en.html
|
|
"
|
|
Class {
|
|
#name : #ConfigurationOfGrafoscopio,
|
|
#superclass : #Object,
|
|
#instVars : [
|
|
'project'
|
|
],
|
|
#classVars : [
|
|
'LastVersionLoad'
|
|
],
|
|
#category : #ConfigurationOfGrafoscopio
|
|
}
|
|
|
|
{ #category : #'development support' }
|
|
ConfigurationOfGrafoscopio class >> DevelopmentSupport [
|
|
|
|
"See the methods in the 'development support' category on the class-side of MetacelloBaseConfiguration. Decide what development support methods you would like to use and copy them the the class-side of your configuration."
|
|
<apiDocumentation>
|
|
|
|
]
|
|
|
|
{ #category : #private }
|
|
ConfigurationOfGrafoscopio class >> baseConfigurationClassIfAbsent: aBlock [
|
|
|
|
^Smalltalk
|
|
at: #MetacelloBaseConfiguration
|
|
ifAbsent: [
|
|
self ensureMetacelloBaseConfiguration.
|
|
Smalltalk at: #MetacelloBaseConfiguration ifAbsent: aBlock ].
|
|
|
|
]
|
|
|
|
{ #category : #catalog }
|
|
ConfigurationOfGrafoscopio class >> catalogContactInfo [
|
|
^'mail: info@mutabit.com | web: http://mutabit.com/grafoscopio/'
|
|
]
|
|
|
|
{ #category : #catalog }
|
|
ConfigurationOfGrafoscopio class >> catalogDescription [
|
|
^'Grafoscopio is a tool to create interactive notebooks and documentation for computer narratives and data visualization.
|
|
They are structured as outlines/trees containing textual and code nodes that can be exported to several formats: LaTeX, HTML
|
|
and pdf (via pandoc).
|
|
It can be used in several endeavors like: reproductible open research and science, data journalism, data activism among others'
|
|
]
|
|
|
|
{ #category : #catalog }
|
|
ConfigurationOfGrafoscopio class >> catalogKeywords [
|
|
^ #(#'data-activism' #'data-journalism' #'data-science' #'data-visualization' documentation #'interactive-notebook' 'markup' 'markdown' #'open-data' #'open-research' #'open-science' #'reproducible-research')
|
|
]
|
|
|
|
{ #category : #private }
|
|
ConfigurationOfGrafoscopio class >> ensureMetacello [
|
|
|
|
(self baseConfigurationClassIfAbsent: []) ensureMetacello
|
|
]
|
|
|
|
{ #category : #private }
|
|
ConfigurationOfGrafoscopio class >> ensureMetacelloBaseConfiguration [
|
|
|
|
Smalltalk
|
|
at: #MetacelloBaseConfiguration
|
|
ifAbsent: [
|
|
| repository version |
|
|
repository := MCHttpRepository location: 'http://seaside.gemstone.com/ss/metacello' user: '' password: ''.
|
|
repository
|
|
versionReaderForFileNamed: 'Metacello-Base-DaleHenrichs.2.mcz'
|
|
do: [ :reader |
|
|
version := reader version.
|
|
version load.
|
|
version workingCopy repositoryGroup addRepository: repository ] ]
|
|
]
|
|
|
|
{ #category : #'metacello tool support' }
|
|
ConfigurationOfGrafoscopio class >> isMetacelloConfig [
|
|
"Answer true and the Metacello tools will operate on you"
|
|
|
|
^true
|
|
]
|
|
|
|
{ #category : #loading }
|
|
ConfigurationOfGrafoscopio class >> load [
|
|
"Load the #stable version defined for this platform. The #stable version is the version that is recommended to be used on this platform."
|
|
|
|
"self load"
|
|
|
|
<apiDocumentation>
|
|
^(self project version: #stable) load
|
|
]
|
|
|
|
{ #category : #loading }
|
|
ConfigurationOfGrafoscopio class >> loadBleedingEdge [
|
|
"Load the latest versions of the mcz files defined for this project. It is not likely that the #bleedingEdge has been tested."
|
|
|
|
"self loadBleedingEdge"
|
|
|
|
<apiDocumentation>
|
|
^(self project version: #bleedingEdge) load
|
|
]
|
|
|
|
{ #category : #loading }
|
|
ConfigurationOfGrafoscopio class >> loadDevelopment [
|
|
"Load the #development version defined for this platform. The #development version will change over time and is not expected to be stable."
|
|
|
|
"self loadDevelopment"
|
|
|
|
<apiDocumentation>
|
|
^(self project version: #development) load
|
|
]
|
|
|
|
{ #category : #accessing }
|
|
ConfigurationOfGrafoscopio class >> project [
|
|
|
|
^self new project
|
|
]
|
|
|
|
{ #category : #'development support' }
|
|
ConfigurationOfGrafoscopio class >> validate [
|
|
"Check the configuration for Errors, Critical Warnings, and Warnings (see class comment for MetacelloMCVersionValidator for more information).
|
|
Errors identify specification issues that will result in unexpected behaviour when you load the configuration.
|
|
Critical Warnings identify specification issues that may result in unexpected behavior when you load the configuration.
|
|
Warnings identify specification issues that are technically correct, but are worth take a look at."
|
|
|
|
"self validate"
|
|
|
|
<apiDocumentation>
|
|
self ensureMetacello.
|
|
^ ((Smalltalk at: #MetacelloToolBox) validateConfiguration: self debug: #() recurse: false) explore
|
|
]
|
|
|
|
{ #category : #baselines }
|
|
ConfigurationOfGrafoscopio >> baseline01: spec [
|
|
<version: '0.1-baseline'>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'baseline'.
|
|
spec repository: 'http://smalltalkhub.com/mc/Offray/Grafoscopio/main/'.
|
|
spec project: 'Ston' with: [
|
|
spec
|
|
className: #ConfigurationOfSton;
|
|
versionString: #'stable';
|
|
repository: 'http://ss3.gemstone.com/ss/STON' ].
|
|
spec package: #Grafoscopio.
|
|
spec group: 'Core' with: #(#Grafoscopio ). ].
|
|
|
|
]
|
|
|
|
{ #category : #baselines }
|
|
ConfigurationOfGrafoscopio >> baseline02: spec [
|
|
<version: '0.2-baseline'>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'baseline'.
|
|
spec repository: 'http://smalltalkhub.com/mc/Offray/Grafoscopio/main/'.
|
|
spec project: 'Ston' with: [
|
|
spec
|
|
className: #ConfigurationOfSton;
|
|
versionString: #'stable';
|
|
repository: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main/';
|
|
repository: 'http://ss3.gemstone.com/ss/STON' ].
|
|
spec package: #Grafoscopio.
|
|
spec group: 'Core' with: #(#Grafoscopio ). ].
|
|
|
|
]
|
|
|
|
{ #category : #baselines }
|
|
ConfigurationOfGrafoscopio >> baseline03: spec [
|
|
<version: '0.3-baseline'>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'baseline'.
|
|
spec repository: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo50/main/'.
|
|
spec project: 'Ston' with: [
|
|
spec
|
|
className: #ConfigurationOfSton;
|
|
versionString: #'stable';
|
|
repository: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main/';
|
|
repository: 'http://ss3.gemstone.com/ss/STON' ].
|
|
spec package: #Grafoscopio.
|
|
spec group: 'Core' with: #(#Grafoscopio ). ].
|
|
|
|
]
|
|
|
|
{ #category : #baselines }
|
|
ConfigurationOfGrafoscopio >> baseline04: spec [
|
|
<version: '0.4-baseline'>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'baseline'.
|
|
spec repository: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main/'.
|
|
spec project: 'Ston' with: [
|
|
spec
|
|
className: #ConfigurationOfSton;
|
|
versionString: '0.14';
|
|
repository: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main/';
|
|
repository: 'http://ss3.gemstone.com/ss/STON' ].
|
|
spec package: #Grafoscopio.
|
|
spec group: 'Core' with: #(). ].
|
|
|
|
]
|
|
|
|
{ #category : #baselines }
|
|
ConfigurationOfGrafoscopio >> baseline05: spec [
|
|
<version: '0.5-baseline'>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'baseline'.
|
|
spec repository: 'http://smalltalkhub.com/Offray/Grafoscopio'.
|
|
spec project: 'Ston' with: [
|
|
spec
|
|
className: #ConfigurationOfSton;
|
|
versionString: '0.14';
|
|
repository: 'http://ss3.gemstone.com/ss/STON' ].
|
|
spec package: #Grafoscopio.
|
|
spec group: 'Core' with: #(). ].
|
|
|
|
]
|
|
|
|
{ #category : #baselines }
|
|
ConfigurationOfGrafoscopio >> baseline06: spec [
|
|
<version: '0.6-baseline'>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'baseline'.
|
|
spec repository: 'http://smalltalkhub.com/Offray/Grafoscopio'.
|
|
spec project: 'Ston' with: [
|
|
spec
|
|
className: #ConfigurationOfSton;
|
|
versionString: #'stable';
|
|
repository: 'http://ss3.gemstone.com/ss/STON' ].
|
|
spec package: #Grafoscopio.
|
|
spec group: 'Core' with: #(). ].
|
|
|
|
]
|
|
|
|
{ #category : #baselines }
|
|
ConfigurationOfGrafoscopio >> baseline07: spec [
|
|
<version: '0.7-baseline'>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'baseline'.
|
|
spec repository: 'http://smalltalkhub.com/Offray/Grafoscopio'.
|
|
spec
|
|
project: 'Ston' with: [
|
|
spec
|
|
className: #ConfigurationOfSton;
|
|
versionString: #'stable';
|
|
repository: 'http://ss3.gemstone.com/ss/STON' ];
|
|
project: 'Roassal2' with: [
|
|
spec
|
|
className: #ConfigurationOfRoassal2;
|
|
versionString: #'stable';
|
|
repository: 'http://smalltalkhub.com/mc/ObjectProfile/Roassal2/main/' ].
|
|
spec package: #Grafoscopio.
|
|
spec group: 'Core' with: #(). ].
|
|
|
|
]
|
|
|
|
{ #category : #baselines }
|
|
ConfigurationOfGrafoscopio >> baseline1_0: spec [
|
|
<version: '1.0-baseline'>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'baseline'.
|
|
spec repository: 'http://smalltalkhub.com/Offray/Grafoscopio'.
|
|
spec
|
|
project: 'Ston' with: [
|
|
spec
|
|
className: #ConfigurationOfSton;
|
|
versionString: #'bleedingEdge';
|
|
repository: 'http://ss3.gemstone.com/ss/STON' ];
|
|
project: 'Roassal2' with: [
|
|
spec
|
|
className: #ConfigurationOfRoassal2;
|
|
versionString: #'bleedingEdge';
|
|
repository: 'http://smalltalkhub.com/mc/ObjectProfile/Roassal2/main/' ];
|
|
package: 'Spec-Glamour' with:[
|
|
spec repository: 'http://smalltalkhub.com/mc/jfabry/Playground/main/' ];
|
|
project: 'Dataviz' with: [
|
|
spec
|
|
className: #ConfigurationOfDataviz;
|
|
versionString: #'bleedingEdge';
|
|
repository: 'http://smalltalkhub.com/mc/Offray/Dataviz/main/' ].
|
|
spec package: #Grafoscopio with: [
|
|
spec
|
|
requires: 'Ston';
|
|
requires: 'Spec-Glamour'].
|
|
spec
|
|
group: 'Core' with: #('Grafoscopio' 'Roassal2');
|
|
group: 'Extended' with: #('Core' 'Dataviz') ].
|
|
|
|
]
|
|
|
|
{ #category : #accessing }
|
|
ConfigurationOfGrafoscopio >> customProjectAttributes [
|
|
"Edit to return a collection of any custom attributes e.g. for conditional loading: Array with: #'Condition1' with: #'Condition2.
|
|
For more information see: http://code.google.com/p/metacello/wiki/CustomProjectAttrributes"
|
|
|
|
^ #().
|
|
]
|
|
|
|
{ #category : #'symbolic versions' }
|
|
ConfigurationOfGrafoscopio >> development: spec [
|
|
<symbolicVersion: #'development'>
|
|
|
|
spec for: #'common' version: '0.7-baseline'.
|
|
|
|
]
|
|
|
|
{ #category : #'as yet unclassified' }
|
|
ConfigurationOfGrafoscopio >> postLoadForGrafoscopio [
|
|
GrafoscopioBrowser startDockingBar
|
|
]
|
|
|
|
{ #category : #accessing }
|
|
ConfigurationOfGrafoscopio >> project [
|
|
|
|
^ project ifNil: [
|
|
"Bootstrap Metacello if it is not already loaded"
|
|
(self class baseConfigurationClassIfAbsent: []) ensureMetacello.
|
|
"Construct Metacello project"
|
|
project := MetacelloMCProject new projectAttributes: self customProjectAttributes.
|
|
(Smalltalk at: #MetacelloVersionConstructor) on: self project: project.
|
|
project loadType: #linear. "change to #atomic if desired"
|
|
project ]
|
|
]
|
|
|
|
{ #category : #'symbolic versions' }
|
|
ConfigurationOfGrafoscopio >> stable: spec [
|
|
<symbolicVersion: #'stable'>
|
|
|
|
spec for: #'common' version: '1.1'.
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version01: spec [
|
|
<version: '0.1' imports: #('0.1-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'stable'.
|
|
spec description: 'version 0.1'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '2/22/2016 17:43'.
|
|
spec project: 'Ston' with: '0.14'.
|
|
spec package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.146'. ].
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version02: spec [
|
|
<version: '0.2' imports: #('0.2-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'stable'.
|
|
spec description: 'version 0.2'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '2/22/2016 21:58'.
|
|
spec project: 'Ston' with: '0.14'.
|
|
spec package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.146'. ].
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version03: spec [
|
|
<version: '0.3' imports: #('0.2-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'stable'.
|
|
spec description: 'version 0.3'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '2/22/2016 22:43'.
|
|
spec project: 'Ston' with: '0.14'.
|
|
spec package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.146'. ].
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version04: spec [
|
|
<version: '0.4' imports: #('0.3-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'stable'.
|
|
spec description: 'version 0.4'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '2/23/2016 15:29'.
|
|
spec project: 'Ston' with: '0.14'.
|
|
spec package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.146'. ].
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version05: spec [
|
|
<version: '0.5' imports: #('0.4-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'stable'.
|
|
spec description: 'version 0.5'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '2/25/2016 11:43'.
|
|
spec project: 'Ston' with: '0.14'.
|
|
spec package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.152'.
|
|
spec package: #Grafoscopio with: [ spec postLoadDoIt: #postLoadForGrafoscopio ] ].
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version06: spec [
|
|
<version: '0.6' imports: #('0.5-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'stable'.
|
|
spec description: 'version 0.6'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '3/2/2016 18:47'.
|
|
spec project: 'Ston' with: '0.14'.
|
|
spec package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.154'.
|
|
spec package: #Grafoscopio with: [ spec postLoadDoIt: #postLoadForGrafoscopio ] ].
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version07: spec [
|
|
<version: '0.7' imports: #('0.6-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'development'.
|
|
spec description: 'version 0.7'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '2016-04-10T11:32:35.169293-05:00'.
|
|
spec project: 'Ston' with: #'stable'.
|
|
spec package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.174'.
|
|
spec package: #Grafoscopio with: [ spec postLoadDoIt: #postLoadForGrafoscopio ] ].
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version08: spec [
|
|
<version: '0.8' imports: #('0.7-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'stable'.
|
|
spec description: 'version 0.8'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '5/18/2016 17:51'.
|
|
spec
|
|
project: 'Ston' with: '0.17';
|
|
project: 'Roassal2' with: '1.23'.
|
|
spec package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.183'. ].
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version09: spec [
|
|
<version: '0.9' imports: #('0.7-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'stable'.
|
|
spec description: 'version 0.9'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '5/18/2016 17:56'.
|
|
spec
|
|
project: 'Ston' with: '0.17';
|
|
project: 'Roassal2' with: '1.23'.
|
|
spec package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.184'. ].
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version11: spec [
|
|
<version: '1.1' imports: #('0.7-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'stable'.
|
|
spec description: 'New GUI with Spec-Glamor bridge integration.'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '9/20/2016 17:46'.
|
|
spec
|
|
project: 'Ston' with: '0.19';
|
|
project: 'Roassal2' with: '1.35'.
|
|
spec package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.215'. ].
|
|
|
|
]
|
|
|
|
{ #category : #versions }
|
|
ConfigurationOfGrafoscopio >> version1_0: spec [
|
|
<version: '1.0' imports: #('1.0-baseline' )>
|
|
|
|
spec for: #'common' do: [
|
|
spec blessing: #'stable'.
|
|
spec description: 'version 1.o'.
|
|
spec author: 'OffrayLuna'.
|
|
spec timestamp: '5/26/2016 17:56'.
|
|
spec
|
|
project: 'Ston' with: '0.17';
|
|
project: 'Roassal2' with: '1.23';
|
|
project: 'Dataviz' with: '1.0'.
|
|
spec
|
|
package: #Grafoscopio with: 'Grafoscopio-OffrayLuna.188';
|
|
package: 'Spec-Glamour' with: 'Spec-Glamour-johanfabry.2'].
|
|
|
|
]
|