Skip to content

Releases: pharo-spec/Commander2

v2.1.0

08 Oct 16:27
Compare
Choose a tag to compare

Changelog

  • Added #forContext: instance creation method.
  • Added 'Commander2-UI' package that contains generic command decorator and command group decorator adding meta-data common to all UI frameworks.

v2.0.1

04 Sep 13:26
Compare
Choose a tag to compare

Changelog

  • Added missing deprecation methods on CmCommandGroupDecorator: #basicDescription, #basicDescription:, #basicName and #basicName:.

This version is the one integrated in Pharo on the 13 of September 2019.

Commander 2 integration of the 13 of September 2019

Features

  • Add #register:after: and #register:before:. (ad5041c)
  • Implemented part of the missing API and implemented corresponding tests. (5c91fac)

Bug fixes

  • Added missing deprecation methods to make transition from v1 to v2 smoother. (3fef319)
  • Changed string returned by #defaultDescription to be 'Not described command.' (71ad574)

Cleanings

  • Preparing for major release, removing deprecated methods we do not want in next major version: - #canBeRun - #canBeRunBlock - #canBeRunBlock: - #defaultCommandName - #runWith: (3dbd6b1)
  • Updated baseline to be more flexible. - Do not provide migrator in default group. - Provide core,test and migrator groups. (7a7491b)
  • Enhanced comment. (8379fb3)
  • Did migration with the following renamings (order is important): #name -> #dynamicName. #description -> #dynamicDescription. #basicName -> #name. #basicDescription -> #description. (1a8f4e8)
  • wrap environment into RBNamespace. (723cddd)
  • Put #runWith: in deprecations package. (cc9025d)
  • Removed #runWith: (c78dd09)
  • Renamed #defaultCommandName as #defaultName. Used deprecation. (c1bad44)
  • Renamed #canBeRunBlock as #canBeExecutedBlock via a deprecation. (5a87a11)
  • Moved spec related methods in class-side of CmCommandGroup to spec package. (4ae2f84)
  • Moved spec-specific methods on class side of CmCommand to Spec integration package. (11d7997)
  • Renamed #canBeRun as #canBeExecuted to be more consistent. Created a deprecation to ease migration of users. (152e6a7)
  • Reclassified all #canBeRun methods in 'testing' protocol. (813cda2)
  • Reclassified #execute methods in 'executing' protocol. Brings consistence and solves issue #9 (19c1ee0)
  • Renaming of CmCommandGroupTest to CmCommandsGroupTest. (5f20942)
  • Renamed test class to match class under test. (8ab2c3b)

v2.0.0

14 Aug 12:28
Compare
Choose a tag to compare

Changelog

  • Added code for migration to v2.0.0
  • Did migration with the following renamings (order is important):
    • #name -> #dynamicName.
    • #description -> #dynamicDescription.
    • #basicName -> #name.
    • #basicDescription -> #description.
  • Updated baseline to be more flexible. …
    • Do not provide migrator in default group.
    • Provide core,test and migrator groups.
  • Removed deprecated methods:
    • #canBeRun
    • #canBeRunBlock
    • #canBeRunBlock:
    • #defaultCommandName
    • #runWith:

How to migrate code using Commander2 v1.2.0 to v2.0.0

This release provide a migration mechanism for the following renamings:

  • #name -> #dynamicName.
  • #description -> #dynamicDescription.
  • #basicName -> #name.
  • #basicDescription -> #description.

One can use the CmV2ReleaseMigrator class as follow:

1. Load the migration group

Metacello new
	repository: 'github://pharo-spec/Commander2/src';
	baseline: 'Commander2';
	load: #('migration')

2. Collect the command classes to migrate

In this step, one need to create an array of all the classes defined by his/her project that inherit from CmCommand.

An example of such script can be:

myCommandClasses := MyRootCommandClass withAllSubclasses.

3. Run the migration script

CmV2ReleaseMigrator migrate: myCommandClasses

Then run the tests of your project to ensure everything still work correctly

v1.2.0

14 Aug 10:01
Compare
Choose a tag to compare

Changelog

  • Moved spec-specific methods on class side of CmCommand and CmCommandGroup to Spec project
  • Renamed #canBeRunBlock as #canBeExecutedBlock via a deprecation.
  • Renamed #defaultCommandName as #defaultName via a deprecation.
  • Changed string returned by CmCommand>>#defaultDescription
  • Deprecated #runWith:
  • Fixed CI because now Commander2 is provided by default in Pharo.

v1.1.0

10 Aug 09:05
Compare
Choose a tag to compare

Changelog

New features

  • Implemented missing API to manipulate command groups and implemented corresponding tests.

Cleaning

  • Renamed CmCommandGroupTest as CmCommandsGroupTest.
  • Removed packages that were integrated in Spec2.
  • Reclassified #execute methods in 'executing' protocol.
  • Renamed #canBeRun as #canBeExecuted to be more consistent.
  • Reclassified all #canBeExecuted (was #canBeRun) methods in 'testing' protocol.
  • Introduced deprecation package to avoid breaking users of the library.

v1.0.0

25 Jun 11:59
Compare
Choose a tag to compare

Version integrated in Pharo.

First beta-release

15 May 12:52
Compare
Choose a tag to compare
First beta-release Pre-release
Pre-release
v0.0.0b

Automatic rewriting by Spec framework.