tbgit 1.1.5 → 1.1.6
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 +21 -17
- 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: 3175b1685364c4d7f14c1a8fa7744eb1f65fa619
|
|
4
|
+
data.tar.gz: a729b0d91a35f9374ca29c91a3bd22e613eb574f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b646920d45e8101e8d88c4b8d8432a0cd5099de29f89fb9ef8f98e049e246ce5869472b731223052129f132159eae9a803791bc7658127ed7c749528f86edad8
|
|
7
|
+
data.tar.gz: c852f35101f107b257f9a3fc542b73ec0335cafb0485ec2448d858e244b2d9abfd4de481c3b9dbb2d6b9ce49041db2b79c1a312c9a259af2dc49037534d5a1ad
|
data/lib/tbgit/version.rb
CHANGED
data/lib/tbspec.rb
CHANGED
|
@@ -126,24 +126,28 @@ class TBSpec
|
|
|
126
126
|
"git push <branch> <branch>:master"])
|
|
127
127
|
else
|
|
128
128
|
system("git checkout " + student)
|
|
129
|
+
output = ""
|
|
129
130
|
if options[:check]!=nil
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
131
|
+
puts "Checking to make sure last commit was not authored by: " + options[:check]
|
|
132
|
+
egrep = "git log -1 | egrep " + options[:check]
|
|
133
|
+
puts egrep
|
|
134
|
+
output = system(egrep)
|
|
135
|
+
end
|
|
136
|
+
if output
|
|
137
|
+
#do nothing
|
|
138
|
+
else
|
|
139
|
+
puts "rspec " + specfile + " > " + studentcopy
|
|
140
|
+
system("rspec " + specfile + " > " + studentcopy)
|
|
141
|
+
puts "rspec --format json --out " + mastercopy + "/"+student+" " + specfile
|
|
142
|
+
system("rspec --format json --out " + mastercopy + "/"+student+" " + specfile)
|
|
143
|
+
puts "git add --all"
|
|
144
|
+
system("git add --all")
|
|
145
|
+
puts "git commit -am '" + commit_message + "'"
|
|
146
|
+
system("git commit -am '" + commit_message + "'")
|
|
147
|
+
puts "git push "+student+" "+student+":master"
|
|
148
|
+
system("git push "+student+" "+student+":master")
|
|
149
|
+
|
|
150
|
+
tbgit.switch_to_master
|
|
147
151
|
end
|
|
148
152
|
end
|
|
149
153
|
|