regtest 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +3 -0
- data/README.md +5 -3
- data/lib/regtest/git.rb +9 -2
- data/lib/regtest/version.rb +1 -1
- data/regtest.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f62e6caefc8016f1155eb0ec2017653016d048b99c5df037e420f0e118263c0
|
4
|
+
data.tar.gz: 4829db0454d5897a91c0cfda0b8f47920973b3c3dd10221502262de6e480a7be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 404b61dad357ce2f41e922de4287afba65945652ad1b3dc6ca1feb58cadee1048f1fe27a4d2aed530770a573322ace55c57bd8f4e2eb394196702d4d4dd4e23e
|
7
|
+
data.tar.gz: fb0a2d617bc3744305126ccbc9d161119511f5dc76e4d73ccd9abba744e2bb240bbe55826bbdb93332243d3b4fbc5b815e7bf59cdf80dfecc692ca2c9112b5d5
|
data/Changelog
CHANGED
data/README.md
CHANGED
@@ -282,12 +282,14 @@ workflow and environment it should not be checked into your SCM.
|
|
282
282
|
If you use the git plugin (`require 'regtest/git'`) there will be two options
|
283
283
|
you can set:
|
284
284
|
|
285
|
+
* `Regtest::Git.C`
|
285
286
|
* `Regtest::Git.git_dir`
|
286
287
|
* `Regtest::Git.work_tree`
|
287
288
|
|
288
|
-
which corresponds to the git parameters `--git-dir` and `--work-
|
289
|
-
could be helpful if you run `regtest` from inside
|
290
|
-
your regtest files. Have a look at the git documentation for
|
289
|
+
which corresponds to the git parameters `-C`, `--git-dir` and `--work-tree`.
|
290
|
+
Which could be helpful if you run `regtest` from inside some other git
|
291
|
+
repository than your regtest files. Have a look at the git documentation for
|
292
|
+
more details.
|
291
293
|
|
292
294
|
As said above: this should also be done in a local `.regtestrc` file.
|
293
295
|
|
data/lib/regtest/git.rb
CHANGED
@@ -46,6 +46,9 @@ begin
|
|
46
46
|
end
|
47
47
|
|
48
48
|
class << self
|
49
|
+
# git parameter +-C+
|
50
|
+
attr_accessor :C
|
51
|
+
|
49
52
|
# git parameter +--work-tree+
|
50
53
|
attr_accessor :work_tree
|
51
54
|
|
@@ -57,11 +60,15 @@ begin
|
|
57
60
|
|
58
61
|
def git_global_args
|
59
62
|
args = []
|
63
|
+
if c = Regtest::Git.C
|
64
|
+
args << '-C'
|
65
|
+
args << c
|
66
|
+
end
|
60
67
|
if wt = Regtest::Git.work_tree
|
61
68
|
args << format('--work-tree=%s', wt)
|
62
69
|
end
|
63
|
-
if
|
64
|
-
args << format('--git-dir=%s',
|
70
|
+
if gd = Regtest::Git.git_dir
|
71
|
+
args << format('--git-dir=%s', gd)
|
65
72
|
end
|
66
73
|
args
|
67
74
|
end
|
data/lib/regtest/version.rb
CHANGED
data/regtest.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: regtest 2.
|
2
|
+
# stub: regtest 2.4.0 ruby lib
|
3
3
|
#
|
4
4
|
# This file is automatically generated by rim.
|
5
5
|
# PLEASE DO NOT EDIT IT DIRECTLY!
|
@@ -7,12 +7,12 @@
|
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "regtest"
|
10
|
-
s.version = "2.
|
10
|
+
s.version = "2.4.0"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
14
14
|
s.authors = ["Jan Friedrich"]
|
15
|
-
s.date = "2024-09-
|
15
|
+
s.date = "2024-09-13"
|
16
16
|
s.description = "This library supports a very simple way to do regression testing with Ruby. It\nis not limited to Ruby projects you can use it also in other contexts where you\ncan extract data with Ruby.\n\nYou write Ruby scripts with samples. Run these and get the sample results as\nresults files besides your scripts. Check both the scripts and the results\nfiles in you Source Code Management System (SCM). When you run the scrips on a\nlater (or even previous) version of your code a simple diff show you if and how\nthe changes in your code or environment impact the results of your samples.\n\nThis is not a replacement for unit testing but a complement: You can produce a\nlot of samples with a small amount of Ruby code (e.g. a large number of\ncombinations of data).\n"
|
17
17
|
s.email = "janfri26@gmail.com"
|
18
18
|
s.files = ["./.aspell.pws", "Changelog", "Gemfile", "LICENSE", "README.md", "Rakefile", "lib/regtest", "lib/regtest.rb", "lib/regtest/colors.rb", "lib/regtest/git.rb", "lib/regtest/task.rb", "lib/regtest/version.rb", "regtest.gemspec"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regtest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Friedrich
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2024-09-
|
10
|
+
date: 2024-09-13 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|