git_shizzle 0.2.6 → 0.2.8
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 +4 -4
- data/.gitignore +2 -0
- data/.rspec +0 -1
- data/.travis.yml +11 -0
- data/Gemfile +25 -1
- data/Guardfile +3 -2
- data/README.md +66 -0
- data/git_shizzle.gemspec +8 -25
- data/lib/commands.rb +4 -4
- data/lib/git_shizzle/git/git.rb +19 -19
- data/lib/git_shizzle/version.rb +1 -1
- data/spec/git_shizzle/builtin_commands/checkout_spec.rb +51 -0
- data/spec/git_shizzle/builtin_commands/diff_cached_spec.rb +55 -0
- data/spec/git_shizzle/builtin_commands/diff_spec.rb +51 -0
- data/spec/git_shizzle/builtin_commands/stage_patch_spec.rb +37 -0
- data/spec/{git-shizzle → git_shizzle}/builtin_commands/stage_spec.rb +19 -16
- data/spec/{git-shizzle → git_shizzle}/builtin_commands/track_spec.rb +12 -9
- data/spec/git_shizzle/builtin_commands/unstage_spec.rb +67 -0
- data/spec/{git-shizzle → git_shizzle}/command_spec.rb +0 -1
- data/spec/git_shizzle/dsl_spec.rb +42 -0
- data/spec/git_shizzle/git_spec.rb +34 -0
- data/spec/{git-shizzle → git_shizzle}/index_spec.rb +6 -3
- data/spec/{git-shizzle → git_shizzle}/status_parser_spec.rb +5 -6
- data/spec/helpers/git_repository.rb +3 -3
- data/spec/spec_helper.rb +7 -0
- metadata +35 -161
- data/Gemfile.lock +0 -71
- data/doc.txt +0 -8
- data/spec/git-shizzle/builtin_commands/checkout_spec.rb +0 -49
- data/spec/git-shizzle/builtin_commands/diff_cached_spec.rb +0 -53
- data/spec/git-shizzle/builtin_commands/diff_spec.rb +0 -49
- data/spec/git-shizzle/builtin_commands/stage_patch_spec.rb +0 -32
- data/spec/git-shizzle/builtin_commands/unstage_spec.rb +0 -68
- data/spec/git-shizzle/dsl_spec.rb +0 -48
- data/spec/git-shizzle/git_spec.rb +0 -15
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'git_shizzle'
|
2
|
+
|
3
|
+
describe 'Stage patches by index', :draft => true do
|
4
|
+
|
5
|
+
let(:git) { GitShizzle::Git::Git.new(repo) }
|
6
|
+
subject { GitShizzle::QuickGit.new(git) }
|
7
|
+
|
8
|
+
before do
|
9
|
+
allow($stdout).to receive(:puts)
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'repository with modified files' do
|
13
|
+
before do
|
14
|
+
%w{ deleted modified }.each { |f| create f; stage f }
|
15
|
+
`git commit --message Blah`
|
16
|
+
|
17
|
+
delete 'deleted'
|
18
|
+
modify 'modified'
|
19
|
+
|
20
|
+
expect(git.status[0].work_tree_status).to eq(:deleted)
|
21
|
+
expect(git.status[1].work_tree_status).to eq(:modified)
|
22
|
+
end
|
23
|
+
|
24
|
+
before do
|
25
|
+
allow(git).to receive(:command).and_call_original
|
26
|
+
allow(git).to receive(:command).with(/add/, anything)
|
27
|
+
end
|
28
|
+
|
29
|
+
context 'when a modified file is staged' do
|
30
|
+
it 'should run git add --patch' do
|
31
|
+
subject.stage_with_patch 2
|
32
|
+
|
33
|
+
expect(git).to have_received(:command).with('add --patch --', ['modified'])
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), '../../spec_helper')
|
2
1
|
require 'git_shizzle'
|
3
2
|
|
4
3
|
describe 'Stage files by index' do
|
@@ -6,24 +5,28 @@ describe 'Stage files by index' do
|
|
6
5
|
let(:git) { GitShizzle::Git::Git.new(repo) }
|
7
6
|
subject { GitShizzle::QuickGit.new(git) }
|
8
7
|
|
9
|
-
|
10
|
-
|
8
|
+
before do
|
9
|
+
allow($stdout).to receive(:puts)
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'repository with modified files' do
|
13
|
+
before do
|
11
14
|
%w{ deleted modified }.each { |f| create f; stage f }
|
12
15
|
`git commit --message Blah`
|
13
16
|
|
14
17
|
delete 'deleted'
|
15
18
|
modify 'modified'
|
16
19
|
|
17
|
-
git.status[0].work_tree_status.
|
18
|
-
git.status[1].work_tree_status.
|
20
|
+
expect(git.status[0].work_tree_status).to eq(:deleted)
|
21
|
+
expect(git.status[1].work_tree_status).to eq(:modified)
|
19
22
|
end
|
20
23
|
|
21
24
|
context 'when a deleted file is staged' do
|
22
25
|
it 'should run git rm' do
|
23
26
|
subject.stage 1
|
24
27
|
|
25
|
-
git.status[0].index_status.
|
26
|
-
git.status[1].index_status.
|
28
|
+
expect(git.status[0].index_status).to eq(:deleted)
|
29
|
+
expect(git.status[1].index_status).to be_nil
|
27
30
|
end
|
28
31
|
end
|
29
32
|
|
@@ -31,8 +34,8 @@ describe 'Stage files by index' do
|
|
31
34
|
it 'should run git add' do
|
32
35
|
subject.stage 2
|
33
36
|
|
34
|
-
git.status[0].index_status.
|
35
|
-
git.status[1].index_status.
|
37
|
+
expect(git.status[0].index_status).to be_nil
|
38
|
+
expect(git.status[1].index_status).to eq(:modified)
|
36
39
|
end
|
37
40
|
end
|
38
41
|
|
@@ -40,8 +43,8 @@ describe 'Stage files by index' do
|
|
40
43
|
it 'should run git add and git rm' do
|
41
44
|
subject.stage 1, 2
|
42
45
|
|
43
|
-
git.status[0].index_status.
|
44
|
-
git.status[1].index_status.
|
46
|
+
expect(git.status[0].index_status).to eq(:deleted)
|
47
|
+
expect(git.status[1].index_status).to eq(:modified)
|
45
48
|
end
|
46
49
|
end
|
47
50
|
end
|
@@ -54,20 +57,20 @@ describe 'Stage files by index' do
|
|
54
57
|
|
55
58
|
%w{ modified }.each { |f| modify f; stage f; modify f }
|
56
59
|
|
57
|
-
git.status[0].index_status.
|
58
|
-
git.status[0].work_tree_status.
|
60
|
+
expect(git.status[0].index_status).to eq(:modified)
|
61
|
+
expect(git.status[0].work_tree_status).to eq(:modified)
|
59
62
|
end
|
60
63
|
|
61
64
|
it 'should run git add' do
|
62
65
|
subject.stage 1
|
63
66
|
|
64
|
-
git.status[0].index_status.
|
65
|
-
git.status[0].work_tree_status.
|
67
|
+
expect(git.status[0].index_status).to eq(:modified)
|
68
|
+
expect(git.status[0].work_tree_status).to be_nil
|
66
69
|
end
|
67
70
|
end
|
68
71
|
end
|
69
72
|
|
70
|
-
context '
|
73
|
+
context 'repository without modified files' do
|
71
74
|
it 'should fail' do
|
72
75
|
expect { subject.stage 1 }.to raise_error
|
73
76
|
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), '../../spec_helper')
|
2
1
|
require 'git_shizzle'
|
3
2
|
|
4
3
|
describe 'Track files by index' do
|
@@ -6,21 +5,25 @@ describe 'Track files by index' do
|
|
6
5
|
let(:git) { GitShizzle::Git::Git.new(repo) }
|
7
6
|
subject { GitShizzle::QuickGit.new(git) }
|
8
7
|
|
9
|
-
|
10
|
-
|
8
|
+
before do
|
9
|
+
allow($stdout).to receive(:puts)
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'repository with untracked files' do
|
13
|
+
before do
|
11
14
|
create 'untracked-1'
|
12
15
|
create 'untracked-2'
|
13
16
|
|
14
|
-
git.status[0].work_tree_status.
|
15
|
-
git.status[1].work_tree_status.
|
17
|
+
expect(git.status[0].work_tree_status).to eq(:untracked)
|
18
|
+
expect(git.status[1].work_tree_status).to eq(:untracked)
|
16
19
|
end
|
17
20
|
|
18
21
|
context 'when a single file is tracked' do
|
19
22
|
it 'should run git add for the file' do
|
20
23
|
subject.track 1
|
21
24
|
|
22
|
-
git.status[0].index_status.
|
23
|
-
git.status[1].index_status.
|
25
|
+
expect(git.status[0].index_status).to eq(:added)
|
26
|
+
expect(git.status[1].index_status).to eq(:untracked)
|
24
27
|
end
|
25
28
|
end
|
26
29
|
|
@@ -28,12 +31,12 @@ describe 'Track files by index' do
|
|
28
31
|
it 'should run git add for all specified files' do
|
29
32
|
subject.track 1, 2
|
30
33
|
|
31
|
-
git.status.each { |entry| entry.index_status.
|
34
|
+
git.status.each { |entry| expect(entry.index_status).to eq(:added) }
|
32
35
|
end
|
33
36
|
end
|
34
37
|
end
|
35
38
|
|
36
|
-
|
39
|
+
describe 'repository without untracked files' do
|
37
40
|
it 'should fail' do
|
38
41
|
expect { subject.track 1 }.to raise_error
|
39
42
|
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require 'git_shizzle'
|
2
|
+
|
3
|
+
describe 'Unstage staged/cached files by index' do
|
4
|
+
|
5
|
+
let(:git) { GitShizzle::Git::Git.new(repo) }
|
6
|
+
subject { GitShizzle::QuickGit.new(git) }
|
7
|
+
|
8
|
+
before do
|
9
|
+
allow($stdout).to receive(:puts)
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'repository with staged files' do
|
13
|
+
before do
|
14
|
+
%w{ deleted modified }.each { |f| create f; stage f }
|
15
|
+
`git commit --message Blah`
|
16
|
+
|
17
|
+
delete 'deleted'
|
18
|
+
stage 'deleted'
|
19
|
+
modify 'modified'
|
20
|
+
stage 'modified'
|
21
|
+
create 'untracked'
|
22
|
+
stage 'untracked'
|
23
|
+
|
24
|
+
expect(git.status[0].work_tree_status).to eq(nil)
|
25
|
+
expect(git.status[0].index_status).to eq(:deleted)
|
26
|
+
expect(git.status[1].work_tree_status).to eq(nil)
|
27
|
+
expect(git.status[1].index_status).to eq(:modified)
|
28
|
+
expect(git.status[2].work_tree_status).to eq(nil)
|
29
|
+
expect(git.status[2].index_status).to eq(:added)
|
30
|
+
end
|
31
|
+
|
32
|
+
before do
|
33
|
+
allow(git).to receive(:command).and_call_original
|
34
|
+
allow(git).to receive(:command).with(/reset/, anything)
|
35
|
+
end
|
36
|
+
|
37
|
+
context 'when a staged modified file is unstaged' do
|
38
|
+
it 'should run git reset HEAD' do
|
39
|
+
subject.unstage 2
|
40
|
+
|
41
|
+
expect(git).to have_received(:command).with('reset HEAD --', ['modified'])
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
context 'when a staged deleted file is unstaged' do
|
46
|
+
it 'should run git reset HEAD' do
|
47
|
+
subject.unstage 1
|
48
|
+
|
49
|
+
expect(git).to have_received(:command).with('reset HEAD --', ['deleted'])
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
context 'when a staged new file is unstaged' do
|
54
|
+
it 'should run git reset HEAD' do
|
55
|
+
subject.unstage 3
|
56
|
+
|
57
|
+
expect(git).to have_received(:command).with('reset HEAD --', ['untracked'])
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'repository without staged files' do
|
63
|
+
it 'should fail' do
|
64
|
+
expect { subject.unstage 1 }.to raise_error
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'git_shizzle'
|
2
|
+
|
3
|
+
describe GitShizzle::Dsl::CommandCollection do
|
4
|
+
context 'when reading commands' do
|
5
|
+
it 'should not accept commands without a definition' do
|
6
|
+
command_spec = <<-EOF
|
7
|
+
command :foo
|
8
|
+
EOF
|
9
|
+
|
10
|
+
expect { subject.load command_spec }.to raise_error(GitShizzle::Dsl::CommandDefinitionError, "Command 'foo': #command requires a block.")
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'should not accept duplicate identifiers' do
|
15
|
+
command_spec = <<-EOF
|
16
|
+
command :foo do end
|
17
|
+
command :foo do end
|
18
|
+
EOF
|
19
|
+
|
20
|
+
expect { subject.load command_spec }.to raise_error(GitShizzle::Dsl::DuplicateCommandDefinitionError, "The 'foo' command was specified twice.")
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'should not accept empty filters' do
|
24
|
+
command_spec = <<-EOF
|
25
|
+
command :foo do
|
26
|
+
applies_to
|
27
|
+
end
|
28
|
+
EOF
|
29
|
+
|
30
|
+
expect { subject.load command_spec }.to raise_error(GitShizzle::Dsl::CommandDefinitionError, "Command 'foo': #applies_to requires a block.")
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'should not accept empty actions' do
|
34
|
+
command_spec = <<-EOF
|
35
|
+
command :foo do
|
36
|
+
action
|
37
|
+
end
|
38
|
+
EOF
|
39
|
+
|
40
|
+
expect { subject.load command_spec }.to raise_error(GitShizzle::Dsl::CommandDefinitionError, "Command 'foo': #action requires a block.")
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'git_shizzle'
|
2
|
+
|
3
|
+
describe 'Git repository' do
|
4
|
+
|
5
|
+
let(:git) { GitShizzle::Git::Git.new(repo) }
|
6
|
+
subject { GitShizzle::QuickGit.new(git) }
|
7
|
+
|
8
|
+
context 'when invoking a command in a subdirectory of the Git repository' do
|
9
|
+
let(:subdir) { 'sub-directory' }
|
10
|
+
it 'should succeed' do
|
11
|
+
FileUtils.touch 'file'
|
12
|
+
FileUtils.mkdir subdir
|
13
|
+
|
14
|
+
Dir.chdir(subdir) do
|
15
|
+
subject.run(:track, 1)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
context 'when invoking a command for a file with spaces' do
|
21
|
+
it 'should succeed' do
|
22
|
+
FileUtils.touch 'file with spaces'
|
23
|
+
|
24
|
+
subject.run(:track, 1)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context 'when invoking a command outside a Git repository' do
|
29
|
+
it 'should fail' do
|
30
|
+
FileUtils.rm_rf '.git'
|
31
|
+
expect { subject.run(:track) }.to raise_error(GitShizzle::Git::GitExecuteError, /Not a git repository/)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), '../spec_helper')
|
2
1
|
require 'git_shizzle'
|
3
2
|
|
4
3
|
describe 'Indexes specified on the CLI' do
|
@@ -7,7 +6,11 @@ describe 'Indexes specified on the CLI' do
|
|
7
6
|
subject { GitShizzle::QuickGit.new(git) }
|
8
7
|
let(:number_of_untracked_files) { 10 }
|
9
8
|
|
10
|
-
before
|
9
|
+
before do
|
10
|
+
allow($stdout).to receive(:puts)
|
11
|
+
end
|
12
|
+
|
13
|
+
before do
|
11
14
|
number_of_untracked_files.times.each do |i|
|
12
15
|
create 'untracked-%02d' % (i + 1)
|
13
16
|
end
|
@@ -16,7 +19,7 @@ describe 'Indexes specified on the CLI' do
|
|
16
19
|
def assert_index_status(*status)
|
17
20
|
number_of_untracked_files.times.each do |i|
|
18
21
|
expected_status = status[i] || status[-1]
|
19
|
-
git.status[i].index_status.
|
22
|
+
expect(git.status[i].index_status).to eq(expected_status)
|
20
23
|
end
|
21
24
|
end
|
22
25
|
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), '../spec_helper')
|
2
1
|
require 'git_shizzle'
|
3
2
|
|
4
3
|
describe 'File index, status and path parsed from `git status`' do
|
@@ -10,7 +9,7 @@ describe 'File index, status and path parsed from `git status`' do
|
|
10
9
|
it 'should be able to parse' do
|
11
10
|
create 'file-name'
|
12
11
|
|
13
|
-
git.status.count.
|
12
|
+
expect(git.status.count).to eq(1)
|
14
13
|
end
|
15
14
|
end
|
16
15
|
|
@@ -18,7 +17,7 @@ describe 'File index, status and path parsed from `git status`' do
|
|
18
17
|
it 'should be able to parse' do
|
19
18
|
create 'file name'
|
20
19
|
|
21
|
-
git.status.count.
|
20
|
+
expect(git.status.count).to eq(1)
|
22
21
|
end
|
23
22
|
end
|
24
23
|
|
@@ -27,7 +26,7 @@ describe 'File index, status and path parsed from `git status`' do
|
|
27
26
|
create 'file-1'
|
28
27
|
create 'file-2'
|
29
28
|
|
30
|
-
git.status.count.
|
29
|
+
expect(git.status.count).to eq(2)
|
31
30
|
end
|
32
31
|
end
|
33
32
|
|
@@ -40,7 +39,7 @@ describe 'File index, status and path parsed from `git status`' do
|
|
40
39
|
move 'file', 'renamed-file'
|
41
40
|
stage
|
42
41
|
|
43
|
-
git.status.count.
|
42
|
+
expect(git.status.count).to eq(1)
|
44
43
|
end
|
45
44
|
end
|
46
45
|
|
@@ -53,7 +52,7 @@ describe 'File index, status and path parsed from `git status`' do
|
|
53
52
|
stage
|
54
53
|
create 'untracked'
|
55
54
|
|
56
|
-
git.status.count.
|
55
|
+
expect(git.status.count).to eq(2)
|
57
56
|
end
|
58
57
|
end
|
59
58
|
end
|
@@ -6,8 +6,8 @@ module GitRepository
|
|
6
6
|
extend RSpec::SharedContext
|
7
7
|
|
8
8
|
let(:repo) { @repo }
|
9
|
-
before
|
10
|
-
after
|
9
|
+
before { create_sample_repo }
|
10
|
+
after { remove_sample_repo }
|
11
11
|
|
12
12
|
def create_sample_repo
|
13
13
|
@previous_dir = Dir.pwd
|
@@ -28,7 +28,7 @@ module GitRepository
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def move(src, dst)
|
31
|
-
FileUtils.mv src, dst
|
31
|
+
FileUtils.mv src, dst
|
32
32
|
end
|
33
33
|
|
34
34
|
def delete(file)
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_shizzle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bjoern Rochel
|
@@ -9,148 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0.16'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0.16'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: rake
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '0'
|
35
|
-
type: :development
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: rspec
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ">="
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: rspec-mocks
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: guard
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: guard-rspec
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '0'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: guard-bundler
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '0'
|
105
|
-
type: :development
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: '0'
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
name: win32console
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
115
|
-
requirements:
|
116
|
-
- - ">="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: '0'
|
119
|
-
type: :development
|
120
|
-
prerelease: false
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
requirements:
|
123
|
-
- - ">="
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '0'
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: ruby_gntp
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
requirements:
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
133
|
-
type: :development
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - ">="
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: wdm
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - ">="
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: '0'
|
147
|
-
type: :development
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - ">="
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0'
|
154
28
|
description: git_shizzle lets you quickly operate on the file lists printed by `git
|
155
29
|
status`. Imagine a number before each line of the status output and use that index
|
156
30
|
to specify the file you want to operate on. For example, to stage the first file
|
@@ -163,14 +37,14 @@ executables:
|
|
163
37
|
extensions: []
|
164
38
|
extra_rdoc_files: []
|
165
39
|
files:
|
166
|
-
-
|
167
|
-
-
|
40
|
+
- .gitignore
|
41
|
+
- .rspec
|
42
|
+
- .travis.yml
|
168
43
|
- Gemfile
|
169
|
-
- Gemfile.lock
|
170
44
|
- Guardfile
|
45
|
+
- README.md
|
171
46
|
- Thorfile
|
172
47
|
- bin/quick-git
|
173
|
-
- doc.txt
|
174
48
|
- git_shizzle.gemspec
|
175
49
|
- lib/commands.rb
|
176
50
|
- lib/git_shizzle.rb
|
@@ -197,18 +71,18 @@ files:
|
|
197
71
|
- lib/git_shizzle/index_specifications/file.rb
|
198
72
|
- lib/git_shizzle/index_specifications/range.rb
|
199
73
|
- lib/git_shizzle/version.rb
|
200
|
-
- spec/
|
201
|
-
- spec/
|
202
|
-
- spec/
|
203
|
-
- spec/
|
204
|
-
- spec/
|
205
|
-
- spec/
|
206
|
-
- spec/
|
207
|
-
- spec/
|
208
|
-
- spec/
|
209
|
-
- spec/
|
210
|
-
- spec/
|
211
|
-
- spec/
|
74
|
+
- spec/git_shizzle/builtin_commands/checkout_spec.rb
|
75
|
+
- spec/git_shizzle/builtin_commands/diff_cached_spec.rb
|
76
|
+
- spec/git_shizzle/builtin_commands/diff_spec.rb
|
77
|
+
- spec/git_shizzle/builtin_commands/stage_patch_spec.rb
|
78
|
+
- spec/git_shizzle/builtin_commands/stage_spec.rb
|
79
|
+
- spec/git_shizzle/builtin_commands/track_spec.rb
|
80
|
+
- spec/git_shizzle/builtin_commands/unstage_spec.rb
|
81
|
+
- spec/git_shizzle/command_spec.rb
|
82
|
+
- spec/git_shizzle/dsl_spec.rb
|
83
|
+
- spec/git_shizzle/git_spec.rb
|
84
|
+
- spec/git_shizzle/index_spec.rb
|
85
|
+
- spec/git_shizzle/status_parser_spec.rb
|
212
86
|
- spec/helpers/git_repository.rb
|
213
87
|
- spec/spec_helper.rb
|
214
88
|
homepage: http://grossweber.com
|
@@ -221,12 +95,12 @@ require_paths:
|
|
221
95
|
- lib
|
222
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
223
97
|
requirements:
|
224
|
-
- -
|
98
|
+
- - '>='
|
225
99
|
- !ruby/object:Gem::Version
|
226
|
-
version:
|
100
|
+
version: 1.9.3
|
227
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
102
|
requirements:
|
229
|
-
- -
|
103
|
+
- - '>='
|
230
104
|
- !ruby/object:Gem::Version
|
231
105
|
version: '0'
|
232
106
|
requirements: []
|
@@ -236,17 +110,17 @@ signing_key:
|
|
236
110
|
specification_version: 4
|
237
111
|
summary: Quickly operate on the git working copy and the index
|
238
112
|
test_files:
|
239
|
-
- spec/
|
240
|
-
- spec/
|
241
|
-
- spec/
|
242
|
-
- spec/
|
243
|
-
- spec/
|
244
|
-
- spec/
|
245
|
-
- spec/
|
246
|
-
- spec/
|
247
|
-
- spec/
|
248
|
-
- spec/
|
249
|
-
- spec/
|
250
|
-
- spec/
|
113
|
+
- spec/git_shizzle/builtin_commands/checkout_spec.rb
|
114
|
+
- spec/git_shizzle/builtin_commands/diff_cached_spec.rb
|
115
|
+
- spec/git_shizzle/builtin_commands/diff_spec.rb
|
116
|
+
- spec/git_shizzle/builtin_commands/stage_patch_spec.rb
|
117
|
+
- spec/git_shizzle/builtin_commands/stage_spec.rb
|
118
|
+
- spec/git_shizzle/builtin_commands/track_spec.rb
|
119
|
+
- spec/git_shizzle/builtin_commands/unstage_spec.rb
|
120
|
+
- spec/git_shizzle/command_spec.rb
|
121
|
+
- spec/git_shizzle/dsl_spec.rb
|
122
|
+
- spec/git_shizzle/git_spec.rb
|
123
|
+
- spec/git_shizzle/index_spec.rb
|
124
|
+
- spec/git_shizzle/status_parser_spec.rb
|
251
125
|
- spec/helpers/git_repository.rb
|
252
126
|
- spec/spec_helper.rb
|