treehouse-dl 0.0.4 → 0.1.0

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: 0e16f98ba26b97bd031d89a699f781683226f0d4
4
- data.tar.gz: 3bbe13aba8908909ac05c7310116de18563dabb0
3
+ metadata.gz: 68c9e2ca6e7db3c4674225a756950a39755811de
4
+ data.tar.gz: 5f171c59e6b799e8e701822e0e72403efe986d1e
5
5
  SHA512:
6
- metadata.gz: ce582e7035a5f77797be473ba2b73964526561051d67a9fe26882dec55abb8f06e9bc604a2e4a117ae413877456f93e085e025a8c132137efaf5bd6610280649
7
- data.tar.gz: 339e2d6bc415aca194c9b0567e08952e2130d1441bb3bd021aef285d6314f65f6afd04b797272fe6235b5ab88d456fd442b35239dc42c62f6919c1582e14817e
6
+ metadata.gz: 5a240137a1be075d0bbfc4d3c7e48afa9d45374b96e653f1bf50683c0d35f7cbed29fea127bcd99e06e5212b13d4088be3819a68463934ea0e902a75973d211a
7
+ data.tar.gz: da631a95079b2484603370e98c96dd51c1942a01c77a16e23bddccf2ccef4e1e9cea77fd5bfeddede7cc072804788afdf152bda68aa27ea6b7283f64819bba00
@@ -64,7 +64,15 @@ module Treehouse
64
64
  videolink[0..4] = ""
65
65
  videolink.chop!
66
66
  Downloader.create_directory("Treehouse",video_folder.text.parameterize)
67
- system("wget -O #{link_no}-#{video_name.parameterize}.mp4 #{videolink}")
67
+ SpinningCursor.run do
68
+ banner "Downloading #{video_name}".green
69
+ type :dots
70
+ message "#{video_name} downloaded"
71
+ action do
72
+ system("wget -q -O #{link_no}-#{video_name.parameterize}.mp4 #{videolink}")
73
+ end
74
+
75
+ end
68
76
  end
69
77
  end
70
78
  rescue Mechanize::ResponseCodeError
@@ -1,6 +1,7 @@
1
1
  require 'optparse'
2
- $VERSION = '0.0.4'
2
+
3
3
  module Treehouse
4
+ $VERSION = '0.1.0'
4
5
  class Options
5
6
 
6
7
  attr_reader :email
Binary file
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "treehouse-dl"
3
3
  s.summary = "Download videos form Treehouse without pro account"
4
- s.version = '0.0.4'
4
+ s.version = '0.1.0'
5
5
  s.authors = ["Farhad"]
6
6
  s.email = "Farhad9801@gmail.com"
7
7
  s.files = Dir['**/**']
8
8
  s.executables = ["treehouse-dl"]
9
9
  s.required_ruby_version = '>=1.9'
10
- s.date = '2017-10-02'
10
+ s.date = '2017-12-17'
11
11
  s.homepage = 'http://rubygems.org/gems/treehouse-dl'
12
12
  s.add_dependency 'selenium-webdriver', '~> 3.6'
13
13
  s.add_dependency 'phantomjs', '~> 2.1', '>= 2.1.1.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: treehouse-dl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Farhad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-02 00:00:00.000000000 Z
11
+ date: 2017-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -126,6 +126,7 @@ files:
126
126
  - lib/treehouse-dl/runner.rb
127
127
  - setup.rb
128
128
  - treehouse-dl-0.0.3.gem
129
+ - treehouse-dl-0.0.4.gem
129
130
  - treehouse-dl.gemspec
130
131
  homepage: http://rubygems.org/gems/treehouse-dl
131
132
  licenses: