commit 9759e1469a6ef4e471e740029c320dc74255311126d4851f9f1b1a74fc67f4e3 Author: Adrian Schröter Date: Thu Feb 6 18:31:04 2025 +0100 Sync from SUSE:SLFO:Main rubygem-uglifier revision 728a6996b47aaf8192544cffbf60ff9a diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/gem2rpm.yml b/gem2rpm.yml new file mode 100644 index 0000000..f5316f3 --- /dev/null +++ b/gem2rpm.yml @@ -0,0 +1,70 @@ +# --- +# ## used by gem2rpm +# :summary: this is a custom summary +# ## used by gem2rpm +# :description: |- +# this is a custom description +# +# it can be multiline +# ## used by gem2rpm +:license: MIT and BSD-3-Clause +# ## used by gem2rpm and gem_packages +# :version_suffix: -x_y +# ## used by gem2rpm and gem_packages +# :disable_docs: true +# ## used by gem2rpm +# :disable_automatic_rdoc_dep: true +# ## used by gem2rpm +# :preamble: |- +# BuildRequires: foobar +# Requires: foobar +# ## used by gem2rpm +# :patches: +# foo.patch: -p1 +# bar.patch: +# ## used by gem2rpm +:sources: +# - foo.desktop +# - bar.desktop +# :gem_install_args: '....' +# ## used by gem2rpm +# :pre_install: |- +# %if 0%{?use_system_libev} +# export USE_VENDORED_LIBEV="no" +# %endif +# ## used by gem2rpm +# :post_install: |- +# # delete custom files here or do other fancy stuff +# install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse +# ## used by gem2rpm +# :testsuite_command: |- +# (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) +# ## used by gem2rpm +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem2rpm +# :scripts: +# :post: |- +# /bin/echo foo +# ## used by gem_packages +# :main: +# :preamble: |- +# Requires: util-linux +# Recommends: pwgen +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem_packages +# :custom: +# apache: +# :preamble: |- +# Requires: ..... +# :filelist: |- +# /etc/apache2/conf.d/passenger.conf +# :summary: Custom summary is optional +# :description: |- +# Custom description is optional +# +# bar +# :post: |- +# /bin/echo foo +# diff --git a/rubygem-uglifier.changes b/rubygem-uglifier.changes new file mode 100644 index 0000000..1cf0896 --- /dev/null +++ b/rubygem-uglifier.changes @@ -0,0 +1,520 @@ +------------------------------------------------------------------- +Mon Nov 4 17:43:55 UTC 2024 - Dan Čermák + +- ## 4.2.1 (22 September 2024) + +- fix Ruby 3.4 compatiblity, drop Ruby 2.3 and older support (#195) +- fix typos (#194) + + +------------------------------------------------------------------- +Tue Nov 12 14:13:36 UTC 2019 - Manuel Schnitzer + +- updated to version 4.2.0 + + * show code context for error messages (#167) + * defer initialisation of ExecJS context to fix #165 + +------------------------------------------------------------------- +Tue Nov 20 07:38:30 UTC 2018 - mschnitzer@suse.com + +- updated to version 4.1.20 + + * update UglifyJS to 3.4.8 + +------------------------------------------------------------------- +Mon Sep 17 09:49:47 UTC 2018 - mschnitzer@suse.com + +- updated to version 4.1.19 + + * update UglifyJS to [3.4.9](https://github.com/mishoo/UglifyJS2/compare/v3.4.7...v3.4.9) + +------------------------------------------------------------------- +Fri Aug 10 10:58:17 UTC 2018 - mschnitzer@suse.com + +- updated to version 4.1.18 + + * update UglifyJS to [3.4.7](https://github.com/mishoo/UglifyJS2/compare/v3.4.6...v3.4.7) + +------------------------------------------------------------------- +Tue Jul 31 09:06:01 UTC 2018 - mschnitzer@suse.com + +- updated to version 4.1.17 + + * update UglifyJS to [3.4.6](https://github.com/mishoo/UglifyJS2/compare/v3.4.5...v3.4.6) + +------------------------------------------------------------------- +Tue Jul 24 20:34:45 UTC 2018 - mschnitzer@suse.com + +- updated to version 4.1.16 + + * update UglifyJS to [3.4.5](https://github.com/mishoo/UglifyJS2/compare/v3.4.4...v3.4.5) + +------------------------------------------------------------------- +Fri Jul 13 16:19:56 UTC 2018 - factory-auto@kulow.org + +- updated to version 4.1.15 + see installed CHANGELOG.md + + ## 4.1.15 (13 July 2018) + + - update UglifyJS to [3.4.4](https://github.com/mishoo/UglifyJS2/compare/v3.4.3...v3.4.4) + +------------------------------------------------------------------- +Mon Jul 2 17:11:46 UTC 2018 - factory-auto@kulow.org + +- updated to version 4.1.14 + see installed CHANGELOG.md + + ## 4.1.14 (02 July 2018) + + - update UglifyJS to [3.4.3](https://github.com/mishoo/UglifyJS2/compare/v3.4.2...v3.4.3) + +------------------------------------------------------------------- +Sat Jun 30 13:14:17 UTC 2018 - factory-auto@kulow.org + +- updated to version 4.1.13 + see installed CHANGELOG.md + + ## 4.1.13 (30 June 2018) + + - update UglifyJS to [3.4.2](https://github.com/mishoo/UglifyJS2/compare/v3.4.1...v3.4.2) + +------------------------------------------------------------------- +Wed Jun 20 20:09:57 UTC 2018 - factory-auto@kulow.org + +- updated to version 4.1.12 + see installed CHANGELOG.md + + ## 4.1.12 (20 June 2018) + + - update UglifyJS to [3.4.1](https://github.com/mishoo/UglifyJS2/compare/v3.4.0...v3.4.1) + +------------------------------------------------------------------- +Sat Jun 2 03:21:19 UTC 2018 - factory-auto@kulow.org + +- updated to version 4.1.11 + see installed CHANGELOG.md + + ## 4.1.11 (02 June 2018) + + - update UglifyJS to [3.3.28](https://github.com/mishoo/UglifyJS2/compare/v3.3.22...v3.3.28) + +------------------------------------------------------------------- +Sat Apr 21 12:19:54 UTC 2018 - factory-auto@kulow.org + +- updated to version 4.1.10 + see installed CHANGELOG.md + + ## 4.1.10 (21 April 2018) + + - update UglifyJS to [3.3.22](https://github.com/mishoo/UglifyJS2/compare/v3.3.20...v3.3.22) + +------------------------------------------------------------------- +Thu Apr 12 08:15:40 UTC 2018 - enavarro@suse.com + +- Update to version 4.1.9 + + * update UglifyJS to 3.3.20 + +------------------------------------------------------------------- +Wed Apr 11 20:45:55 UTC 2018 - factory-auto@kulow.org + +- updated to version 4.1.9 + see installed CHANGELOG.md + + ## 4.1.9 (11 April 2018) + + - update UglifyJS to [3.3.20](https://github.com/mishoo/UglifyJS2/compare/v3.3.16...v3.3.20) + +------------------------------------------------------------------- +Tue Mar 20 10:18:51 UTC 2018 - factory-auto@kulow.org + +- updated to version 4.1.8 + see installed CHANGELOG.md + + ## 4.1.8 (14 March 2018) + + - update UglifyJS to [3.3.15](https://github.com/mishoo/UglifyJS2/compare/v3.3.14...v3.3.15) + + ## 4.1.7 (11 March 2018) + + - update UglifyJS to [3.3.14](https://github.com/mishoo/UglifyJS2/compare/v3.3.10...v3.3.14) + +------------------------------------------------------------------- +Mon Feb 12 10:02:41 UTC 2018 - bgeuken@suse.com + +- Update to version 4.1.6 + + * update UglifyJS to 3.3.10 + * update uglify-es to 3.3.10 + +------------------------------------------------------------------- +Tue Jan 30 11:10:10 UTC 2018 - cbruckmayer@suse.com + +- Update to version 4.1.5 + + * update UglifyJS to 3.3.9 + * update uglify-es to 3.3.9 + + 4.1.4 (22 January 2018) + * update UglifyJS to 3.3.8 + * update uglify-es to 3.3.8 + +------------------------------------------------------------------- +Mon Jan 8 17:55:24 UTC 2018 - enavarro@suse.com + +- Updated to version 4.1.3 + + * update UglifyJS to 3.3.5 + +------------------------------------------------------------------- +Tue Jan 2 09:31:36 UTC 2018 - dkang@suse.com + +- Updated to version 4.1.2 + + * update UglifyJS to 3.3.4 + +------------------------------------------------------------------- +Thu Dec 14 11:54:38 UTC 2017 - hvogel@suse.com + +- updated to version 4.0.2 + see installed CHANGELOG.md + +------------------------------------------------------------------- +Thu Apr 13 04:35:49 UTC 2017 - coolo@suse.com + +- updated to version 3.2.0 + see installed CHANGELOG.md + + ## 3.2.0 (9 April 2017) + + - experimental ES6/Harmony mode based on UglifyJS2 Harmony branch + - update UglifyJS to 2.8.22 + +------------------------------------------------------------------- +Tue Apr 4 04:40:38 UTC 2017 - coolo@suse.com + +- updated to version 3.1.13 + see installed CHANGELOG.md + + ## 3.1.13 (3 April 2017) + + - update UglifyJS to 2.8.21 + + ## 3.1.12 (31 March 2017) + + - update UglifyJS to 2.8.20 + +------------------------------------------------------------------- +Wed Mar 29 04:34:02 UTC 2017 - coolo@suse.com + +- updated to version 3.1.11 + see installed CHANGELOG.md + + ## 3.1.11 (28 March 2017) + + - update UglifyJS to 2.8.17 + +------------------------------------------------------------------- +Sun Mar 26 04:37:36 UTC 2017 - coolo@suse.com + +- updated to version 3.1.10 + see installed CHANGELOG.md + + ## 3.1.10 (25 March 2017) + + - update UglifyJS to 2.8.16 + +------------------------------------------------------------------- +Wed Mar 22 05:35:30 UTC 2017 - coolo@suse.com + +- updated to version 3.1.9 + see installed CHANGELOG.md + + ## 3.1.9 (19 March 2017) + + - update UglifyJS to 2.8.14 + +------------------------------------------------------------------- +Sat Mar 18 05:35:38 UTC 2017 - coolo@suse.com + +- updated to version 3.1.8 + see installed CHANGELOG.md + + ## 3.1.8 (17 March 2017) + + - update UglifyJS to 2.8.13 + +------------------------------------------------------------------- +Thu Mar 16 05:42:29 UTC 2017 - coolo@suse.com + +- updated to version 3.1.7 + see installed CHANGELOG.md + + ## 3.1.7 (11 March 2017) + + - fix NoMethodError on `Uglifier.compile(source, source_map: false)` (#114) + - update UglifyJS to 2.8.12 + + ## 3.1.6 (9 March 2017) + + - update UglifyJS to 2.8.11 + + ## 3.1.5 (8 March 2017) + + - update UglifyJS to 2.8.9 + + ## 3.1.4 (5 March 2017) + + - Update UglifyJS to 2.8.7 + + ## 3.1.3 (2 March 2017) + + - update UglifyJS to 2.8.5 + - default passes to 1 + - allow source_map option to be `true` instead of a hash + + ## 3.1.2 (1 March 2017) + + - fix `reduce_vars` compressor option + - add `passes` compressor option + - update UglifyJS to 2.8.4 + +------------------------------------------------------------------- +Tue Feb 28 05:52:36 UTC 2017 - coolo@suse.com + +- updated to version 3.1.1 + see installed CHANGELOG.md + + ## 3.1.1 (27 February 2017) + + - disable `reduce_vars` by default as it causes JS errors (#110) + + ## 3.1.0 (27 February 2017) + + - update UglifyJS to 2.8.0 + - add reduce_vars compress option + - enable `reduce_vars` and `collapse_vars` compress options by default + - unused top-level function and variable removal with `toplevel` compress option + - add `top_retain` compress option to specify list of top-level variables to always retain + - add `unsafe_comps` and `unsafe_proto` options + +------------------------------------------------------------------- +Thu Dec 1 05:56:02 UTC 2016 - coolo@suse.com + +- updated to version 3.0.4 + see installed CHANGELOG.md + + ## 3.0.4 (30 November 2016) + + - update UglifyJS to 2.7.5 + - implement ignore_quoted and debug options for mangle_properties + +------------------------------------------------------------------- +Tue Oct 25 04:46:55 UTC 2016 - coolo@suse.com + +- updated to version 3.0.3 + see installed CHANGELOG.md + + ## 3.0.3 (24 October 2016) + + - update UglifyJS to 2.7.4 + - add wrap_iife output option to wrap IIFEs in parenthesis + +------------------------------------------------------------------- +Sun Aug 21 04:40:00 UTC 2016 - coolo@suse.com + +- updated to version 3.0.2 + see installed CHANGELOG.md + + ## 3.0.2 (20 August 2016) + + - add top-level keep_fnames option that implies both compressor and mangler keep_fnames + - update UglifyJS to 2.7.3 + +------------------------------------------------------------------- +Sat Jul 30 04:34:14 UTC 2016 - coolo@suse.com + +- updated to version 3.0.1 + see installed CHANGELOG.md + + ## 3.0.1 (28 July 2016) + + - update UglifyJS to 2.7.0 + - split JS dependencies to separate files + +------------------------------------------------------------------- +Wed Apr 6 06:35:05 UTC 2016 - coolo@suse.com + +- updated to version 3.0.0 + see installed CHANGELOG.md + + ## 3.0.0 (22 March 2016) + + - drop support for Ruby 1.8 + - remove json as dependency + - discard unused function arguments only in unsafe mode + - add `keep_fnames` option to preserve function names in compressed code + - add `collapse_vars` option to collapse single-use variables + - backwards incompatible changes to source map options + - support for inline base64 encoded source maps + - mangle property names option (disabled by default) + - update UglifyJS to 2.6.2 + +------------------------------------------------------------------- +Thu Aug 27 04:30:49 UTC 2015 - coolo@suse.com + +- updated to version 2.7.2 + see installed CHANGELOG.md + + ## 2.7.2 (26 August 2015) + + - update UglifyJS to 2.4.24 + +------------------------------------------------------------------- +Sat Feb 28 05:30:18 UTC 2015 - coolo@suse.com + +- updated to version 2.7.1 + - fix compatibility with experimental Alaska ExecJS runtime + +------------------------------------------------------------------- +Sat Feb 7 07:21:17 UTC 2015 - coolo@suse.com + +- updated to version 2.7.0 + - copyright comment preservation also includes comments starting with a bang (!) + - update UglifyJS to 2.4.16 + - allow metadata to be appended to minified code + +------------------------------------------------------------------- +Wed Oct 15 11:12:52 UTC 2014 - coolo@suse.com + +- add gem2rpm.yml to fix license + +------------------------------------------------------------------- +Wed Oct 15 11:11:17 UTC 2014 - coolo@suse.com + +- updated to version 2.5.3 + - update UglifyJS to 2.4.15 + +------------------------------------------------------------------- +Mon Oct 13 07:46:14 UTC 2014 - adrian@suse.de + +- adapt to new rubygem packaging style + +------------------------------------------------------------------- +Tue Mar 18 14:57:14 UTC 2014 - coolo@suse.com + +- updated to version 2.5.0 + - update UglifyJS to 2.4.13 + - process Angular @ngInject annotations + - add keep_fargs option + - change `ascii_only` default to true + +------------------------------------------------------------------- +Fri Dec 20 12:02:48 UTC 2013 - coolo@suse.com + +- updated to version 2.4.0 + - update UglifyJS to 2.4.8 + - add drop_console compress option + +------------------------------------------------------------------- +Fri Dec 13 06:02:18 UTC 2013 - coolo@suse.com + +- updated to version 2.3.3 + - update UglifyJS to 2.4.7 + +------------------------------------------------------------------- +Tue Dec 3 09:42:46 UTC 2013 - coolo@suse.com + +- updated to version 2.3.2 + - update UglifyJS to 2.4.6 + - document missing mangler and output options + +------------------------------------------------------------------- +Fri Nov 22 08:40:32 UTC 2013 - coolo@suse.com + +- updated to version 2.3.1 + - update UglifyJS to 2.4.3 + +------------------------------------------------------------------- +Thu Oct 31 05:54:42 UTC 2013 - coolo@suse.com + +- updated to version 2.3.0 + - use JSON gem instead of multi_json + - update UglifyJS to 2.4.1 + - fix issues with some Unicode JS identifiers (#47, #58) + +------------------------------------------------------------------- +Fri Aug 30 10:00:33 UTC 2013 - coolo@suse.com + +- updated to version 2.2.1 + - fix IE8 compatibility + +------------------------------------------------------------------- +Mon Aug 26 05:05:50 UTC 2013 - coolo@suse.com + +- updated to version 2.2.0 + - update UglifyJS to 2.4.0 + - add `negate_iife` compressor option + - escape null characters as \x00, so that null followed by number isn't + interpreted as octal (#47) + +------------------------------------------------------------------- +Sat Jul 20 07:02:06 UTC 2013 - coolo@suse.com + +- updated to version 2.1.2 + - update UglifyJS to 2.3.6 + - fix JScript compatibility + - update UglifyJS to 2.3.4 + +------------------------------------------------------------------- +Fri May 24 06:24:01 UTC 2013 - coolo@suse.com + +- updated to version 2.1.1 + - update to UglifyJS 2.3.4 + +------------------------------------------------------------------- +Thu May 9 16:39:50 UTC 2013 - coolo@suse.com + +- updated to version 2.1.0 + - update to UglifyJS 2.3.0 + - add enclose and screw_ie8 options + - fix compatibility with Sprockets 2.9.0 + +------------------------------------------------------------------- +Fri Apr 12 07:33:23 UTC 2013 - coolo@suse.com + +- updated to version 2.0.1, new javascript version + +------------------------------------------------------------------- +Mon Sep 3 08:31:30 UTC 2012 - coolo@suse.com + +- updated to version 1.3.0, work with different multi_json versions + +------------------------------------------------------------------- +Fri Aug 3 13:28:03 UTC 2012 - coolo@suse.com + +- updated to version 1.2.7, updated javascript + +------------------------------------------------------------------- +Fri Jul 6 13:27:34 UTC 2012 - coolo@suse.com + +- update to 1.2.6, bug fixes + +------------------------------------------------------------------- +Fri Jun 29 08:39:13 UTC 2012 - cfarrell@suse.com + +- license update: MIT and BSD-3-Clause + LICENSE.txt is MIT but uglifier.js is BSD + +------------------------------------------------------------------- +Fri Jun 22 05:04:14 UTC 2012 - coolo@suse.com + +- update to 1.2.5, bug fixes + +------------------------------------------------------------------- +Tue Apr 17 07:28:45 UTC 2012 - coolo@suse.com + +- update to 1.2.4 + diff --git a/rubygem-uglifier.spec b/rubygem-uglifier.spec new file mode 100644 index 0000000..dc2fb09 --- /dev/null +++ b/rubygem-uglifier.spec @@ -0,0 +1,55 @@ +# +# spec file for package rubygem-uglifier +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + +Name: rubygem-uglifier +Version: 4.2.1 +Release: 0 +%define mod_name uglifier +%define mod_full_name %{mod_name}-%{version} +BuildRequires: %{ruby >= 2.4.0} +BuildRequires: %{rubygem gem2rpm} +BuildRequires: ruby-macros >= 5 +URL: https://github.com/lautis/uglifier +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml +Summary: Ruby wrapper for UglifyJS JavaScript compressor +License: BSD-3-Clause AND MIT + +%description +Uglifier minifies JavaScript files by wrapping UglifyJS to be accessible in +Ruby. + +%prep + +%build + +%install +%gem_install \ + --doc-files="CHANGELOG.md LICENSE.txt README.md" \ + -f + +%gem_packages + +%changelog diff --git a/uglifier-4.2.1.gem b/uglifier-4.2.1.gem new file mode 100644 index 0000000..60d4bfa --- /dev/null +++ b/uglifier-4.2.1.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75d42b81b10bfd21e7a427fabb1d49ff5ea7bda3c4a5039ddb2a78d194c6f5aa +size 198144