andrewplummer / Sugar

A Javascript library for working with native objects.
https://sugarjs.com/
MIT License
4.53k stars 306 forks source link

Something is wrong with the distribution from github #607

Closed jjb closed 6 years ago

jjb commented 7 years ago

The download buttons on https://sugarjs.com/ and the download links from the github readme link to URLS which have "2.0.4" in them, but the downloaded files say 2.0.2.

➔ curl -s https://raw.githubusercontent.com/andrewplummer/Sugar/2.0.4/dist/sugar.js | head
/*
 *  Sugar v2.0.2
 *
 *  Freely distributable and licensed under the MIT-style license.
 *  Copyright (c) Andrew Plummer
 *  https://sugarjs.com/
 *
 * ---------------------------- */
(function() {
  'use strict';
➔ curl -s https://raw.githubusercontent.com/andrewplummer/Sugar/2.0.4/dist/sugar.min.js | head
/*
 *  Sugar v2.0.2
 *
 *  Freely distributable and licensed under the MIT-style license.
 *  Copyright (c) Andrew Plummer
 *  https://sugarjs.com/
 *
 * ---------------------------- */
(function(){'use strict';(function(){function sc(a,b){return new M(a,b)}function u(a,b){for(var c in a)if(z(a,c)&&!1===b.call(a,a[c],c,a))break}function tc(a){function b(a,b,c){A(d,a,function(a,e,f){a=Hb(a,e,f);ae(d,a.methods,b,c,a.w);return d})}var c="Object"===a,d=uc(a);b("defineStatic",1);b("defineInstance",2);b("defineInstanceAndStatic",3);b("defineStaticWithArguments",1,!0);b("defineInstanceWithArguments",2,!0);A(d,"defineStaticPolyfill",function(b,c,g){b=Hb(b,c,g);ib(Aa[a],b.methods,!0,b.w);return d});A(d,"defineInstancePolyfill",
function(b,c,g){b=Hb(b,c,g);ib(Aa[a].prototype,b.methods,!0,b.w);u(b.methods,function(a,b){jb(d,b,a)});return d});A(d,"alias",function(a,b){var c=d,e="string"===typeof b?d[b]:b;c[a]=e;e.instance&&jb(c,a,e.instance);return d});A(d,"extend",function(b){function e(a,c){var d=b[a];if(d)for(var e=0,f;f=d[e];e++)if(f===c)return!0;return!1}function g(a,c,d){if(!c[a]||!d)return!1;for(a=0;a<d.length;a++)if(!1===b[d[a]])return!0}var k=Aa[a],h=k.prototype,m={},p={},q;b=b||{};q=b.methods;if(!e("except",k)&&(!b.namespaces||
andrewplummer commented 7 years ago

Thanks! I'll have a look.

andrewplummer commented 6 years ago

Well, sorry for letting this one slip through the cracks for so long... looks like the tag was wrong, so I've re-built and did a force update on the tags... it should be OK now. Thanks for reporting this one!