mesa_test 0.2.2 → 0.2.3
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/mesa_test.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6c4b03362d159640ff3100e62eb0788050afae5
|
4
|
+
data.tar.gz: cf566216e0a729cb7351062e4a91ecb4b145795e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3f9acf4a7c22c2ad0f3fcedc7da7974eda0af0c3839372cdf45031c13179af2611e3365bee75aba6d8dc98f16c95649e4027d75dda4461966c7036a9c8f0d33
|
7
|
+
data.tar.gz: 40a09e6ec4c293ad29bd37935a32c230a4ff560d6166fa8661cda772e0a92b86ea694189f376b446b9a0e35498da114eaa2d0bbff05563157c8c3eff6274b26b
|
data/lib/mesa_test.rb
CHANGED
@@ -266,7 +266,9 @@ e-mail and password will be stored in plain text.'
|
|
266
266
|
end
|
267
267
|
|
268
268
|
def revision_submit_params(mesa)
|
269
|
-
|
269
|
+
# only query svn if we didn't do it in the first place. Probably
|
270
|
+
# unnecessary
|
271
|
+
mesa.load_svn_data if mesa.use_svn? && mesa.svn_version.nil?
|
270
272
|
# version gives data about version
|
271
273
|
# user gives data about the user and computer submitting information
|
272
274
|
# instances is array of hashes that identify test instances (more below)
|
@@ -603,7 +605,11 @@ class Mesa
|
|
603
605
|
def svn_version_number
|
604
606
|
# match output of svn info to a line with the revision, capturing the
|
605
607
|
# number, and defaulting to 0 if none is found.
|
606
|
-
|
608
|
+
matches = /Revision\:\s+(\d+)/.match(`svn info #{mesa_dir}`)
|
609
|
+
unless matches.nil?
|
610
|
+
return matches[1].to_i
|
611
|
+
end
|
612
|
+
return 0
|
607
613
|
rescue Errno::ENOENT
|
608
614
|
return 0
|
609
615
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mesa_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Wolf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|