Skip to content

Commit a2007f2

Browse files
committed
nicer gemspec + install tasks
1 parent a16a21a commit a2007f2

6 files changed

+36
-18
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
source "http://rubygems.org"
1+
source "https://rubygems.org"
22

33
gemspec
44
gem 'debugger'

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PATH
55
grit
66

77
GEM
8-
remote: http://rubygems.org/
8+
remote: https://rubygems.org/
99
specs:
1010
bump (0.4.2)
1111
columnize (0.3.6)

MIT-LICENSE.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (C) 2013 Ben Osheroff <ben@zendesk.com>
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
This is git-spelunk, an interactive tool for exploring blame history.
44

5-
## Huh?
5+
## Huh?
66

7-
`git blame` is a great tool for determining code responsibility. But sometimes when you
8-
fire up git-blame, you'll find yourself in a loop of `git-blame`, `git-show`, and then
7+
`git blame` is a great tool for determining code responsibility. But sometimes when you
8+
fire up git-blame, you'll find yourself in a loop of `git-blame`, `git-show`, and then
99
`git-blame` again in order to find the true owner of a line of code.
10-
`git-spelunk` is the tool for situations like this, when you want to
10+
`git-spelunk` is the tool for situations like this, when you want to
1111
skip past syntactic and refactoring commits to find the true owner of a line, or see how
1212
a piece of source code has evolved over time.
1313

@@ -22,15 +22,16 @@ git spelunk lib/git_spelunk/offset.rb
2222
![git spelunk, main page](images/screenshot_1.png)
2323

2424
You can see we've highlighted line 45. `git-spelunk` here is telling us that this line was introduced
25-
in commit 33465d2. You can also see that all other lines that were involved in 33465d2 are picked out
25+
in commit 33465d2. You can also see that all other lines that were involved in 33465d2 are picked out
2626
in green. The output of `git show` is present as well for adding more context to the information.
2727

28-
Now we press '['. What we're asking here is "show me the file just before 33465d2" was introduced,
28+
Now we press '['. What we're asking here is "show me the file just before 33465d2" was introduced,
2929
essentially replacing the content of the current screen with `git blame [file] 33465d2~1`.
3030

3131
![git spelunk, back one](images/screenshot_2.png)
3232

33-
There's other stuff to do; you can hit "s" to do a `git show` of the commit underneath the cursor, you
33+
There's other stuff to do; you can hit "s" to do a `git show` of the commit underneath the cursor, you
3434
can search and page through the file like you would with "less".
3535

36-
36+
# License
37+
MIT

Rakefile

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
require 'bundler/setup'
2+
require 'bundler/gem_tasks'
13
require 'bump/tasks'

git_spelunk.gemspec

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
Gem::Specification.new do |s|
2-
s.name = "git_spelunk"
3-
s.version = "0.2.2"
4-
s.platform = Gem::Platform::RUBY
1+
Gem::Specification.new "git_spelunk", "0.2.2" do |s|
52
s.authors = ["Ben Osheroff", "Saroj Yadav"]
63
s.email = ["ben@zendesk.com", "saroj@zendesk.com"]
74
s.homepage = "https://github.com/osheroff/git-spelunk"
85
s.summary = "A git tool for exploring history and blame"
96
s.description = "git-spelunk is a terminal based exploration tool for git blame and history, based on the notion of moving in history based on file context"
107

11-
s.required_rubygems_version = ">= 1.3.6"
12-
138
s.add_runtime_dependency("grit")
149

15-
s.files = Dir.glob("lib/**/*")
10+
s.files = `git ls-files lib bin MIT-LICENSE.txt`.split("\n")
11+
s.license = "MIT"
1612
s.executables << "git-spelunk"
17-
s.require_path = 'lib'
1813
end

0 commit comments

Comments
 (0)