uglifier-rails 3.1.0.rc.1 → 3.1.0.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/lib/uglifier-rails.rb +0 -1
- data/lib/uglifier/rails/railtie.rb +1 -1
- data/lib/uglifier/rails/version.rb +1 -1
- data/test/dummy/config/application.rb +1 -0
- data/test/dummy/config/routes.rb +0 -2
- data/test/uglifier_rails_test.rb +14 -1
- metadata +5 -7
- data/test/dummy/log/test.log +0 -9
data/.gitignore
CHANGED
data/lib/uglifier-rails.rb
CHANGED
data/test/dummy/config/routes.rb
CHANGED
data/test/uglifier_rails_test.rb
CHANGED
@@ -1,12 +1,25 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
class UglifierRailsTest < ActiveSupport::TestCase
|
4
|
+
include Rack::Test::Methods
|
5
|
+
|
6
|
+
def app
|
7
|
+
@app ||= Rails.application
|
8
|
+
end
|
9
|
+
|
4
10
|
test "classes are loaded" do
|
5
11
|
assert_kind_of Module, Uglifier::Rails
|
6
12
|
assert_kind_of Class, Uglifier::Rails::Railtie
|
7
13
|
end
|
8
14
|
|
9
15
|
test "js compressor is set" do
|
10
|
-
|
16
|
+
assert_equal :uglifier, Rails.application.config.assets.js_compressor
|
17
|
+
assert_not_nil Rails.application.assets.js_compressor
|
18
|
+
end
|
19
|
+
|
20
|
+
test "js files are compressed" do
|
21
|
+
get "/assets/test.js"
|
22
|
+
|
23
|
+
assert_match "function test(){alert(\"Hello World\")}", last_response.body
|
11
24
|
end
|
12
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uglifier-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.rc.
|
4
|
+
version: 3.1.0.rc.2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: uglifier
|
17
|
-
requirement: &
|
17
|
+
requirement: &2164553700 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 1.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2164553700
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: railties
|
28
|
-
requirement: &
|
28
|
+
requirement: &2164553200 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 3.1.0.rc1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2164553200
|
37
37
|
description: Uglifier adapter for the Rails asset pipeline.
|
38
38
|
email:
|
39
39
|
- guilleiguaran@gmail.com
|
@@ -77,7 +77,6 @@ files:
|
|
77
77
|
- test/dummy/lib/assets/.gitkeep
|
78
78
|
- test/dummy/log/.gitkeep
|
79
79
|
- test/dummy/log/development.log
|
80
|
-
- test/dummy/log/test.log
|
81
80
|
- test/dummy/public/404.html
|
82
81
|
- test/dummy/public/422.html
|
83
82
|
- test/dummy/public/500.html
|
@@ -140,7 +139,6 @@ test_files:
|
|
140
139
|
- test/dummy/lib/assets/.gitkeep
|
141
140
|
- test/dummy/log/.gitkeep
|
142
141
|
- test/dummy/log/development.log
|
143
|
-
- test/dummy/log/test.log
|
144
142
|
- test/dummy/public/404.html
|
145
143
|
- test/dummy/public/422.html
|
146
144
|
- test/dummy/public/500.html
|
data/test/dummy/log/test.log
DELETED