repotube 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/repotube +1 -0
  3. data/lib/repotube.rb +5 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfe47d60ab1d4645acfa7dcb74ce52b516ff2b54285d7df19c6c287d26057bd7
4
- data.tar.gz: ff9dced1eedc5dac81c6260b045e4032e2c11e368abac27486f13279ddb84deb
3
+ metadata.gz: 6954a8bb66e3d369a3be3735dc123ae16d8021017191ebb7f97405539224d61f
4
+ data.tar.gz: '085623939db98352ba95cfb2450d8941d9e11c5d3821f3b77b2cd436583a81dc'
5
5
  SHA512:
6
- metadata.gz: 6cf569736f58df4bdaf919db36843a1e27dac2d54a0dcc27ebcb87eddc4fc4c8b9eb2f4dfb795facfd46a4e3607147567a2bbf39f8b2b8937274f06d38ccdad2
7
- data.tar.gz: 6dd779e90ca2d1f05f888e6ebf072f8bfa95774ce3a5055ba2c98c05d7057ed248ad5a3e761e5a79bd39417337df78234f707af2a12741e5d92a330849a0d6e8
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.2.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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repotube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Stolley