propre 0.1.0 → 0.1.1

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: 32f0c4169afcfc915cc3b04c3401afdbd9690105
4
- data.tar.gz: db6ecfc029dcc06d7a7b6c4087d8c68eabaa31c3
3
+ metadata.gz: e8d4f8827aec0bc2ce9ff3581aa69e2b46973790
4
+ data.tar.gz: a7a6f9ec7d86dac0d7344e5666189e305bbf0fdf
5
5
  SHA512:
6
- metadata.gz: eb04ca6a71b743ddd68e56c2917a440f375884f0b9c097d4e1c8fa4cfdfe81ff7594e65fad3f46217795a3d72a7e6b08c8d3128bbb9e6155249b9d4aa70bc503
7
- data.tar.gz: c6acdecc5c94cbd0e862a88d2c66009de7bfad7a087153cbc4849f549e5c3c3f33dab4c54f24fae149c3a9d32937284b498d24d1e45aa47611b934cd8aa337bb
6
+ metadata.gz: fd7ceed35a8411953d75aa74a088349c16649786b4ad4fb933cf247792665e8896deac8d9bd4855f85cdf12260be6d14b0a4f188057620cda4b572cf560115dc
7
+ data.tar.gz: b56cfb345dd0888fa1ecfe176757bd0ce3a9967db5c38508b9836a786e77276c047f484d6e59563f77d1468e075b5536b27d63acafb59e9cda264411b0b68f4c
data/README.md CHANGED
@@ -30,19 +30,17 @@ To use Propre, you need an API Key from TheMovieDB. Get your API key [here](http
30
30
 
31
31
  ##Changelog
32
32
 
33
+ ### 0.1.1
34
+
35
+ - Fix bug when no movie was found
36
+ - Fix wording
37
+
33
38
  ### 0.1.0
34
39
 
35
40
  - The first result is now the best match in the list (using similar_text)
36
41
  - Results are now ordered by release date
37
42
  - Extensions are now in lowercase when renaming (.AVI,.Avi -> .avi)
38
43
 
39
- ### 0.0.8
40
-
41
- - Add version and usage params
42
- - Fix: Create config directory if not present
43
- - Fix: Wording
44
- - Better errors handling
45
-
46
44
  Disclaimer
47
45
  ----------
48
46
 
data/bin/propre CHANGED
@@ -50,13 +50,15 @@ def main(options)
50
50
  else
51
51
  propre = Propre.new(options)
52
52
  if File.directory?(ARGV[0])
53
- puts "Searching for movies title..."
53
+ puts "Searching for movies in directory..."
54
54
  propre.crawlDirectory(ARGV[0])
55
55
  end
56
56
 
57
57
  if File.file?(ARGV[0])
58
58
  puts "Searching for movie title..."
59
- propre.searchMovieFromFile(ARGV[0])
59
+ if !propre.searchMovieFromFile(ARGV[0])
60
+ puts "No movie found for #{ARGV[0]}"
61
+ end
60
62
  end
61
63
  end
62
64
  end
@@ -1,3 +1,3 @@
1
1
  module Version
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/propre.rb CHANGED
@@ -51,6 +51,7 @@ class Propre
51
51
  abort("Error: Did you set you're API Key ? (401)")
52
52
  end
53
53
  end
54
+ if @movies.empty? then return false end
54
55
  @movies = @movies.sort { |a,b| b.release_date <=> a.release_date }
55
56
  movie = @movies.max_by {|v| filename.similar(v.title)}
56
57
  @movies.delete(@movies.index(movie))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propre
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Yadomi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-02 00:00:00.000000000 Z
11
+ date: 2015-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parseconfig