assets_booster 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.rdoc +8 -4
- data/asset_booster.gemspec +2 -1
- data/lib/assets_booster/version.rb +1 -1
- data/spec/compiler/uglify_spec.rb +1 -0
- data/spec/packager_spec.rb +3 -3
- metadata +80 -71
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: dafddf4d7d62e0b5e9a59b5a248f4026a629af3c
|
4
|
+
data.tar.gz: cd70c270a68f8b3a0a57fab99e6990b7f8e28bdd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4266bb132945a88ce98ff32cd451ffb452acde60f7dd332d8a80f118593a0ddbf102ad3bb9d4ebc4fd98c4fd34dc0ef70bf4613764c03188dcdadc49500663b0
|
7
|
+
data.tar.gz: d6c138f25e769501004c1b23ba3b50d8b06237129c54e7e70d509d5746fa9756eec5327f4027fbf1724abaf4aa9e3cb9ca823b6b5eaee53a6bcf9fd8fceaeb66
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2011 Corin Langosch
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -4,12 +4,12 @@ Assets compression (javascript and css) for rails applications. Instead of sendi
|
|
4
4
|
|
5
5
|
When in development, it allows you to use your original versions and retain formatting and comments for readability and debugging.
|
6
6
|
|
7
|
-
This gem was inspired by AssetPackager from Scott Becker, but is a complete rewrite and much more powerful.
|
7
|
+
This gem was inspired by AssetPackager from Scott Becker, but is a complete rewrite and much more powerful.
|
8
8
|
|
9
9
|
|
10
10
|
==Features
|
11
11
|
|
12
|
-
* Full rails 3 support
|
12
|
+
* Full rails 3 support
|
13
13
|
* Support for several compressors, easy to add your own
|
14
14
|
* Supporting url rewriting and handling of @imports in stylesheets
|
15
15
|
* Clean implementation with new codebase
|
@@ -26,13 +26,13 @@ Or when using bundler, add it got your Gemfile:
|
|
26
26
|
|
27
27
|
gem assets_booster
|
28
28
|
|
29
|
-
|
29
|
+
|
30
30
|
==Quick Start
|
31
31
|
|
32
32
|
If you dont't have a configuration file yet, you can easily have one created using this command:
|
33
33
|
|
34
34
|
rake assets_booster:setup
|
35
|
-
|
35
|
+
|
36
36
|
To compile the assets (normally done before deployment):
|
37
37
|
|
38
38
|
rake assets_booster:compile
|
@@ -55,3 +55,7 @@ guidelines:
|
|
55
55
|
4. Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
56
56
|
5. Send me a pull request. Bonus points for topic branches.
|
57
57
|
|
58
|
+
|
59
|
+
==Copyright
|
60
|
+
|
61
|
+
Copyright (c) 2011 {Corin Langosch}[http://www.corinlangosch.com]. Released unter the MIT license.
|
data/asset_booster.gemspec
CHANGED
@@ -6,8 +6,9 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "assets_booster"
|
7
7
|
s.version = AssetsBooster::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
|
+
s.license = "MIT"
|
9
10
|
s.authors = ["Corin Langosch"]
|
10
|
-
s.email = ["info@
|
11
|
+
s.email = ["info@corinlangosch.com"]
|
11
12
|
s.homepage = "http://github.com/gucki/assets_booster"
|
12
13
|
s.summary = %q{Assets (javascripts, css) compression for rails applications}
|
13
14
|
s.description = %q{Instead of sending down a dozen JavaScript and CSS files full of formatting and comments, this gem makes it simple to merge and compress these into one or more files, increasing speed and saving bandwidth.}
|
data/spec/packager_spec.rb
CHANGED
@@ -42,7 +42,7 @@ module AssetsBooster
|
|
42
42
|
},
|
43
43
|
'options' => {
|
44
44
|
'javascript' => {
|
45
|
-
'compiler' => "
|
45
|
+
'compiler' => "closure",
|
46
46
|
},
|
47
47
|
'stylesheet' => {
|
48
48
|
'compiler' => "yui_css",
|
@@ -73,13 +73,13 @@ module AssetsBooster
|
|
73
73
|
File.should_receive(:utime).with(14, 14, "/rails/public/javascripts/base_packaged.js").twice
|
74
74
|
|
75
75
|
# compiling js
|
76
|
-
file.should_receive(:write).with("var action=\"jquery\";alert(\"jquery\")
|
76
|
+
file.should_receive(:write).with("var action=\"jquery\";alert(\"jquery\");action=12;alert(\"rails\");").once
|
77
77
|
|
78
78
|
subject.compile_all
|
79
79
|
@messages[0].should match(/Merging assets.*CSS Merger/)
|
80
80
|
@messages[1].should match(/Compiling.*YUI Compressor/)
|
81
81
|
@messages[3].should match(/Merging assets.*Simple Merger/)
|
82
|
-
@messages[4].should match(/Compiling.*
|
82
|
+
@messages[4].should match(/Compiling.*Closure/)
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|
metadata
CHANGED
@@ -1,85 +1,98 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: assets_booster
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.12
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.13
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Corin Langosch
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
16
14
|
name: rails
|
17
|
-
|
18
|
-
|
19
|
-
none: false
|
20
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
21
17
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
18
|
+
- !ruby/object:Gem::Version
|
23
19
|
version: 3.0.5
|
24
20
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: rainpress
|
28
21
|
prerelease: false
|
29
|
-
|
30
|
-
|
31
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.5
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rainpress
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
32
31
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version:
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
35
34
|
type: :runtime
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: yui-compressor
|
39
35
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: yui-compressor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
43
45
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
46
|
+
- !ruby/object:Gem::Version
|
45
47
|
version: 0.9.6
|
46
48
|
type: :runtime
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: rspec
|
50
49
|
prerelease: false
|
51
|
-
|
52
|
-
|
53
|
-
requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
54
52
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.9.6
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
56
61
|
version: 2.5.0
|
57
62
|
type: :development
|
58
|
-
version_requirements: *id004
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: rspec-rails
|
61
63
|
prerelease: false
|
62
|
-
|
63
|
-
|
64
|
-
requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
65
66
|
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.5.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
67
75
|
version: 2.5.0
|
68
76
|
type: :development
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
-
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.5.0
|
83
|
+
description: Instead of sending down a dozen JavaScript and CSS files full of formatting
|
84
|
+
and comments, this gem makes it simple to merge and compress these into one or more
|
85
|
+
files, increasing speed and saving bandwidth.
|
86
|
+
email:
|
87
|
+
- info@corinlangosch.com
|
73
88
|
executables: []
|
74
|
-
|
75
89
|
extensions: []
|
76
|
-
|
77
90
|
extra_rdoc_files: []
|
78
|
-
|
79
|
-
files:
|
91
|
+
files:
|
80
92
|
- .gitignore
|
81
93
|
- .rspec
|
82
94
|
- Gemfile
|
95
|
+
- LICENSE.txt
|
83
96
|
- README.rdoc
|
84
97
|
- Rakefile
|
85
98
|
- asset_booster.gemspec
|
@@ -128,31 +141,27 @@ files:
|
|
128
141
|
- spec/spec_helper.rb
|
129
142
|
- spec/view_helper_spec.rb
|
130
143
|
homepage: http://github.com/gucki/assets_booster
|
131
|
-
licenses:
|
132
|
-
|
144
|
+
licenses:
|
145
|
+
- MIT
|
146
|
+
metadata: {}
|
133
147
|
post_install_message:
|
134
148
|
rdoc_options: []
|
135
|
-
|
136
|
-
require_paths:
|
149
|
+
require_paths:
|
137
150
|
- lib
|
138
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: "0"
|
151
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - '>='
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
150
161
|
requirements: []
|
151
|
-
|
152
162
|
rubyforge_project: assets_booster
|
153
|
-
rubygems_version: 1.
|
163
|
+
rubygems_version: 2.1.11
|
154
164
|
signing_key:
|
155
|
-
specification_version:
|
165
|
+
specification_version: 4
|
156
166
|
summary: Assets (javascripts, css) compression for rails applications
|
157
167
|
test_files: []
|
158
|
-
|