last_hit 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fec9a8651a90d144637c9c7e9dbe53dd9b4466e3
4
- data.tar.gz: df1afbcd62db73a48163686141df6cba08184b88
3
+ metadata.gz: 974a27384797468a667ee8744e39898d276597bb
4
+ data.tar.gz: d92e87b8718f28f73bb861f55e3dbf753e90cd21
5
5
  SHA512:
6
- metadata.gz: 2f940eae70c68c66a661a17e064ace5f445fdfed06e7819793e1a62d900a346a780a6fdc2214b2063155ec91e3d2a75c58181ed82a8d239784f9115afd2072b5
7
- data.tar.gz: 5f9ccb5c34cde694c1a560df469b00012fa5bfea36f98a73a5a08a92237612888806c8713293178a2e748e5786270cb8220037808ef1d9cd14d28a2d5a33a17d
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 )
@@ -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
- check(files)
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 check(files)
38
+ def warning(files)
38
39
  Checker.check(files)
39
40
  end
40
41
  end
@@ -9,6 +9,8 @@ class LastHit
9
9
  if results.length > 0
10
10
  $stdout.puts 'There are some changed files without tests'
11
11
  results.each { |r| $stdout.puts r }
12
+ else
13
+ $stdout.puts 'No changed files without tests'
12
14
  end
13
15
  end
14
16
 
@@ -1,3 +1,3 @@
1
1
  class LastHit
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: last_hit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duc Le