last_hit 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -0
- data/lib/last_hit.rb +3 -2
- data/lib/last_hit/checker.rb +2 -0
- data/lib/last_hit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 974a27384797468a667ee8744e39898d276597bb
|
4
|
+
data.tar.gz: d92e87b8718f28f73bb861f55e3dbf753e90cd21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 176045e9e586ec4972e2b25690b6c9f4c22bf419b2d2290d3bfae42c4ded1a2abbb123fe7f97e218234379cee6701223993b1dcbaf8070ff023a508c979edf4b
|
7
|
+
data.tar.gz: 5ccc166b3c1a93840c5e4783e6ed972da4991b247bfde868138651c66e50e2bf4b511730965049c85c492b8fb2d9c153c7e026d4418260b7e041bba71e079907
|
data/README.md
CHANGED
@@ -47,6 +47,7 @@ Options for command:
|
|
47
47
|
```ruby
|
48
48
|
last_hit all_tests -b develop
|
49
49
|
|
50
|
+
#=> Run tests changed between: develop -> feature
|
50
51
|
#=> Run files: spec/file_filter/spec_spec.rb spec/rc_adapter/git_spec.rb
|
51
52
|
|
52
53
|
#=> ...
|
@@ -55,6 +56,17 @@ last_hit all_tests -b develop
|
|
55
56
|
#=> 3 examples, 0 failures
|
56
57
|
```
|
57
58
|
|
59
|
+
#### Print out changed files without tests
|
60
|
+
* `-b [base_branch]` specify the base branch, optional.
|
61
|
+
* `-C [config_file_path]` specify the file path of the config, optional, default is `~/last_hit.yml`.
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
last_hit check -b develop
|
65
|
+
|
66
|
+
#=> There are some changed files without tests
|
67
|
+
#=> lib/last_hit.rb
|
68
|
+
```
|
69
|
+
|
58
70
|
## Contributing
|
59
71
|
|
60
72
|
1. Fork it ( https://github.com/[my-github-username]/last_hit/fork )
|
data/lib/last_hit.rb
CHANGED
@@ -19,12 +19,13 @@ class LastHit
|
|
19
19
|
base_branch = Configure.base_branch if base_branch.nil?
|
20
20
|
files = RcAdapter::Git.current_branch_files(base_branch)
|
21
21
|
process(files)
|
22
|
+
warning(files)
|
22
23
|
end
|
23
24
|
|
24
25
|
def check(base_branch)
|
25
26
|
base_branch = Configure.base_branch if base_branch.nil?
|
26
27
|
files = RcAdapter::Git.current_branch_files(base_branch)
|
27
|
-
|
28
|
+
warning(files)
|
28
29
|
end
|
29
30
|
|
30
31
|
private
|
@@ -34,7 +35,7 @@ class LastHit
|
|
34
35
|
TestHandler.run(tests)
|
35
36
|
end
|
36
37
|
|
37
|
-
def
|
38
|
+
def warning(files)
|
38
39
|
Checker.check(files)
|
39
40
|
end
|
40
41
|
end
|
data/lib/last_hit/checker.rb
CHANGED
data/lib/last_hit/version.rb
CHANGED