jzajpt-css_compressor 0.1.1 → 0.1.2

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/bin/csscomp CHANGED
@@ -4,10 +4,12 @@ require 'css_compressor'
4
4
 
5
5
  def usage
6
6
  puts "Usage: csscomp <css-file>"
7
+ exit
7
8
  end
8
9
 
9
10
  input_file = ARGV[0]
10
11
  usage if input_file.nil?
12
+
11
13
  csscomp = CssCompressor.new(input_file)
12
14
  csscomp.compress!
13
15
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "css_compressor"
3
- s.version = "0.1.1"
3
+ s.version = "0.1.2"
4
4
  s.date = "2009-01-27"
5
5
  s.summary = "CSS compressor library."
6
6
  s.email = "jzajpt@blueberry.cz"
@@ -4,7 +4,7 @@ require 'fileutils'
4
4
 
5
5
  describe CssCompressor, "working with file" do
6
6
  before(:all) do
7
- @hash = Digest::SHA1.hexdigest("#{Time.now.to_s}")
7
+ @hash = Digest::SHA1.hexdigest("#{Time.now.to_s}--#{rand}")
8
8
  @content = <<-EOF
9
9
  test
10
10
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jzajpt-css_compressor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiri Zajpt