Changeset 40369 in project


Ignore:
Timestamp:
08/21/21 17:59:17 (5 weeks ago)
Author:
Kon Lovett
Message:

rename version-elements as version-parts & version-separators as version-puncs (align terms, do not encourage)

Location:
release/5/semantic-version/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • release/5/semantic-version/trunk/README.svnwiki

    r40352 r40369  
    126126; VER : {{semantic-version}} ; version to query.
    127127
    128 ==== version-elements
    129 
    130 <procedure>(version-elements VER) --> (list-of (or number string))</procedure>
     128==== version-parts
     129
     130<procedure>(version-parts VER) --> (list-of (or number string))</procedure>
    131131
    132132Returns list of version elements.
     
    134134; VER : {{semantic-version}} ; version to query.
    135135
    136 ==== version-separators
    137 
    138 <procedure>(version-separators VER) --> (list-of char)</procedure>
    139 
    140 Returns list of separator characters (punctuation).
     136==== version-puncs
     137
     138<procedure>(version-puncs VER) --> (list-of char)</procedure>
     139
     140Returns list of punctuation characters.
    141141
    142142; VER : {{semantic-version}} ; version to query.
     
    186186
    187187See {{version-compare}}.
     188
     189==== version-strict=?
     190
     191<procedure>(version-strict=? VER1 VER2 [TAIL-ZERO?]) --> boolean</procedure>
     192
     193Strictly equal, where {{VER1}} & {{VER2}} compare equal and have the same punctuation.
    188194
    189195==== version-hash
     
    367373== Version history
    368374
     375; 0.0.6 : Rename {{version-elements}} => {{version-parts}} & {{version-separators}} => {{version-puncs}}.
     376; 0.0.5 : Add {{version-strict=?}}.
     377; 0.0.4 : Remove {{version-comparator}}; see tests.
    369378; 0.0.3 : Separate modules.
    370379; 0.0.2 : Use record, {{make-version}} & {{semantic-version}} follow convention, rename accessors.
  • release/5/semantic-version/trunk/semantic-version.egg

    r40364 r40369  
    33
    44((synopsis "Semantic Version Utilities")
    5  (version "0.0.5")
     5 (version "0.0.6")
    66 (category data)
    77 (author "Kon Lovett")
  • release/5/semantic-version/trunk/semantic-version.element.scm

    r40343 r40369  
    1818  version-copy
    1919  version-depth
    20   version-elements
    21   version-separators)
     20  version-parts
     21  version-puncs)
    2222
    2323(import scheme
     
    3333(include-relative "semantic-version.types")
    3434
    35 (: version              (#!rest ver-part --> ver))
    36 (: version-copy         (ver --> ver))
    37 (: version-depth        (ver --> integer))
    38 (: version-elements     (ver --> ver-parts))
    39 (: version-separators   (ver --> ver-puncs))
     35(: version        (#!rest ver-part --> ver))
     36(: version-copy   (ver --> ver))
     37(: version-depth  (ver --> integer))
     38(: version-parts  (ver --> ver-parts))
     39(: version-puncs  (ver --> ver-puncs))
    4040
    4141;;
     
    5656  (length (ver-parts (check-version 'version-depth ver))) )
    5757
    58 (define (version-elements ver)
    59   (list-copy (ver-parts (check-version 'version-elements ver))) )
     58(define (version-parts ver)
     59  (list-copy (ver-parts (check-version 'version-parts ver))) )
    6060
    61 (define (version-separators ver)
    62   (list-copy (ver-puncs (check-version 'version-separators ver))) )
     61(define (version-puncs ver)
     62  (list-copy (ver-puncs (check-version 'version-puncs ver))) )
    6363
    6464) ;module semantic-version.element
  • release/5/semantic-version/trunk/tests/semantic-version-test.scm

    r40364 r40369  
    3232(test "a.2,c" (version->string (string->version "a.2,c")))
    3333(let ((ver "a.2,c"))
    34   (test '("a" 2 "c") (version-elements (string->version ver)))
    35   (test '(#\. #\,) (version-separators (string->version ver))) )
     34  (test '("a" 2 "c") (version-parts (string->version ver)))
     35  (test '(#\. #\,) (version-puncs (string->version ver))) )
    3636
    3737(test '("a" #\. 2 #\, "c") (version->list (list->version '("a" #\. 2 #\, "c"))))
Note: See TracChangeset for help on using the changeset viewer.