git-autobisect 0.3.1 → 0.4.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7472d44eaf0347935290a26038383e254336f763
4
+ data.tar.gz: 4cede198fcd3c80b29de1fbc7a9f37881d637df9
5
+ SHA512:
6
+ metadata.gz: a31f5cc597f46a537aec148642ff6debc50ccf26997df57328b1c1d59e5a3f38a1d406217924d0c67e38e838023ea4b71c2eaaabbbbc5fc0b2713f97a7ea3587
7
+ data.tar.gz: c86c92420d6009a04588baa763c0495f03403dba39504328cc0486a3fad11d5c3b514fc434e1d903f463f5a35185b862b850550bdf262c93eeca55db239af1fe
@@ -13,7 +13,7 @@ module Git
13
13
  end
14
14
 
15
15
  # make sure bundle is fresh before each run
16
- if File.exist?("Gemfile")
16
+ if !options[:no_bundle] && File.exist?("Gemfile")
17
17
  command = "(bundle check || (test -f vendor/cache && bundle --local --quiet) || bundle --quiet) && (#{command})"
18
18
  end
19
19
 
@@ -64,7 +64,9 @@ module Git
64
64
  opts.on("-h", "--help", "Show this.") { puts opts; exit }
65
65
  opts.on("-v", "--version", "Show Version"){ puts "git-autobisect #{Version}"; exit }
66
66
  opts.on("-m", "--max N", Integer, "Inspect commits between HEAD..HEAD~<max>"){|max| options[:max] = max }
67
- opts.on("-s", "--start N", Integer, "Use N (instead of 1) as initial step and keep muliplying by 2"){|start| options[:start] = start }
67
+ opts.on("-s", "--start N", Integer, "Use N (instead of 1) as initial step and keep multiplying by 2"){|start| options[:start] = start }
68
+ opts.on("--step N", Integer, "Use N as step (instead of multiplying by 2)"){|step| options[:step] = step }
69
+ opts.on("--no-bundle", "Do not bundle even if a Gemfile exists"){ options[:no_bundle] = true }
68
70
  end.parse!(argv)
69
71
  options
70
72
  end
@@ -88,6 +90,7 @@ module Git
88
90
  def find_good_and_bad_commit(commits, command, options)
89
91
  initial = 1
90
92
  i = options[:start] || initial
93
+ step = options[:step]
91
94
  maybe_good = commits.first
92
95
 
93
96
  loop do
@@ -100,7 +103,7 @@ module Git
100
103
  puts " ---> Now trying #{maybe_good} (HEAD~#{offset})"
101
104
  run!("git checkout #{maybe_good}")
102
105
  return [maybe_good, bad] if run(command).first
103
- i *= 2
106
+ step ? i += step : i *= 2
104
107
  end
105
108
  end
106
109
 
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Autobisect
3
- VERSION = Version = "0.3.1"
3
+ VERSION = Version = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-autobisect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
5
- prerelease:
4
+ version: 0.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Michael Grosser
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-12 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description:
15
14
  email: michael@grosser.it
@@ -21,35 +20,28 @@ files:
21
20
  - bin/git-autobisect
22
21
  - lib/git/autobisect.rb
23
22
  - lib/git/autobisect/version.rb
24
- homepage: http://github.com/grosser/git-autobisect
23
+ homepage: https://github.com/grosser/git-autobisect
25
24
  licenses:
26
25
  - MIT
26
+ metadata: {}
27
27
  post_install_message:
28
28
  rdoc_options: []
29
29
  require_paths:
30
30
  - lib
31
31
  required_ruby_version: !ruby/object:Gem::Requirement
32
- none: false
33
32
  requirements:
34
- - - ! '>='
33
+ - - ">="
35
34
  - !ruby/object:Gem::Version
36
35
  version: '0'
37
- segments:
38
- - 0
39
- hash: 3606334958800151153
40
36
  required_rubygems_version: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
- segments:
47
- - 0
48
- hash: 3606334958800151153
49
41
  requirements: []
50
42
  rubyforge_project:
51
- rubygems_version: 1.8.25
43
+ rubygems_version: 2.2.2
52
44
  signing_key:
53
- specification_version: 3
45
+ specification_version: 4
54
46
  summary: Find the first broken commit without having to learn git bisect
55
47
  test_files: []