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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cc70f46a0ecc0eb63dbf411fdca42a39d0ec58d
4
- data.tar.gz: c39900feb27bf873361bcb9d2cdbb9722751a0d1
3
+ metadata.gz: e9ef838574a98a739528cd52b809d44956e22f65
4
+ data.tar.gz: df530bd9d8909a0e05f3b60cf713ffc633e55844
5
5
  SHA512:
6
- metadata.gz: 0e125f2b5f8126a7bb443b5adaacb4de1b99c46172210bfb2ae6cbd82a8dd0fdb2dddc6ad7798363106738f28aec89eada6b304e2de79b16fabdee8df6dffddb
7
- data.tar.gz: ebb3652470a3a377e88b11f1cbd45dfc0f4295eb2875ab9676e1297735c2bcb94e5f85398ab86165490f4898260a738640afe23873becfe45d690ec6d90c8c6f
6
+ metadata.gz: 2b187b1faa1752ceb55430667c561a78ecf035e40952cf0930b6920a5cfeb75dbecdfb285df81cb6b9162190018f15237277b9edf86b82b3522b0b34ebfc7ce6
7
+ data.tar.gz: 9e8d0b1a5d3bd2b66c5bc813dd5e352af7e1aaa20f4c440a34c61828a7377f8c561502d46f07af01cc890f8c3183f50ea3f04cf79ec2331a3155bd8ff791b8e5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## master
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Bug fixes
6
+
7
+ * Fix: throws error if a runner doesn't have exclusion patterns.
8
+ * Fix: FindingPattern should require pathname.
9
+
3
10
  ## 0.3.0
4
11
 
5
12
  ### Breaking changes
data/exe/test-changes CHANGED
@@ -1,9 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'test_changes/argv_wrapper'
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
@@ -1,6 +1,3 @@
1
- require 'slop'
2
- require 'test_changes'
3
-
4
1
  module TestChanges
5
2
  class ARGVWrapper
6
3
  attr_reader :argv
@@ -1,5 +1,3 @@
1
- require 'test_changes/finding_pattern'
2
-
3
1
  module TestChanges
4
2
  class Client
5
3
  def initialize(options)
@@ -1,7 +1,3 @@
1
- require 'test_changes/finding_pattern'
2
- require 'test_changes/runner'
3
- require 'yaml'
4
-
5
1
  module TestChanges
6
2
  class Config
7
3
  def initialize(config_path)
@@ -1,6 +1,3 @@
1
- require 'test_changes/config'
2
- require 'test_changes/inferred_config'
3
-
4
1
  module TestChanges
5
2
  module ConfigSetupService
6
3
  def self.call
@@ -1,5 +1,3 @@
1
- require 'test_changes/runner'
2
-
3
1
  module TestChanges
4
2
  class FindRunnerService
5
3
  def initialize(argv_wrapper: nil, config: nil)
@@ -1,3 +1,5 @@
1
+
2
+
1
3
  module TestChanges
2
4
  class FindingPattern
3
5
  attr_reader :matching_pattern, :substitution_patterns
@@ -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)
@@ -1,5 +1,3 @@
1
- require 'test_changes/error'
2
-
3
1
  module TestChanges
4
2
  InferredConfig = Struct.new(:runners)
5
3
  end
@@ -1,6 +1,3 @@
1
- require 'test_changes/ignore_excluded_files_service'
2
- require 'test_changes/config_setup_service'
3
-
4
1
  module TestChanges
5
2
  class Runner
6
3
  def initialize(
@@ -1,3 +1,3 @@
1
1
  module TestChanges
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/lib/test_changes.rb CHANGED
@@ -1,4 +1,18 @@
1
- require "test_changes/version"
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
@@ -2,7 +2,6 @@
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'test_changes'
5
- require 'test_changes/version'
6
5
 
7
6
  Gem::Specification.new do |spec|
8
7
  spec.name = "test_changes"
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.0
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: []