comer_de_tapas 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/lib/comer_de_tapas/client.rb +2 -2
- data/lib/comer_de_tapas/version.rb +1 -1
- data/test/test_helper.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bffe960a14d00a4e709f83f73a18c92eb24ac2c
|
4
|
+
data.tar.gz: af4c448c8ff3b9fa99dafbd65bb2022d7dd6e343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b549581031583ec8ad878d7fb743318aa569f69af8e8212a4d451dcd6c4a252f0ebbb1ba3d8cf1e5e2b0b0c1f959537405227af6414d1f808a56d9244090b8b4
|
7
|
+
data.tar.gz: f240419d5b141823ca17c3c5cf853eb2fe0233aed611534fe2458f105934c3b04785f1eb1aee7dd93532803f133529f350a99ae3ee4e26f08879c184b819d6c0
|
data/README.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
Comer de Tapas
|
2
2
|
==============
|
3
3
|
|
4
|
+
[![Gem Version](http://img.shields.io/gem/v/comer_de_tapas.svg)][gem]
|
5
|
+
[![Build Status](https://travis-ci.org/JuanitoFatas/comer_de_tapas.svg)][travis]
|
6
|
+
[![Dependency Status](https://gemnasium.com/JuanitoFatas/comer_de_tapas.svg)][gemnasium]
|
7
|
+
[![Inline docs ](http://inch-ci.org/github/juanitofatas/comer_de_tapas.svg)][docs]
|
8
|
+
[![Code Climate](https://codeclimate.com/github/JuanitoFatas/comer_de_tapas.png)][codeclimate]
|
9
|
+
[![Coverage](https://codeclimate.com/github/JuanitoFatas/comer_de_tapas/coverage.png)][coverage]
|
10
|
+
|
11
|
+
[gem]: https://rubygems.org/gems/comer_de_tapas
|
12
|
+
[travis]: https://travis-ci.org/JuanitoFatas/comer_de_tapas
|
13
|
+
[gemnasium]: https://gemnasium.com/JuanitoFatas/comer_de_tapas
|
14
|
+
[docs]: http://inch-ci.org/github/juanitofatas/comer_de_tapas
|
15
|
+
[codeclimate]: https://codeclimate.com/github/JuanitoFatas/comer_de_tapas
|
16
|
+
[coverage]: https://codeclimate.com/github/JuanitoFatas/comer_de_tapas
|
17
|
+
|
4
18
|
[Ruby Tapas](http://www.rubytapas.com/) Downloader episodes for subscribers.
|
5
19
|
|
6
20
|
Installation
|
@@ -66,7 +66,7 @@ module ComerDeTapas
|
|
66
66
|
FileUtils.cd episode_folder do
|
67
67
|
fetcher = Fetcher.new
|
68
68
|
file_and_links = episode['links']
|
69
|
-
downloadables = find_downloadables file_and_links
|
69
|
+
downloadables = find_downloadables file_and_links, fetcher
|
70
70
|
|
71
71
|
if downloadables.all? &:nil?
|
72
72
|
puts 'Already downloaded, skip.'
|
@@ -98,7 +98,7 @@ module ComerDeTapas
|
|
98
98
|
|
99
99
|
# Find episode's attachment that has not been downloaded
|
100
100
|
# @param [Array] file_and_links
|
101
|
-
def find_downloadables file_and_links
|
101
|
+
def find_downloadables file_and_links, fetcher
|
102
102
|
file_and_links.map do |file_and_link|
|
103
103
|
next if File.exist? file_and_link['filename']
|
104
104
|
|
data/test/test_helper.rb
CHANGED