image_optim_tolerance 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc3fcc0b514deaa80ade949a9ac3d9ba7425eefa
4
- data.tar.gz: 20aa1f1e9cb06a616f489f56dcc465146a8056be
3
+ metadata.gz: dd2d9d20f3bde52528b728e2e6376950fac76a8e
4
+ data.tar.gz: 1805f05f83fd76aa1d2ecbb9601612a07662513f
5
5
  SHA512:
6
- metadata.gz: 7c7b0ae401482f733fd5cecc3abc023c37222106353e17702cfbd1e5423ffdfd0324138821fb6447ddfc819ef7a45c4d93ad43f724c4c18e8e13d2666c32c3d5
7
- data.tar.gz: 468ec21bfd083103f71596e494ec44695c184a415213a67a8ad02c995fc63451632833c18093ad814059112c8328722034e47bc610f3a6e350c13c9511aadc44
6
+ metadata.gz: bd4acbd2459c8d9b8de991504a75e3190cfa0dbef36545a84e0f6e94d7b239199a87828335f850c95c3795ad6fee1bae505fcb2c7e213aabd5df951bf2f7dbf1
7
+ data.tar.gz: 688e7833fdc7279f4d0e3e4f6bba059878931cc383c49fc51036797a372852afd337196b8829119589631c029b43196e52b9a64350dcefe5a96e6698c8842965
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -31,6 +31,11 @@ opts = OptionParser.new do |opts|
31
31
  options[:verbose] = v
32
32
  end
33
33
 
34
+ opts.on("--version", "print the version") do |v|
35
+ puts ImageOptimTolerance::VERSION
36
+ exit
37
+ end
38
+
34
39
  opts.on('-h', '--help', 'shows this help message') do
35
40
  puts opts
36
41
  exit
@@ -3,6 +3,8 @@ require 'image_optim'
3
3
 
4
4
  class ImageOptimTolerance
5
5
 
6
+ VERSION = File.read(File.join(File.dirname(__FILE__), "..", "..", "VERSION")).strip
7
+
6
8
  attr_accessor :options
7
9
 
8
10
  def initialize(options = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_optim_tolerance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene ONeill