compressit 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +8 -6
- data/lib/compressit/base.rb +3 -0
- data/lib/compressit/version.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -5,7 +5,9 @@ Compressit provides a simple way to compress your project .css and .js files to
|
|
5
5
|
== Features
|
6
6
|
|
7
7
|
* Command Line Input (CLI)
|
8
|
-
*
|
8
|
+
* Reduce filesize of all css/js files
|
9
|
+
* Reduces number of necissary requests to servers for assets
|
10
|
+
* Support for single or multiple file compression
|
9
11
|
|
10
12
|
== Install
|
11
13
|
|
@@ -31,10 +33,10 @@ Then do a bundle install:
|
|
31
33
|
|
32
34
|
Usage: compressit -command [FILE/DIR]
|
33
35
|
|
34
|
-
-h, --help
|
35
|
-
-v, --
|
36
|
-
-f, --file FILE
|
37
|
-
-F, --files DIR
|
36
|
+
-h, --help Display this help
|
37
|
+
-v, --version Display current gem version
|
38
|
+
-f, --file FILE Compress FILE in place
|
39
|
+
-F, --files DIR Compress files from [DIR] into [DIR]/compressed
|
38
40
|
|
39
41
|
---
|
40
42
|
|
@@ -43,7 +45,7 @@ Then do a bundle install:
|
|
43
45
|
* May add a better versioning system
|
44
46
|
* Initially had the ability to specify a destination folder, may add this back if requested
|
45
47
|
* Tests
|
46
|
-
* [
|
48
|
+
* [X]One final pass of cleanup and refactoring
|
47
49
|
* Implement the ability to skip files in the compression process
|
48
50
|
* It would be awesome if it could replace all your current css/js calls with itself so you didn't have to (we'll see about this)
|
49
51
|
|
data/lib/compressit/base.rb
CHANGED
@@ -38,6 +38,9 @@ module Compressit
|
|
38
38
|
puts "Complete! Compressed #{options[:ext]} file '#{compressed}', can be found in '#{File.dirname(destination_path)}'"
|
39
39
|
rescue => exception
|
40
40
|
puts "Oops! #{exception}"
|
41
|
+
exception.backtrace.each do |trace|
|
42
|
+
puts "#{trace} \n"
|
43
|
+
end
|
41
44
|
end
|
42
45
|
end
|
43
46
|
|
data/lib/compressit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compressit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
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: 2011-09-
|
12
|
+
date: 2011-09-13 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70334859008260 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70334859008260
|
25
25
|
description: Compressit uses the yuicompressor-2.4.6.jar java file created by Yahoo
|
26
26
|
to compress all of your .css and .js files into single compressed files respectively.
|
27
27
|
This not only reduces the size of your files, but also results in less http requests
|