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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52d7624ee230325d84d34d1d7dbed242eff3f67c
4
- data.tar.gz: 821ec2bcb59323e569227d7996bf751a77e09a2b
3
+ metadata.gz: 7bffe960a14d00a4e709f83f73a18c92eb24ac2c
4
+ data.tar.gz: af4c448c8ff3b9fa99dafbd65bb2022d7dd6e343
5
5
  SHA512:
6
- metadata.gz: 0e13a238ba77729967bafa0c02f20f5352f0bf0b243bcecaee12249163504c463110d9ad4c26fe8e1a98e4ecfefa3b034e159308d9772d938fd99a33414215b1
7
- data.tar.gz: 524d6b69a68edbeac46176d4ec624cfdb2a36bd9fc0488c4cc5822f9a31581ace50d1da03d8a365af02440a6e90673e9426acac33e66153ebdcc57b8d52366bd
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
 
@@ -1,3 +1,3 @@
1
1
  module ComerDeTapas
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/test/test_helper.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  require_relative '../lib/comer_de_tapas'
2
2
 
3
+ require 'codeclimate-test-reporter'
4
+ CodeClimate::TestReporter.start
5
+
3
6
  # ensures using the gem, and not the built-in.
4
7
  gem 'minitest'
5
8
  require 'minitest/autorun'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comer_de_tapas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juanito Fatas