Making the configuration available to test the Zotero support within Grafoscopio.
This commit is contained in:
parent
87ece22e25
commit
a2989a53d6
|
@ -0,0 +1,178 @@
|
|||
Class {
|
||||
#name : #ConfigurationOfZotero,
|
||||
#superclass : #Object,
|
||||
#instVars : [
|
||||
'project'
|
||||
],
|
||||
#classVars : [
|
||||
'LastVersionLoad'
|
||||
],
|
||||
#category : #ConfigurationOfZotero
|
||||
}
|
||||
|
||||
{ #category : #'development support' }
|
||||
ConfigurationOfZotero 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 }
|
||||
ConfigurationOfZotero class >> baseConfigurationClassIfAbsent: aBlock [
|
||||
|
||||
^Smalltalk
|
||||
at: #'ConfigurationOf'
|
||||
ifAbsent: [
|
||||
self ensureMetacelloBaseConfiguration.
|
||||
Smalltalk at: #'ConfigurationOf' ifAbsent: aBlock ].
|
||||
]
|
||||
|
||||
{ #category : #private }
|
||||
ConfigurationOfZotero class >> ensureMetacello [
|
||||
|
||||
(self baseConfigurationClassIfAbsent: []) ensureMetacello
|
||||
]
|
||||
|
||||
{ #category : #private }
|
||||
ConfigurationOfZotero class >> ensureMetacelloBaseConfiguration [
|
||||
Smalltalk
|
||||
at: #'ConfigurationOf'
|
||||
ifAbsent: [
|
||||
| repository version |
|
||||
repository := MCHttpRepository
|
||||
location: 'http://smalltalkhub.com/mc/dkh/metacello/main'
|
||||
user: ''
|
||||
password: ''.
|
||||
repository
|
||||
versionReaderForFileNamed: 'Metacello-Base-dkh.107'
|
||||
do: [ :reader |
|
||||
version := reader version.
|
||||
version load.
|
||||
version workingCopy repositoryGroup addRepository: repository ] ]
|
||||
]
|
||||
|
||||
{ #category : #'metacello tool support' }
|
||||
ConfigurationOfZotero class >> isMetacelloConfig [
|
||||
"Answer true and the Metacello tools will operate on you"
|
||||
|
||||
^true
|
||||
]
|
||||
|
||||
{ #category : #loading }
|
||||
ConfigurationOfZotero 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 }
|
||||
ConfigurationOfZotero 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 }
|
||||
ConfigurationOfZotero 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 }
|
||||
ConfigurationOfZotero class >> project [
|
||||
|
||||
^self new project
|
||||
]
|
||||
|
||||
{ #category : #'development support' }
|
||||
ConfigurationOfZotero 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 }
|
||||
ConfigurationOfZotero >> 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
|
||||
className: #ConfigurationOfCitezen;
|
||||
versionString: #'stable';
|
||||
repository: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo50/main/' ].
|
||||
spec package: #Zotero.
|
||||
spec
|
||||
group: 'core' with: #(#Zotero );
|
||||
group: 'default' with: #('core' ). ].
|
||||
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
ConfigurationOfZotero >> 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' }
|
||||
ConfigurationOfZotero >> development: spec [
|
||||
<symbolicVersion: #'development'>
|
||||
|
||||
spec for: #'common' version: '0.1-baseline'.
|
||||
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
ConfigurationOfZotero >> project [
|
||||
^ project
|
||||
ifNil: [
|
||||
"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' }
|
||||
ConfigurationOfZotero >> stable: spec [
|
||||
<symbolicVersion: #'stable'>
|
||||
|
||||
spec for: #'common' version: '0.1'.
|
||||
|
||||
]
|
||||
|
||||
{ #category : #versions }
|
||||
ConfigurationOfZotero >> 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: '2.6'.
|
||||
spec package: #Zotero with: 'Zotero-OffrayLuna.5'. ].
|
||||
|
||||
]
|
|
@ -0,0 +1 @@
|
|||
Package { #name : #ConfigurationOfZotero }
|
Loading…
Reference in New Issue