movies 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.rspec +5 -0
- data/Gemfile +4 -0
- data/README.md +102 -0
- data/Rakefile +2 -0
- data/lib/movies.rb +124 -0
- data/lib/movies/exclude.yml +22 -0
- data/movies.gemspec +29 -0
- data/spec/fixtures/vcr_cassettes/bug1.yml +54 -0
- data/spec/fixtures/vcr_cassettes/not_found.yml +93 -0
- data/spec/fixtures/vcr_cassettes/true-grit-1969.yml +215 -0
- data/spec/fixtures/vcr_cassettes/true-grit-2010.yml +109 -0
- data/spec/fixtures/vcr_cassettes/tt0066026.yml +157 -0
- data/spec/fixtures/vcr_cassettes/tt0337978.yml +113 -0
- data/spec/fixtures/vcr_cassettes/tt1285016.yml +203 -0
- data/spec/movies_spec.rb +145 -0
- data/spec/spec_helper.rb +19 -0
- metadata +135 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require "rspec"
|
2
|
+
require "webmock/rspec"
|
3
|
+
require "movies"
|
4
|
+
require "vcr"
|
5
|
+
require "uri"
|
6
|
+
|
7
|
+
RSpec.configure do |config|
|
8
|
+
config.mock_with :rspec
|
9
|
+
config.extend VCR::RSpec::Macros
|
10
|
+
end
|
11
|
+
|
12
|
+
VCR.config do |c|
|
13
|
+
c.cassette_library_dir = "spec/fixtures/vcr_cassettes"
|
14
|
+
c.stub_with :webmock
|
15
|
+
c.default_cassette_options = {
|
16
|
+
record: :none
|
17
|
+
}
|
18
|
+
c.allow_http_connections_when_no_cassette = false
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: movies
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.1
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Linus Oleander
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-04-30 00:00:00 +02:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rest-client
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0"
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: "0"
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: vcr
|
40
|
+
prerelease: false
|
41
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: "0"
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rspec
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: "0"
|
58
|
+
type: :development
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: webmock
|
62
|
+
prerelease: false
|
63
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: "0"
|
69
|
+
type: :development
|
70
|
+
version_requirements: *id005
|
71
|
+
description: Movies is the bridge between IMDb's unofficial API; imdbapi.com and Ruby
|
72
|
+
email:
|
73
|
+
- linus@oleander.nu
|
74
|
+
executables: []
|
75
|
+
|
76
|
+
extensions: []
|
77
|
+
|
78
|
+
extra_rdoc_files: []
|
79
|
+
|
80
|
+
files:
|
81
|
+
- .gitignore
|
82
|
+
- .rspec
|
83
|
+
- Gemfile
|
84
|
+
- README.md
|
85
|
+
- Rakefile
|
86
|
+
- lib/movies.rb
|
87
|
+
- lib/movies/exclude.yml
|
88
|
+
- movies.gemspec
|
89
|
+
- spec/fixtures/vcr_cassettes/bug1.yml
|
90
|
+
- spec/fixtures/vcr_cassettes/not_found.yml
|
91
|
+
- spec/fixtures/vcr_cassettes/true-grit-1969.yml
|
92
|
+
- spec/fixtures/vcr_cassettes/true-grit-2010.yml
|
93
|
+
- spec/fixtures/vcr_cassettes/tt0066026.yml
|
94
|
+
- spec/fixtures/vcr_cassettes/tt0337978.yml
|
95
|
+
- spec/fixtures/vcr_cassettes/tt1285016.yml
|
96
|
+
- spec/movies_spec.rb
|
97
|
+
- spec/spec_helper.rb
|
98
|
+
has_rdoc: true
|
99
|
+
homepage: https://github.com/oleander/Movies
|
100
|
+
licenses: []
|
101
|
+
|
102
|
+
post_install_message:
|
103
|
+
rdoc_options: []
|
104
|
+
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ~>
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.9.0
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: "0"
|
119
|
+
requirements: []
|
120
|
+
|
121
|
+
rubyforge_project: movies
|
122
|
+
rubygems_version: 1.6.2
|
123
|
+
signing_key:
|
124
|
+
specification_version: 3
|
125
|
+
summary: Movies is the bridge between IMDb's unofficial API; imdbapi.com and Ruby.
|
126
|
+
test_files:
|
127
|
+
- spec/fixtures/vcr_cassettes/bug1.yml
|
128
|
+
- spec/fixtures/vcr_cassettes/not_found.yml
|
129
|
+
- spec/fixtures/vcr_cassettes/true-grit-1969.yml
|
130
|
+
- spec/fixtures/vcr_cassettes/true-grit-2010.yml
|
131
|
+
- spec/fixtures/vcr_cassettes/tt0066026.yml
|
132
|
+
- spec/fixtures/vcr_cassettes/tt0337978.yml
|
133
|
+
- spec/fixtures/vcr_cassettes/tt1285016.yml
|
134
|
+
- spec/movies_spec.rb
|
135
|
+
- spec/spec_helper.rb
|