Loris  Check-in [5d78f9cc74]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Let's not tag 2.0.0 just yet, but wait until the API is finalised. Unbump. The v2.0.0 tag has also been removed from the repo [b1ab17dad2].
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:5d78f9cc749d7327401fa43216f715b200b31155
User & Date: jesper 2016-04-18 09:36:46
Context
2016-04-18
18:15
unbreak alist-ref check-in: 4fa5bfe6f1 user: jesper tags: trunk
09:36
Let's not tag 2.0.0 just yet, but wait until the API is finalised. Unbump. The v2.0.0 tag has also been removed from the repo [b1ab17dad2]. check-in: 5d78f9cc74 user: jesper tags: trunk
09:34
Rework the version library again. All exports use strings for version numbers. Remove version juggling outside of the version library. There are now 3 exported procedures, VERSION, FEATURE-VERSION and ASSERT. VERSION is called without arguments and will evaluate to the Loris library version. (version) -> "2.1.0-devel" FEATURE-VERSION may be called with zero or one argument. Called with no arguments, it evaluates to the Loris MAJOR.MINOR version. If an argument is supplied, it will be used instead of the Loris library version string. (feature-version) -> "2.1" (feature-version "1.2.3-alpha+build.2" -> "1.2" ASSERT takes one argument, interprets it as a version number string, and throws an error iff a program written for that specific version of the Loris library will not be compatible with the current Loris version. Otherwise, the program is assumed to be compatible with the current Loris version, and the current Loris library is returned. In the follow examples, the Loris version is assumed to be "2.1.0-devel.2" (assert "2.1.0-alfa") -> "2.1.0-devel" (assert "2.1.0-devel") -> "2.1.0-devel" (assert "2.1.0-devel.2") -> ERROR (assert "2.1.0") -> ERROR (assert "1.8.4") -> ERROR (assert "2.0.0") -> ERROR (assert "2.10.0") -> "2.1.0-devel" check-in: 17bd3b2314 user: jesper tags: trunk
Changes

Changes to version.scm.

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
          (srfi 1)
          (srfi 13)
          (srfi 14))
  (export version feature-version assert)
  (begin

    ;; Set the loris version number here
    (define loris-version (list 2 1 0 "devel" ""))
    
    ;; Some assumptions are made of the type of the values stored in
    ;; this record. j, n and p are expected to be numbers, while pr
    ;; and md are expected to be non-empty alphanumeric+hyphen strings
    ;; or #f. Anything else will lead to errors or unexpected
    ;; behaviour. These restrictions are in accordance with the
    ;; Semantic Version specification 2.0.0.







|







27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
          (srfi 1)
          (srfi 13)
          (srfi 14))
  (export version feature-version assert)
  (begin

    ;; Set the loris version number here
    (define loris-version (list 2 0 0 "devel" ""))
    
    ;; Some assumptions are made of the type of the values stored in
    ;; this record. j, n and p are expected to be numbers, while pr
    ;; and md are expected to be non-empty alphanumeric+hyphen strings
    ;; or #f. Anything else will lead to errors or unexpected
    ;; behaviour. These restrictions are in accordance with the
    ;; Semantic Version specification 2.0.0.