osdb 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/osdb/movie.rb +1 -1
- data/lib/osdb/version.rb +1 -1
- data/spec/osdb/server_spec.rb +7 -6
- metadata +34 -50
- data/VERSION +0 -1
data/lib/osdb/movie.rb
CHANGED
data/lib/osdb/version.rb
CHANGED
data/spec/osdb/server_spec.rb
CHANGED
@@ -52,7 +52,10 @@ describe OSDb::Server do
|
|
52
52
|
"MovieYear" => "1996",
|
53
53
|
"MovieImdbID" => "0117500",
|
54
54
|
"MovieName" => "The Rock",
|
55
|
-
"MovieHash" => "37d0c7d0cfcbe280"
|
55
|
+
"MovieHash" => "37d0c7d0cfcbe280",
|
56
|
+
"MovieKind" => "movie",
|
57
|
+
"SeriesSeason" => "0",
|
58
|
+
"SeriesEpisode" => "0"
|
56
59
|
}
|
57
60
|
}
|
58
61
|
end
|
@@ -67,7 +70,7 @@ describe OSDb::Server do
|
|
67
70
|
subs.length.should >= 2
|
68
71
|
subs.each do |sub|
|
69
72
|
sub.language.name.should == 'French'
|
70
|
-
sub.raw_data['MovieName'].should
|
73
|
+
sub.raw_data['MovieName'].should =~ /How I Met Your Mother/
|
71
74
|
end
|
72
75
|
end
|
73
76
|
|
@@ -85,11 +88,9 @@ describe OSDb::Server do
|
|
85
88
|
|
86
89
|
describe "#search_imdb" do
|
87
90
|
it "can search imdb by title" do
|
88
|
-
imdb = subject.search_imdb(:query => "
|
89
|
-
imdb.length.should == 1
|
91
|
+
imdb = subject.search_imdb(:query => "Troy")
|
90
92
|
imdb.each do |movie|
|
91
|
-
movie.
|
92
|
-
movie.title.should == 'How I Met Your Mother'
|
93
|
+
movie.title.should =~ /Troy/
|
93
94
|
end
|
94
95
|
end
|
95
96
|
end
|
metadata
CHANGED
@@ -1,50 +1,40 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: osdb
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 7
|
9
|
-
version: 0.0.7
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.8
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Jean Boussier
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-07-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rspec
|
22
|
-
|
23
|
-
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 0
|
29
|
-
version: "0"
|
16
|
+
requirement: &70248633031580 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
30
22
|
type: :development
|
31
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70248633031580
|
32
25
|
description:
|
33
|
-
email:
|
26
|
+
email:
|
34
27
|
- jean.boussier @nospam@ gmail.com
|
35
|
-
executables:
|
28
|
+
executables:
|
36
29
|
- getsub
|
37
30
|
extensions: []
|
38
|
-
|
39
31
|
extra_rdoc_files: []
|
40
|
-
|
41
|
-
files:
|
32
|
+
files:
|
42
33
|
- .gitignore
|
43
34
|
- .rspec
|
44
35
|
- Gemfile
|
45
36
|
- README.md
|
46
37
|
- Rakefile
|
47
|
-
- VERSION
|
48
38
|
- bin/getsub
|
49
39
|
- lib/osdb.rb
|
50
40
|
- lib/osdb/language.rb
|
@@ -59,37 +49,31 @@ files:
|
|
59
49
|
- spec/osdb/server_spec.rb
|
60
50
|
- spec/osdb/sub_spec.rb
|
61
51
|
- spec/spec_helper.rb
|
62
|
-
has_rdoc: true
|
63
52
|
homepage: http://github.com/byroot/ruby-osdb
|
64
53
|
licenses: []
|
65
|
-
|
66
54
|
post_install_message:
|
67
55
|
rdoc_options: []
|
68
|
-
|
69
|
-
require_paths:
|
56
|
+
require_paths:
|
70
57
|
- lib
|
71
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
requirements:
|
80
|
-
- -
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
|
83
|
-
- 0
|
84
|
-
version: "0"
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
85
70
|
requirements: []
|
86
|
-
|
87
71
|
rubyforge_project: osdb
|
88
|
-
rubygems_version: 1.
|
72
|
+
rubygems_version: 1.8.15
|
89
73
|
signing_key:
|
90
74
|
specification_version: 3
|
91
75
|
summary: Ruby library to access OSDb services like OpenSubtitles.org
|
92
|
-
test_files:
|
76
|
+
test_files:
|
93
77
|
- spec/fixtures/somemovie.avi
|
94
78
|
- spec/osdb/language_spec.rb
|
95
79
|
- spec/osdb/movie_spec.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.0.6
|