Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
astares committed Jan 26, 2017
1 parent a204316 commit dd94827
Show file tree
Hide file tree
Showing 28 changed files with 172 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ConfigurationOfXMI.package/.filetree
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"separateMethodMetaAndSource" : false,
"noMethodMetaData" : true,
"useCypressPropertiesFile" : true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Configuration for GitHub API
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
development support
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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
private
baseConfigurationClassIfAbsent: aBlock

^Smalltalk
at: #'ConfigurationOf'
ifAbsent: [
self ensureMetacelloBaseConfiguration.
Smalltalk at: #'ConfigurationOf' ifAbsent: aBlock ].
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
catalog
catalogChangeLog
"Returns a paragraph describing the most important changes in the configuration class."
^ ''
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
catalog
catalogContactInfo
"Returns a paragraph describing contact information such as email, mailing lists and website."
^ ''
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
catalog
catalogDescription
"Returns a paragraph describing the project"
^ 'A XMI wrapper for Pharo to easily access XML Metadata informations.'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
catalog
catalogKeyClassesAndExample
"Returns a paragraph or more describing the key classes of your project. You can use Pillar/Pier syntax to layout out the text i.e., ==Code== and - for bullet."
^ ''
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
catalog
catalogKeywords
"Returns an array of symbols"
^ #(xmi uml xml omg)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private
ensureMetacello

(self baseConfigurationClassIfAbsent: []) ensureMetacello
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
private
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 ] ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
metacello tool support
isMetacelloConfig
"Answer true and the Metacello tools will operate on you"

^true
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
loading
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
loading
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
loading
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
project

^self new project
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
development support
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
accessing
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 "

^ #()
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
versions
dev: spec
<version: 'dev'>

spec for: #'common' do: [
spec blessing: #'development'.
spec
baseline: 'XMI' with: [
spec
className: 'BaselineOfXMI';
repository: 'github://astares/Pharo-XMI:master/src' ]].
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
symbolic versions
development: spec
<symbolicVersion: #'development'>

spec for: #'common' version: 'dev'.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
accessing
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 ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
symbolic versions
stable: spec
<symbolicVersion: #'stable'>

spec for: #'common' version: '0.0.1'.
spec for: #'pharo5.x' version: '0.0.1'.
spec for: #'pharo6.x' version: '0.0.1'.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
versions
v0_0_1: spec
<version: '0.0.1'>

spec for: #'common' do: [
spec blessing: #'stable'.
spec
baseline: 'XMI' with: [
spec
className: 'BaselineOfXMI';
repository: 'github://astares/Pharo-XMI:0.0.1/src' ]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"commentStamp" : "TorstenBergmann 9/15/2016 08:46",
"super" : "Object",
"category" : "ConfigurationOfXMI",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [
"LastVersionLoad"
],
"instvars" : [
"project"
],
"name" : "ConfigurationOfXMI",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SystemOrganization addCategory: #ConfigurationOfXMI!
Empty file.
1 change: 1 addition & 0 deletions src/ConfigurationOfXMI.package/monticello.meta/package
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(name 'ConfigurationOfXMI')
1 change: 1 addition & 0 deletions src/ConfigurationOfXMI.package/properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ }

0 comments on commit dd94827

Please sign in to comment.