youtube_dlhelper 0.1.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +2 -0
- data/.gemnasium.yml +5 -0
- data/.gemrelease +6 -0
- data/.gitignore +8 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/dictionaries/sascha.xml +3 -0
- data/.idea/dictionaries/smanns.xml +3 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/inspectionProfiles/Project_Default.xml +81 -0
- data/.idea/inspectionProfiles/profiles_settings.xml +7 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/sonarIssues.xml +29 -0
- data/.idea/vagrant.xml +7 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/workspace.xml +1273 -0
- data/.idea/workspace_conflict-20150617-151434.xml +933 -0
- data/.idea/youtube_dlhelper.iml +241 -0
- data/.idea/youtube_dlhelper_conflict-20150617-151434.iml +230 -0
- data/.index +121 -0
- data/.overcommit.yml +76 -0
- data/.rspec +2 -0
- data/.rubocop.yml +39 -0
- data/.scrutinizer.yml +26 -0
- data/.travis.yml +29 -0
- data/.yardopts +7 -0
- data/CHANGELOG.md +75 -0
- data/CODE_OF_CONDUCT.md +17 -0
- data/CONTRIBUTING.md +25 -0
- data/Gemfile +5 -0
- data/Index.yml +54 -0
- data/LICENSE.md +187 -0
- data/MANIFEST +635 -0
- data/README.md +67 -0
- data/Rakefile +318 -0
- data/VERSION +1 -0
- data/bin/youtube_dlhelper +12 -0
- data/circle.yml +16 -0
- data/config.reek +111 -0
- data/etc/youtube_dlhelper.conf +8 -0
- data/lib/youtube_dlhelper.rb +128 -0
- data/lib/youtube_dlhelper/checker.rb +160 -0
- data/lib/youtube_dlhelper/downloader.rb +80 -0
- data/lib/youtube_dlhelper/get.rb +43 -0
- data/lib/youtube_dlhelper/import_config.rb +42 -0
- data/lib/youtube_dlhelper/ripper.rb +100 -0
- data/lib/youtube_dlhelper/version.rb +38 -0
- data/ruby-lint.yml +2 -0
- data/youtube_dlhelper.gemspec +56 -0
- metadata +601 -0
data/README.md
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# youtube_dlhelper - a Gem for Youtubers
|
2
|
+
|
3
|
+
| What | Status |
|
4
|
+
|-------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
5
|
+
| license | [![license](http://img.shields.io/:license-gpl3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0.html) |
|
6
|
+
| last public version | [![publicversion](https://badge.fury.io/rb/youtube_dlhelper.png)](http://rubygems.org/gems/youtube_dlhelper) |
|
7
|
+
| downloads latest | [![downloads-latest](https://img.shields.io/gem/dtv/youtube_dlhelper.svg)](https://rubygems.org/gems/youtube_dlhelper) |
|
8
|
+
| downloads all | [![downloads-all](https://img.shields.io/gem/dt/youtube_dlhelper.svg)](https://rubygems.org/gems/youtube_dlhelper) |
|
9
|
+
| continuous integration | [![travis](https://secure.travis-ci.org/saigkill/youtube_dlhelper.png?branch=master)](https://secure.travis-ci.org/saigkill/youtube_dlhelper) |
|
10
|
+
| continuous integration | [![scrutinizer](https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/badges/build.png?b=master)](https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/build-status/master) |
|
11
|
+
| continuous integration | [![teamcity](http://saigkill.ddns.net:8111/app/rest/builds/buildType:(id:YoutubeDlhelper_Build)/statusIcon)](http://saigkill.ddns.net:8111/viewType.html?buildTypeId=YoutubeDlhelper_Build&guest=1) |
|
12
|
+
| test coverage | [![coveralls](https://coveralls.io/repos/saigkill/youtube_dlhelper/badge.png?branch=master)](https://coveralls.io/r/saigkill/youtube_dlhelper?branch=master) |
|
13
|
+
| code quality | [![codeclimate](https://codeclimate.com/github/saigkill/youtube_dlhelper.png)](https://codeclimate.com/github/saigkill/youtube_dlhelper) |
|
14
|
+
| code quality | [![scrutinizer](https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/?branch=master) |
|
15
|
+
| dependency check | [![gemnasium](https://gemnasium.com/saigkill/youtube_dlhelper.png)](https://gemnasium.com/saigkill/youtube_dlhelper) |
|
16
|
+
| still maintained? | [![stillmaintained](http://stillmaintained.com/saigkill/youtube_dlhelper.png)](http://stillmaintained.com/saigkill/youtube_dlhelper) |
|
17
|
+
| documentation quality | [![documentationquality](http://inch-ci.org/github/saigkill/youtube_dlhelper.svg?branch=master)](http://inch-ci.org/github/saigkill/youtube_dlhelper) |
|
18
|
+
| documentation | http://www.rubydoc.info/gems/youtube_dlhelper |
|
19
|
+
| user documentation | http://saigkill.github.io/docs/youtube_dlhelper/en-US/html/ |
|
20
|
+
| Bugreports & Feature requests | http://saigkill-bugs.myjetbrains.com/youtrack/issues |
|
21
|
+
| Mailinglist | https://groups.google.com/forum/#!forum/youtube_dlhelper |
|
22
|
+
| authors blog | http://saigkill.github.io |
|
23
|
+
| openhub statistics | https://www.openhub.net/p/youtube_dlhelper |
|
24
|
+
| openhatch | http://openhatch.org/projects/youtube_dlhelper |
|
25
|
+
| donations | [![pledgie](https://pledgie.com/campaigns/29423.png?skin_name=chrome)](https://pledgie.com/campaigns/29423) |
|
26
|
+
| donations | [![gratipay](http://img.shields.io/gratipay/saigkill.svg)](https://gratipay.com/~saigkill/) |
|
27
|
+
| donations | [![amazon](http://tsv-neuss.de/cms/upload/News-Bilder/amazon1.png)](http://www.amazon.de/registry/wishlist/D75HOEQ00BDD) |
|
28
|
+
|
29
|
+
## Description
|
30
|
+
|
31
|
+
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
|
32
|
+
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.
|
33
|
+
|
34
|
+
## Installation
|
35
|
+
|
36
|
+
The installation is very easy.
|
37
|
+
|
38
|
+
gem install youtube_dlhelper
|
39
|
+
cd /path/to/gem (Falls RVM benutzt wird z.B. ~/.rvm/gems/ruby-2.2.1/gems/latex_curriculum_vitae)
|
40
|
+
rake setup
|
41
|
+
|
42
|
+
## Hard dependencies
|
43
|
+
Just a preinstalled ffmpeg.
|
44
|
+
|
45
|
+
## Usage
|
46
|
+
|
47
|
+
youtube_dlhelper YoutubeURL
|
48
|
+
|
49
|
+
Example:
|
50
|
+
|
51
|
+
youtube_dlhelper http://www.youtube.com/watch?v=aHjpOzsQ9YI
|
52
|
+
If a https:// URL doesn't work use http:// instead
|
53
|
+
|
54
|
+
Before running the program you have to open the youtube_dlhelper.conf and change the settings (It is placed in HOME/.youtube_dlhelper).
|
55
|
+
|
56
|
+
## Feature Requests & Bug Reports
|
57
|
+
You can file Requests and Reports on the Github Repository: http://saigkill-bugs.myjetbrains.com/youtrack/issues
|
58
|
+
|
59
|
+
## Contributing
|
60
|
+
|
61
|
+
1. Fork it
|
62
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
63
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
64
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
65
|
+
5. Create new Pull Request
|
66
|
+
|
67
|
+
Read https://github.com/saigkill/youtube_dlhelper/blob/master/CONTRIBUTING.md
|
data/Rakefile
ADDED
@@ -0,0 +1,318 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'rubygems'
|
5
|
+
|
6
|
+
# rubocop:disable Metrics/LineLength
|
7
|
+
task :default do
|
8
|
+
puts 'Using the default task'
|
9
|
+
end
|
10
|
+
|
11
|
+
# Bundler Task
|
12
|
+
require 'bundler'
|
13
|
+
begin
|
14
|
+
Bundler.setup(:default, :development)
|
15
|
+
rescue Bundler::BundlerError => e
|
16
|
+
$stderr.puts e.message
|
17
|
+
$stderr.puts 'Run `bundle install` to install missing gems'
|
18
|
+
exit e.status_code
|
19
|
+
end
|
20
|
+
require 'rake'
|
21
|
+
|
22
|
+
# RSpec Task
|
23
|
+
require 'rspec/core'
|
24
|
+
require 'rspec/core/rake_task'
|
25
|
+
desc 'Does anything with RSpec'
|
26
|
+
RSpec::Core::RakeTask.new(:test) do |spec|
|
27
|
+
spec.pattern = FileList['test/**/*_spec.rb']
|
28
|
+
end
|
29
|
+
task :default => :test
|
30
|
+
|
31
|
+
# Coveralls Task
|
32
|
+
require 'coveralls/rake/task'
|
33
|
+
Coveralls::RakeTask.new
|
34
|
+
task :test_with_coveralls => [:test, 'coveralls:push']
|
35
|
+
|
36
|
+
# Yard Task
|
37
|
+
require 'yard'
|
38
|
+
desc 'Run yarddoc for the source'
|
39
|
+
YARD::Rake::YardocTask.new do |t|
|
40
|
+
t.files = %w('lib/**/*.rb', 'bin/youtube_dlhelper', '-', 'CHANGELOG.md',
|
41
|
+
'CODE_OF_CONDUCT.md', 'LICENSE.md', 'README.md')
|
42
|
+
end
|
43
|
+
|
44
|
+
# Rubocop
|
45
|
+
require 'rubocop/rake_task'
|
46
|
+
desc 'Run RuboCop on the lib directory'
|
47
|
+
RuboCop::RakeTask.new(:rubocop) do |task|
|
48
|
+
task.patterns = ['lib/**/*.rb']
|
49
|
+
# only show the files with failures
|
50
|
+
task.formatters = ['files']
|
51
|
+
# don't abort rake on failure
|
52
|
+
task.fail_on_error = false
|
53
|
+
end
|
54
|
+
|
55
|
+
# Reek
|
56
|
+
require 'reek/rake/task'
|
57
|
+
Reek::Rake::Task.new do |t|
|
58
|
+
t.name = 'reek'
|
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
|
64
|
+
end
|
65
|
+
|
66
|
+
require 'bundler/audit/cli'
|
67
|
+
namespace :bundle_audit do
|
68
|
+
desc 'Update bundle-audit database'
|
69
|
+
task :update do
|
70
|
+
Bundler::Audit::CLI.new.update
|
71
|
+
end
|
72
|
+
|
73
|
+
desc 'Check gems for vulns using bundle-audit'
|
74
|
+
task :check do
|
75
|
+
Bundler::Audit::CLI.new.check
|
76
|
+
end
|
77
|
+
|
78
|
+
desc 'Update vulns database and check gems using bundle-audit'
|
79
|
+
task :run do
|
80
|
+
Rake::Task['bundle_audit:update'].invoke
|
81
|
+
Rake::Task['bundle_audit:check'].invoke
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
task :bundle_audit do
|
86
|
+
Rake::Task['bundle_audit:run'].invoke
|
87
|
+
end
|
88
|
+
|
89
|
+
# Setup procedure /Codeship
|
90
|
+
# dpkg -s ffmpeg 2>/dev/null >/dev/null && echo $?
|
91
|
+
desc 'Launching the setup'
|
92
|
+
task :setup_start do
|
93
|
+
version = YoutubeDlhelperVersion::Version::STRING
|
94
|
+
puts '######################################################'
|
95
|
+
puts '# youtube_dlhelper Setup #'
|
96
|
+
puts "# Version: #{version} #"
|
97
|
+
puts '# #'
|
98
|
+
puts '# Please file bugreports on: #'
|
99
|
+
puts '#http://saigkill-bugs.myjetbrains.com/youtrack/issues#'
|
100
|
+
puts '######################################################'
|
101
|
+
|
102
|
+
system('setup uninstall --force')
|
103
|
+
system('setup.rb config --sysconfdir=$HOME/.youtube_dlhelper')
|
104
|
+
system('setup.rb install')
|
105
|
+
end
|
106
|
+
|
107
|
+
desc 'Link binary'
|
108
|
+
task :link_binary do
|
109
|
+
# removing /usr/bin/youtube_dlhelper because setup.rb installs in PATH
|
110
|
+
puts 'Removing binaries from /usr/bin ...'
|
111
|
+
ytdlbin = '/usr/bin/youtube_dlhelper'
|
112
|
+
system("sudo rm #{ytdlbin}") if File.exist?(ytdlbin)
|
113
|
+
end
|
114
|
+
|
115
|
+
desc 'Run setup'
|
116
|
+
task :setup => [:setup_start, :link_binary] do
|
117
|
+
puts 'Finished Setup'
|
118
|
+
end
|
119
|
+
|
120
|
+
require 'fileutils'
|
121
|
+
desc 'Prepare Userdoc for translating'
|
122
|
+
task :prepare_doc do
|
123
|
+
doc = './doc'
|
124
|
+
FileUtils.cd(doc) do
|
125
|
+
puts 'Running trans_drop'
|
126
|
+
system('publican trans_drop')
|
127
|
+
puts 'Preparing pot files'
|
128
|
+
system('publican update_pot')
|
129
|
+
puts 'Preparing po files for de-DE'
|
130
|
+
system('publican update_po --langs=de-DE')
|
131
|
+
puts 'All done. Please use a poeditor (like poedit) to translate'
|
132
|
+
puts 'For building doc use rake build_doc.'
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
require 'fileutils'
|
137
|
+
desc 'Build Userdoc'
|
138
|
+
task :build_doc do
|
139
|
+
doc = './doc'
|
140
|
+
FileUtils.cd(doc) do
|
141
|
+
puts 'Building all targets'
|
142
|
+
system('publican build --langs=en-US,de-DE --formats=html,pdf')
|
143
|
+
puts 'All done. Please use rake publish_doc for publishing.'
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
require 'fileutils'
|
148
|
+
desc 'Publish Userdoc'
|
149
|
+
task :publish_doc do
|
150
|
+
version = YoutubeDlhelperVersion::Version::STRING
|
151
|
+
home = Dir.home
|
152
|
+
srcde = 'doc/tmp/de-DE/html'
|
153
|
+
srcen = 'doc/tmp/en-US/html'
|
154
|
+
srcdepdf = 'doc/tmp/de-DE/pdf'
|
155
|
+
srcenpdf = 'doc/tmp/en-US/pdf'
|
156
|
+
target = "#{home}/RubymineProjects/saigkill.github.com"
|
157
|
+
targetde = "#{home}/RubymineProjects/saigkill.github.com/doc/youtube_dlhelper/de-DE/html"
|
158
|
+
targeten = "#{home}/RubymineProjects/saigkill.github.com/doc/youtube_dlhelper/en-US/html"
|
159
|
+
targetenpdf = "#{home}/RubymineProjects/saigkill.github.com/doc/youtube_dlhelper/en-US/pdf"
|
160
|
+
targetdepdf = "#{home}/RubymineProjects/saigkill.github.com/doc/youtube_dlhelper/de-DE/pdf"
|
161
|
+
|
162
|
+
puts 'Copying source html files to target git repository'
|
163
|
+
FileUtils.cp_r(Dir["#{srcde}/*"], "#{targetde}")
|
164
|
+
FileUtils.cp_r(Dir["#{srcen}/*"], "#{targeten}")
|
165
|
+
FileUtils.cp_r(Dir["#{srcdepdf}/*"], "#{targetdepdf}")
|
166
|
+
FileUtils.cp_r(Dir["#{srcenpdf}/*"], "#{targetenpdf}")
|
167
|
+
|
168
|
+
puts 'Checking in into repository'
|
169
|
+
FileUtils.cd(target) do
|
170
|
+
puts 'Adding missing files'
|
171
|
+
system('git add *')
|
172
|
+
puts 'Made commit'
|
173
|
+
system("git commit -m \"Updated doc for youtube_dlhelper #{version}\"")
|
174
|
+
puts 'Pushing it to origin'
|
175
|
+
system('git push')
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
require 'fileutils'
|
180
|
+
desc 'Prepares for release'
|
181
|
+
task :make_release do
|
182
|
+
version = YoutubeDlhelperVersion::Version::STRING
|
183
|
+
home = Dir.home
|
184
|
+
target = "#{home}/RubymineProjects/saigkill.github.com/_posts"
|
185
|
+
time = Time.new
|
186
|
+
date = time.strftime('%Y-%m-%d')
|
187
|
+
|
188
|
+
puts 'Updating MANIFEST'
|
189
|
+
system('mast -u && mast -u')
|
190
|
+
system('git add MANIFEST')
|
191
|
+
puts 'done'
|
192
|
+
puts 'Updating workspace'
|
193
|
+
system('git add .idea/*')
|
194
|
+
system('git commit -m "Updated workspace"')
|
195
|
+
puts 'done'
|
196
|
+
puts 'Making release'
|
197
|
+
system('rake release')
|
198
|
+
|
199
|
+
FileUtils.cd(target) do
|
200
|
+
FileUtils.touch "#{date}-youtube_dlhelper-#{version}-released-en.md"
|
201
|
+
File.write "#{date}-youtube_dlhelper-#{version}-released-en.md", <<EOF
|
202
|
+
---
|
203
|
+
layout: post
|
204
|
+
title: "youtube_dlhelper #{version} - A Gem for Youtubers"
|
205
|
+
description: "Yet another Youtube Downloader. But this one creates for you the right directories inside your Musicdir."
|
206
|
+
category: "programming"
|
207
|
+
tags: [ruby, opensource, youtube, en-US]
|
208
|
+
---
|
209
|
+
{% include JB/setup %}
|
210
|
+
|
211
|
+
# Introduction
|
212
|
+
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.
|
213
|
+
|
214
|
+
# Installation
|
215
|
+
If you give it a try just follow the next steps (If you have already Ruby installed):
|
216
|
+
|
217
|
+
* gem install youtube_dlhelper
|
218
|
+
* cd /path/to/gem (Falls RVM benutzt wird z.B. ~/.rvm/gems/ruby-2.2.1/gems/latex_curriculum_vitae)
|
219
|
+
* rake setup
|
220
|
+
|
221
|
+
# Dependencies
|
222
|
+
You need to have ffmpeg or avconv installed. The soft dependencies will be solved by bundler.
|
223
|
+
|
224
|
+
# Running the Gem
|
225
|
+
youtube_dlhelper https://yourYoutubeURL
|
226
|
+
|
227
|
+
# References
|
228
|
+
* Projects home: [https://github.com/saigkill/youtube_dlhelper](https://github.com/saigkill/youtube_dlhelper)
|
229
|
+
* User documentation (en): [http://saigkill.github.io/doc/youtube_dlhelper/en-US/html](http://saigkill.github.io/doc/youtube_dlhelper/en-US/html)
|
230
|
+
* User documentation (de): [http://saigkill.github.io/doc/youtube_dlhelper/de-DE/html](http://saigkill.github.io/doc/youtube_dlhelper/de-DE/html)
|
231
|
+
* Bug reports: [http://saigkill-bugs.myjetbrains.com/youtrack/issues](http://saigkill-bugs.myjetbrains.com/youtrack/issues)
|
232
|
+
|
233
|
+
# What has be done in this version #{version}?
|
234
|
+
* Step 1
|
235
|
+
* Step2
|
236
|
+
|
237
|
+
# Donations
|
238
|
+
[![publicancreators](https://pledgie.com/campaigns/29423.png?skin_name=chrome)](https://pledgie.com/campaigns/29423)
|
239
|
+
[![wishlist](http://tsv-neuss.de/cms/upload/News-Bilder/amazon1.png)](http://www.amazon.de/registry/wishlist/D75HOEQ00BDD)
|
240
|
+
EOF
|
241
|
+
end
|
242
|
+
FileUtils.cd(target) do
|
243
|
+
FileUtils.touch "#{date}-youtube_dlhelper-#{version}-released-de.md"
|
244
|
+
File.write "#{date}-youtube_dlhelper-#{version}-released-de.md", <<EOF
|
245
|
+
---
|
246
|
+
layout: post
|
247
|
+
title: "youtube_dlhelper #{version} - A Gem für Youtubers"
|
248
|
+
description: "Ein anderer YouTube Downloader und Konverter. Dieser erstellt automatisch die benötigten Verzeichnisse im Musicdir"
|
249
|
+
category: "programming"
|
250
|
+
tags: [ruby, opensource, youtube, de-DE]
|
251
|
+
---
|
252
|
+
{% include JB/setup %}
|
253
|
+
|
254
|
+
# Einführung
|
255
|
+
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.
|
256
|
+
|
257
|
+
# Installation
|
258
|
+
Wenn Ruby bereits installiert ist, können Sie youtube_dlhelper wie folgt installieren:
|
259
|
+
|
260
|
+
* gem install youtube_dlhelper
|
261
|
+
* cd /path/to/gem (Falls RVM benutzt wird z.B. ~/.rvm/gems/ruby-2.2.1/gems/latex_curriculum_vitae)
|
262
|
+
* rake setup
|
263
|
+
|
264
|
+
# Abhängigkeiten
|
265
|
+
Sie benötigen ein installiertes ffmpeg oder avconv.
|
266
|
+
|
267
|
+
# Das Gem starten
|
268
|
+
youtube_dlhelper https://yourYoutubeURL
|
269
|
+
|
270
|
+
# Referenzen
|
271
|
+
* Projekt Home: [https://github.com/saigkill/youtube_dlhelper](https://github.com/saigkill/youtube_dlhelper)
|
272
|
+
* User Dokumentation (en): [http://saigkill.github.io/doc/youtube_dlhelper/en-US/html](http://saigkill.github.io/doc/youtube_dlhelper/en-US/html)
|
273
|
+
* User Dokumentation (de): [http://saigkill.github.io/doc/youtube_dlhelper/de-DE/html](http://saigkill.github.io/doc/youtube_dlhelper/de-DE/html)
|
274
|
+
* Bugreports: [http://saigkill-bugs.myjetbrains.com/youtrack/issues](http://saigkill-bugs.myjetbrains.com/youtrack/issues)
|
275
|
+
|
276
|
+
# Was ist neu in version #{version}?
|
277
|
+
* Step 1
|
278
|
+
* Step2
|
279
|
+
|
280
|
+
# Donations
|
281
|
+
[![publicancreators](https://pledgie.com/campaigns/29423.png?skin_name=chrome)](https://pledgie.com/campaigns/29423)
|
282
|
+
[![wishlist](http://tsv-neuss.de/cms/upload/News-Bilder/amazon1.png)](http://www.amazon.de/registry/wishlist/D75HOEQ00BDD)
|
283
|
+
EOF
|
284
|
+
end
|
285
|
+
puts 'Prepared your Blogpost. Please add the changes of this release'
|
286
|
+
puts 'Now ready for social media posting'
|
287
|
+
|
288
|
+
# Create email to ruby-talk
|
289
|
+
space = '%20'
|
290
|
+
crlf = '%0D%0A'
|
291
|
+
subject = "latex_curriculum_vitae #{version} released"
|
292
|
+
subject.gsub!(/ /, "#{space}")
|
293
|
+
body = 'Hello Ruby list,' + "#{crlf}" + "#{crlf}" +
|
294
|
+
"i would like to announce the youtube_dlhelper gem in version #{version}." + "#{crlf}" + "#{crlf}" +
|
295
|
+
"What happend in version #{version}?" + "#{crlf}" +
|
296
|
+
'* Its the initial release' + "#{crlf}" +
|
297
|
+
'* Fixed LCV 1-4' + "#{crlf}" + "#{crlf}" +
|
298
|
+
'What is youtube_dlhelper?' + "#{crlf}" + "#{crlf}" +
|
299
|
+
'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}" +
|
300
|
+
'Installation:'+ "#{crlf}" + "#{crlf}" +
|
301
|
+
' gem install youtube_dlhelper' + "#{crlf}" +
|
302
|
+
' cd /path/to/gem \(In case of using RVM anything like ~/.rvm/gems/ruby-2.2.1/gems/latex_curriculum_vitae\)' + "#{crlf}" + "#{crlf}" +
|
303
|
+
' rake setup' + "#{crlf}" + "#{crlf}" +
|
304
|
+
'Dependencies:'+ "#{crlf}" + "#{crlf}" +
|
305
|
+
'You need to have ffmpeg or avconv installed. The soft dependencies will be solved by bundler.' + "#{crlf}" + "#{crlf}" +
|
306
|
+
'Using the gem' + "#{crlf}" + "#{crlf}" +
|
307
|
+
'To use the gem just type in the console:' + "#{crlf}" + "#{crlf}" +
|
308
|
+
' youtube_dlhelper https://yourYoutubeURL' + "#{crlf}" + "#{crlf}" +
|
309
|
+
'References:' + "#{crlf}" +
|
310
|
+
'Issue tracker: http://saigkill-bugs.myjetbrains.com/youtrack/issues' + "#{crlf}" +
|
311
|
+
'Home: https://github.com/saigkill/youtube_dlhelper' + "#{crlf}" +
|
312
|
+
'Greetings Sascha'
|
313
|
+
body.gsub!(/ /, "#{space}")
|
314
|
+
system("thunderbird mailto:ruby-talk@ruby-lang.org?subject=#{subject}\\&body=#{body}")
|
315
|
+
system('rm pkg/*')
|
316
|
+
end
|
317
|
+
|
318
|
+
# vim: syntax=ruby
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.9.4
|
data/circle.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
## Customize the test machine
|
2
|
+
machine:
|
3
|
+
|
4
|
+
timezone:
|
5
|
+
Europe/Berlin # Set the timezone
|
6
|
+
|
7
|
+
# Version of ruby to use
|
8
|
+
ruby:
|
9
|
+
version:
|
10
|
+
ruby 2.2.0
|
11
|
+
|
12
|
+
## Customize dependencies
|
13
|
+
dependencies:
|
14
|
+
pre:
|
15
|
+
- gem uninstall bundler # use a custom version of bundler
|
16
|
+
- gem install bundler --pre
|
data/config.reek
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
---
|
2
|
+
Attribute:
|
3
|
+
enabled: false
|
4
|
+
exclude: []
|
5
|
+
BooleanParameter:
|
6
|
+
enabled: true
|
7
|
+
exclude: []
|
8
|
+
ClassVariable:
|
9
|
+
enabled: true
|
10
|
+
exclude: []
|
11
|
+
ControlParameter:
|
12
|
+
enabled: true
|
13
|
+
exclude: []
|
14
|
+
DataClump:
|
15
|
+
enabled: true
|
16
|
+
exclude: []
|
17
|
+
max_copies: 2
|
18
|
+
min_clump_size: 2
|
19
|
+
DuplicateMethodCall:
|
20
|
+
enabled: false
|
21
|
+
exclude: []
|
22
|
+
max_calls: 1
|
23
|
+
allow_calls: []
|
24
|
+
FeatureEnvy:
|
25
|
+
enabled: true
|
26
|
+
exclude: []
|
27
|
+
IrresponsibleModule:
|
28
|
+
enabled: true
|
29
|
+
exclude: []
|
30
|
+
LongParameterList:
|
31
|
+
enabled: true
|
32
|
+
exclude: []
|
33
|
+
max_params: 3
|
34
|
+
overrides:
|
35
|
+
initialize:
|
36
|
+
max_params: 5
|
37
|
+
LongYieldList:
|
38
|
+
enabled: true
|
39
|
+
exclude: []
|
40
|
+
max_params: 3
|
41
|
+
ModuleInitialize:
|
42
|
+
enabled: true
|
43
|
+
exclude: []
|
44
|
+
NestedIterators:
|
45
|
+
enabled: true
|
46
|
+
exclude: []
|
47
|
+
max_allowed_nesting: 1
|
48
|
+
ignore_iterators: []
|
49
|
+
NilCheck:
|
50
|
+
enabled: true
|
51
|
+
exclude: []
|
52
|
+
PrimaDonnaMethod:
|
53
|
+
enabled: true
|
54
|
+
exclude: []
|
55
|
+
RepeatedConditional:
|
56
|
+
enabled: true
|
57
|
+
exclude: []
|
58
|
+
max_ifs: 2
|
59
|
+
TooManyInstanceVariables:
|
60
|
+
enabled: true
|
61
|
+
exclude: []
|
62
|
+
max_instance_variables: 9
|
63
|
+
TooManyMethods:
|
64
|
+
enabled: true
|
65
|
+
exclude: []
|
66
|
+
max_methods: 25
|
67
|
+
TooManyStatements:
|
68
|
+
enabled: true
|
69
|
+
exclude:
|
70
|
+
- initialize
|
71
|
+
max_statements: 5
|
72
|
+
UncommunicativeMethodName:
|
73
|
+
enabled: true
|
74
|
+
exclude: []
|
75
|
+
reject:
|
76
|
+
- !ruby/regexp /^[a-z]$/
|
77
|
+
- !ruby/regexp /[0-9]$/
|
78
|
+
- !ruby/regexp /[A-Z]/
|
79
|
+
accept: []
|
80
|
+
UncommunicativeModuleName:
|
81
|
+
enabled: true
|
82
|
+
exclude: []
|
83
|
+
reject:
|
84
|
+
- !ruby/regexp /^.$/
|
85
|
+
- !ruby/regexp /[0-9]$/
|
86
|
+
accept:
|
87
|
+
- Inline::C
|
88
|
+
UncommunicativeParameterName:
|
89
|
+
enabled: true
|
90
|
+
exclude: []
|
91
|
+
reject:
|
92
|
+
- !ruby/regexp /^.$/
|
93
|
+
- !ruby/regexp /[0-9]$/
|
94
|
+
- !ruby/regexp /[A-Z]/
|
95
|
+
- !ruby/regexp /^_/
|
96
|
+
accept: []
|
97
|
+
UncommunicativeVariableName:
|
98
|
+
enabled: true
|
99
|
+
exclude: []
|
100
|
+
reject:
|
101
|
+
- !ruby/regexp /^.$/
|
102
|
+
- !ruby/regexp /[0-9]$/
|
103
|
+
- !ruby/regexp /[A-Z]/
|
104
|
+
accept:
|
105
|
+
- _
|
106
|
+
UnusedParameters:
|
107
|
+
enabled: true
|
108
|
+
exclude: []
|
109
|
+
UtilityFunction:
|
110
|
+
enabled: true
|
111
|
+
exclude: []
|