ssimsort 0.0.6 → 0.0.7

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: 6a7f2b501b7e83d274cd636a5e9738e104cfc118
4
- data.tar.gz: 7b096764509134362572baddb54898f6ce9c6b1f
3
+ metadata.gz: bbd4f2754c48cc7a05aff6e295aac382ee29fed3
4
+ data.tar.gz: 3e68fedb538b241a289032961c47f96d9859292c
5
5
  SHA512:
6
- metadata.gz: 7ace9c47e5403c3482283688c0f4088b61cc1a2e5f998924492ff372e3be6643b0c4f67f3f6c6df3e538e1780fc017fc2222cae38fd2699b75ba63570f6ee645
7
- data.tar.gz: a6a67c7a629b7c566ef2bad8af179c6a73e19cb29a3223050a4484e671bae073cece1f3356b5efabda72091fa04e4ed04cb6f2cb8dce659410e110dcebd0b42d
6
+ metadata.gz: 6c6a59fb9462436c87582722d96bfc26e00d9ef037651622219e5323eafeea1d65f6553cc7d7e11725b56e53ed8035d1334d42e714fc4ce051d88d1bb29b2350
7
+ data.tar.gz: 91c2c5c6b15c00ef6c5011001c6901f475586a7dfecfb458d237199f6fe858816cae23d135751e1820dc82cd156ad05c37e29a386b4fe166d09557b6ebc12399
data/lib/ssimsort.rb CHANGED
@@ -37,7 +37,7 @@ module SsimSort
37
37
  def SsimSort.sort(input_path,output_path,tolerance=0.8)
38
38
  formats = /(.jpg$|.png$|.JPG$|.jpeg$|.PNG$|.gif$|.bmp$|.BMP$)/
39
39
  files = Dir.entries(input_path).map {|file| File.absolute_path("#{input_path}/#{file}")}
40
- files.pop(2) #Remove . and ..
40
+ files.shift(2) #Remove . and ..
41
41
  files.select!{|f| formats=~ f}
42
42
  set = files.combination(2).to_a
43
43
  set.each do |file1,file2|
data/ssimsort.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ssimsort'
3
- s.version = '0.0.6'
3
+ s.version = '0.0.7'
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.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Galaad Gauthier