compressit 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -7
- data/lib/compressit.rb +1 -1
- data/lib/compressit/base.rb +2 -2
- data/lib/compressit/version.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -6,7 +6,6 @@ Compressit provides a simple way to compress your project .css and .js files to
|
|
6
6
|
|
7
7
|
* Command Line Input (CLI)
|
8
8
|
* Rake tasks (discontinued)
|
9
|
-
* Thor tasks (discontinued)
|
10
9
|
|
11
10
|
== Install
|
12
11
|
|
@@ -30,12 +29,12 @@ Then do a bundle install:
|
|
30
29
|
|
31
30
|
== Usage
|
32
31
|
|
33
|
-
Usage: compressit
|
32
|
+
Usage: compressit -command [FILE/DIR]
|
34
33
|
|
35
|
-
-h, --help
|
36
|
-
-v, --
|
37
|
-
-
|
38
|
-
-
|
34
|
+
-h, --help Display this help
|
35
|
+
-v, --versioning Display current gem version
|
36
|
+
-f, --file FILE Compress FILE in place
|
37
|
+
-F, --files DIR Compress files from [DIR] into [DIR]/compressed
|
39
38
|
|
40
39
|
---
|
41
40
|
|
@@ -44,7 +43,7 @@ Then do a bundle install:
|
|
44
43
|
* May add a better versioning system
|
45
44
|
* Initially had the ability to specify a destination folder, may add this back if requested
|
46
45
|
* Tests
|
47
|
-
* One final pass of cleanup and refactoring
|
46
|
+
* [complete] One final pass of cleanup and refactoring
|
48
47
|
* Implement the ability to skip files in the compression process
|
49
48
|
* 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)
|
50
49
|
|
data/lib/compressit.rb
CHANGED
@@ -17,7 +17,7 @@ module Compressit
|
|
17
17
|
opts.on('-v', '--version', 'Display current gem version') do
|
18
18
|
puts "Compressit-#{VERSION}"
|
19
19
|
end
|
20
|
-
opts.on('-f', '--file FILE', 'Compress
|
20
|
+
opts.on('-f', '--file FILE', 'Compress FILE in place') do |file|
|
21
21
|
prepare(file)
|
22
22
|
end
|
23
23
|
opts.on('-F', '--files DIR', 'Compress files from [DIR] into [DIR]/compressed') do |dir|
|
data/lib/compressit/base.rb
CHANGED
@@ -36,8 +36,8 @@ module Compressit
|
|
36
36
|
|
37
37
|
# confirm compression and show destination path where file can be found
|
38
38
|
puts "Complete! Compressed #{options[:ext]} file '#{compressed}', can be found in '#{File.dirname(destination_path)}'"
|
39
|
-
rescue
|
40
|
-
puts "
|
39
|
+
rescue => exception
|
40
|
+
puts "Oops! #{exception}"
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
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.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-09-09 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70312805976020 !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: *70312805976020
|
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
|