uglifier 1.2.4 → 1.2.5
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.
- data/.travis.yml +0 -3
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/uglifier.rb +5 -6
- data/lib/uglify.js +127 -1420
- data/spec/uglifier_spec.rb +1 -1
- data/uglifier.gemspec +6 -6
- metadata +48 -18
data/spec/uglifier_spec.rb
CHANGED
@@ -101,7 +101,7 @@ describe "Uglifier" do
|
|
101
101
|
|
102
102
|
it "lifts vars to top of the scope" do
|
103
103
|
code = "function something() { var foo = 123; foo = 1234; var bar = 123456; return foo + bar}"
|
104
|
-
Uglifier.compile(code, :lift_vars => true).should
|
104
|
+
Uglifier.compile(code, :lift_vars => true).should match /var \w,\w/
|
105
105
|
end
|
106
106
|
|
107
107
|
it "can be configured to output only ASCII" do
|
data/uglifier.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "uglifier"
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.5"
|
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-
|
12
|
+
s.date = "2012-06-19"
|
13
13
|
s.email = "lautis@gmail.com"
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.txt",
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
]
|
36
36
|
s.homepage = "http://github.com/lautis/uglifier"
|
37
37
|
s.require_paths = ["lib"]
|
38
|
-
s.rubygems_version = "1.8.
|
38
|
+
s.rubygems_version = "1.8.23"
|
39
39
|
s.summary = "Ruby wrapper for UglifyJS JavaScript compressor"
|
40
40
|
|
41
41
|
if s.respond_to? :specification_version then
|
@@ -43,14 +43,14 @@ Gem::Specification.new do |s|
|
|
43
43
|
|
44
44
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
45
45
|
s.add_runtime_dependency(%q<execjs>, [">= 0.3.0"])
|
46
|
-
s.add_runtime_dependency(%q<multi_json>, ["
|
46
|
+
s.add_runtime_dependency(%q<multi_json>, ["~> 1.3"])
|
47
47
|
s.add_development_dependency(%q<rspec>, ["~> 2.7"])
|
48
48
|
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
49
49
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
50
50
|
s.add_development_dependency(%q<rdoc>, ["~> 3.11"])
|
51
51
|
else
|
52
52
|
s.add_dependency(%q<execjs>, [">= 0.3.0"])
|
53
|
-
s.add_dependency(%q<multi_json>, ["
|
53
|
+
s.add_dependency(%q<multi_json>, ["~> 1.3"])
|
54
54
|
s.add_dependency(%q<rspec>, ["~> 2.7"])
|
55
55
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
56
56
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
@@ -58,7 +58,7 @@ Gem::Specification.new do |s|
|
|
58
58
|
end
|
59
59
|
else
|
60
60
|
s.add_dependency(%q<execjs>, [">= 0.3.0"])
|
61
|
-
s.add_dependency(%q<multi_json>, ["
|
61
|
+
s.add_dependency(%q<multi_json>, ["~> 1.3"])
|
62
62
|
s.add_dependency(%q<rspec>, ["~> 2.7"])
|
63
63
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
64
64
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
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.
|
4
|
+
version: 1.2.5
|
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-
|
12
|
+
date: 2012-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: execjs
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,21 +21,31 @@ dependencies:
|
|
21
21
|
version: 0.3.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.3.0
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: multi_json
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
|
-
- -
|
35
|
+
- - ~>
|
31
36
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
37
|
+
version: '1.3'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.3'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: rspec
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: '2.7'
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.7'
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: bundler
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ~>
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: '1.0'
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '1.0'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: jeweler
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ~>
|
@@ -65,10 +85,15 @@ dependencies:
|
|
65
85
|
version: 1.8.3
|
66
86
|
type: :development
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.8.3
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: rdoc
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
99
|
- - ~>
|
@@ -76,7 +101,12 @@ dependencies:
|
|
76
101
|
version: '3.11'
|
77
102
|
type: :development
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.11'
|
80
110
|
description:
|
81
111
|
email: lautis@gmail.com
|
82
112
|
executables: []
|
@@ -115,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
145
|
version: '0'
|
116
146
|
segments:
|
117
147
|
- 0
|
118
|
-
hash:
|
148
|
+
hash: 2972227698795069512
|
119
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
150
|
none: false
|
121
151
|
requirements:
|
@@ -124,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
154
|
version: '0'
|
125
155
|
requirements: []
|
126
156
|
rubyforge_project:
|
127
|
-
rubygems_version: 1.8.
|
157
|
+
rubygems_version: 1.8.23
|
128
158
|
signing_key:
|
129
159
|
specification_version: 3
|
130
160
|
summary: Ruby wrapper for UglifyJS JavaScript compressor
|