repotube 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/exe/repotube +1 -0
- data/lib/repotube.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6954a8bb66e3d369a3be3735dc123ae16d8021017191ebb7f97405539224d61f
|
4
|
+
data.tar.gz: '085623939db98352ba95cfb2450d8941d9e11c5d3821f3b77b2cd436583a81dc'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79c022b6b704ce684121935c91f8a4ccf9460c4dd7ff3cc267237f976414620a84682d3bdfbf21950b8124ad55d8d56b55d646b215978c23762b9e323df2756c
|
7
|
+
data.tar.gz: 3d483a1cc4c635c7d32ef365b3f337b827199064a1f3b19062dcba48d47189cd1723c8e89d261681fcf200cfb044d2504a405b78407cf2c9edb4872691cd1b7e
|
data/exe/repotube
CHANGED
@@ -17,6 +17,7 @@ Mercenary.program(:repotube) do |p|
|
|
17
17
|
p.option "remote", "-r USERNAME/REPO", "--remote USERNAME/REPO", "Set the remote repo path on GitHub; auto-detected if repo has a remote"
|
18
18
|
p.option "readme", "-d FILENAME", "--readme FILENAME", "Set the README file name; defaults to README.md"
|
19
19
|
p.option "noreadme", "-n", "--no-readme", "Disable generating the README.md file"
|
20
|
+
p.option "nointro", "-x", "--no-intro", "Supress '00:00:00 Introduction' marker in YouTube output "
|
20
21
|
|
21
22
|
p.action do |args, options|
|
22
23
|
if args.empty?
|
data/lib/repotube.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'pathname'
|
4
4
|
|
5
5
|
module RepoTube
|
6
|
-
VERSION = "0.
|
6
|
+
VERSION = "0.3.0"
|
7
7
|
|
8
8
|
class Program
|
9
9
|
|
@@ -20,6 +20,7 @@ module RepoTube
|
|
20
20
|
@remote = set_value(options['remote'], discover_remote)
|
21
21
|
@readme = set_value(options['readme'],"README.md")
|
22
22
|
@noreadme = options['noreadme']
|
23
|
+
@nointro = options['nointro']
|
23
24
|
@commits = log_commits
|
24
25
|
|
25
26
|
end
|
@@ -80,6 +81,9 @@ module RepoTube
|
|
80
81
|
def output_index
|
81
82
|
puts "\nYouTube-Friendly Index by Commit"
|
82
83
|
puts "(cut and paste into the YouTube description box):\n\n"
|
84
|
+
if @nointro.nil?
|
85
|
+
puts "00:00:00 Introduction"
|
86
|
+
end
|
83
87
|
@commits.each do |commit|
|
84
88
|
puts "#{Time.at(commit[:offset]).utc.strftime("%H:%M:%S")} #{commit[:cs]}"
|
85
89
|
end
|