ssimsort 0.1.2 → 0.1.3

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. checksums.yaml +4 -4
  2. data/lib/ssimsort.rb +1 -1
  3. data/ssimsort.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10d431e8500935fdccbe74748a66d5b13b87598e
4
- data.tar.gz: d52da45c3853fdd912d894ae3e6cbeb7f466a530
3
+ metadata.gz: 0d2cb4217d6141e0a77c7bba104575151eea0844
4
+ data.tar.gz: 6d5c5137dbc3c9abfe3d432076f40758db163238
5
5
  SHA512:
6
- metadata.gz: 09d028f5f857c36e889b3a2c5058bcf2c536ce50382001faa66c530e62dd3995fe43f10e3a01f9bb2ecc882bd7de05c3ccdb1a86d0d3e2ed2d25b0348d46aef5
7
- data.tar.gz: 73e7772ec22f89b64c0032381539391e50e448ac3aa5dd7ae37040f06f5a4327caf61648cedae2f9e5a23d30796535958cb0f9bf339ec13110638125dd87864b
6
+ metadata.gz: 378fa86ba675c020e3ceb786519cf35a01cedd6b6ca908f5642456cf4060c97e751de58c66cd068f2a30ee4ca912abfdc048718dc18b088ee3cb03ba3682524a
7
+ data.tar.gz: 12113ffe5100d222ca47565afa2642104745b912393ae187727cdd94a6c1705d7a10aaacf848e933e2caa6654d98efd7ac9b3306675d749913f51310bcc01f52
data/lib/ssimsort.rb CHANGED
@@ -45,7 +45,7 @@ module SsimSort
45
45
  simil = SsimSort.ssim(file1,file2)
46
46
  if simil < tolerance
47
47
  next
48
- else
48
+ elsif simil > tolerance
49
49
  FileUtils.makedirs(path) unless File.exists?(path)
50
50
  FileUtils.cp(file2,path)
51
51
  end
data/ssimsort.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ssimsort'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
  s.date = '2013-11-25'
5
5
  s.summary = "SsimSort"
6
6
  s.description = "Sort images easily by their similarity"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssimsort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Galaad Gauthier