tbgit 1.1.7 → 1.1.8

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tbgit/version.rb +1 -1
  3. data/lib/tbspec.rb +8 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a42b72b43b319434a463485e9a590db4ff6fdd50
4
- data.tar.gz: 637b72f53ca7e3976bcb1141ea13cb6e867445f5
3
+ metadata.gz: e9d07bc13d9d43304c4c59d71e7fb5725cce78d7
4
+ data.tar.gz: 0c71270fabc811d2763cb7e40941192c9200e05b
5
5
  SHA512:
6
- metadata.gz: c8d2612da5ebfa6eaeca63bb07e2dd882f1950018e5898d3188dcb4f47e0c951248f727cf3d53827d317cb6477b784f24fd371ec0ce33ead79e7fa1e91522ddb
7
- data.tar.gz: 4bfd77b67c7662dc74041c93ab6edfdacb3e9d71dc968024a759f1453daae366dfa1f6ef9c6072f983fa96765a5a06457857bf509a9c21fe484ef2ef91dd465d
6
+ metadata.gz: 3be8f74454b8dde45d37f99c4391952a72e60f581e5088d69c04ca6646b678c8ae6b0ba13bda198e76605fc1d0d13b7e39ee7540b5333758cd88a7bc5e56c9e5
7
+ data.tar.gz: ab778d3501e104f053a0e6a517fb312f3572ee71c6672fc9250ba3489ebd90894f04e55401b9429a6c9e4a5e1ccd43e90431f786c1c6cfa5a56b83b787ba8a5c
data/lib/tbgit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tbgit
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
3
3
  end
data/lib/tbspec.rb CHANGED
@@ -46,6 +46,10 @@ class TBSpec
46
46
  options[:check] = u
47
47
  end
48
48
 
49
+ opts.on("-o", "--on-completion COMMAND", "On completion of rspec testing, execute the specified command.") do |o|
50
+ options[:on_completion] = 0
51
+ end
52
+
49
53
  opts.on_tail("-h", "--help", "Show this message") do
50
54
  puts opts
51
55
  exit
@@ -146,6 +150,10 @@ class TBSpec
146
150
  system("git commit -am '" + commit_message + "'")
147
151
  puts "git push "+student+" "+student+":master"
148
152
  system("git push "+student+" "+student+":master")
153
+ if options[:on_completion] != nil
154
+ puts options[:on_completion]
155
+ system(options[:on_completion])
156
+ end
149
157
  end
150
158
  end
151
159
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tbgit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Proctor