movie_searcher 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -4
- data/README.md +1 -1
- data/lib/movie_searcher.rb +1 -1
- data/movie_searcher.gemspec +1 -1
- metadata +5 -16
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
movie_searcher (0.0
|
4
|
+
movie_searcher (0.1.0)
|
5
5
|
httparty
|
6
6
|
levenshteinish
|
7
7
|
mimer_plus
|
@@ -42,8 +42,5 @@ DEPENDENCIES
|
|
42
42
|
autotest-fsevent
|
43
43
|
autotest-growl
|
44
44
|
autotest-standalone
|
45
|
-
httparty
|
46
|
-
levenshteinish
|
47
|
-
mimer_plus
|
48
45
|
movie_searcher!
|
49
46
|
rspec
|
data/README.md
CHANGED
@@ -43,6 +43,7 @@ Start `irb` and include the gem, `require 'movie_searcher'`
|
|
43
43
|
|
44
44
|
$ MovieSearcher.find_by_folder('~/Downloads/Its.Kind.of.a.Funny.Story.2010.DVDRip.XviD-AMIABLE')
|
45
45
|
=> #<ImdbParty::Movie:0x10198a060 ... >
|
46
|
+
|
46
47
|
### Find a movie based on a file containing and imdb link
|
47
48
|
|
48
49
|
This method does not take any folder that starts with tilde **~** sign.
|
@@ -59,7 +60,6 @@ If no link or no files are found, it will fall back on the name of the folder.
|
|
59
60
|
$ MovieSearcher.find_by_download('/Users/linus/Downloads/some_thing_unknown')
|
60
61
|
=> #<ImdbParty::Movie:0x10198a060 ... >
|
61
62
|
|
62
|
-
|
63
63
|
### Find the top 250 movies of all time
|
64
64
|
|
65
65
|
$ MovieSearcher.top_250
|
data/lib/movie_searcher.rb
CHANGED
@@ -63,7 +63,7 @@ class MovieSearcher
|
|
63
63
|
# Try to figure out what method to use, folder or file
|
64
64
|
def self.find_by_download(unknown)
|
65
65
|
unknown = self.relative?(unknown)
|
66
|
-
File.directory?(unknown) ? self.find_by_folder(unknown) : self.
|
66
|
+
File.directory?(unknown) ? self.find_by_folder(unknown) : self.find_by_release_name(File.split(unknown).last)
|
67
67
|
end
|
68
68
|
|
69
69
|
# Returns the full path of the file/folder
|
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.1"
|
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"]
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: movie_searcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Linus Oleander
|
@@ -16,7 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-03 00:00:00 +01:00
|
20
19
|
default_executable:
|
21
20
|
dependencies:
|
22
21
|
- !ruby/object:Gem::Dependency
|
@@ -27,7 +26,6 @@ dependencies:
|
|
27
26
|
requirements:
|
28
27
|
- - ">="
|
29
28
|
- !ruby/object:Gem::Version
|
30
|
-
hash: 3
|
31
29
|
segments:
|
32
30
|
- 0
|
33
31
|
version: "0"
|
@@ -41,7 +39,6 @@ dependencies:
|
|
41
39
|
requirements:
|
42
40
|
- - ">="
|
43
41
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 3
|
45
42
|
segments:
|
46
43
|
- 0
|
47
44
|
version: "0"
|
@@ -55,7 +52,6 @@ dependencies:
|
|
55
52
|
requirements:
|
56
53
|
- - ">="
|
57
54
|
- !ruby/object:Gem::Version
|
58
|
-
hash: 3
|
59
55
|
segments:
|
60
56
|
- 0
|
61
57
|
version: "0"
|
@@ -69,7 +65,6 @@ dependencies:
|
|
69
65
|
requirements:
|
70
66
|
- - ">="
|
71
67
|
- !ruby/object:Gem::Version
|
72
|
-
hash: 3
|
73
68
|
segments:
|
74
69
|
- 0
|
75
70
|
version: "0"
|
@@ -83,7 +78,6 @@ dependencies:
|
|
83
78
|
requirements:
|
84
79
|
- - ">="
|
85
80
|
- !ruby/object:Gem::Version
|
86
|
-
hash: 3
|
87
81
|
segments:
|
88
82
|
- 0
|
89
83
|
version: "0"
|
@@ -97,7 +91,6 @@ dependencies:
|
|
97
91
|
requirements:
|
98
92
|
- - ">="
|
99
93
|
- !ruby/object:Gem::Version
|
100
|
-
hash: 3
|
101
94
|
segments:
|
102
95
|
- 0
|
103
96
|
version: "0"
|
@@ -111,7 +104,6 @@ dependencies:
|
|
111
104
|
requirements:
|
112
105
|
- - ">="
|
113
106
|
- !ruby/object:Gem::Version
|
114
|
-
hash: 3
|
115
107
|
segments:
|
116
108
|
- 0
|
117
109
|
version: "0"
|
@@ -125,7 +117,6 @@ dependencies:
|
|
125
117
|
requirements:
|
126
118
|
- - ">="
|
127
119
|
- !ruby/object:Gem::Version
|
128
|
-
hash: 3
|
129
120
|
segments:
|
130
121
|
- 0
|
131
122
|
version: "0"
|
@@ -194,7 +185,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
194
185
|
requirements:
|
195
186
|
- - ">="
|
196
187
|
- !ruby/object:Gem::Version
|
197
|
-
hash: 3
|
198
188
|
segments:
|
199
189
|
- 0
|
200
190
|
version: "0"
|
@@ -203,14 +193,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
193
|
requirements:
|
204
194
|
- - ">="
|
205
195
|
- !ruby/object:Gem::Version
|
206
|
-
hash: 3
|
207
196
|
segments:
|
208
197
|
- 0
|
209
198
|
version: "0"
|
210
199
|
requirements: []
|
211
200
|
|
212
201
|
rubyforge_project:
|
213
|
-
rubygems_version: 1.
|
202
|
+
rubygems_version: 1.3.7
|
214
203
|
signing_key:
|
215
204
|
specification_version: 3
|
216
205
|
summary: IMDB client using the IMDB API that their iPhone app uses
|