youtube_dlhelper 0.1.9.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gemnasium.yml +2 -2
- data/.index +94 -35
- data/.travis.yml +2 -0
- data/Gemfile +47 -4
- data/Gemfile.lock +199 -70
- data/History.rdoc +103 -0
- data/Index.yml +37 -27
- data/LICENSE.rdoc +24 -0
- data/{MANIFEST → Manifest.txt} +24 -20
- data/README.rdoc +118 -0
- data/Rakefile +96 -237
- data/VERSION +1 -1
- data/bin/youtube_dlhelper +1 -0
- data/lib/youtube_dlhelper.rb +14 -28
- data/lib/youtube_dlhelper/change.rb +1 -1
- data/lib/youtube_dlhelper/checker.rb +16 -15
- data/lib/youtube_dlhelper/downloader.rb +21 -14
- data/lib/youtube_dlhelper/ripper.rb +12 -11
- data/test/lib_spec.rb +101 -0
- data/test/spec_helper.rb +15 -0
- metadata +320 -223
- metadata.gz.sig +0 -0
- data/.gitignore +0 -4
- data/.idea/.name +0 -1
- data/.idea/.rakeTasks +0 -7
- data/.idea/dictionaries/sascha.xml +0 -3
- data/.idea/dictionaries/smanns.xml +0 -3
- data/.idea/encodings.xml +0 -5
- data/.idea/inspectionProfiles/Project_Default.xml +0 -81
- data/.idea/inspectionProfiles/profiles_settings.xml +0 -7
- data/.idea/misc.xml +0 -5
- data/.idea/modules.xml +0 -9
- data/.idea/scopes/scope_settings.xml +0 -5
- data/.idea/sonarIssues.xml +0 -29
- data/.idea/vagrant.xml +0 -7
- data/.idea/vcs.xml +0 -7
- data/.idea/workspace.xml +0 -1386
- data/.idea/workspace_conflict-20150617-151434.xml +0 -933
- data/.idea/youtube_dlhelper.iml +0 -207
- data/.idea/youtube_dlhelper_conflict-20150617-151434.iml +0 -230
- data/CHANGELOG.md +0 -80
- data/LICENSE.md +0 -187
- data/README.md +0 -76
- data/lib/youtube_dlhelper/version.rb +0 -38
- data/youtube_dlhelper.gemspec +0 -54
data/History.rdoc
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
=== 2.0.0 / 2015-12-10
|
2
|
+
|
3
|
+
* 1 major enhancement
|
4
|
+
|
5
|
+
* replaced viddlrb with youtube-dl.rb
|
6
|
+
|
7
|
+
=== 0.1.9.5 / 2015-09-12
|
8
|
+
|
9
|
+
* 2 minor enhancements
|
10
|
+
|
11
|
+
* Added a project logo for using in blogposts and notifier.
|
12
|
+
* Updated dependencies triggered by gemnasium
|
13
|
+
|
14
|
+
=== 0.1.9.4 / 2015-09-07
|
15
|
+
|
16
|
+
* 2 minor enhancements
|
17
|
+
|
18
|
+
* Changed setup procedure to setup.rb
|
19
|
+
* Removing /usr/bin/youtube_dlhelper because setup.rb installs in PATH
|
20
|
+
|
21
|
+
=== 0.1.9.3 / 2015-06-15
|
22
|
+
|
23
|
+
* 2 major enhancements
|
24
|
+
|
25
|
+
* Using https is now allowed
|
26
|
+
* Added option to use ffmpeg OR avconv (depends on os)
|
27
|
+
|
28
|
+
* 2 minor enhancements
|
29
|
+
|
30
|
+
* Extended automatic tests
|
31
|
+
* Extended inline code commentation by yard
|
32
|
+
|
33
|
+
* 1 documentation enhancement
|
34
|
+
|
35
|
+
* Added user documentation
|
36
|
+
|
37
|
+
=== 0.1.9 / 2015-03-05
|
38
|
+
|
39
|
+
* 1 minor enhancement
|
40
|
+
|
41
|
+
* changed all File.exists? to File.exist?
|
42
|
+
|
43
|
+
=== 0.1.8 / 2015-03-03
|
44
|
+
|
45
|
+
* 3 minor enhancements
|
46
|
+
|
47
|
+
* Updated Dependency to rdoc 4.2.0
|
48
|
+
* removed double setting of MYNAME and VERSION
|
49
|
+
|
50
|
+
=== 0.1.7 / 2014-01-18
|
51
|
+
|
52
|
+
* 4 major enhancements
|
53
|
+
|
54
|
+
* title: "New parameter in conf: ogg_file_accept"
|
55
|
+
* description: "If youtube outputs a webm file, viddl-rb produces a ogg file. If you accept this so no mp3 is needed."
|
56
|
+
* title: "Terminal Output: The Results file now shows the right extension (mp3 or ogg)"
|
57
|
+
* title: "Added some raise options"
|
58
|
+
|
59
|
+
=== 0.1.6 / 2014-01-13
|
60
|
+
|
61
|
+
* 1 minor enhancement
|
62
|
+
|
63
|
+
* title: "added structure elements for terminal output"
|
64
|
+
|
65
|
+
* 1 critical enhancement
|
66
|
+
|
67
|
+
* Changed dependency for multi-json to 1.8.4 for security reasons
|
68
|
+
|
69
|
+
|
70
|
+
=== 0.1.5 / 2014-01-07
|
71
|
+
|
72
|
+
* 2 minor enhancements
|
73
|
+
|
74
|
+
* using system () for viddl-rb
|
75
|
+
* rebuild docs
|
76
|
+
|
77
|
+
=== 0.1.4 / 2014-01-06
|
78
|
+
|
79
|
+
* 6 minor enhancements
|
80
|
+
|
81
|
+
* Changed dependency from fileutils to fileutils2 for security reasons.
|
82
|
+
* Changed dependency from jeweler to 2.0.0
|
83
|
+
* regenerated docfiles
|
84
|
+
* changed the lines for finding the filename to File.glob
|
85
|
+
* added some tests inside the test/ folder
|
86
|
+
* changed LICENSE.txt to LICENSE.md
|
87
|
+
|
88
|
+
|
89
|
+
=== 0.1.2 / 2013-12-29
|
90
|
+
|
91
|
+
* 1 miinor enhancement
|
92
|
+
|
93
|
+
* Updated two requires because of security reasons found by the dependency checker
|
94
|
+
|
95
|
+
=== 0.1.0 / 2013-12-24
|
96
|
+
|
97
|
+
* 5 major enhancements
|
98
|
+
|
99
|
+
* title: "You give the program a URL and starts it with this as parameter"
|
100
|
+
* title: "The gem downloads the Video"
|
101
|
+
* title: "The gem extracts the audio"
|
102
|
+
* title: "Then it transcodes the file to mp3"
|
103
|
+
* title: "It asks for a Group or Interprets name and it creates the right directories inside your configured Musicfolder"
|
data/Index.yml
CHANGED
@@ -1,54 +1,64 @@
|
|
1
1
|
---
|
2
|
-
name:
|
3
|
-
version:
|
4
|
-
title:
|
5
|
-
summary:
|
2
|
+
name: manns_shared
|
3
|
+
version: 1.0.0
|
4
|
+
title: Manns_shared
|
5
|
+
summary: Small collection of methods for standard tasks
|
6
6
|
|
7
7
|
description:
|
8
|
-
|
8
|
+
manns_shared is a small collection of methods for standard tasks like search and replace content in a file, checking if a targetdirectory or a configuration file is available or remove a special node from a XML file.
|
9
9
|
|
10
10
|
authors:
|
11
|
-
- Sascha Manns <
|
11
|
+
- Sascha Manns <samanns@directbox.com>
|
12
12
|
|
13
13
|
requirements:
|
14
|
-
-
|
15
|
-
- parseconfig
|
16
|
-
- viddl-rb
|
17
|
-
- streamio-ffmpeg
|
18
|
-
- rainbow
|
19
|
-
- addressable
|
14
|
+
- nokogiri
|
20
15
|
- setup
|
21
|
-
-
|
16
|
+
- bundler (build)
|
22
17
|
- rake (build)
|
23
|
-
- rdoc (build)
|
24
18
|
- bundler (build)
|
19
|
+
- rdoc (build)
|
25
20
|
- yard (build)
|
26
21
|
- gem-release (build)
|
27
|
-
- rubocop (build)
|
28
22
|
- travis (build)
|
29
|
-
- reek (build)
|
30
|
-
- ruby-lint (build)
|
31
23
|
- bundler-audit (build)
|
32
24
|
- indexer (build)
|
33
|
-
-
|
34
|
-
-
|
25
|
+
- fpm (build)
|
26
|
+
- hoe-highline (build)
|
27
|
+
- hoe-bundler (build)
|
28
|
+
- hoe-deveiate (build)
|
29
|
+
- hoe-gemspec (build)
|
30
|
+
- hoe-doofus (build)
|
31
|
+
- hoe-git (build)
|
32
|
+
- hoe-rubygems (build)
|
33
|
+
- hoe-manns (build)
|
34
|
+
- hoe-reek (build)
|
35
|
+
- hoe-rubocop (build)
|
36
|
+
- hoe-travis (build)
|
37
|
+
- hoe-version (build)
|
38
|
+
- hoe-yard (build)
|
39
|
+
- hoe-seattlerb (build)
|
40
|
+
- hoe-manualgen (build)
|
41
|
+
- hoe (build)
|
35
42
|
- coveralls (test)
|
36
|
-
-
|
37
|
-
-
|
43
|
+
- shoulda (test)
|
44
|
+
- simplecov (test)
|
45
|
+
- rubocop (test)
|
46
|
+
- reek (test)
|
47
|
+
- ZenTest (test)
|
48
|
+
- minitest (test)
|
38
49
|
|
39
50
|
repositories:
|
40
|
-
upstream: https://github.com/saigkill/
|
51
|
+
upstream: https://github.com/saigkill/manns_shared.git
|
41
52
|
|
42
53
|
resources:
|
43
54
|
home: http://saigkill.github.io
|
44
|
-
code: https://
|
45
|
-
bugs:
|
46
|
-
issues: http://saigkill-bugs.myjetbrains.com/youtrack
|
55
|
+
code: https://gitlab.com/saigkill/manns_shared
|
56
|
+
bugs: https://gitlab.com/saigkill/manns_shared/issues
|
47
57
|
|
48
58
|
categories:
|
49
|
-
-
|
59
|
+
- libraries
|
50
60
|
- ruby
|
51
|
-
- music
|
52
61
|
|
53
62
|
copyrights:
|
54
63
|
- 2015 Sascha Manns (GPL3)
|
64
|
+
|
data/LICENSE.rdoc
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
= LICENSE:
|
2
|
+
|
3
|
+
(The MIT License)
|
4
|
+
|
5
|
+
Copyright (c) 2015 Sascha Manns <samannsml@directbox.com>
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
a copy of this software and associated documentation files (the
|
9
|
+
'Software'), to deal in the Software without restriction, including
|
10
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
the following conditions:
|
14
|
+
|
15
|
+
The above copyright notice and this permission notice shall be
|
16
|
+
included in all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
21
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
22
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
23
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
24
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/{MANIFEST → Manifest.txt}
RENAMED
@@ -1,31 +1,35 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
.coveralls.yml
|
2
|
+
.gemnasium.yml
|
3
|
+
.gemrelease
|
4
|
+
.index
|
5
|
+
.rspec
|
6
|
+
.rubocop.yml
|
7
|
+
.scrutinizer.yml
|
8
|
+
.travis.yml
|
9
|
+
.yardopts
|
6
10
|
CODE_OF_CONDUCT.md
|
7
|
-
|
8
|
-
SetupConfig
|
9
|
-
circle.yml
|
11
|
+
CONTRIBUTING.md
|
10
12
|
Gemfile
|
13
|
+
Gemfile.lock
|
14
|
+
History.rdoc
|
11
15
|
Index.yml
|
16
|
+
LICENSE.rdoc
|
17
|
+
Manifest.txt
|
18
|
+
README.rdoc
|
12
19
|
Rakefile
|
13
|
-
|
14
|
-
|
20
|
+
VERSION
|
21
|
+
bin/youtube_dlhelper
|
22
|
+
circle.yml
|
23
|
+
config.reek
|
15
24
|
data/youtube_dlhelper/100px-youtube_dlhelper.png
|
25
|
+
etc/youtube_dlhelper.conf
|
26
|
+
lib/youtube_dlhelper.rb
|
16
27
|
lib/youtube_dlhelper/change.rb
|
17
28
|
lib/youtube_dlhelper/checker.rb
|
18
29
|
lib/youtube_dlhelper/downloader.rb
|
19
30
|
lib/youtube_dlhelper/import_config.rb
|
20
31
|
lib/youtube_dlhelper/notifier.rb
|
21
32
|
lib/youtube_dlhelper/ripper.rb
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
LICENSE.md
|
26
|
-
youtube_dlhelper.gemspec
|
27
|
-
Gemfile.lock
|
28
|
-
config.reek
|
29
|
-
VERSION
|
30
|
-
etc/youtube_dlhelper.conf
|
31
|
-
CHANGELOG.md
|
33
|
+
ruby-lint.yml
|
34
|
+
test/lib_spec.rb
|
35
|
+
test/spec_helper.rb
|
data/README.rdoc
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
= youtube_dlhelper
|
2
|
+
|
3
|
+
home :: http://saigkill.github.io
|
4
|
+
code :: http://gitlab.com/saigkill/youtube_dlhelper
|
5
|
+
rdoc :: http://www.rubydoc.info/gems/youtube_dlhelper
|
6
|
+
bugs :: https://gitlab.com/saigkill/youtube_dlhelper/issues
|
7
|
+
openhub statistics :: https://www.openhub.net/p/youtube_dlhelper
|
8
|
+
openhatch :: http://www.openhatch.org/projects/youtube_dlhelper
|
9
|
+
license :: {<img src="http://img.shields.io/:license-mit-blue.svg" />}[https://gitlab.com/saigkill/youtube_dlhelper/blob/master/LICENSE.rdoc]
|
10
|
+
last public version :: {<img src="https://badge.fury.io/rb/youtube_dlhelper.png" alt="Last Version" />}[http://rubygems.org/gems/youtube_dlhelper]
|
11
|
+
downloads latest :: {<img src="https://img.shields.io/gem/dtv/youtube_dlhelper.svg" alt="Downloads latest version" />}[http://rubygems.org/gems/youtube_dlhelper]
|
12
|
+
downloads all :: {<img src="https://img.shields.io/gem/dt/youtube_dlhelper.svg" alt="Downloads all versions" />}[http://rubygems.org/gems/youtube_dlhelper]
|
13
|
+
continuous integration :: {<img src="https://secure.travis-ci.org/saigkill/youtube_dlhelper.png?branch=master" alt="Build Status" />}[https://secure.travis-ci.org/saigkill/youtube_dlhelper]
|
14
|
+
continuous integration :: {<img src="https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/badges/build.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/]
|
15
|
+
code quality :: {<img src="https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/badges/quality-score.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/]
|
16
|
+
code quality :: {<img src="https://codeclimate.com/github/saigkill/youtube_dlhelper/badges/gpa.svg" alt="Code Quality" />}[https://codeclimate.com/github/saigkill/youtube_dlhelper]
|
17
|
+
security :: {<img src="https://hakiri.io/github/saigkill/youtube_dlhelper/master.svg" alt="security" />}[https://hakiri.io/github/saigkill/youtube_dlhelper/master]
|
18
|
+
test coverage :: {<img src="https://coveralls.io/repos/saigkill/youtube_dlhelper/badge.png?branch=master" alt="Test Coverage" />}[https://coveralls.io/r/saigkill/youtube_dlhelper?branch=master]
|
19
|
+
dependency check :: {<img src="https://gemnasium.com/30fa9e5a05d551923777e372c8dbb834.svg" alt="Build Status" />}[https://gemnasium.com/4ed576a6572ae68437b5a8f09120850b/settings]
|
20
|
+
still maintained? :: {<img src="http://stillmaintained.com/saigkill/youtube_dlhelper.png" alt="Still maintained?" />}[http://stillmaintained.com/saigkill/youtube_dlhelper]
|
21
|
+
documentation quality :: {<img src="http://inch-ci.org/github/saigkill/youtube_dlhelper.svg?branch=master" alt="Documentation Quality" />}[http://inch-ci.org/github/saigkill/youtube_dlhelper]
|
22
|
+
donations :: {<img src="https://pledgie.com/campaigns/29423.png?skin_name=chrome" alt="Donations" />}[https://pledgie.com/campaigns/29423]
|
23
|
+
donations :: {<img src="http://img.shields.io/gratipay/saigkill.svg" alt="Donations" />}[https://gratipay.com/~saigkill/]
|
24
|
+
donations :: {<img src="http://tsv-neuss.de/cms/upload/News-Bilder/amazon1.png" alt="Donations" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]
|
25
|
+
|
26
|
+
|
27
|
+
== DESCRIPTION:
|
28
|
+
|
29
|
+
The youtube_dlhelper is a short tool for download and manage the downloaded files. You are running the program inside the command line with a Youtube URL. Then it aska for a
|
30
|
+
group name or interpreters name. Now it creates a Subfolder inside your Musicdirectory. Then it makes a MP3 from the downloaded file and moves it to the folder.
|
31
|
+
|
32
|
+
== FEATURES/PROBLEMS:
|
33
|
+
|
34
|
+
* downloads a video from a url
|
35
|
+
* extracts audio
|
36
|
+
* converts them into mp3 or ogg
|
37
|
+
* Sometimes it happens a 403 FORBIDDEN feedback from Google. It looks like it depends on country restrictions mostly on VEVO Videos. More [there](https://github.com/rb2k/viddl-rb/issues/117).
|
38
|
+
|
39
|
+
== SYNOPSIS:
|
40
|
+
|
41
|
+
$ youtube_dlhelper YoutubeURL
|
42
|
+
|
43
|
+
Example:
|
44
|
+
|
45
|
+
youtube_dlhelper http://www.youtube.com/watch?v=aHjpOzsQ9YI
|
46
|
+
If a https:// URL doesn't work use http:// instead
|
47
|
+
|
48
|
+
Now the program asks you if the artist is an Interpret or a Group. If you choose Interpret it aks you for the firstname and
|
49
|
+
the surname. So it creates a directory in your MUSICDIR/surname_firstname/Youtube. If you choose Group it uses the Groupname
|
50
|
+
for creating the directory.
|
51
|
+
|
52
|
+
Before running the program you have to open the youtube_dlhelper.conf and change the settings (It is placed in HOME/.youtube_dlhelper).
|
53
|
+
|
54
|
+
If you like this little program so don't forget to give this GitLab repository a star :-)
|
55
|
+
|
56
|
+
Read the documentation at: https://gitlab.com/saigkill/youtube_dlhelper/wikis/home
|
57
|
+
|
58
|
+
== REQUIREMENTS:
|
59
|
+
|
60
|
+
* nokogiri
|
61
|
+
* setup
|
62
|
+
* highline
|
63
|
+
* parseconfig
|
64
|
+
* youtube-dl.rb
|
65
|
+
* steamio-ffmpeg
|
66
|
+
* rainbow
|
67
|
+
* addressable
|
68
|
+
* notifier
|
69
|
+
|
70
|
+
== INSTALL:
|
71
|
+
|
72
|
+
The installation is very easy.
|
73
|
+
|
74
|
+
gem install youtube_dlhelper
|
75
|
+
cd /path/to/gem (In case of using RVM ~/.rvm/gems/ruby-2.2.1/gems/youtube_dlhelper)
|
76
|
+
rake setup
|
77
|
+
|
78
|
+
Read the documentation at: https://gitlab.com/saigkill/youtube_dlhelper/wikis/home
|
79
|
+
|
80
|
+
You have to run the setup after each gem update.
|
81
|
+
|
82
|
+
If you like this gem, don't forget to give the GitLab repo a star :-)
|
83
|
+
|
84
|
+
== DEVELOPERS:
|
85
|
+
|
86
|
+
After checking out the source, run:
|
87
|
+
|
88
|
+
$ rake newb
|
89
|
+
|
90
|
+
This task will install any missing dependencies, run the tests/specs,
|
91
|
+
and generate the RDoc.
|
92
|
+
|
93
|
+
Read https://gitlab.com/saigkill/youtube_dlhelper/blob/master/CONTRIBUTING.md
|
94
|
+
|
95
|
+
== LICENSE:
|
96
|
+
|
97
|
+
(The MIT License)
|
98
|
+
|
99
|
+
Copyright (c) 2015 Sascha Manns <samannsml@directbox.com>
|
100
|
+
|
101
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
102
|
+
a copy of this software and associated documentation files (the
|
103
|
+
'Software'), to deal in the Software without restriction, including
|
104
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
105
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
106
|
+
permit persons to whom the Software is furnished to do so, subject to
|
107
|
+
the following conditions:
|
108
|
+
|
109
|
+
The above copyright notice and this permission notice shall be
|
110
|
+
included in all copies or substantial portions of the Software.
|
111
|
+
|
112
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
113
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
114
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
115
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
116
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
117
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
118
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED
@@ -1,245 +1,104 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
|
4
|
-
|
1
|
+
# -*- ruby -*-
|
2
|
+
# Release:
|
3
|
+
# * update *.wiki markdown documentation for GitLab
|
4
|
+
# * enable :git
|
5
|
+
# * rake run_before_release
|
6
|
+
# * disable :git
|
7
|
+
# * Checkin
|
8
|
+
# * rake release
|
9
|
+
# * rake run_after_release
|
5
10
|
|
11
|
+
require 'rubygems'
|
12
|
+
require 'hoe'
|
13
|
+
|
14
|
+
Hoe.plugin :bundler
|
15
|
+
#Hoe.plugin :deveiate # Enable deveiate plugin for generating manuals
|
16
|
+
Hoe.plugin :doofus
|
17
|
+
Hoe.plugin :email
|
18
|
+
Hoe.plugin :gemspec
|
19
|
+
# Hoe.plugin :gem_prelude_sucks
|
20
|
+
Hoe.plugins.delete :git
|
21
|
+
#Hoe.plugin :git
|
22
|
+
Hoe.plugin :history
|
23
|
+
Hoe.plugin :highline
|
24
|
+
#Hoe.plugin :inline
|
25
|
+
Hoe.plugin :manns
|
26
|
+
#Hoe.plugin :mercurial
|
27
|
+
#Hoe.plugin :perforce
|
28
|
+
# Hoe.plugin :racc
|
29
|
+
# Hoe.plugin :rcov
|
30
|
+
Hoe.plugin :reek
|
31
|
+
Hoe.plugin :rdoc
|
32
|
+
Hoe.plugin :packaging
|
33
|
+
Hoe.plugin :rubocop
|
34
|
+
Hoe.plugin :rubygems
|
35
|
+
#Hoe.plugin :seattlerb
|
36
|
+
Hoe.plugin :travis
|
37
|
+
Hoe.plugin :version
|
38
|
+
Hoe.plugin :website
|
39
|
+
Hoe.plugin :yard
|
40
|
+
|
41
|
+
###########################################DEVELOPING ZONE##############################################################
|
6
42
|
# rubocop:disable Metrics/LineLength
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
'
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
t.config_file = 'config.reek'
|
60
|
-
t.source_files = 'lib/**/*.rb'
|
61
|
-
t.reek_opts = '' # -U
|
62
|
-
t.fail_on_error = false
|
63
|
-
t.verbose = true
|
43
|
+
Hoe.spec "youtube_dlhelper" do
|
44
|
+
developer("Sascha Manns", "samannsml@directbox.com")
|
45
|
+
license "MIT" # this should match the license in the README
|
46
|
+
require_ruby_version '>= 2.2.0'
|
47
|
+
|
48
|
+
email_to << 'ruby-talk@ruby-lang.org'
|
49
|
+
|
50
|
+
self.history_file = 'History.rdoc'
|
51
|
+
self.readme_file = 'README.rdoc'
|
52
|
+
self.extra_rdoc_files = FileList['*.rdoc'].to_a
|
53
|
+
self.post_install_message = '*** Run rake setup to finish the installation *** Please file bugreports and feature requests on: https://gitlab.com/saigkill/youtube_dlhelper/issues'
|
54
|
+
|
55
|
+
dependency 'bundler', '~> 1.10'
|
56
|
+
dependency 'setup', '~> 5.2'
|
57
|
+
dependency 'highline', '~> 1.7.8'
|
58
|
+
dependency 'parseconfig', '~> 1.0.6'
|
59
|
+
dependency 'streamio-ffmpeg', '~> 1.0.0'
|
60
|
+
dependency 'rainbow', '~> 2.0.0'
|
61
|
+
dependency 'addressable', '~> 2.4.0'
|
62
|
+
dependency 'notifier', '~> 0.5.1'
|
63
|
+
dependency 'youtube-dl.rb', '~> 0.2.5.2015.12.10.1'
|
64
|
+
|
65
|
+
extra_dev_deps << ['coveralls', '~> 0.8']
|
66
|
+
extra_dev_deps << ['gem-release', '~> 0.7']
|
67
|
+
extra_dev_deps << ['hoe-bundler', '~> 1.2']
|
68
|
+
extra_dev_deps << ['hoe-deveiate', '~> 0.7']
|
69
|
+
extra_dev_deps << ['hoe-doofus', '~> 1.0']
|
70
|
+
extra_dev_deps << ['hoe-gemspec', '~> 1.0']
|
71
|
+
extra_dev_deps << ['hoe-git', '~> 1.6']
|
72
|
+
extra_dev_deps << ['hoe-highline', '~> 0.2']
|
73
|
+
extra_dev_deps << ['hoe-manns', '~> 1.4.3']
|
74
|
+
extra_dev_deps << ['hoe-packaging', '~> 1.1.1']
|
75
|
+
extra_dev_deps << ['hoe-reek', '~> 1.1']
|
76
|
+
extra_dev_deps << ['hoe-rubocop', '~> 1.0.3']
|
77
|
+
extra_dev_deps << ['hoe-rubygems', '~> 1.0']
|
78
|
+
extra_dev_deps << ['hoe-seattlerb', '~> 1.3']
|
79
|
+
extra_dev_deps << ['hoe-travis', '~> 1.2']
|
80
|
+
extra_dev_deps << ['hoe-version', '~> 1.2']
|
81
|
+
extra_dev_deps << ['hoe-yard', '~> 0.1']
|
82
|
+
extra_dev_deps << ['indexer', '~> 0.3']
|
83
|
+
extra_dev_deps << ['minitest', '~> 5.8.1']
|
84
|
+
extra_dev_deps << ['rake', '~> 10.0']
|
85
|
+
extra_dev_deps << ['reek', '~> 3.7']
|
86
|
+
extra_dev_deps << ['rspec', '~> 3.4']
|
87
|
+
extra_dev_deps << ['rubocop', '~> 0.35']
|
88
|
+
extra_dev_deps << ['simplecov', '~> 0.11']
|
89
|
+
extra_dev_deps << ['test', '~> 1.0.0']
|
90
|
+
extra_dev_deps << ['test-unit', '~> 3.1.4']
|
91
|
+
extra_dev_deps << ['ZenTest', '~> 4.11']
|
92
|
+
extra_dev_deps << ['bundler-audit', '~> 0.4.0']
|
93
|
+
extra_dev_deps << ['manns_shared', '~> 1.0.0']
|
94
|
+
extra_dev_deps << ['bundler-audit', '~> 0.4.0']
|
64
95
|
end
|
65
96
|
|
66
|
-
|
67
|
-
task :setup_start do
|
68
|
-
version = YoutubeDlhelperVersion::Version::STRING
|
69
|
-
puts '######################################################'
|
70
|
-
puts '# youtube_dlhelper Setup #'
|
71
|
-
puts "# Version: #{version} #"
|
72
|
-
puts '# #'
|
73
|
-
puts '# Please file bugreports on: #'
|
74
|
-
puts '#http://saigkill-bugs.myjetbrains.com/youtrack/issues#'
|
75
|
-
puts '######################################################'
|
97
|
+
##################################################SETUP ZONE############################################################
|
76
98
|
|
77
|
-
|
99
|
+
desc 'Run setup'
|
100
|
+
task :setup do
|
101
|
+
system('setup.rb uninstall --force')
|
78
102
|
system('setup.rb config --sysconfdir=$HOME/.youtube_dlhelper')
|
79
103
|
system('setup.rb install')
|
80
104
|
end
|
81
|
-
|
82
|
-
desc 'Link binary'
|
83
|
-
task :link_binary do
|
84
|
-
# removing /usr/bin/youtube_dlhelper because setup.rb installs in PATH
|
85
|
-
puts 'Removing binaries from /usr/bin ...'
|
86
|
-
ytdlbin = '/usr/bin/youtube_dlhelper'
|
87
|
-
system("sudo rm #{ytdlbin}") if File.exist?(ytdlbin)
|
88
|
-
end
|
89
|
-
|
90
|
-
desc 'Run setup'
|
91
|
-
task :setup => [:setup_start, :link_binary] do
|
92
|
-
puts 'Finished Setup'
|
93
|
-
end
|
94
|
-
|
95
|
-
require 'yaml'
|
96
|
-
##require 'MannsShared/change'
|
97
|
-
require File.expand_path(File.join(File.dirname(__FILE__), 'lib/youtube_dlhelper/change'))
|
98
|
-
require 'fileutils'
|
99
|
-
desc 'Prepares for release'
|
100
|
-
task :make_release do
|
101
|
-
version = YoutubeDlhelperVersion::Version::STRING
|
102
|
-
home = Dir.home
|
103
|
-
target = "#{home}/RubymineProjects/saigkill.github.com/_posts"
|
104
|
-
time = Time.new
|
105
|
-
date = time.strftime('%Y-%m-%d')
|
106
|
-
config = YAML.load_file('Index.yml')
|
107
|
-
oldversion = config['version']
|
108
|
-
|
109
|
-
puts('Updating index')
|
110
|
-
YoutubeDlhelper.search_replace(oldversion, version, 'Index.yml')
|
111
|
-
YoutubeDlhelper.search_replace(oldversion, version, 'VERSION')
|
112
|
-
system('index --using VERSION Index.yml')
|
113
|
-
puts 'Updating MANIFEST'
|
114
|
-
system('mast -u && mast -u')
|
115
|
-
system('git add MANIFEST .index')
|
116
|
-
puts 'done'
|
117
|
-
puts 'Updating workspace'
|
118
|
-
system('git add .idea/*')
|
119
|
-
system('git commit -m "Updated workspace"')
|
120
|
-
puts 'done'
|
121
|
-
puts 'Making release'
|
122
|
-
system('rake release')
|
123
|
-
|
124
|
-
FileUtils.cd(target) do
|
125
|
-
FileUtils.touch "#{date}-youtube_dlhelper-#{version}-released-en.md"
|
126
|
-
File.write "#{date}-youtube_dlhelper-#{version}-released-en.md", <<EOF
|
127
|
-
---
|
128
|
-
layout: post
|
129
|
-
title: "youtube_dlhelper #{version} - A Gem for Youtubers"
|
130
|
-
description: "Yet another Youtube Downloader. But this one creates for you the right directories inside your Musicdir."
|
131
|
-
category: "programming"
|
132
|
-
tags: [ruby, opensource, youtube, en-US]
|
133
|
-
---
|
134
|
-
{% include JB/setup %}
|
135
|
-
|
136
|
-
[![youtube_dlhelper](http://saigkill.github.io/img/myprojects/100px-youtube_dlhelper.png)](https://github.com/saigkill/youtube_dlhelper)
|
137
|
-
# Introduction
|
138
|
-
The youtube_dlhelper is a short tool for download and manage the downloaded files. You are running the program inside the command line with a Youtube URL. Then it aska for a group name or interpreters name. Now it creates a Subfolder inside your Musicdirectory. Then it makes a MP3 from the downloaded file and moves it to the folder.
|
139
|
-
|
140
|
-
# Installation
|
141
|
-
If you give it a try just follow the next steps (If you have already Ruby installed):
|
142
|
-
|
143
|
-
* gem install youtube_dlhelper
|
144
|
-
* cd /path/to/gem (Falls RVM benutzt wird z.B. ~/.rvm/gems/ruby-2.2.1/gems/youtube_dlhelper-#{version})
|
145
|
-
* rake setup
|
146
|
-
|
147
|
-
# Dependencies
|
148
|
-
You need to have ffmpeg or avconv installed. The soft dependencies will be solved by bundler.
|
149
|
-
|
150
|
-
# Running the Gem
|
151
|
-
youtube_dlhelper https://yourYoutubeURL
|
152
|
-
|
153
|
-
# References
|
154
|
-
* Projects home: [https://github.com/saigkill/youtube_dlhelper](https://github.com/saigkill/youtube_dlhelper)
|
155
|
-
* User documentation (en): [http://saigkill.github.io/doc/youtube_dlhelper/en-US/html](http://saigkill.github.io/doc/youtube_dlhelper/en-US/html)
|
156
|
-
* User documentation (de): [http://saigkill.github.io/doc/youtube_dlhelper/de-DE/html](http://saigkill.github.io/doc/youtube_dlhelper/de-DE/html)
|
157
|
-
* Bug reports: [http://saigkill-bugs.myjetbrains.com/youtrack/issues](http://saigkill-bugs.myjetbrains.com/youtrack/issues)
|
158
|
-
|
159
|
-
# What has be done in this version #{version}?
|
160
|
-
* Step 1
|
161
|
-
* Step2
|
162
|
-
|
163
|
-
# Donations
|
164
|
-
[![youtube_dlhelper](https://pledgie.com/campaigns/29423.png?skin_name=chrome)](https://pledgie.com/campaigns/29423)
|
165
|
-
[![wishlist](http://tsv-neuss.de/cms/upload/News-Bilder/amazon1.png)](http://www.amazon.de/registry/wishlist/D75HOEQ00BDD)
|
166
|
-
EOF
|
167
|
-
end
|
168
|
-
FileUtils.cd(target) do
|
169
|
-
FileUtils.touch "#{date}-youtube_dlhelper-#{version}-released-de.md"
|
170
|
-
File.write "#{date}-youtube_dlhelper-#{version}-released-de.md", <<EOF
|
171
|
-
---
|
172
|
-
layout: post
|
173
|
-
title: "youtube_dlhelper #{version} - A Gem für Youtubers"
|
174
|
-
description: "Ein anderer YouTube Downloader und Konverter. Dieser erstellt automatisch die benötigten Verzeichnisse im Musicdir"
|
175
|
-
category: "programming"
|
176
|
-
tags: [ruby, opensource, youtube, de-DE]
|
177
|
-
---
|
178
|
-
{% include JB/setup %}
|
179
|
-
|
180
|
-
[![youtube_dlhelper](http://saigkill.github.io/img/myprojects/100px-youtube_dlhelper.png)](https://github.com/saigkill/youtube_dlhelper)
|
181
|
-
# Einführung
|
182
|
-
youtube_dlhelper ist ein kleines Tool zum Download und Konvertierung der files. Sie starten das Programm in der Kommandozeile mit der gewünschten Youtube URL. Das Programm fragt nun nach Parametern, wie der Name des Interpreten oder der Gruppe und erstellt innerhalb Ihres festgelegten Musikverzeichnis die benötigten Unterverzeichnisse.
|
183
|
-
|
184
|
-
# Installation
|
185
|
-
Wenn Ruby bereits installiert ist, können Sie youtube_dlhelper wie folgt installieren:
|
186
|
-
|
187
|
-
* gem install youtube_dlhelper
|
188
|
-
* cd /path/to/gem (Falls RVM benutzt wird z.B. ~/.rvm/gems/ruby-2.2.1/gems/youtube_dlhelper-#{version})
|
189
|
-
* rake setup
|
190
|
-
|
191
|
-
# Abhängigkeiten
|
192
|
-
Sie benötigen ein installiertes ffmpeg oder avconv.
|
193
|
-
|
194
|
-
# Das Gem starten
|
195
|
-
youtube_dlhelper https://yourYoutubeURL
|
196
|
-
|
197
|
-
# Referenzen
|
198
|
-
* Projekt Home: [https://github.com/saigkill/youtube_dlhelper](https://github.com/saigkill/youtube_dlhelper)
|
199
|
-
* User Dokumentation (en): [http://saigkill.github.io/doc/youtube_dlhelper/en-US/html](http://saigkill.github.io/doc/youtube_dlhelper/en-US/html)
|
200
|
-
* User Dokumentation (de): [http://saigkill.github.io/doc/youtube_dlhelper/de-DE/html](http://saigkill.github.io/doc/youtube_dlhelper/de-DE/html)
|
201
|
-
* Bugreports: [http://saigkill-bugs.myjetbrains.com/youtrack/issues](http://saigkill-bugs.myjetbrains.com/youtrack/issues)
|
202
|
-
|
203
|
-
# Was ist neu in version #{version}?
|
204
|
-
* Step 1
|
205
|
-
* Step2
|
206
|
-
|
207
|
-
# Donations
|
208
|
-
[![publicancreators](https://pledgie.com/campaigns/29423.png?skin_name=chrome)](https://pledgie.com/campaigns/29423)
|
209
|
-
[![wishlist](http://tsv-neuss.de/cms/upload/News-Bilder/amazon1.png)](http://www.amazon.de/registry/wishlist/D75HOEQ00BDD)
|
210
|
-
EOF
|
211
|
-
end
|
212
|
-
puts 'Prepared your Blogpost. Please add the changes of this release'
|
213
|
-
puts 'Now ready for social media posting'
|
214
|
-
|
215
|
-
# rubocop:disable Style/MultilineOperationIndentation
|
216
|
-
# Create email to ruby-talk
|
217
|
-
space = '%20'
|
218
|
-
crlf = '%0D%0A'
|
219
|
-
subject = "[ANN] youtube_dlhelper #{version} released"
|
220
|
-
subject.gsub!(/ /, "#{space}")
|
221
|
-
body = 'Hello Ruby list,' + "#{crlf}" + "#{crlf}" +
|
222
|
-
"i would like to announce the youtube_dlhelper gem in version #{version}." + "#{crlf}" + "#{crlf}" +
|
223
|
-
"What happend in version #{version}?" + "#{crlf}" +
|
224
|
-
'* Its the initial release' + "#{crlf}" +
|
225
|
-
'* Fixed LCV 1-4' + "#{crlf}" + "#{crlf}" +
|
226
|
-
'What is youtube_dlhelper?' + "#{crlf}" + "#{crlf}" +
|
227
|
-
'The youtube_dlhelper is a short tool for download and manage the downloaded files. You are running the program inside the command line with a Youtube URL. Then it aska for a group name or interpreters name. Now it creates a Subfolder inside your Musicdirectory. Then it makes a MP3 from the downloaded file and moves it to the folder.' + "#{crlf}" + "#{crlf}" +
|
228
|
-
'Installation:'+ "#{crlf}" + "#{crlf}" +
|
229
|
-
' gem install youtube_dlhelper' + "#{crlf}" +
|
230
|
-
' cd /path/to/gem \(In case of using RVM anything like ~/.rvm/gems/ruby-2.2.1/gems/youtube_dlhelper\)' + "#{crlf}" + "#{crlf}" +
|
231
|
-
' rake setup' + "#{crlf}" + "#{crlf}" +
|
232
|
-
'Dependencies:'+ "#{crlf}" + "#{crlf}" +
|
233
|
-
'You need to have ffmpeg or avconv installed. The soft dependencies will be solved by bundler.' + "#{crlf}" + "#{crlf}" +
|
234
|
-
'Using the gem' + "#{crlf}" + "#{crlf}" +
|
235
|
-
'To use the gem just type in the console:' + "#{crlf}" + "#{crlf}" +
|
236
|
-
' youtube_dlhelper https://yourYoutubeURL' + "#{crlf}" + "#{crlf}" +
|
237
|
-
'References:' + "#{crlf}" +
|
238
|
-
'Issue tracker: http://saigkill-bugs.myjetbrains.com/youtrack/issues' + "#{crlf}" +
|
239
|
-
'Home: https://github.com/saigkill/youtube_dlhelper' + "#{crlf}" +
|
240
|
-
'Greetings Sascha'
|
241
|
-
body.gsub!(/ /, "#{space}")
|
242
|
-
system("thunderbird mailto:ruby-talk@ruby-lang.org?subject=#{subject}\\&body=#{body}")
|
243
|
-
system('rm pkg/*')
|
244
|
-
system('git add .idea/workspace && git commit -m "workspace" && git push')
|
245
|
-
end
|