2017-07-03 19:09:51 +00:00
"
I am ConfigurationOfPubiblio a Metacello configuration of Pubiblio .
Pubiblio is a tool for managing Zotero bibliographies . Is part of the
Grafoscopio Project .
"
2017-02-28 17:33:59 +00:00
Class {
#name : # ConfigurationOfPubiblio ,
#superclass : # Object ,
#instVars : [
'project'
],
#classVars : [
'LastVersionLoad'
],
#category : # ConfigurationOfPubiblio
}
{ #category : # ' development support ' }
ConfigurationOfPubiblio 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 }
ConfigurationOfPubiblio class >> baseConfigurationClassIfAbsent: aBlock [
^ Smalltalk
a t : # 'ConfigurationOf'
i f A b s e n t : [
self ensureMetacelloBaseConfiguration .
Smalltalk at: # 'ConfigurationOf' ifAbsent: aBlock ].
]
{ #category : # private }
ConfigurationOfPubiblio class >> ensureMetacello [
(self baseConfigurationClassIfAbsent: []) ensureMetacello
]
{ #category : # private }
ConfigurationOfPubiblio class >> ensureMetacelloBaseConfiguration [
Smalltalk
a t : # 'ConfigurationOf'
i f A b s e n t : [
| repository version |
repository := MCHttpRepository
l o c a t i o n : 'http://smalltalkhub.com/mc/dkh/metacello/main'
u s e r : ''
p a s s w o r d : '' .
repository
v e r s i o n R e a d e r F o r F i l e N a m e d : 'Metacello-Base-dkh.107'
d o : [ : reader |
version := reader version .
version load .
version workingCopy repositoryGroup addRepository: repository ] ]
]
{ #category : # ' metacello tool support ' }
ConfigurationOfPubiblio class >> isMetacelloConfig [
"Answer true and the Metacello tools will operate on you"
^ true
]
{ #category : # loading }
ConfigurationOfPubiblio 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 }
ConfigurationOfPubiblio 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 }
ConfigurationOfPubiblio 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 }
ConfigurationOfPubiblio class >> project [
^ self new project
]
{ #category : # ' development support ' }
ConfigurationOfPubiblio 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 }
ConfigurationOfPubiblio >> baseline01: spec [
<version: '0.1-baseline'>
spec for: # 'common' do: [
spec blessing: # 'baseline' .
spec repository: 'http://smalltalkhub.com/mc/Offray/Grafoscopio/main/' .
spec project: 'Citezen' with: [
spec
c l a s s N a m e : #ConfigurationOfCitezen ;
v e r s i o n S t r i n g : # 'stable' ;
r e p o s i t o r y : 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo50/main/' ].
spec package: #Zotero .
spec
g r o u p : 'core' with: #( #Zotero ) ;
g r o u p : 'default' with: #( 'core' ) . ].
]
{ #category : # baselines }
ConfigurationOfPubiblio >> baseline02: spec [
<version: '0.2-baseline'>
spec for: # 'common' do: [
spec blessing: # 'baseline' .
spec repository: 'http://smalltalkhub.com/mc/Offray/Grafoscopio/main/' .
spec project: 'Citezen' with: [
spec
c l a s s N a m e : #ConfigurationOfCitezen ;
v e r s i o n S t r i n g : # 'stable' ;
r e p o s i t o r y : 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo50/main/' ].
2017-02-28 17:36:07 +00:00
spec package: #Pubiblio with: [
2017-02-28 17:33:59 +00:00
spec requires: #( 'Citezen' ) . ].
spec
2017-02-28 17:36:07 +00:00
g r o u p : 'core' with: #( #Pubiblio ) ;
2017-02-28 17:33:59 +00:00
g r o u p : 'default' with: #( 'core' ) . ].
]
2017-07-03 19:09:51 +00:00
{ #category : # baselines }
ConfigurationOfPubiblio >> baseline03: spec [
<version: '0.3-baseline'>
spec for: # 'common' do: [
spec blessing: #baseline .
spec repository: 'http://smalltalkhub.com/mc/Offray/Grafoscopio/main/' ;
2017-07-03 19:12:41 +00:00
p a c k a g e : 'Pubiblio' .
2017-07-03 19:09:51 +00:00
spec project: 'Citezen' with: [
spec
c l a s s N a m e : #ConfigurationOfCitezen ;
v e r s i o n S t r i n g : # 'stable' ;
r e p o s i t o r y : 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo50/main/' ].
spec project: 'NeoJSON' with: [
spec
c l a s s N a m e : #ConfigurationOfNeoJSON ;
v e r s i o n S t r i n g : # 'stable' ;
r e p o s i t o r y : 'http://mc.stfx.eu/Neo' ].
2017-07-03 20:44:21 +00:00
spec package: 'Pubiblio' with: [
2017-07-03 19:09:51 +00:00
spec requires: #( 'Citezen' 'NeoJSON' ) ].
spec
2017-07-03 20:44:21 +00:00
g r o u p : 'core' with: #( 'Pubiblio' ) ;
2017-07-03 19:09:51 +00:00
g r o u p : 'default' with: #( 'core' ) ].
]
2017-02-28 17:33:59 +00:00
{ #category : # accessing }
ConfigurationOfPubiblio >> customProjectAttributes [
" Edit to return a collection of any custom attributes e . g . for conditional loading: Array with: # 'Condition1' with: # ' Condition2 .
For more information see: h t t p : / / code . google . com / p / metacello / wiki / CustomProjectAttrributes "
^ #( )
]
{ #category : # ' symbolic versions ' }
ConfigurationOfPubiblio >> development: spec [
<symbolicVersion: #'development'>
spec for: # 'common' version: '0.2-baseline' .
]
{ #category : # accessing }
ConfigurationOfPubiblio >> project [
^ project
i f N i l : [
"Bootstrap Metacello if it is not already loaded"
self class ensureMetacello .
project := MetacelloMCProject new projectAttributes: self customProjectAttributes . "Create the Metacello project"
(Smalltalk at: # 'MetacelloVersionConstructor' ) on: self project: project . "Construct the project"
project loadType: # 'linear' . "change to #atomic if desired"
project ]
]
{ #category : # ' symbolic versions ' }
ConfigurationOfPubiblio >> stable: spec [
<symbolicVersion: #'stable'>
2017-07-03 19:09:51 +00:00
spec for: # 'common' version: '0.3' .
2017-02-28 17:33:59 +00:00
]
{ #category : # versions }
ConfigurationOfPubiblio >> 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/23/2017 17:12' .
spec project: 'Citezen' with: #stable .
spec package: #Zotero with: 'Zotero-OffrayLuna.5' . ].
]
{ #category : # versions }
ConfigurationOfPubiblio >> 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/23/2017 18:27' .
spec project: 'Citezen' with: #stable .
2017-03-07 16:37:59 +00:00
spec package: #Pubiblio with: 'Pubiblio-OffrayLuna.2' . ].
2017-02-28 17:33:59 +00:00
]
2017-07-03 19:09:51 +00:00
{ #category : # versions }
ConfigurationOfPubiblio >> version03: spec [
<version: '0.3' imports: #('0.3-baseline' )>
spec for: # 'common' do: [
2017-07-03 19:20:40 +00:00
spec
2017-07-03 20:48:16 +00:00
b l e s s i n g : # 'release' ;
2017-07-03 19:26:32 +00:00
p a c k a g e : 'Pubiblio' with: 'Pubiblio-OffrayLuna.2' .
2017-07-03 19:09:51 +00:00
spec
p r o j e c t : 'Citezen' with: #stable ;
2017-07-03 19:26:32 +00:00
p r o j e c t : 'NeoJSON' with: #stable ].
2017-07-03 19:09:51 +00:00
]