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 +4 -4
- data/lib/treehouse-dl/downloader.rb +9 -1
- data/lib/treehouse-dl/options.rb +2 -1
- data/treehouse-dl-0.0.4.gem +0 -0
- data/treehouse-dl.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68c9e2ca6e7db3c4674225a756950a39755811de
|
4
|
+
data.tar.gz: 5f171c59e6b799e8e701822e0e72403efe986d1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/treehouse-dl/options.rb
CHANGED
Binary file
|
data/treehouse-dl.gemspec
CHANGED
@@ -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
|
+
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
|
+
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
|
+
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-
|
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:
|