git_spelunk 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzI4MDI1MzBhYzllMTQ1N2I0YTM5ZGY0ZTVmZjUwYzI0NDE2ZTFkMw==
4
+ MzE5OGIzZGI1MDgwNWU1NzYwYWU0ZTU5ZGQ3MWE3YmNlNDBiZjM4ZQ==
5
5
  data.tar.gz: !binary |-
6
- NjJiZWJkMWM0MmU0OTEzMjEyMjgwNjJjNmNjZTEzMTU4NjUyMWIwMg==
6
+ OGU0MjkzZWZlYjZiZGNmZDJjNTBiN2FmODZjNGY3ZmVhMzcwOTg0OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWI4MjdiOTg0OTdiNDk0YTVhZmI2NzU1MmIyYTkxMThhMzhkOWJmOThjMDkw
10
- MmUyMjQ0NDg2OThmMjg2NTRmZjc5YzkzMDhlZGQ4NzhmYWEyNTUyYjgyODVj
11
- NDc3NzEwMDJjOGRiNjBkN2UxZTg4YzdmOWE0MWE0ZTYyZjJmM2Y=
9
+ NDQ3OTdiYTA0MTkwNTE5ZWVkNmQyN2EwYjYyODFkMzg1M2FkZTBjNjEzOWJj
10
+ YzcwNjY4NmE5MDIyNjIyYzUyMzYzY2U0NDNkMzEzYmI5OGY3MTVmMWM5MThi
11
+ ODQ0Y2U3MjVmNjNhMWE4ZjNmM2NhOTY1MGU2ODllZGFjYjE4Nzg=
12
12
  data.tar.gz: !binary |-
13
- OGZiMTMwMDgyYmU1YzA4ZmI4N2I0Yzc2NDA5YTYxMTA2ZjY0ZDJiNDE1NTJk
14
- MzhlOTI4NTMwYzRhMGM1YjIxMWYxYjcyMTcwNTU5NTc0NmYxYjdhODQ0NjEy
15
- NjQ5ZGE4YTQ4NDRhMWM5MGI3MmFmNTQ0NTcxYmJkNzIxNDZkNTU=
13
+ OWQ2MTdkNGFjYzQ0Njk0Y2RlZDY3YzE1Mjk1MDRhNzdlYTc0YTE4YmZhMWE1
14
+ ZjUzNTU3OTNlZTQxMGFjNzljYzBlNmRlYjQyOWMzMDMxZTRjNjYzZWVhODVh
15
+ NGQ3M2U0MjQ0YTYyYzU0Yzk4YTI0NmUxNjYzNDNkY2E5YTZhZmE=
@@ -36,7 +36,6 @@ module GitSpelunk
36
36
  sha, content = b.sha, b.content
37
37
 
38
38
  line_number = i + @top
39
- content_start = (sha.size + line_number_width + 2)
40
39
 
41
40
  if sha == active_sha && highlight_sha
42
41
  styles.add(ACTIVE_SHA_COLOR, i, 0...999)
@@ -52,6 +51,8 @@ module GitSpelunk
52
51
  line << " %*s " % [line_number_width, line_number]
53
52
  line << content
54
53
 
54
+ content_start = (sha_abbrev.size + line_number_width + 2)
55
+
55
56
  if @search_term
56
57
  Dispel::Tools.indexes(content, @search_term).each do |found|
57
58
  found = content_start + found
@@ -1,3 +1,3 @@
1
1
  module GitSpelunk
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_spelunk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Osheroff
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-28 00:00:00.000000000 Z
12
+ date: 2014-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: grit