tbgit 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tbgit/version.rb +1 -1
- data/lib/tbgit.rb +11 -5
- 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: 9c48220747b8b8469cb020d5157afeed832a3871
|
4
|
+
data.tar.gz: 22048d8dd2d68fa0359e1866d8f586cb89bbcb4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 416be789a42ff7ebc57619d0569b76dcd2545d0c8c2d0cc24e32192b1f391665e04c7866ad05f30be1a4c180ce6e8ef46c3519c95ccac3b31c890abd6bdd0964
|
7
|
+
data.tar.gz: 4f2b8b9c7f76a8c5bbf57c7624a33b6b8b259a72ec897c6c36e3c0c06d1c2db1ca720cb8a677dd0168589548e92b9cbecef853b9f5da3d2dbd02388cab1ce51a
|
data/lib/tbgit/version.rb
CHANGED
data/lib/tbgit.rb
CHANGED
@@ -180,20 +180,26 @@ module Main
|
|
180
180
|
def spec
|
181
181
|
puts "Please specify the relative path from your pwd to the rspec file you would like to spec, eg. 'hw1/spec/spec.rb'"
|
182
182
|
specfile = $stdin.gets.chomp
|
183
|
-
|
184
|
-
puts "**Must be outside the student's repo directory, eg. '../results.txt'**"
|
185
|
-
mastercopy = $stdin.gets.chomp
|
183
|
+
|
186
184
|
puts "Where would you like to save each student's individual results?"
|
187
185
|
puts "**Must be inside the student's repo directory, eg. 'hw1/spec/results.txt'**"
|
188
186
|
studentcopy = $stdin.gets.chomp
|
187
|
+
|
188
|
+
puts "In which folder would you like to save a copy of all results?"
|
189
|
+
puts "**Must be outside the student's repo directory, eg. '../results'**"
|
190
|
+
mastercopy = $stdin.gets.chomp
|
191
|
+
|
192
|
+
puts "mkdir " + mastercopy
|
193
|
+
system "mkdir " + mastercopy
|
194
|
+
|
189
195
|
puts "Commit message (commiting each student's results to their repo):"
|
190
196
|
commit_message = $stdin.gets.chomp
|
197
|
+
|
191
198
|
confirm("'rspec " + specfile + "' will be executed on each student's local branch. \
|
192
199
|
Individual results will be saved to " + studentcopy + " and master results to " + mastercopy + ". Continue?")
|
193
200
|
|
194
201
|
on_each_exec(["rspec " +specfile + " > " + studentcopy, #overwrite
|
195
|
-
"
|
196
|
-
"cat " + studentcopy + " >> " + mastercopy, #append
|
202
|
+
"rspec --format json --out " + mastercopy + "/<branch> " + specfile,
|
197
203
|
"git add --all",
|
198
204
|
"git commit -am '" + commit_message + "'",
|
199
205
|
"git push <branch> <branch>:master"])
|