bugspots 0.2.0 → 0.2.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: b3605e350429ccbd15135861af54c0cea4333298
4
- data.tar.gz: 6c1ccbbd2ca85c606c97dfdb93bae9267fa170bd
3
+ metadata.gz: 93e2a62274f3a178825b80ad4c30a333b2b104e8
4
+ data.tar.gz: 0f03a3e743aa346217c1fab5f3c86def0fa429f5
5
5
  SHA512:
6
- metadata.gz: 32a6c2d01b8ff2e4121061261b7d7c600cac44722d2775ba561cece41907cbc70fba290b7664cf906c33b39e56ee04c03dae44a5c00741cb19c942d4b7493c6a
7
- data.tar.gz: 18e6e5a7d0b60af895f4cac8b0c517f4f16f973bff0e6874f086cfe97054bba6ca9258c5011fcfa101dbf23ee95f90bd1b573fe95c59096bcab4737f94ac3e1f
6
+ metadata.gz: e5279b3728e6788cc6a85e48b56e5452afa5ccdd7f6b92ae40cf57277928bb1dd6ad9dfc229f5cff8a6bd9ed48544fec28dcce791403a1c3c4da6fd08c8c5e7e
7
+ data.tar.gz: c028ae36ffe156eb4bd05335afa73432b809c4690d92f565355e924bc9f20a28dcb5ce5e202c33b5b3b9565ad89c828fe11b805fc8095743cc561339b4f3e3e8
@@ -18,10 +18,6 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_dependency "rugged"
21
+ s.add_dependency "rugged", ">= 0.21.0"
22
22
  s.add_dependency "rainbow"
23
-
24
- # specify any dependencies here; for example:
25
- # s.add_development_dependency "rspec"
26
- # s.add_runtime_dependency "rest-client"
27
23
  end
@@ -9,16 +9,13 @@ module Bugspots
9
9
  fixes = []
10
10
 
11
11
  repo = Rugged::Repository.new(repo)
12
- unless Rugged::Branch.each_name(repo).sort.find { |b| b == branch }
12
+ unless repo.branches.each_name(:local).sort.find { |b| b == branch }
13
13
  raise ArgumentError, "no such branch in the repo: #{branch}"
14
14
  end
15
15
 
16
16
  walker = Rugged::Walker.new(repo)
17
17
  walker.sorting(Rugged::SORT_TOPO | Rugged::SORT_REVERSE)
18
-
19
- tip = Rugged::Branch.lookup(repo, branch).tip.oid
20
- walker.push(tip)
21
-
18
+ walker.push(repo.branches[branch].target)
22
19
  walker.each do |commit|
23
20
  if commit.message =~ regex
24
21
  files = commit.diff(commit.parents.first).deltas.collect do |d|
@@ -1,3 +1,3 @@
1
1
  module Bugspots
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugspots
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Grigorik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-14 00:00:00.000000000 Z
11
+ date: 2014-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.21.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
- version: '0'
26
+ version: 0.21.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rainbow
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
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'
41
41
  description: Implementation of simple bug prediction hotspot heuristic
@@ -47,7 +47,7 @@ executables:
47
47
  extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
- - .gitignore
50
+ - ".gitignore"
51
51
  - Gemfile
52
52
  - README.md
53
53
  - Rakefile
@@ -66,19 +66,18 @@ require_paths:
66
66
  - lib
67
67
  required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - '>='
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project: bugspots
79
- rubygems_version: 2.0.6
79
+ rubygems_version: 2.2.2
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Implementation of simple bug prediction hotspot heuristic
83
83
  test_files: []
84
- has_rdoc: