[gimp-web/wip/Jehan/gimp-versions: 10/11] content: new format for gimp_versions.json.



commit 4567447ca814e1c9c032af062e4d866acb4ad1a5
Author: Jehan <jehan girinstud io>
Date:   Sat Jan 4 23:21:31 2020 +0100

    content: new format for gimp_versions.json.
    
    Json object are not ordered. We have them ordered in Python through the
    OrderedDict concept, but it's not standard.
    So let's change the format to using Json arrays (list), which are
    ordered. Then we just consider the first item to be the latest release.

 content/gimp_versions.json | 95 ++++++++++++++++++++++++++++------------------
 1 file changed, 59 insertions(+), 36 deletions(-)
---
diff --git a/content/gimp_versions.json b/content/gimp_versions.json
index c3f2e7c7..b07d6f1b 100644
--- a/content/gimp_versions.json
+++ b/content/gimp_versions.json
@@ -1,6 +1,7 @@
 {
-    "STABLE":  {
-        "2.10.14": {
+    "STABLE":  [
+        {
+            "version": "2.10.14",
             "date": "2019-10-28",
             "source": {
                 "gimp-2.10.14.tar.bz2": {
@@ -38,7 +39,8 @@
                 }
             }
         },
-        "2.10.12": {
+        {
+            "version": "2.10.12",
             "date": "2019-06-12",
             "source": {
                 "gimp-2.10.12.tar.bz2": {
@@ -76,8 +78,8 @@
                 }
             }
         },
-
-        "2.10.10": {
+        {
+            "version": "2.10.10",
             "date": "2019-04-07",
             "source": {
                 "gimp-2.10.10.tar.bz2": {
@@ -101,7 +103,8 @@
             }
         },
 
-        "2.10.8": {
+        {
+            "version": "2.10.8",
             "date": "2018-11-08",
             "source": {
                 "gimp-2.10.8.tar.bz2": {
@@ -140,7 +143,8 @@
             }
         },
 
-        "2.10.6": {
+        {
+            "version": "2.10.6",
             "date": "2018-08-19",
             "source": {
                 "gimp-2.10.6.tar.bz2": {
@@ -164,7 +168,8 @@
             }
         },
 
-        "2.10.4": {
+        {
+            "version": "2.10.4",
             "date": "2018-07-04",
             "source": {
                 "gimp-2.10.4.tar.bz2": {
@@ -198,7 +203,8 @@
             }
         },
 
-        "2.10.2": {
+        {
+            "version": "2.10.2",
             "date": "2018-05-20",
             "source": {
                 "gimp-2.10.2.tar.bz2": {
@@ -215,7 +221,8 @@
             }
         },
 
-        "2.10.0": {
+        {
+            "version": "2.10.0",
 
             "date": "2018-04-27",
             "source": {
@@ -249,11 +256,12 @@
                     }
                 }
         }
-    },
+    ],
 
-    "OLDSTABLE":  {
+    "OLDSTABLE":  [
 
-        "2.8.22": {
+        {
+            "version": "2.8.22",
             "date": "2017-05-11",
             "source": {
                 "gimp-2.8.22.tar.bz2": {
@@ -272,7 +280,8 @@
                 }
         },
 
-        "2.8.20": {
+        {
+            "version": "2.8.20",
             "source": {
                 "gimp-2.8.20.tar.bz2": {
                         "md5": "d405640c426b234d6efc36fb4f5bae57"
@@ -290,7 +299,8 @@
                 }
         },
 
-        "2.8.18": {
+        {
+            "version": "2.8.18",
             "source": {
                 "gimp-2.8.18.tar.bz2": {
                         "md5": "5adaa11a68bc8a42bb2c778fee4d389c"
@@ -311,7 +321,8 @@
                 }
             },
 
-        "2.8.16": {
+        {
+            "version": "2.8.16",
             "source": {
                 "gimp-2.8.16.tar.bz2": {
                         "md5": "30e0a1b7c18b0e3415f4ac54567252ac"
@@ -347,7 +358,8 @@
                 }
             },
 
-        "2.8.14": {
+        {
+            "version": "2.8.14",
             "source": {
                 "gimp-2.8.14.tar.bz2": {
                         "md5": "233c948203383fa078434cc3f8f925cb"
@@ -368,7 +380,8 @@
                 }
             },
 
-        "2.8.12": {
+        {
+            "version": "2.8.12",
             "source": {
                 "gimp-2.8.12.tar.bz2": {
                         "md5": "47fefa240c38cfb1016b57ad6324378d"
@@ -376,7 +389,8 @@
                 }
             },
 
-        "2.8.10": {
+        {
+            "version": "2.8.10",
             "source": {
                 "gimp-2.8.10.tar.bz2": {
                         "md5": "84c964aab7044489af69f7319bb59b47"
@@ -394,7 +408,8 @@
                 }
             },
 
-        "2.8.8": {
+        {
+            "version": "2.8.8",
             "source": {
                 "gimp-2.8.8.tar.bz2": {
                         "md5": "ef2547c3514a1096931637bd6250635a"
@@ -407,7 +422,8 @@
                 }
             },
 
-        "2.8.6": {
+        {
+            "version": "2.8.6",
             "source": {
                 "gimp-2.8.6.tar.bz2": {
                         "md5": "12b3fdf33d1f07ae79b412a9e38b9693"
@@ -415,7 +431,8 @@
                 }
             },
 
-        "2.8.4": {
+        {
+            "version": "2.8.4",
             "source": {
                 "gimp-2.8.4.tar.bz2": {
                         "md5": "392592e8755d046317878d226145900f"
@@ -433,7 +450,8 @@
                 }
             },
 
-        "2.8.2": {
+        {
+            "version": "2.8.2",
             "source": {
                 "gimp-2.8.2.tar.bz2": {
                         "md5": "b542138820ca3a41cbd63fc331907955"
@@ -454,7 +472,8 @@
                 }
             },
 
-        "2.8.0": {
+        {
+            "version": "2.8.0",
             "source": {
                 "gimp-2.8.0.tar.bz2": {
                         "md5": "28997d14055f15db063eb92e1c8a7ebb"
@@ -466,10 +485,11 @@
                     }
                 }
             }
-    },
+    ],
 
-    "OLD-DEVELOPMENT": {
-        "2.10.0-RC2": {
+    "OLD-DEVELOPMENT": [
+        {
+            "version": "2.10.0-RC2",
             "date": "2018-04-17",
             "source": {
                 "gimp-2.10.0-RC2.tar.bz2 ": {
@@ -495,7 +515,8 @@
             }
         },
 
-        "2.10.0-RC1": {
+        {
+            "version": "2.10.0-RC1",
             "date": "2018-03-26",
             "source": {
                 "gimp-2.10.0-RC1.tar.bz2 ": {
@@ -509,7 +530,8 @@
             }
         },
 
-        "2.9.8": {
+        {
+            "version": "2.9.8",
             "date": "2017-12-12",
             "source": {
                 "gimp-2.9.8.tar.bz2": {
@@ -523,7 +545,8 @@
             }
         },
 
-        "2.9.6": {
+        {
+            "version": "2.9.6",
             "date": "2017-08-24",
             "source": {
                 "gimp-2.9.6.tar.bz2": {
@@ -537,8 +560,8 @@
             }
         },
 
-        "2.9.4":
         {
+            "version": "2.9.4",
             "source": {
                 "gimp-2.9.4.tar.bz2": {
                         "md5": "6b3d425a7949110eeb532badedf721f3"
@@ -546,8 +569,8 @@
             }
         },
 
-        "2.9.2":
         {
+            "version": "2.9.2",
             "source": {
                 "gimp-2.9.2.tar.bz2": {
                         "md5": "aa8a846a497e3328c5b7d2fd33f5cf63"
@@ -555,10 +578,10 @@
             }
         }
 
-    },
-    "NIGHTLY": {
-        "2.9.7" :
+    ],
+    "NIGHTLY": [
         {
+            "version": "2.9.7",
             "source": {
 
             },
@@ -566,5 +589,5 @@
 
             }
         }
-    }
+    ]
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]