movie_searcher 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +4 -1
- data/lib/movie_searcher.rb +1 -1
- data/movie_searcher.gemspec +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
movie_searcher (0.1.
|
4
|
+
movie_searcher (0.1.1)
|
5
5
|
httparty
|
6
6
|
levenshteinish
|
7
7
|
mimer_plus
|
@@ -42,5 +42,8 @@ DEPENDENCIES
|
|
42
42
|
autotest-fsevent
|
43
43
|
autotest-growl
|
44
44
|
autotest-standalone
|
45
|
+
httparty
|
46
|
+
levenshteinish
|
47
|
+
mimer_plus
|
45
48
|
movie_searcher!
|
46
49
|
rspec
|
data/lib/movie_searcher.rb
CHANGED
@@ -47,7 +47,7 @@ class MovieSearcher
|
|
47
47
|
# Makes sure that every directory looks the same, an raises an exception if the dir does not exist
|
48
48
|
folder_path = Dir.new(folder_path).path
|
49
49
|
|
50
|
-
%x{cd '#{folder_path}' && find #{folder_path} -maxdepth 4}.split(/\n/).each do |file|
|
50
|
+
%x{cd '#{folder_path}' && find '#{folder_path}' -maxdepth 4}.split(/\n/).each do |file|
|
51
51
|
# Locating every textfile in the directory
|
52
52
|
# We're hoping to find a nfo file
|
53
53
|
if Mimer.identify(file).text?
|
data/movie_searcher.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "movie_searcher"
|
6
|
-
s.version = "0.1.
|
6
|
+
s.version = "0.1.2"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Linus Oleander", "Jon Maddox"]
|
9
9
|
s.email = ["linus@oleander.nu", "jon@mustacheinc.com"]
|