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 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 [option] [FOLDER] [VERSION]
32
+ Usage: compressit -command [FILE/DIR]
34
33
 
35
- -h, --help Display this screen
36
- -v, --version Display current gem version
37
- -c, --css FOLDER VERSION Compress css files from [FOLDER] into [FOLDER]/compressed
38
- -j, --js FOLDER VERSION Compress javascript files from [FOLDER] into [FOLDER]/compressed
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 file in place') do |file|
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|
@@ -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 "Hmm... looks like this folder doesn't contain any #{options[:ext]} files."
39
+ rescue => exception
40
+ puts "Oops! #{exception}"
41
41
  end
42
42
  end
43
43
 
@@ -1,3 +1,3 @@
1
1
  module Compressit
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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: &70221588443380 !ruby/object:Gem::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: *70221588443380
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