uglifier 1.2.2 → 1.2.3
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/Gemfile +1 -2
- data/Rakefile +0 -5
- data/VERSION +1 -1
- data/lib/uglifier.rb +1 -1
- data/spec/uglifier_spec.rb +6 -1
- data/uglifier.gemspec +5 -8
- metadata +16 -27
data/Gemfile
CHANGED
@@ -20,7 +20,6 @@ gem ENV["MULTI_JSON_ENGINE"], :group => :development if ENV["MULTI_JSON_ENGINE"]
|
|
20
20
|
group :development do
|
21
21
|
gem "rspec", "~> 2.7"
|
22
22
|
gem "bundler", "~> 1.0"
|
23
|
-
gem "jeweler", "~> 1.
|
24
|
-
gem "rcov", ">= 0"
|
23
|
+
gem "jeweler", "~> 1.8.3"
|
25
24
|
gem "rdoc", "~> 3.11"
|
26
25
|
end
|
data/Rakefile
CHANGED
@@ -26,11 +26,6 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
26
26
|
spec.pattern = FileList['spec/**/*_spec.rb']
|
27
27
|
end
|
28
28
|
|
29
|
-
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
30
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
31
|
-
spec.rcov = true
|
32
|
-
end
|
33
|
-
|
34
29
|
task :default => :spec
|
35
30
|
|
36
31
|
require 'rdoc/task'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.3
|
data/lib/uglifier.rb
CHANGED
data/spec/uglifier_spec.rb
CHANGED
@@ -25,6 +25,11 @@ describe "Uglifier" do
|
|
25
25
|
Uglifier.new.compile('function foo($super) {return $super}').should include("$super")
|
26
26
|
end
|
27
27
|
|
28
|
+
it "adds trailing semicolon to minified source" do
|
29
|
+
source = "function id(i) {return i;};"
|
30
|
+
Uglifier.new.compile(source)[-1].should eql(";"[0])
|
31
|
+
end
|
32
|
+
|
28
33
|
describe "Copyright Preservation" do
|
29
34
|
before :all do
|
30
35
|
@source = <<-EOS
|
@@ -63,7 +68,7 @@ describe "Uglifier" do
|
|
63
68
|
end
|
64
69
|
|
65
70
|
it "mangles variables only if mangle is set to true" do
|
66
|
-
code = "function longFunctionName(){}"
|
71
|
+
code = "function longFunctionName(){};"
|
67
72
|
Uglifier.new(:mangle => false).compile(code).length.should == code.length
|
68
73
|
end
|
69
74
|
|
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.3"
|
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-
|
12
|
+
s.date = "2012-01-29"
|
13
13
|
s.email = "lautis@gmail.com"
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.txt",
|
@@ -46,16 +46,14 @@ Gem::Specification.new do |s|
|
|
46
46
|
s.add_runtime_dependency(%q<multi_json>, [">= 1.0.2"])
|
47
47
|
s.add_development_dependency(%q<rspec>, ["~> 2.7"])
|
48
48
|
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
49
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.
|
50
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
49
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
51
50
|
s.add_development_dependency(%q<rdoc>, ["~> 3.11"])
|
52
51
|
else
|
53
52
|
s.add_dependency(%q<execjs>, [">= 0.3.0"])
|
54
53
|
s.add_dependency(%q<multi_json>, [">= 1.0.2"])
|
55
54
|
s.add_dependency(%q<rspec>, ["~> 2.7"])
|
56
55
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
57
|
-
s.add_dependency(%q<jeweler>, ["~> 1.
|
58
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
56
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
59
57
|
s.add_dependency(%q<rdoc>, ["~> 3.11"])
|
60
58
|
end
|
61
59
|
else
|
@@ -63,8 +61,7 @@ Gem::Specification.new do |s|
|
|
63
61
|
s.add_dependency(%q<multi_json>, [">= 1.0.2"])
|
64
62
|
s.add_dependency(%q<rspec>, ["~> 2.7"])
|
65
63
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
66
|
-
s.add_dependency(%q<jeweler>, ["~> 1.
|
67
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
64
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
68
65
|
s.add_dependency(%q<rdoc>, ["~> 3.11"])
|
69
66
|
end
|
70
67
|
end
|
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.3
|
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-
|
12
|
+
date: 2012-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: execjs
|
16
|
-
requirement: &
|
16
|
+
requirement: &70100053409740 !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: *
|
24
|
+
version_requirements: *70100053409740
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: multi_json
|
27
|
-
requirement: &
|
27
|
+
requirement: &70100053446560 !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: *
|
35
|
+
version_requirements: *70100053446560
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70100053445620 !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: *
|
46
|
+
version_requirements: *70100053445620
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
|
-
requirement: &
|
49
|
+
requirement: &70100053444720 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,32 +54,21 @@ dependencies:
|
|
54
54
|
version: '1.0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70100053444720
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: jeweler
|
60
|
-
requirement: &
|
60
|
+
requirement: &70100053443500 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: 1.
|
65
|
+
version: 1.8.3
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rcov
|
71
|
-
requirement: &70201447757000 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
|
-
requirements:
|
74
|
-
- - ! '>='
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: *70201447757000
|
68
|
+
version_requirements: *70100053443500
|
80
69
|
- !ruby/object:Gem::Dependency
|
81
70
|
name: rdoc
|
82
|
-
requirement: &
|
71
|
+
requirement: &70100053442720 !ruby/object:Gem::Requirement
|
83
72
|
none: false
|
84
73
|
requirements:
|
85
74
|
- - ~>
|
@@ -87,7 +76,7 @@ dependencies:
|
|
87
76
|
version: '3.11'
|
88
77
|
type: :development
|
89
78
|
prerelease: false
|
90
|
-
version_requirements: *
|
79
|
+
version_requirements: *70100053442720
|
91
80
|
description:
|
92
81
|
email: lautis@gmail.com
|
93
82
|
executables: []
|
@@ -126,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
115
|
version: '0'
|
127
116
|
segments:
|
128
117
|
- 0
|
129
|
-
hash:
|
118
|
+
hash: -1948524167997561404
|
130
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
120
|
none: false
|
132
121
|
requirements:
|