uglifier 1.2.3 → 1.2.4

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.

Files changed (6) hide show
  1. data/README.md +77 -0
  2. data/VERSION +1 -1
  3. data/lib/uglify.js +2620 -13
  4. data/uglifier.gemspec +4 -4
  5. metadata +17 -17
  6. data/README.rdoc +0 -67
@@ -5,15 +5,15 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "uglifier"
8
- s.version = "1.2.3"
8
+ s.version = "1.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ville Lautanala"]
12
- s.date = "2012-01-29"
12
+ s.date = "2012-03-27"
13
13
  s.email = "lautis@gmail.com"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
16
- "README.rdoc"
16
+ "README.md"
17
17
  ]
18
18
  s.files = [
19
19
  ".document",
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  ".travis.yml",
23
23
  "Gemfile",
24
24
  "LICENSE.txt",
25
- "README.rdoc",
25
+ "README.md",
26
26
  "Rakefile",
27
27
  "VERSION",
28
28
  "build.js",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uglifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-29 00:00:00.000000000 Z
12
+ date: 2012-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: execjs
16
- requirement: &70100053409740 !ruby/object:Gem::Requirement
16
+ requirement: &70245672279280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.3.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70100053409740
24
+ version_requirements: *70245672279280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: multi_json
27
- requirement: &70100053446560 !ruby/object:Gem::Requirement
27
+ requirement: &70245672278680 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70100053446560
35
+ version_requirements: *70245672278680
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70100053445620 !ruby/object:Gem::Requirement
38
+ requirement: &70245672278120 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '2.7'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70100053445620
46
+ version_requirements: *70245672278120
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70100053444720 !ruby/object:Gem::Requirement
49
+ requirement: &70245672276920 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70100053444720
57
+ version_requirements: *70245672276920
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &70100053443500 !ruby/object:Gem::Requirement
60
+ requirement: &70245672273800 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.8.3
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70100053443500
68
+ version_requirements: *70245672273800
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rdoc
71
- requirement: &70100053442720 !ruby/object:Gem::Requirement
71
+ requirement: &70245672272920 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,14 +76,14 @@ dependencies:
76
76
  version: '3.11'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70100053442720
79
+ version_requirements: *70245672272920
80
80
  description:
81
81
  email: lautis@gmail.com
82
82
  executables: []
83
83
  extensions: []
84
84
  extra_rdoc_files:
85
85
  - LICENSE.txt
86
- - README.rdoc
86
+ - README.md
87
87
  files:
88
88
  - .document
89
89
  - .gitmodules
@@ -91,7 +91,7 @@ files:
91
91
  - .travis.yml
92
92
  - Gemfile
93
93
  - LICENSE.txt
94
- - README.rdoc
94
+ - README.md
95
95
  - Rakefile
96
96
  - VERSION
97
97
  - build.js
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: -1948524167997561404
118
+ hash: -824595600885178505
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements:
@@ -1,67 +0,0 @@
1
- = Uglifier
2
-
3
- Ruby wrapper for UglifyJS[https://github.com/mishoo/UglifyJS] JavaScript compressor.
4
-
5
- http://travis-ci.org/lautis/uglifier.png
6
-
7
- == Installation
8
-
9
- Uglifier is available as ruby gem.
10
-
11
- $ gem install uglifier
12
-
13
- Ensure that your environment has a JavaScript interpreter supported by ExecJS[https://github.com/sstephenson/execjs]. Usually, installing therubyracer gem is the best alternative.
14
-
15
- == Usage
16
-
17
- require 'uglifier'
18
-
19
- Uglifier.new.compile(File.read("source.js"))
20
- # => js file minified
21
-
22
- # Or alternatively
23
- Uglifier.compile(File.read("source.js"))
24
-
25
- When initializing UglifyJS, you can tune the behavior of UglifyJS by passing options. For example, if you want top-level variable names to be mangled:
26
-
27
- Uglifier.new(:toplevel => true).compile(source)
28
-
29
- # Or
30
- Uglifier.compile(source, :toplevel => true)
31
-
32
- Available options and their defaults are
33
- {
34
- :mangle => true, # Mangle variable and function names, use :variables to skip function mangling
35
- :toplevel => false, # Mangle top-level variable names
36
- :except => [], # Variable names to be excluded from mangling
37
- :max_line_length => 32 * 1024, # Maximum line length
38
- :squeeze => true, # Squeeze code resulting in smaller, but less-readable code
39
- :seqs => true, # Reduce consecutive statements in blocks into single statement
40
- :dead_code => true, # Remove dead code (e.g. after return)
41
- :lift_vars => false, # Lift all var declarations at the start of the scope
42
- :unsafe => false, # Optimizations known to be unsafe in some situations
43
- :copyright => true, # Show copyright message
44
- :ascii_only => false, # Encode non-ASCII characters as Unicode code points
45
- :inline_script => false, # Escape </script
46
- :quote_keys => false, # Quote keys in object literals
47
- :beautify => false, # Ouput indented code
48
- :beautify_options => {
49
- :indent_level => 4,
50
- :indent_start => 0,
51
- :space_colon => false
52
- }
53
- }
54
-
55
- == Submitting an issue
56
-
57
- Uglifier uses the {GitHub issue tracker}[https://github.com/lautis/uglifier/issues] to track bugs and features. Before submitting a bug report or feature request, check to make sure it hasn't already been submitted. You can indicate support for an existing issuse by voting it up. When submitting a bug report, please include a Gist that includes a stack trace and any details that may be necessary to reproduce the bug, including your gem version, Ruby version, <b>MultiJSON engine</b> and <b>ExecJS runtime</b>. Ideally, a bug report should include a pull request with failing specs.
58
-
59
- == Contributing to uglifier
60
-
61
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
62
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
63
- * Fork the project
64
- * Start a feature/bugfix branch
65
- * Commit and push until you are happy with your contribution
66
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
67
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.