debian/0000755000000000000000000000000012261431746007174 5ustar debian/compat0000644000000000000000000000000212261430004010354 0ustar 7 debian/changelog0000644000000000000000000000146412261431746011053 0ustar ruby-uglifier (1.3.0-1) unstable; urgency=medium * New upstream release * debian/patches/run-tests-against-distributed-javascript.patch: dropped, already applied upstream * Bump Standards-Version to 3.9.5; no changes needed * debian/copyright: fix typo -- Antonio Terceiro Fri, 03 Jan 2014 00:51:23 -0300 ruby-uglifier (1.2.5-2) unstable; urgency=low * When running tests, use the local JavaScript files instead of the ones that would be installed to /usr/share when the package is installed (Closes: #680835). * Add ruby-yajl to Build-Depends: -- Antonio Terceiro Fri, 13 Jul 2012 08:48:14 -0300 ruby-uglifier (1.2.5-1) unstable; urgency=low * Initial release. -- Antonio Terceiro Wed, 27 Jun 2012 21:45:08 -0300 debian/copyright0000644000000000000000000000530612261431746011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: uglifier Source: https://github.com/lautis/uglifier Files: * Copyright: Ville Lautanala, Flowdock (https://flowdock.com/) License: MIT License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: lib/uglify.js Copyright: 2012 Robert Gust-Bardon . License: All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2012 Antonio Terceiro License: MIT debian/control0000644000000000000000000000170012261431746010575 0ustar Source: ruby-uglifier Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Antonio Terceiro Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-execjs, ruby-multi-json, ruby-rspec, rake, ruby-yajl Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-uglifier.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-uglifier.git;a=summary Homepage: http://github.com/lautis/uglifier XS-Ruby-Versions: all Package: ruby-uglifier Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-execjs, ruby-multi-json Description: Ruby wrapper for UglifyJS JavaScript compressor The package wraps the UglifyJS JavaScript compressor, which is used by other packages (i.e. the Rails 3 asset pipeline) to compress Javascript files. debian/rules0000755000000000000000000000062312261430004010237 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_auto_install: dh_auto_install mkdir -p debian/ruby-uglifier/usr/share/javascript/ruby-uglifier/ mv debian/ruby-uglifier/usr/lib/ruby/vendor_ruby/uglify.js debian/ruby-uglifier/usr/share/javascript/ruby-uglifier/ mv debian/ruby-uglifier/usr/lib/ruby/vendor_ruby/es5.js debian/ruby-uglifier/usr/share/javascript/ruby-uglifier/ debian/source/0000755000000000000000000000000012261430004010456 5ustar debian/source/format0000644000000000000000000000001412261430004011664 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000014512261430561010217 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/uglifier .*/uglifier-(.*).tar.gz debian/ruby-uglifier.docs0000644000000000000000000000001212261430004012606 0ustar README.md debian/patches/0000755000000000000000000000000012261431735010621 5ustar debian/patches/series0000644000000000000000000000004312261431735012033 0ustar change-javascript-files-path.patch debian/patches/change-javascript-files-path.patch0000644000000000000000000000156312261430004017256 0ustar Description: Point to Javascript files at /usr/share This patch is Debian-specific. Author: Antonio Terceiro Index: ruby-uglifier/lib/uglifier.rb =================================================================== --- ruby-uglifier.orig/lib/uglifier.rb 2012-06-28 09:14:57.000000000 -0300 +++ ruby-uglifier/lib/uglifier.rb 2012-07-13 08:47:22.545607566 -0300 @@ -30,8 +30,15 @@ } } - SourcePath = File.expand_path("../uglify.js", __FILE__) - ES5FallbackPath = File.expand_path("../es5.js", __FILE__) + def self.find_asset(filename) + [ + File.expand_path("../" + filename, __FILE__), + File.join("/usr/share/javascript/ruby-uglifier", filename) + ].find { |f| File.exists?(f) } + end + + SourcePath = find_asset("uglify.js") + ES5FallbackPath = find_asset("es5.js") # Minifies JavaScript code using implicit context. # debian/ruby-tests.rake0000644000000000000000000000025212261430004012142 0ustar require 'rspec/core' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = FileList['spec/**/*_spec.rb'] end task :default => :spec