aniview 2.1.1 → 2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a025456a77985e11e8c3035e761ac60d314220f3
4
- data.tar.gz: 4264e2fae7faa6a332b1cce3236507e48104689b
3
+ metadata.gz: 6824d7f28e7bebe026f0081c09d7442e99d50e64
4
+ data.tar.gz: e645a210dcd58f0d039430e64ffd9b9254a4cbe0
5
5
  SHA512:
6
- metadata.gz: fb0a60da180b8df0dd7baa91bec606cf77f54ae42dc94f8ffd8894c35be5abb12007ad606d539c6126fae8e984bfb424862c13bab25073a50d9de5c0b563de40
7
- data.tar.gz: a99222c8db16926f86ebbb2d0e1e8632a667f9e011ab5bd1c478e0384d8c85e49270fc87fae6c6cec2c7ac8f016813422870ee53930d953640c0188de5c6b0b4
6
+ metadata.gz: dad87f8040707a9718894b85f4ab715b20d38947a3c6007a61b8bdbfe4718c430ce13ec80c5d54398a58fa5813927d88547509b4e43f6c0bc1feb468429b0434
7
+ data.tar.gz: 865b2b9710b445419ae625aa8ad9b95703ea1e9edecd148e5b55df6fc95e5848cb110ca56e231c496371c5704a25b4fdb140961b1cdf1950b0e8db2bd763d874
@@ -44,6 +44,8 @@ module Aniview
44
44
  (@pref.get("anime_locations").split(":")).each { |dir|
45
45
 
46
46
  dir = @pref.parseDir dir
47
+ dir += "/" if dir[-1] != "/"
48
+
47
49
  dir_mtime = File::Stat.new(dir).mtime
48
50
 
49
51
  if @dir_last_modified.key? dir
@@ -57,9 +59,6 @@ module Aniview
57
59
  @dir_last_modified.merge!(dir => dir_mtime)
58
60
  end
59
61
 
60
- # puts "not skipping..."
61
- #p @dir_last_modified
62
-
63
62
  files = Dir.glob("#{dir}*/*.{mkv,avi,mp4}") + Dir.glob("#{dir}/*.{mkv,avi,mp4}")
64
63
 
65
64
  files.each { |file|
@@ -29,8 +29,6 @@ module Aniview
29
29
  path = path.gsub("$conf_dir", @pref["conf_dir"])
30
30
  path = path.gsub("~", Dir.home)
31
31
 
32
- path += "/" if path[-1] != "/"
33
-
34
32
  return path
35
33
  end
36
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aniview
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - annacrombie