From c94c0b8f708ec2c58d7d62a2e6fea6746144653b Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Mon, 22 Feb 2016 17:26:54 +0000 Subject: [PATCH] Filling out catalog info. --- .../ConfigurationOfGrafoscopio.class.st | 179 ++++++++++++++++++ .../ConfigurationOfGrafoscopio/package.st | 1 + 2 files changed, 180 insertions(+) create mode 100644 repository/ConfigurationOfGrafoscopio/ConfigurationOfGrafoscopio.class.st create mode 100644 repository/ConfigurationOfGrafoscopio/package.st diff --git a/repository/ConfigurationOfGrafoscopio/ConfigurationOfGrafoscopio.class.st b/repository/ConfigurationOfGrafoscopio/ConfigurationOfGrafoscopio.class.st new file mode 100644 index 0000000..de8decf --- /dev/null +++ b/repository/ConfigurationOfGrafoscopio/ConfigurationOfGrafoscopio.class.st @@ -0,0 +1,179 @@ +" +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." + + +] + +{ #category : #private } +ConfigurationOfGrafoscopio class >> baseConfigurationClassIfAbsent: aBlock [ + + ^Smalltalk + at: #MetacelloBaseConfiguration + ifAbsent: [ + self ensureMetacelloBaseConfiguration. + Smalltalk at: #MetacelloBaseConfiguration ifAbsent: aBlock ]. + +] + +{ #category : #catalog } +ConfigurationOfGrafoscopio class >> catalogContactInfo [ + ^'info@mutabit.com' +] + +{ #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 #'reproducible-research' #'open-data' #'open-research' #'open-science' #'interactive-notebook') +] + +{ #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" + + + ^(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" + + + ^(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" + + + ^(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" + + + self ensureMetacello. + ^ ((Smalltalk at: #MetacelloToolBox) validateConfiguration: self debug: #() recurse: false) explore +] + +{ #category : #baselines } +ConfigurationOfGrafoscopio >> baseline01: spec [ + + + 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 : #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 [ + + + spec for: #'common' version: '0.1-baseline'. + +] + +{ #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 ] +] diff --git a/repository/ConfigurationOfGrafoscopio/package.st b/repository/ConfigurationOfGrafoscopio/package.st new file mode 100644 index 0000000..6f7fa7c --- /dev/null +++ b/repository/ConfigurationOfGrafoscopio/package.st @@ -0,0 +1 @@ +Package { #name : #ConfigurationOfGrafoscopio }