fanart_api 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +65 -0
- data/Rakefile +1 -0
- data/fanart_api.gemspec +28 -0
- data/lib/fanart_api.rb +9 -0
- data/lib/fanart_api/base.rb +18 -0
- data/lib/fanart_api/client.rb +21 -0
- data/lib/fanart_api/configuration.rb +7 -0
- data/lib/fanart_api/movie.rb +10 -0
- data/lib/fanart_api/music.rb +12 -0
- data/lib/fanart_api/tv.rb +10 -0
- data/lib/fanart_api/version.rb +3 -0
- data/lib/generators/fanart_api/install_generator.rb +12 -0
- data/lib/generators/templates/fanart_api.rb +3 -0
- data/spec/fanart_api/base_spec.rb +27 -0
- data/spec/fanart_api/client_spec.rb +23 -0
- data/spec/fanart_api/movie_spec.rb +24 -0
- data/spec/fanart_api/music_spec.rb +42 -0
- data/spec/fanart_api/tv_spec.rb +24 -0
- data/spec/integration_spec_helper.rb +3 -0
- data/spec/integrations/movie_spec.rb +18 -0
- data/spec/integrations/music_spec.rb +30 -0
- data/spec/integrations/support/fanart_api.rb.example +3 -0
- data/spec/integrations/tv_spec.rb +18 -0
- data/spec/spec_helper.rb +13 -0
- metadata +167 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0cc51d31ba7daa204e738fa4f2b17b6a958aa2c3
|
4
|
+
data.tar.gz: e6f60127a92926645c8513b1e4413255ca6bff03
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a056d1dde47a823944baf30359604ae61988ccc431a650d0b0426ccc688c2277d6815e1abb98f04648c916753df606ba9545a4b3e2e3c075e7f8c7e9dd25133b
|
7
|
+
data.tar.gz: 31f209ac4d5de3b42bb9f310c6f0a63af832bc5d05cfcc77ed2f646e69b7b8e007d87289cf111f33ef9428ead5326cd6a04c64f2bf33d76c9ed55f26362e1a62
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Krzysztof Wawer
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/wafcio/fanart_api.png?branch=master)](https://travis-ci.org/wafcio/fanart_api)
|
2
|
+
[![Dependency Status](https://gemnasium.com/wafcio/fanart_api.png)](https://gemnasium.com/wafcio/fanart_api)
|
3
|
+
[![Code Climate](https://codeclimate.com/github/wafcio/fanart_api.png)](https://codeclimate.com/github/wafcio/fanart_api)
|
4
|
+
[![Coverage Status](https://coveralls.io/repos/wafcio/fanart_api/badge.png)](https://coveralls.io/r/wafcio/fanart_api)
|
5
|
+
|
6
|
+
# FanartApi
|
7
|
+
|
8
|
+
Ruby client for fanart.tv API
|
9
|
+
|
10
|
+
## Getting started
|
11
|
+
|
12
|
+
You can add it to your Gemfile with:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem 'fanart_api'
|
16
|
+
```
|
17
|
+
|
18
|
+
Run the bundle command to install it.
|
19
|
+
|
20
|
+
```console
|
21
|
+
rails generate fanart_api:install
|
22
|
+
```
|
23
|
+
|
24
|
+
The generator will install an initializer where you must past your api_key.
|
25
|
+
|
26
|
+
## How to use
|
27
|
+
|
28
|
+
There is one entry point, in initialize you can past hash with api_key value, or leave empty:
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
client = FanartApi::Client.new('API_KEY')
|
32
|
+
```
|
33
|
+
|
34
|
+
## Usage
|
35
|
+
|
36
|
+
Movie API
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
client.movie.find(id, type = 'all', sort = '1', limit = '2')
|
40
|
+
client.movie.update(timestamp)
|
41
|
+
```
|
42
|
+
|
43
|
+
Music API
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
client.music.artist(id, type = 'all', sort = '1', limit = '2')
|
47
|
+
client.music.album(id, type = 'all', sort = '1', limit = '2')
|
48
|
+
client.music.label(id, type = 'all', sort = '1', limit = '2')
|
49
|
+
client.music.update(timestamp)
|
50
|
+
```
|
51
|
+
|
52
|
+
Tv API
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
client.tv.find(id, type = 'all', sort = '1', limit = '2')
|
56
|
+
client.tv.update(timestamp)
|
57
|
+
```
|
58
|
+
|
59
|
+
## Contributing
|
60
|
+
|
61
|
+
1. Fork it
|
62
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
63
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
64
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
65
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/fanart_api.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'fanart_api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'fanart_api'
|
8
|
+
spec.version = FanartApi::VERSION
|
9
|
+
spec.authors = ['Krzysztof Wawer']
|
10
|
+
spec.email = ['krzysztof.wawer@gmail.com']
|
11
|
+
spec.description = %q{Ruby client for fanart.tv API}
|
12
|
+
spec.summary = %q{Ruby client for fanart.tv API}
|
13
|
+
spec.homepage = %q{http://github.com/wafcio/fanart_api}
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_runtime_dependency 'confiture', '>= 0.1.4'
|
22
|
+
spec.add_runtime_dependency 'httparty', '>= 0.12.0'
|
23
|
+
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
25
|
+
spec.add_development_dependency 'rake'
|
26
|
+
spec.add_development_dependency 'rspec', '>= 2.14.1'
|
27
|
+
spec.add_development_dependency 'coveralls', '>= 0.7'
|
28
|
+
end
|
data/lib/fanart_api.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
|
3
|
+
class FanartApi::Base
|
4
|
+
include HTTParty
|
5
|
+
base_uri 'http://api.fanart.tv/webservice//'
|
6
|
+
|
7
|
+
def initialize(client)
|
8
|
+
@client = client
|
9
|
+
end
|
10
|
+
|
11
|
+
def api_key
|
12
|
+
@client.api_key
|
13
|
+
end
|
14
|
+
|
15
|
+
def shared_uri(id, type, sort, limit)
|
16
|
+
"/#{api_key}/#{id}/json/#{type}/#{sort}/#{limit}"
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
|
3
|
+
class FanartApi::Client
|
4
|
+
attr_reader :api_key
|
5
|
+
|
6
|
+
def initialize(api_key = nil)
|
7
|
+
@api_key = api_key ? api_key : FanartApi::Configuration.api_key
|
8
|
+
end
|
9
|
+
|
10
|
+
def movie
|
11
|
+
@movie ||= FanartApi::Movie.new(self)
|
12
|
+
end
|
13
|
+
|
14
|
+
def music
|
15
|
+
@music ||= FanartApi::Music.new(self)
|
16
|
+
end
|
17
|
+
|
18
|
+
def tv
|
19
|
+
@tv ||= FanartApi::Tv.new(self)
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# documentation: http://fanart.tv/api-docs/movie-api
|
2
|
+
class FanartApi::Movie < FanartApi::Base
|
3
|
+
def find(id, type = 'all', sort = '1', limit = '2')
|
4
|
+
self.class.get("movie#{shared_uri(id, type, sort, limit)}")
|
5
|
+
end
|
6
|
+
|
7
|
+
def update(timestamp = (Time.now - 172800).to_i)
|
8
|
+
self.class.get("newmovies/#{api_key}/#{timestamp}")
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# documentation: http://fanart.tv/api-docs/music-api
|
2
|
+
class FanartApi::Music < FanartApi::Base
|
3
|
+
[:artist, :album, :label].each do |method_name|
|
4
|
+
define_method(method_name) do |id, type = 'all', sort = '1', limit = '2'|
|
5
|
+
self.class.get("#{method_name}#{shared_uri(id, type, sort, limit)}")
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
def update(timestamp = (Time.now - 172800).to_i)
|
10
|
+
self.class.get("newmusic/#{api_key}/#{timestamp}")
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# documentation: http://fanart.tv/api-docs/tv-api
|
2
|
+
class FanartApi::Tv < FanartApi::Base
|
3
|
+
def find(id, type = 'all', sort = '1', limit = '2')
|
4
|
+
self.class.get("series#{shared_uri(id, type, sort, limit)}")
|
5
|
+
end
|
6
|
+
|
7
|
+
def update(timestamp = (Time.now - 172800).to_i)
|
8
|
+
self.class.get("newtv/#{api_key}/#{timestamp}")
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module FanartApi
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path('../../templates', __FILE__)
|
5
|
+
|
6
|
+
desc 'Creates a FanartApi::Configuration initializer and copy locale files to your application.'
|
7
|
+
def copy_initializer
|
8
|
+
template 'fanart_api.rb', 'config/initializers/fanart_api.rb'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class ExampleClass < FanartApi::Base
|
4
|
+
end
|
5
|
+
|
6
|
+
describe FanartApi::Base do
|
7
|
+
let(:klass) { ExampleClass }
|
8
|
+
let(:model) { klass.new(FanartApi::Client.new) }
|
9
|
+
|
10
|
+
describe '.api_key' do
|
11
|
+
it 'should use default api_key' do
|
12
|
+
model.api_key.should == FanartApi::Configuration.api_key
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'should set api_key' do
|
16
|
+
klass.new(FanartApi::Client.new('API_KEY')).api_key.should == 'API_KEY'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe '.shared_uri' do
|
21
|
+
it 'should return correct string' do
|
22
|
+
model.stub(:api_key).and_return('API_KEY')
|
23
|
+
|
24
|
+
model.shared_uri('ID', 'TYPE', 'SORT', 'LIMIT').should == "/API_KEY/ID/json/TYPE/SORT/LIMIT"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FanartApi::Client do
|
4
|
+
let(:model) { FanartApi::Client.new }
|
5
|
+
|
6
|
+
describe '.movie' do
|
7
|
+
it 'should return movie class' do
|
8
|
+
model.movie.class.should == FanartApi::Movie
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '.music' do
|
13
|
+
it 'should return music class' do
|
14
|
+
model.music.class.should == FanartApi::Music
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '.tv' do
|
19
|
+
it 'should return tv class' do
|
20
|
+
model.tv.class.should == FanartApi::Tv
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FanartApi::Movie do
|
4
|
+
let(:klass) { FanartApi::Movie }
|
5
|
+
let(:model) { klass.new(FanartApi::Client.new) }
|
6
|
+
|
7
|
+
describe '.find' do
|
8
|
+
it 'should call get with specific uri' do
|
9
|
+
model.stub(:api_key).and_return('API_KEY')
|
10
|
+
klass.should_receive(:get).with('movie/API_KEY/1234/json/all/1/2')
|
11
|
+
|
12
|
+
model.find(1234)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '.update' do
|
17
|
+
it 'should call get with specific uri' do
|
18
|
+
model.stub(:api_key).and_return('API_KEY')
|
19
|
+
klass.should_receive(:get).with('newmovies/API_KEY/1234')
|
20
|
+
|
21
|
+
model.update(1234)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FanartApi::Music do
|
4
|
+
let(:klass) { FanartApi::Music }
|
5
|
+
let(:model) { klass.new(FanartApi::Client.new) }
|
6
|
+
|
7
|
+
describe '.artist' do
|
8
|
+
it 'should call get with specific uri' do
|
9
|
+
model.stub(:api_key).and_return('API_KEY')
|
10
|
+
klass.should_receive(:get).with('artist/API_KEY/1234/json/all/1/2')
|
11
|
+
|
12
|
+
model.artist(1234)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '.album' do
|
17
|
+
it 'should call get with specific uri' do
|
18
|
+
model.stub(:api_key).and_return('API_KEY')
|
19
|
+
klass.should_receive(:get).with('album/API_KEY/1234/json/all/1/2')
|
20
|
+
|
21
|
+
model.album(1234)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
describe '.label' do
|
26
|
+
it 'should call get with specific uri' do
|
27
|
+
model.stub(:api_key).and_return('API_KEY')
|
28
|
+
klass.should_receive(:get).with('label/API_KEY/1234/json/all/1/2')
|
29
|
+
|
30
|
+
model.label(1234)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe '.update' do
|
35
|
+
it 'should call get with specific uri' do
|
36
|
+
model.stub(:api_key).and_return('API_KEY')
|
37
|
+
klass.should_receive(:get).with('newmusic/API_KEY/1234')
|
38
|
+
|
39
|
+
model.update(1234)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FanartApi::Tv do
|
4
|
+
let(:klass) { FanartApi::Tv }
|
5
|
+
let(:model) { klass.new(FanartApi::Client.new) }
|
6
|
+
|
7
|
+
describe '.find' do
|
8
|
+
it 'should call get with specific uri' do
|
9
|
+
model.stub(:api_key).and_return('API_KEY')
|
10
|
+
klass.should_receive(:get).with('series/API_KEY/1234/json/all/1/2')
|
11
|
+
|
12
|
+
model.find(1234)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '.update' do
|
17
|
+
it 'should call get with specific uri' do
|
18
|
+
model.stub(:api_key).and_return('API_KEY')
|
19
|
+
klass.should_receive(:get).with('newtv/API_KEY/1234')
|
20
|
+
|
21
|
+
model.update(1234)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FanartApi::Movie do
|
4
|
+
let(:klass) { FanartApi::Movie }
|
5
|
+
let(:model) { klass.new(FanartApi::Client.new) }
|
6
|
+
|
7
|
+
describe '.find' do
|
8
|
+
it 'should return response class' do
|
9
|
+
model.find('tt0120737').class.should == HTTParty::Response
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe '.update' do
|
14
|
+
it 'should call get with specific uri' do
|
15
|
+
model.update.class.should == HTTParty::Response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FanartApi::Music do
|
4
|
+
let(:klass) { FanartApi::Music }
|
5
|
+
let(:model) { klass.new(FanartApi::Client.new) }
|
6
|
+
|
7
|
+
describe '.artist' do
|
8
|
+
it 'should return response class' do
|
9
|
+
model.artist('f4a31f0a-51dd-4fa7-986d-3095c40c5ed9').class.should == HTTParty::Response
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe '.album' do
|
14
|
+
it 'should return response class' do
|
15
|
+
model.album('f4a31f0a-51dd-4fa7-986d-3095c40c5ed9').class.should == HTTParty::Response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '.label' do
|
20
|
+
it 'should return response class' do
|
21
|
+
model.label('f4a31f0a-51dd-4fa7-986d-3095c40c5ed9').class.should == HTTParty::Response
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
describe '.update' do
|
26
|
+
it 'should call get with specific uri' do
|
27
|
+
model.update.class.should == HTTParty::Response
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FanartApi::Tv do
|
4
|
+
let(:klass) { FanartApi::Tv }
|
5
|
+
let(:model) { klass.new(FanartApi::Client.new) }
|
6
|
+
|
7
|
+
describe '.find' do
|
8
|
+
it 'should return response class' do
|
9
|
+
model.find('70346').class.should == HTTParty::Response
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe '.update' do
|
14
|
+
it 'should call get with specific uri' do
|
15
|
+
model.update.class.should == HTTParty::Response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fanart_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Krzysztof Wawer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: confiture
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.1.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.1.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: httparty
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.12.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.12.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.14.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.14.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: coveralls
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.7'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.7'
|
97
|
+
description: Ruby client for fanart.tv API
|
98
|
+
email:
|
99
|
+
- krzysztof.wawer@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- .gitignore
|
105
|
+
- .travis.yml
|
106
|
+
- Gemfile
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.md
|
109
|
+
- Rakefile
|
110
|
+
- fanart_api.gemspec
|
111
|
+
- lib/fanart_api.rb
|
112
|
+
- lib/fanart_api/base.rb
|
113
|
+
- lib/fanart_api/client.rb
|
114
|
+
- lib/fanart_api/configuration.rb
|
115
|
+
- lib/fanart_api/movie.rb
|
116
|
+
- lib/fanart_api/music.rb
|
117
|
+
- lib/fanart_api/tv.rb
|
118
|
+
- lib/fanart_api/version.rb
|
119
|
+
- lib/generators/fanart_api/install_generator.rb
|
120
|
+
- lib/generators/templates/fanart_api.rb
|
121
|
+
- spec/fanart_api/base_spec.rb
|
122
|
+
- spec/fanart_api/client_spec.rb
|
123
|
+
- spec/fanart_api/movie_spec.rb
|
124
|
+
- spec/fanart_api/music_spec.rb
|
125
|
+
- spec/fanart_api/tv_spec.rb
|
126
|
+
- spec/integration_spec_helper.rb
|
127
|
+
- spec/integrations/movie_spec.rb
|
128
|
+
- spec/integrations/music_spec.rb
|
129
|
+
- spec/integrations/support/fanart_api.rb.example
|
130
|
+
- spec/integrations/tv_spec.rb
|
131
|
+
- spec/spec_helper.rb
|
132
|
+
homepage: http://github.com/wafcio/fanart_api
|
133
|
+
licenses:
|
134
|
+
- MIT
|
135
|
+
metadata: {}
|
136
|
+
post_install_message:
|
137
|
+
rdoc_options: []
|
138
|
+
require_paths:
|
139
|
+
- lib
|
140
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
requirements: []
|
151
|
+
rubyforge_project:
|
152
|
+
rubygems_version: 2.0.0
|
153
|
+
signing_key:
|
154
|
+
specification_version: 4
|
155
|
+
summary: Ruby client for fanart.tv API
|
156
|
+
test_files:
|
157
|
+
- spec/fanart_api/base_spec.rb
|
158
|
+
- spec/fanart_api/client_spec.rb
|
159
|
+
- spec/fanart_api/movie_spec.rb
|
160
|
+
- spec/fanart_api/music_spec.rb
|
161
|
+
- spec/fanart_api/tv_spec.rb
|
162
|
+
- spec/integration_spec_helper.rb
|
163
|
+
- spec/integrations/movie_spec.rb
|
164
|
+
- spec/integrations/music_spec.rb
|
165
|
+
- spec/integrations/support/fanart_api.rb.example
|
166
|
+
- spec/integrations/tv_spec.rb
|
167
|
+
- spec/spec_helper.rb
|