youtube_dlhelper 0.1.9.4 → 0.1.9.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,76 +0,0 @@
1
- # Use this file to configure the Overcommit hooks you wish to use. This will
2
- # extend the default configuration defined in:
3
- # https://github.com/brigade/overcommit/blob/master/config/default.yml
4
- #
5
- # At the topmost level of this YAML file is a key representing type of hook
6
- # being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
7
- # customize each hook, such as whether to only run it on certain files (via
8
- # `include`), whether to only display output if it fails (via `quiet`), etc.
9
- #
10
- # For a complete list of hooks, see:
11
- # https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook
12
- #
13
- # For a complete list of options that you can use to customize hooks, see:
14
- # https://github.com/brigade/overcommit#configuration
15
- #
16
- # Uncomment the following lines to make the configuration take effect.
17
-
18
- PreCommit:
19
- BundleCheck:
20
- enabled: true
21
- description: 'Checking Gemfile dependencies'
22
- required_executable: 'bundle'
23
- flags: ['check']
24
- install_command: 'gem install bundler'
25
- include:
26
- - 'Gemfile'
27
- - 'Gemfile.lock'
28
- - '*.gemspec'
29
-
30
- RuboCop:
31
- enabled: true
32
- description: 'Analyzing with RuboCop'
33
- required_executable: 'rubocop'
34
- flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
35
- command: ['bundle', 'exec', 'rubocop'] # Invoke within Bundler context
36
- on_warn: fail # Treat all warnings as failures
37
- install_command: 'gem install rubocop'
38
- include:
39
- - '**/*.gemspec'
40
- - '**/*.rake'
41
- - '**/*.rb'
42
- - '**/Gemfile'
43
- - '**/Rakefile'
44
- - 'lib/**/*.rb'
45
-
46
- TravisLint:
47
- enabled: true
48
- description: 'Checking Travis CI configuration'
49
- required_executable: 'travis'
50
- flags: ['lint']
51
- install_command: 'gem install travis'
52
- include: '.travis.yml'
53
-
54
- Reek:
55
- enabled: true
56
- description: 'Analyzing with Reek'
57
- required_executable: 'reek'
58
- flags: ['--single-line', '--no-color']
59
- install_command: 'gem install reek'
60
- include:
61
- - '**/*.gemspec'
62
- - '**/*.rake'
63
- - '**/*.rb'
64
- - '**/Gemfile'
65
- - '**/Rakefile'
66
-
67
- TrailingWhitespace:
68
- exclude:
69
- - '**/db/structure.sql' # Ignore trailing whitespace in generated files
70
-
71
- #PostCheckout:
72
- # ALL: # Special hook name that customizes all hooks of this type
73
- # quiet: true # Change all post-checkout hooks to only display output on failure
74
- #
75
- # IndexTags:
76
- # enabled: true # Generate a tags file with `ctags` each time HEAD changes
@@ -1,43 +0,0 @@
1
- # Youtube Converter for Ruby
2
- # Description: Downloads a file from a YT URL transcodes them to MP3 or OGG and
3
- # places it into a choosen folder
4
- # Module: Downloader
5
- # Work: It downloads a *.mp4 file from Youtube, then extracts audio to *.m4a
6
- # Class Documentation:
7
- # http://www.rubydoc.info/github/saigkill/youtube_dlhelper/Downloader
8
- #
9
- # Copyright (C) 2013-2015 Sascha Manns <samannsml@directbox.com>
10
- #
11
- # This program is free software: you can redistribute it and/or modify
12
- # it under the terms of the GNU General Public License as published by
13
- # the Free Software Foundation, either version 3 of the License, or
14
- # (at your option) any later version.
15
- #
16
- # This program is distributed in the hope that it will be useful,
17
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- # GNU General Public License for more details.
20
- #
21
- # You should have received a copy of the GNU General Public License
22
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
23
-
24
- # Class for methods who getting informations
25
- module YoutubeDlhelperGet
26
-
27
- # Method for getting the url
28
- # @return [String] urlchecked
29
- def self.url
30
- # @note Put the yad input
31
- urlinput = `yad --entry --button="Go" --title="URL" --text="Place your URL:"`
32
- puts urlinput
33
- return urlinput
34
- end
35
-
36
- # Method for getting the type of the musicans
37
- # def self.type
38
- # # @note Put the yad input
39
- # type = `yad --title="Create documentation" --center --on-top --text="Is it a group or a single interpret" --button="Group" --button="Interpret"`
40
- # puts type
41
- #
42
- # end
43
- end