jpreg 0.3 → 0.4

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.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/bin/jpreg +2 -2
  3. data/jpreg.gemspec +1 -1
  4. metadata +1 -1
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ def name
13
13
  end
14
14
 
15
15
  def version
16
- "0.3"
16
+ "0.4"
17
17
  end
18
18
 
19
19
  def date
data/bin/jpreg CHANGED
@@ -13,7 +13,7 @@ options = {
13
13
  }
14
14
 
15
15
  parser = OptionParser.new do |opts|
16
- opts.version = "0.3"
16
+ opts.version = "0.4"
17
17
  opts.banner = "Usage: jpreg [-h] [-o /path/to/output] [-q] [-v] FILE"
18
18
 
19
19
  opts.separator ""
@@ -80,7 +80,7 @@ end
80
80
  options[:times].to_i.times do
81
81
 
82
82
  cmd = ["convert"]
83
- cmd << "-quality" << options[:quality].to_s
83
+ cmd << "-quality" << (options[:quality].to_i + (-5..5).to_a.shuffle.first).to_s
84
84
  cmd << File.join(path, "#{modified_base_name}.tiff")
85
85
  cmd << File.join(path, "#{modified_base_name}.jpg")
86
86
 
data/jpreg.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'jpreg'
16
- s.version = '0.3'
16
+ s.version = '0.4'
17
17
  s.date = '2013-04-16'
18
18
  # s.rubyforge_project = 'jpreg'
19
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpreg
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: