uglifier 1.0.1 → 1.0.2

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -11,7 +11,7 @@ class Uglifier
11
11
  DEFAULTS = {
12
12
  :mangle => true, # Mangle variables names
13
13
  :toplevel => false, # Mangle top-level variable names
14
- :except => [], # Variable names to be excluded from mangling
14
+ :except => ["$super"], # Variable names to be excluded from mangling
15
15
  :max_line_length => 32 * 1024, # Maximum line length
16
16
  :squeeze => true, # Squeeze code resulting in smaller, but less-readable code
17
17
  :seqs => true, # Reduce consecutive statements in blocks into single statement
@@ -21,6 +21,10 @@ describe "Uglifier" do
21
21
  Uglifier.new.compile('var foo="\0bar"').should match(/(\0|\\0)/)
22
22
  end
23
23
 
24
+ it "doesn't try to mangle $super by default to avoid breaking PrototypeJS" do
25
+ Uglifier.new.compile('function foo($super) {return $super}').should include("$super")
26
+ end
27
+
24
28
  describe "Copyright Preservation" do
25
29
  before :all do
26
30
  @source = <<-EOS
@@ -4,13 +4,13 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{uglifier}
8
- s.version = "1.0.1"
7
+ s.name = "uglifier"
8
+ s.version = "1.0.2"
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 = %q{2011-08-15}
13
- s.email = %q{lautis@gmail.com}
12
+ s.date = "2011-08-28"
13
+ s.email = "lautis@gmail.com"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
16
16
  "README.rdoc"
@@ -33,16 +33,15 @@ Gem::Specification.new do |s|
33
33
  "spec/uglifier_spec.rb",
34
34
  "uglifier.gemspec"
35
35
  ]
36
- s.homepage = %q{http://github.com/lautis/uglifier}
36
+ s.homepage = "http://github.com/lautis/uglifier"
37
37
  s.require_paths = ["lib"]
38
- s.rubygems_version = %q{1.3.6}
39
- s.summary = %q{Ruby wrapper for UglifyJS JavaScript compressor}
38
+ s.rubygems_version = "1.8.10"
39
+ s.summary = "Ruby wrapper for UglifyJS JavaScript compressor"
40
40
 
41
41
  if s.respond_to? :specification_version then
42
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
42
  s.specification_version = 3
44
43
 
45
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
44
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
45
  s.add_runtime_dependency(%q<execjs>, [">= 0.3.0"])
47
46
  s.add_runtime_dependency(%q<multi_json>, [">= 1.0.2"])
48
47
  s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uglifier
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 19
5
+ prerelease:
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
- - 1
9
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Ville Lautanala
@@ -14,91 +15,102 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-08-15 00:00:00 +03:00
18
- default_executable:
18
+ date: 2011-08-28 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ none: false
22
23
  requirements:
23
24
  - - ">="
24
25
  - !ruby/object:Gem::Version
26
+ hash: 19
25
27
  segments:
26
28
  - 0
27
29
  - 3
28
30
  - 0
29
31
  version: 0.3.0
30
- requirement: *id001
31
32
  name: execjs
32
33
  prerelease: false
33
34
  type: :runtime
35
+ requirement: *id001
34
36
  - !ruby/object:Gem::Dependency
35
37
  version_requirements: &id002 !ruby/object:Gem::Requirement
38
+ none: false
36
39
  requirements:
37
40
  - - ">="
38
41
  - !ruby/object:Gem::Version
42
+ hash: 19
39
43
  segments:
40
44
  - 1
41
45
  - 0
42
46
  - 2
43
47
  version: 1.0.2
44
- requirement: *id002
45
48
  name: multi_json
46
49
  prerelease: false
47
50
  type: :runtime
51
+ requirement: *id002
48
52
  - !ruby/object:Gem::Dependency
49
53
  version_requirements: &id003 !ruby/object:Gem::Requirement
54
+ none: false
50
55
  requirements:
51
56
  - - ~>
52
57
  - !ruby/object:Gem::Version
58
+ hash: 23
53
59
  segments:
54
60
  - 2
55
61
  - 6
56
62
  - 0
57
63
  version: 2.6.0
58
- requirement: *id003
59
64
  name: rspec
60
65
  prerelease: false
61
66
  type: :development
67
+ requirement: *id003
62
68
  - !ruby/object:Gem::Dependency
63
69
  version_requirements: &id004 !ruby/object:Gem::Requirement
70
+ none: false
64
71
  requirements:
65
72
  - - ~>
66
73
  - !ruby/object:Gem::Version
74
+ hash: 23
67
75
  segments:
68
76
  - 1
69
77
  - 0
70
78
  - 0
71
79
  version: 1.0.0
72
- requirement: *id004
73
80
  name: bundler
74
81
  prerelease: false
75
82
  type: :development
83
+ requirement: *id004
76
84
  - !ruby/object:Gem::Dependency
77
85
  version_requirements: &id005 !ruby/object:Gem::Requirement
86
+ none: false
78
87
  requirements:
79
88
  - - ~>
80
89
  - !ruby/object:Gem::Version
90
+ hash: 15
81
91
  segments:
82
92
  - 1
83
93
  - 6
84
94
  - 0
85
95
  version: 1.6.0
86
- requirement: *id005
87
96
  name: jeweler
88
97
  prerelease: false
89
98
  type: :development
99
+ requirement: *id005
90
100
  - !ruby/object:Gem::Dependency
91
101
  version_requirements: &id006 !ruby/object:Gem::Requirement
102
+ none: false
92
103
  requirements:
93
104
  - - ">="
94
105
  - !ruby/object:Gem::Version
106
+ hash: 3
95
107
  segments:
96
108
  - 0
97
109
  version: "0"
98
- requirement: *id006
99
110
  name: rcov
100
111
  prerelease: false
101
112
  type: :development
113
+ requirement: *id006
102
114
  description:
103
115
  email: lautis@gmail.com
104
116
  executables: []
@@ -125,7 +137,6 @@ files:
125
137
  - spec/spec_helper.rb
126
138
  - spec/uglifier_spec.rb
127
139
  - uglifier.gemspec
128
- has_rdoc: true
129
140
  homepage: http://github.com/lautis/uglifier
130
141
  licenses: []
131
142
 
@@ -135,23 +146,27 @@ rdoc_options: []
135
146
  require_paths:
136
147
  - lib
137
148
  required_ruby_version: !ruby/object:Gem::Requirement
149
+ none: false
138
150
  requirements:
139
151
  - - ">="
140
152
  - !ruby/object:Gem::Version
153
+ hash: 3
141
154
  segments:
142
155
  - 0
143
156
  version: "0"
144
157
  required_rubygems_version: !ruby/object:Gem::Requirement
158
+ none: false
145
159
  requirements:
146
160
  - - ">="
147
161
  - !ruby/object:Gem::Version
162
+ hash: 3
148
163
  segments:
149
164
  - 0
150
165
  version: "0"
151
166
  requirements: []
152
167
 
153
168
  rubyforge_project:
154
- rubygems_version: 1.3.6
169
+ rubygems_version: 1.8.10
155
170
  signing_key:
156
171
  specification_version: 3
157
172
  summary: Ruby wrapper for UglifyJS JavaScript compressor