uglifier 2.7.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -0
- data/.travis.yml +9 -8
- data/.yardopts +4 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile +1 -5
- data/README.md +19 -10
- data/Rakefile +1 -26
- data/lib/uglifier.js +111 -0
- data/lib/uglifier.rb +109 -93
- data/lib/uglifier/version.rb +1 -1
- data/lib/uglify.js +3015 -2102
- data/spec/source_map_spec.rb +152 -36
- data/spec/spec_helper.rb +11 -2
- data/spec/uglifier_spec.rb +95 -18
- data/uglifier.gemspec +3 -5
- metadata +16 -36
data/uglifier.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.description = "Uglifier minifies JavaScript files by wrapping UglifyJS to be accessible in Ruby"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.required_ruby_version = '>= 1.
|
16
|
+
spec.required_ruby_version = '>= 1.9.3'
|
17
17
|
|
18
18
|
spec.extra_rdoc_files = [
|
19
19
|
"LICENSE.txt",
|
@@ -25,11 +25,9 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.test_files = spec.files.grep(%r{^spec/})
|
26
26
|
spec.require_paths = ["lib"]
|
27
27
|
|
28
|
-
spec.add_runtime_dependency "execjs", ">= 0.3.0"
|
29
|
-
spec.add_runtime_dependency "json", ">= 1.8.0"
|
28
|
+
spec.add_runtime_dependency "execjs", [">= 0.3.0", "< 3"]
|
30
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
30
|
spec.add_development_dependency "rake", "~> 10.4"
|
32
31
|
spec.add_development_dependency "bundler", "~> 1.3"
|
33
|
-
spec.add_development_dependency "
|
34
|
-
spec.add_development_dependency "source_map", ">= 0"
|
32
|
+
spec.add_development_dependency "sourcemap", "~> 0.1.1"
|
35
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uglifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ville Lautanala
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.3.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,20 +27,9 @@ dependencies:
|
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 0.3.0
|
27
|
-
-
|
28
|
-
name: json
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
30
|
+
- - "<"
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.8.0
|
32
|
+
version: '3'
|
41
33
|
- !ruby/object:Gem::Dependency
|
42
34
|
name: rspec
|
43
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,33 +73,19 @@ dependencies:
|
|
81
73
|
- !ruby/object:Gem::Version
|
82
74
|
version: '1.3'
|
83
75
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '3.11'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '3.11'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: source_map
|
76
|
+
name: sourcemap
|
99
77
|
requirement: !ruby/object:Gem::Requirement
|
100
78
|
requirements:
|
101
|
-
- - "
|
79
|
+
- - "~>"
|
102
80
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
81
|
+
version: 0.1.1
|
104
82
|
type: :development
|
105
83
|
prerelease: false
|
106
84
|
version_requirements: !ruby/object:Gem::Requirement
|
107
85
|
requirements:
|
108
|
-
- - "
|
86
|
+
- - "~>"
|
109
87
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
88
|
+
version: 0.1.1
|
111
89
|
description: Uglifier minifies JavaScript files by wrapping UglifyJS to be accessible
|
112
90
|
in Ruby
|
113
91
|
email:
|
@@ -126,6 +104,7 @@ files:
|
|
126
104
|
- ".rspec"
|
127
105
|
- ".rubocop.yml"
|
128
106
|
- ".travis.yml"
|
107
|
+
- ".yardopts"
|
129
108
|
- CHANGELOG.md
|
130
109
|
- CONTRIBUTING.md
|
131
110
|
- Gemfile
|
@@ -137,6 +116,7 @@ files:
|
|
137
116
|
- gemfiles/rubyrhino
|
138
117
|
- lib/es5.js
|
139
118
|
- lib/split.js
|
119
|
+
- lib/uglifier.js
|
140
120
|
- lib/uglifier.rb
|
141
121
|
- lib/uglifier/version.rb
|
142
122
|
- lib/uglify.js
|
@@ -156,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
136
|
requirements:
|
157
137
|
- - ">="
|
158
138
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
139
|
+
version: 1.9.3
|
160
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
141
|
requirements:
|
162
142
|
- - ">="
|
@@ -164,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
144
|
version: '0'
|
165
145
|
requirements: []
|
166
146
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.5.1
|
168
148
|
signing_key:
|
169
149
|
specification_version: 4
|
170
150
|
summary: Ruby wrapper for UglifyJS JavaScript compressor
|