diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-02-06 15:33:10 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-02-06 15:34:00 -0800 |
| commit | 057f5b74ebb7851f6ba824129b3e3316cae23260 (patch) | |
| tree | 2561ca637f5db834cb8f8b82831cbbbbc26d71ae /lib/compatibility/7.nom | |
| parent | 618e48ad98c0e2b36eb22c75251dddc141d822e6 (diff) | |
Moving to better, more centralized versioning system. Now the Nomsu
version is just defined as a list at the top of nomsu.moon, and uses
X.Y.Z form instead of X.Y.Z.W. Added a ([...], from 2) method and a
([...], up to 5) method, and fixed a few upgrade bugs.
Diffstat (limited to 'lib/compatibility/7.nom')
| -rw-r--r-- | lib/compatibility/7.nom | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/compatibility/7.nom b/lib/compatibility/7.nom index fb313c3..fe31ec6 100644 --- a/lib/compatibility/7.nom +++ b/lib/compatibility/7.nom @@ -1,5 +1,5 @@ #!/usr/bin/env nomsu -V7 -# +### This file defines upgrades from Nomsu <7 to 7 use "compatibility/compatibility" @@ -22,3 +22,13 @@ upgrade $tree to "7" as: return "Action" tree from $tree.source with ("Text" tree with $e.type) "tree" "with" unpack $e + +upgrade action "Nomsu version" to "7" via ->(`$(NOMSU VERSION)) +upgrade action [ + "Nomsu syntax version", "Nomsu compiler version", "core version", "lib version" +] to "7" via: + for $: + at $.source fail (" + Deprecation error: Actions for accessing specific parts of the version number have been deprecated. + Hint: Use $(NOMSU VERSION).1, etc. instead. + ") |
