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.
- checksums.yaml +4 -4
- data/lib/tbgit/version.rb +1 -1
- data/lib/tbspec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9d07bc13d9d43304c4c59d71e7fb5725cce78d7
|
|
4
|
+
data.tar.gz: 0c71270fabc811d2763cb7e40941192c9200e05b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3be8f74454b8dde45d37f99c4391952a72e60f581e5088d69c04ca6646b678c8ae6b0ba13bda198e76605fc1d0d13b7e39ee7540b5333758cd88a7bc5e56c9e5
|
|
7
|
+
data.tar.gz: ab778d3501e104f053a0e6a517fb312f3572ee71c6672fc9250ba3489ebd90894f04e55401b9429a6c9e4a5e1ccd43e90431f786c1c6cfa5a56b83b787ba8a5c
|
data/lib/tbgit/version.rb
CHANGED
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
|
|