last_hit 0.1.1 → 0.1.2

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: 6b0ca1d31cda677a5479be222069951ba8cd2ada
4
- data.tar.gz: 7d62a8adb2686ca5c272ca2ea7dcf2432e05c70b
3
+ metadata.gz: a1cf8247d032a84b0a22135cb45e652d7f98a5e8
4
+ data.tar.gz: fd3018d870623710528ca096bd6b86ef1c1109a7
5
5
  SHA512:
6
- metadata.gz: 50e4d9449ae408e67a6d30d73b4498108179fe2e5bbed180b388ea803fb00b8d7e3b37e21b21fa9151778caa6029a21c1506650420fa3ac70e67e700e7e350c5
7
- data.tar.gz: 39fe5575d6568ab0216dcaa66333fb830f2a8d401f8a42094bff83e2cba1a34cd34907f8aa4b5c5ef901d278c369485ea3e1af507a06438875a85fe913b5bb19
6
+ metadata.gz: 20583d9960f3715eb4b86bb137547f3ff9c03bfb0fbfeba89d4307f73c13a98bceb1929361705de4e1424768b5dd1865dc771ab981a0c5cca545f626ffd2b659
7
+ data.tar.gz: a6e2e8fa1b04e72e4459e5007895ddde985027202cf61531d660c0262396e1414ef156fd15aaabed6030bf0af0fe12c099db2f6dbc6711ce7a7114b3fe1d6877
data/README.md CHANGED
@@ -45,9 +45,11 @@ last_hit modified_tests
45
45
  #### Run all modified tests of your current branch compared to the base branch
46
46
 
47
47
  ```ruby
48
- last_hit all_tests
48
+ last_hit all_tests -b develop
49
49
  ```
50
50
 
51
+ `develop` is your base branch
52
+
51
53
  ## Contributing
52
54
 
53
55
  1. Fork it ( https://github.com/[my-github-username]/last_hit/fork )
data/lib/last_hit/cli.rb CHANGED
@@ -6,13 +6,13 @@ class LastHit
6
6
 
7
7
  desc 'modified_tests', 'Run tests which are currently modified'
8
8
  def modified_tests
9
- LastHit.modified_tests
9
+ LastHit.new.modified_tests
10
10
  end
11
11
 
12
12
  desc 'all_tests', 'Run all tests which have been modified in the current branch'
13
13
  method_option :base, aliases: '-b', desc: 'Base branch for compare', type: :string
14
14
  def all_tests
15
- LastHit.all_tests(options[:base])
15
+ LastHit.new.all_tests(options[:base])
16
16
  end
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  class LastHit
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duc Le