compressit 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -45,6 +45,8 @@ Then do a bundle install:
45
45
  * Initially had the ability to specify a destination folder, may add this back if requested
46
46
  * Tests
47
47
  * One final pass of cleanup and refactoring
48
+ * Implement the ability to skip files in the compression process
49
+ * 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)
48
50
 
49
51
  == Copyright
50
52
 
@@ -18,8 +18,11 @@ module Compressit
18
18
  # compress each file in @files_to_compress and save the compressed file to @destination_path
19
19
  begin
20
20
  @files_to_compress.each do |file|
21
- `#{@java} -jar #{@yuicompressor} #{file} >> #{File.path(@destination_path)}/#{@compressed}`
22
- puts "Added: #{File.basename(file)}... \n"
21
+ puts "FILE: #{file}"
22
+ unless File.path(file).include?('compressed')
23
+ `#{@java} -jar #{@yuicompressor} #{file} >> #{File.path(@destination_path)}/#{@compressed}`
24
+ puts "Added: #{File.basename(file)}... \n"
25
+ end
23
26
  end
24
27
 
25
28
  # confirm compression and show destination path where file can be found
@@ -1,3 +1,3 @@
1
1
  module Compressit
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: compressit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.0
5
+ version: 1.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - sdomino
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-02 00:00:00 Z
13
+ date: 2011-08-03 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec