uglifier 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of uglifier might be problematic. Click here for more details.

checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: deda30dda4add79a3c7f0f48b49981a0e042c559
4
+ data.tar.gz: 349571c9294a5ac4ba190bf388dd3380ddad7704
5
+ SHA512:
6
+ metadata.gz: 262d1dfdb47b953ef119209baf8ddab4d8bebe8261d615d58c5235ce1f33c4ca979994727fb6bd82f510e053a889641745e056541630eeee50ccab3f997067cc
7
+ data.tar.gz: c837dd1a6b256d3be05815adebd04bbf6650cf2efb59e684490c3dc335a65c7a1cf1d255594629d622fb87643beca4376f460e8f33d7bac2f5e77006d16ebcc7
data/.gitignore ADDED
@@ -0,0 +1,43 @@
1
+ # rcov generated
2
+ coverage
3
+
4
+ # rdoc generated
5
+ rdoc
6
+
7
+ # yard generated
8
+ doc
9
+ .yardoc
10
+
11
+ # bundler
12
+ .bundle
13
+ Gemfile.lock
14
+
15
+ # jeweler generated
16
+ pkg
17
+
18
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19
+ #
20
+ # * Create a file at ~/.gitignore
21
+ # * Include files you want ignored
22
+ # * Run: git config --global core.excludesfile ~/.gitignore
23
+ #
24
+ # After doing this, these files will be ignored in all your git projects,
25
+ # saving you from having to 'pollute' every project you touch with them
26
+ #
27
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28
+ #
29
+ # For MacOS:
30
+ #
31
+ #.DS_Store
32
+ #
33
+ # For TextMate
34
+ #*.tmproj
35
+ #tmtags
36
+ #
37
+ # For emacs:
38
+ #*~
39
+ #\#*
40
+ #.\#*
41
+ #
42
+ # For vim:
43
+ #*.swp
data/.travis.yml CHANGED
@@ -5,18 +5,14 @@ rvm:
5
5
  - 1.9.3
6
6
  - 2.0.0
7
7
  - jruby-19mode
8
- env:
9
- - EXECJS_RUNTIME=RubyRacer
10
- - EXECJS_RUNTIME=RubyRhino
8
+ - rbx-19mode
9
+ git:
10
+ submodules: false
11
+ gemfile:
12
+ - Gemfile
11
13
  matrix:
12
- exclude:
13
- - rvm: 1.8.7
14
- env: EXECJS_RUNTIME=RubyRhino
15
- - rvm: 1.9.2
16
- env: EXECJS_RUNTIME=RubyRhino
17
- - rvm: 1.9.3
18
- env: EXECJS_RUNTIME=RubyRhino
14
+ include:
19
15
  - rvm: 2.0.0
20
- env: EXECJS_RUNTIME=RubyRhino
16
+ gemfile: gemfiles/rubyracer
21
17
  - rvm: jruby-19mode
22
- env: EXECJS_RUNTIME=RubyRacer
18
+ gemfile: gemfiles/rubyrhino
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.3.1 (8 November 2013)
2
+
3
+ - update UglifyJS to 2.4.3
4
+
1
5
  ## 2.3.0 (26 October 2013)
2
6
 
3
7
  - use JSON gem instead of multi_json
data/Gemfile CHANGED
@@ -1,23 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "execjs", ">= 0.3.0"
4
- gem "json", ">= 1.8.0"
5
-
6
- # Depend on defined ExecJS runtime
7
- execjs_runtimes = {
8
- "RubyRacer" => "therubyracer",
9
- "RubyRhino" => "therubyrhino",
10
- "Mustang" => "mustang"
11
- }
12
-
13
- if ENV["EXECJS_RUNTIME"] && execjs_runtimes[ENV["EXECJS_RUNTIME"]]
14
- gem execjs_runtimes[ENV["EXECJS_RUNTIME"]], :group => :development
15
- end
16
-
17
- group :development do
18
- gem "rspec", "~> 2.7"
19
- gem "bundler", "~> 1.0"
20
- gem "jeweler", "~> 1.8.3"
21
- gem "rdoc", ">= 3.11"
22
- gem "source_map"
23
- end
3
+ gemspec
data/README.md CHANGED
@@ -85,7 +85,7 @@ Available options and their defaults are
85
85
  :source_root => nil, # The URL of the directory which contains :source_filename
86
86
  :output_filename => nil, # The filename or URL where the minified output can be found
87
87
  :input_source_map => nil, # The contents of the source map describing the input
88
- :screw_ie8 => false # Generate safe code for IE8
88
+ :screw_ie8 => false # Don't bother to generate safe code for IE8
89
89
  }
90
90
  ```
91
91
 
data/Rakefile CHANGED
@@ -1,5 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'bundler'
3
+ require 'bundler/gem_tasks'
4
+
3
5
  begin
4
6
  Bundler.setup(:default, :development)
5
7
  rescue Bundler::BundlerError => e
@@ -7,19 +9,8 @@ rescue Bundler::BundlerError => e
7
9
  $stderr.puts "Run `bundle install` to install missing gems"
8
10
  exit e.status_code
9
11
  end
10
- require 'rake'
11
12
 
12
- require 'jeweler'
13
- Jeweler::Tasks.new do |gem|
14
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
- gem.name = "uglifier"
16
- gem.summary = %Q{Ruby wrapper for UglifyJS JavaScript compressor}
17
- gem.email = "lautis@gmail.com"
18
- gem.homepage = "http://github.com/lautis/uglifier"
19
- gem.authors = ["Ville Lautanala"]
20
- gem.license = "MIT"
21
- end
22
- Jeweler::RubygemsDotOrgTasks.new
13
+ require 'rake'
23
14
 
24
15
  require 'rspec/core'
25
16
  require 'rspec/core/rake_task'
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path=>"../"
4
+ gem 'therubyracer'
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path=>"../"
4
+ gem 'therubyrhino'
@@ -0,0 +1,3 @@
1
+ class Uglifier
2
+ VERSION = "2.3.1"
3
+ end
data/lib/uglifier.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "execjs"
4
4
  require "json"
5
+ require "uglifier/version"
5
6
 
6
7
  class Uglifier
7
8
  Error = ExecJS::Error
@@ -51,7 +52,7 @@ class Uglifier
51
52
  :source_root => nil, # The URL of the directory which contains :source_filename
52
53
  :output_filename => nil, # The filename or URL where the minified output can be found
53
54
  :input_source_map => nil, # The contents of the source map describing the input
54
- :screw_ie8 => false # Generate safe code for IE8
55
+ :screw_ie8 => false # Don't bother to generate safe code for IE8
55
56
  }
56
57
 
57
58
  SourcePath = File.expand_path("../uglify.js", __FILE__)