test_changes 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/exe/test-changes +1 -4
- data/lib/test_changes/argv_wrapper.rb +0 -3
- data/lib/test_changes/client.rb +0 -2
- data/lib/test_changes/config.rb +0 -4
- data/lib/test_changes/config_setup_service.rb +0 -3
- data/lib/test_changes/find_runner_service.rb +0 -2
- data/lib/test_changes/finding_pattern.rb +2 -0
- data/lib/test_changes/ignore_excluded_files_service.rb +2 -2
- data/lib/test_changes/inferred_config.rb +0 -2
- data/lib/test_changes/runner.rb +0 -3
- data/lib/test_changes/version.rb +1 -1
- data/lib/test_changes.rb +15 -1
- data/test_changes.gemspec +0 -1
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9ef838574a98a739528cd52b809d44956e22f65
|
4
|
+
data.tar.gz: df530bd9d8909a0e05f3b60cf713ffc633e55844
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b187b1faa1752ceb55430667c561a78ecf035e40952cf0930b6920a5cfeb75dbecdfb285df81cb6b9162190018f15237277b9edf86b82b3522b0b34ebfc7ce6
|
7
|
+
data.tar.gz: 9e8d0b1a5d3bd2b66c5bc813dd5e352af7e1aaa20f4c440a34c61828a7377f8c561502d46f07af01cc890f8c3183f50ea3f04cf79ec2331a3155bd8ff791b8e5
|
data/CHANGELOG.md
CHANGED
data/exe/test-changes
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require 'test_changes
|
4
|
-
require 'test_changes/client'
|
5
|
-
require 'test_changes/config_setup_service'
|
6
|
-
require 'test_changes/find_runner_service'
|
3
|
+
require 'test_changes'
|
7
4
|
|
8
5
|
argv_wrapper = TestChanges::ARGVWrapper.new(ARGV)
|
9
6
|
config = TestChanges::ConfigSetupService.call
|
data/lib/test_changes/client.rb
CHANGED
data/lib/test_changes/config.rb
CHANGED
@@ -2,8 +2,8 @@ module TestChanges
|
|
2
2
|
class IgnoreExcludedFilesService
|
3
3
|
attr_reader :exclusion_patterns
|
4
4
|
|
5
|
-
def initialize(exclusion_patterns
|
6
|
-
@exclusion_patterns = exclusion_patterns
|
5
|
+
def initialize(exclusion_patterns)
|
6
|
+
@exclusion_patterns = exclusion_patterns || []
|
7
7
|
end
|
8
8
|
|
9
9
|
def call(paths)
|
data/lib/test_changes/runner.rb
CHANGED
data/lib/test_changes/version.rb
CHANGED
data/lib/test_changes.rb
CHANGED
@@ -1,4 +1,18 @@
|
|
1
|
-
require
|
1
|
+
require 'pathname'
|
2
|
+
require 'slop'
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
require 'test_changes/argv_wrapper'
|
6
|
+
require 'test_changes/client'
|
7
|
+
require 'test_changes/config'
|
8
|
+
require 'test_changes/config_setup_service'
|
9
|
+
require 'test_changes/error'
|
10
|
+
require 'test_changes/finding_pattern'
|
11
|
+
require 'test_changes/find_runner_service'
|
12
|
+
require 'test_changes/ignore_excluded_files_service'
|
13
|
+
require 'test_changes/inferred_config'
|
14
|
+
require 'test_changes/runner'
|
15
|
+
require 'test_changes/version'
|
2
16
|
|
3
17
|
module TestChanges
|
4
18
|
SUMMARY = 'Test Changes'.freeze
|
data/test_changes.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_changes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- George Mendoza
|
@@ -14,70 +14,70 @@ dependencies:
|
|
14
14
|
name: slop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.4.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.10.1
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.10.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '10.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: Run only the tests affected by files changed since a given commit.
|
@@ -88,12 +88,12 @@ executables:
|
|
88
88
|
extensions: []
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
|
-
- .gitignore
|
92
|
-
- .overcommit.yml
|
93
|
-
- .rspec
|
94
|
-
- .rubocop.yml
|
95
|
-
- .test-changes.yml
|
96
|
-
- .travis.yml
|
91
|
+
- ".gitignore"
|
92
|
+
- ".overcommit.yml"
|
93
|
+
- ".rspec"
|
94
|
+
- ".rubocop.yml"
|
95
|
+
- ".test-changes.yml"
|
96
|
+
- ".travis.yml"
|
97
97
|
- CHANGELOG.md
|
98
98
|
- CODE_OF_CONDUCT.md
|
99
99
|
- Gemfile
|
@@ -126,12 +126,12 @@ require_paths:
|
|
126
126
|
- lib
|
127
127
|
required_ruby_version: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
133
|
requirements:
|
134
|
-
- -
|
134
|
+
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|