grspec 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/grspec +1 -1
- data/lib/arg_parser.rb +0 -0
- data/lib/find_changed_files/between_refs.rb +0 -0
- data/lib/find_changed_files/simple_diff.rb +0 -0
- data/lib/find_changed_files/since_ref.rb +0 -0
- data/lib/find_changed_files.rb +3 -5
- data/lib/find_matching_specs.rb +0 -0
- data/lib/grspec.rb +1 -3
- data/lib/spec_runner.rb +0 -0
- metadata +5 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc337747d9c3b2075d13056a58f61dc3c8bcf14b82aa6ebd37479c0c8f5de31e
|
4
|
+
data.tar.gz: 1a52c3b2e2697eb8e930d418e6360f5aeb640527befa8ebd42eef3b72da18828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef68c66b44a274b4435d119f1e4e75c77f36bc3e19f519a0268043565267c08296f77450675350754c1f906469dc3ddb258d4bd7413e263357877e8e5fe3ca67
|
7
|
+
data.tar.gz: b2cd5ee27d70a7d3b255d78f915cae0a7f5620b22a5e81b3d615bda6046fe1ed8e6879b8dd276a1b8479021a1dfd8ea693d8628fc29167fda8dc09dc6cece131
|
data/bin/grspec
CHANGED
data/lib/arg_parser.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/find_changed_files.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
class FindChangedFiles
|
2
|
-
require 'active_support/core_ext/object/blank'
|
3
|
-
|
4
2
|
require_relative 'find_changed_files/simple_diff'
|
5
3
|
require_relative 'find_changed_files/since_ref'
|
6
4
|
require_relative 'find_changed_files/between_refs'
|
@@ -37,14 +35,14 @@ class FindChangedFiles
|
|
37
35
|
private
|
38
36
|
|
39
37
|
def simple_diff?
|
40
|
-
base_ref
|
38
|
+
!base_ref && !diff_ref
|
41
39
|
end
|
42
40
|
|
43
41
|
def since_ref?
|
44
|
-
base_ref
|
42
|
+
base_ref && !diff_ref
|
45
43
|
end
|
46
44
|
|
47
45
|
def between_refs?
|
48
|
-
base_ref
|
46
|
+
base_ref && diff_ref
|
49
47
|
end
|
50
48
|
end
|
data/lib/find_matching_specs.rb
CHANGED
File without changes
|
data/lib/grspec.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'active_support/core_ext/array/access'
|
2
|
-
|
3
1
|
require_relative '../lib/find_changed_files'
|
4
2
|
require_relative '../lib/find_matching_specs'
|
5
3
|
require_relative '../lib/spec_runner'
|
@@ -77,7 +75,7 @@ class Grspec
|
|
77
75
|
end
|
78
76
|
|
79
77
|
def matching_specs
|
80
|
-
@matching_specs ||= spec_matchings.map
|
78
|
+
@matching_specs ||= spec_matchings.map { |match| match[1] }.uniq
|
81
79
|
end
|
82
80
|
|
83
81
|
def non_existent_specs
|
data/lib/spec_runner.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordane Lew
|
@@ -10,9 +10,8 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: GRSpec is a
|
14
|
-
|
15
|
-
without full-on test runs before committing and overloading build nodes.
|
13
|
+
description: GRSpec is a tool for quickly and easily running specs for files that
|
14
|
+
git has detected changes for, allowing for efficient regression checks.
|
16
15
|
email: jordane.lew@gmail.com
|
17
16
|
executables:
|
18
17
|
- grspec
|
@@ -50,9 +49,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
49
|
- !ruby/object:Gem::Version
|
51
50
|
version: '0'
|
52
51
|
requirements: []
|
53
|
-
|
54
|
-
rubygems_version: 2.7.3
|
52
|
+
rubygems_version: 3.0.3
|
55
53
|
signing_key:
|
56
54
|
specification_version: 4
|
57
|
-
summary: A simple spec runner for
|
55
|
+
summary: A simple spec runner for diff'd files
|
58
56
|
test_files: []
|