legit 0.0.14 → 0.0.15

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.
data/bin/legit CHANGED
@@ -7,6 +7,6 @@ Signal.trap("INT") { exit 1 }
7
7
  $stdout.sync = true
8
8
  $stderr.sync = true
9
9
 
10
- require 'legit'
10
+ require 'legit/cli'
11
11
 
12
12
  Legit::CLI.start
data/legit.gemspec CHANGED
@@ -16,6 +16,8 @@ Gem::Specification.new do |gem|
16
16
 
17
17
  gem.required_ruby_version = ">=1.8.7"
18
18
 
19
+ gem.license = "MIT"
20
+
19
21
  gem.add_development_dependency "rake", "~> 10.1.0"
20
22
  gem.add_development_dependency "minitest", "~> 5.0.1"
21
23
  gem.add_development_dependency "rr", "~> 1.1.2"
File without changes
data/lib/legit/helpers.rb CHANGED
@@ -9,10 +9,6 @@ module Legit
9
9
  @repo ||= Rugged::Repository.new(Rugged::Repository.discover)
10
10
  end
11
11
 
12
- def current_branch
13
- system "git rev-parse --abbrev-ref HEAD"
14
- end
15
-
16
12
  def local_branches
17
13
  repo.branches.select { |b| b.branch? }
18
14
  end
data/lib/legit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Legit
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
data/test/legit_test.rb CHANGED
@@ -1,100 +1,89 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
- require 'legit'
3
- require File.expand_path('../test_repo', __FILE__)
4
2
 
5
3
  describe Legit::CLI do
6
- def expects_command(command)
7
- any_instance_of(Legit::CLI) { |cli| mock(cli).run_command(command) }
8
- end
9
-
10
4
  before do
11
5
  stub_config
12
- any_instance_of(Legit::CLI) do |cli|
13
- stub(cli).run_command
14
- end
15
6
  end
16
7
 
17
- describe 'legit log' do
8
+ describe "legit log" do
18
9
  it "parses --me command and passes through other options" do
19
10
  stub_config({ 'user.name' => 'Stubbed Username' })
20
- expects_command("#{Legit::Helpers::LOG_BASE_COMMAND} --author='Stubbed Username' -p -n 1")
21
- legit 'log -p --me -n 1', :real_repo => false
11
+ legit 'log -p --me -n 1', [
12
+ [:run, "#{Legit::Helpers::LOG_BASE_COMMAND} --author='Stubbed Username' -p -n 1"]
13
+ ], :real_repo => false
22
14
  end
23
15
 
24
16
  it "passes through options that aren't defined by legit log" do
25
- expects_command("#{Legit::Helpers::LOG_BASE_COMMAND} -p --stat")
26
- legit 'log -p --stat', :real_repo => false
17
+ legit 'log -p --stat', [
18
+ [:run, "#{Legit::Helpers::LOG_BASE_COMMAND} -p --stat"]
19
+ ], :real_repo => false
27
20
  end
28
21
  end
29
22
 
30
- describe 'legit catch-todos' do
23
+ describe "legit catch-todos" do
31
24
  it "calls exit 1 when TODOs staged but not disabled" do
32
- any_instance_of(Legit::CLI) do |cli|
33
- mock(cli).todos_staged?('TODO') { true }
34
- mock(cli).exit(1)
35
- mock(cli).say("[pre-commit hook] Aborting commit... found staged `TODO`s.", :red)
36
- end
37
- legit 'catch-todos', :real_repo => false
25
+ any_instance_of(Legit::CLI) { |cli| mock(cli).todos_staged?('TODO') { true } }
26
+ legit 'catch-todos', [
27
+ [:say, ['[pre-commit hook] Aborting commit... found staged `TODO`s.', :red]],
28
+ [:exit, 1],
29
+ ], :real_repo => false
38
30
  end
39
31
 
40
32
  it "doesn't call exit 1 when no TODOs staged" do
41
- any_instance_of(Legit::CLI) do |cli|
42
- mock(cli).todos_staged?('TODO') { false }
43
- mock(cli).exit.never
44
- mock(cli).say("[pre-commit hook] Success: No `TODO`s staged.", :green)
45
- end
46
- legit 'catch-todos', :real_repo => false
33
+ any_instance_of(Legit::CLI) { |cli| mock(cli).todos_staged?('TODO') { false } }
34
+ legit 'catch-todos', [
35
+ [:say, ["[pre-commit hook] Success: No `TODO`s staged.", :green]]
36
+ ], :real_repo => false
47
37
  end
48
38
 
49
39
  it "removes catch-todos-mode when called with --enable" do
50
40
  config_mock = mock(Object.new).delete('hooks.catch-todos-mode')
51
41
  stub_config(config_mock)
52
- legit 'catch-todos --enable', :real_repo => false
42
+ legit 'catch-todos --enable', [], :real_repo => false
53
43
  end
54
44
 
55
45
  it "sets catch-todos-mode to disable when called with --disable" do
56
46
  config_mock = mock(Object.new).[]=('hooks.catch-todos-mode', 'disable')
57
47
  stub_config(config_mock)
58
- legit 'catch-todos --disable', :real_repo => false
48
+ legit 'catch-todos --disable', [], :real_repo => false
59
49
  end
60
50
 
61
51
  it "sets catch-todos-mode to warn when called with --warn" do
62
52
  config_mock = mock(Object.new).[]=('hooks.catch-todos-mode', 'warn')
63
53
  stub_config(config_mock)
64
- legit 'catch-todos --warn', :real_repo => false
54
+ legit 'catch-todos --warn', [], :real_repo => false
65
55
  end
66
56
 
67
57
  it "skips catch-todos when disabled" do
68
58
  stub_config('hooks.catch-todos-mode' => 'disable')
69
59
  any_instance_of(Legit::CLI) do |cli|
70
60
  mock(cli).run_catch_todos.never
71
- mock(cli).say("[pre-commit hook] ignoring todos. Re-enable with `legit catch-todos --enable`", :yellow)
72
61
  end
73
- legit 'catch-todos', :real_repo => false
62
+ legit 'catch-todos', [
63
+ [:say, ["[pre-commit hook] ignoring todos. Re-enable with `legit catch-todos --enable`", :yellow]],
64
+ ], :real_repo => false
74
65
  end
75
66
 
76
67
  it "have exit status of 0 in warn mode when positive response" do
77
68
  stub_config('hooks.catch-todos-mode' => 'warn')
78
69
  any_instance_of(Legit::CLI) do |cli|
79
70
  mock(cli).todos_staged?('TODO') { true }
80
- mock(cli).exit.never
81
71
  mock(cli).yes?("[pre-commit hook] Found staged `TODO`s. Do you still want to continue?", :yellow) { true }
82
72
  end
83
73
 
84
- legit 'catch-todos', :real_repo => false
74
+ legit 'catch-todos', [], :real_repo => false
85
75
  end
86
76
  end
87
77
 
88
- describe 'legit delete' do
89
- it 'force deletes branch when user responds yes' do
78
+ describe "legit delete" do
79
+ it "force deletes branch when user responds yes" do
90
80
  any_instance_of(Legit::CLI) do |cli|
91
81
  mock(cli).delete_local_branch!('branch_to_delete') { false }
92
82
  mock(cli).yes?('Force delete branch?', :red) { true }
93
83
  mock(cli).force_delete_local_branch!('branch_to_delete')
94
84
  mock(cli).delete_remote_branch?('branch_to_delete') { false }
95
85
  end
96
-
97
- legit 'delete branch_to_delete', :real_repo => false
86
+ legit 'delete branch_to_delete', [], :real_repo => false
98
87
  end
99
88
 
100
89
  it "doesn't force delete branch when user responds no" do
@@ -103,15 +92,17 @@ describe Legit::CLI do
103
92
  mock(cli).yes?('Force delete branch?', :red) { false }
104
93
  mock(cli).force_delete_local_branch!.never
105
94
  end
106
- legit 'delete branch_to_delete', :real_repo => false
95
+ legit 'delete branch_to_delete', [], :real_repo => false
107
96
  end
108
97
 
109
- it 'deletes remotely when user responds yes' do
98
+ it "deletes remotely when user responds yes" do
110
99
  any_instance_of(Legit::CLI) do |cli|
111
- mock(cli).delete_local_branch!('branch_to_delete') { true }
112
100
  mock(cli).yes?.with('Delete branch remotely?', :red) { true }
113
101
  end
114
- legit 'delete branch_to_delete', :real_repo => false
102
+ legit 'delete branch_to_delete', [
103
+ [:run, "git branch -d branch_to_delete"],
104
+ [:run, "git push --delete origin branch_to_delete"],
105
+ ], :real_repo => false
115
106
  end
116
107
 
117
108
  it "doesn't delete remotely when user responds no" do
@@ -119,7 +110,7 @@ describe Legit::CLI do
119
110
  mock(cli).delete_local_branch!('branch_to_delete') { true }
120
111
  mock(cli).yes?('Delete branch remotely?', :red) { false }
121
112
  end
122
- legit 'delete branch_to_delete', :real_repo => false
113
+ legit 'delete branch_to_delete', [], :real_repo => false
123
114
  end
124
115
  end
125
116
 
@@ -129,63 +120,61 @@ describe Legit::CLI do
129
120
  end
130
121
 
131
122
  it "checks out branch that matches substring" do
132
- expects_command('git checkout feature_with_unique_match')
133
- legit 'checkout niqu', :branches => @branches
123
+ legit 'checkout niqu', [
124
+ [:run, 'git checkout feature_with_unique_match'],
125
+ ], :branches => @branches
134
126
  end
135
127
 
136
128
  it "lists options if non-unique match" do
137
129
  any_instance_of(Legit::CLI) do |cli|
138
- mock(cli).run_command.never
139
130
  mock(cli).ask("Choose a branch to checkout:\n1. multiple_matches_a\n2. multiple_matches_b", :yellow) { '2' }
140
131
  end
141
-
142
- expects_command('git checkout multiple_matches_b')
143
- legit 'checkout multiple_matches', :branches => @branches
132
+ legit 'checkout multiple_matches', [
133
+ [:run, 'git checkout multiple_matches_b']
134
+ ], :branches => @branches
144
135
  end
145
136
 
146
137
  it "calls checkout on branch if unique match" do
147
- expects_command('git checkout feature_with_unique_match')
148
- legit 'checkout unique', :branches => @branches
138
+ legit 'checkout unique', [
139
+ [:run, 'git checkout feature_with_unique_match'],
140
+ ], :branches => @branches
149
141
  end
150
142
 
151
143
  it "uses case-insensitive regex" do
152
- expects_command('git checkout UPPERCASE_BRANCH')
153
- legit 'checkout uppercase', :branches => @branches
144
+ legit 'checkout uppercase', [
145
+ [:run, 'git checkout UPPERCASE_BRANCH'],
146
+ ], :branches => @branches
154
147
  end
155
148
 
156
149
  it "doesn't call checkout and exits if no match" do
157
- any_instance_of(Legit::CLI) do |cli|
158
- mock(cli).run_command.never
159
- mock(cli).say("No branches match /this_shouldnt_match_anything/i", :red)
160
- end
161
- assert_raises(SystemExit) do
162
- legit 'checkout this_shouldnt_match_anything', :branches => @branches
163
- end
150
+ legit 'checkout this_shouldnt_match_anything', [
151
+ [:say, ['No branches match /this_shouldnt_match_anything/i', :red]],
152
+ [:exit, 1],
153
+ ], :branches => @branches
164
154
  end
165
155
 
166
156
  it "calls checkout on branch if unique match" do
167
- expects_command('git checkout feature_with_unique_match')
168
- legit 'checkout _wit.', :branches => @branches
157
+ legit 'checkout _wit.', [
158
+ [:run, 'git checkout feature_with_unique_match']
159
+ ], :branches => @branches
169
160
  end
170
161
 
171
162
  it "doesn't call checkout and exits if there is no regex match" do
172
- any_instance_of(Legit::CLI) do |cli|
173
- mock(cli).run_command.never
174
- mock(cli).say("No branches match /^_wit./i", :red)
175
- end
176
- assert_raises(SystemExit) do
177
- legit 'checkout ^_wit.', :branches => @branches
178
- end
163
+ legit 'checkout ^_wit.', [
164
+ [:say, ['No branches match /^_wit./i', :red]],
165
+ [:exit, 1],
166
+ ], :branches => @branches
179
167
  end
180
168
  end
181
169
 
182
- describe 'legit bisect' do
170
+ describe "legit bisect" do
183
171
  it "calls the right commands" do
184
172
  command = 'ruby -n my/test/file "/testpattern/"'
185
- expects_command('git bisect start HEAD HEAD~5')
186
- expects_command("git bisect run #{command}")
187
- expects_command("git bisect reset")
188
- legit "bisect HEAD HEAD~5 #{command}", :real_repo => false
173
+ legit "bisect HEAD HEAD~5 #{command}", [
174
+ [:run, 'git bisect start HEAD HEAD~5'],
175
+ [:run, "git bisect run #{command}"],
176
+ [:run, 'git bisect reset'],
177
+ ], :real_repo => false
189
178
  end
190
179
  end
191
180
  end
data/test/test_helper.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  Bundler.require(:pry) if ENV['PRY']
2
2
 
3
+ require 'legit/cli'
4
+ require File.expand_path('../test_repo', __FILE__)
5
+
3
6
  require 'coveralls'
4
7
  Coveralls.wear!
5
8
 
@@ -26,13 +29,12 @@ class Thor
26
29
  end
27
30
  end
28
31
 
29
- def legit(command, options = {})
32
+ def legit(command, expected_flow, options = {})
30
33
  fake_repo = options.delete(:fake_repo)
31
- run_command = Proc.new { Legit::CLI.start(command.split(' ')) }
32
34
  if fake_repo
33
- run_command.call
35
+ capture_legit_output(command, expected_flow)
34
36
  else
35
- TestRepo.inside(options, &run_command)
37
+ TestRepo.inside(options) { capture_legit_output(command, expected_flow) }
36
38
  end
37
39
  end
38
40
 
@@ -41,3 +43,21 @@ def stub_config(config = {})
41
43
  stub(repo).config { config }
42
44
  end
43
45
  end
46
+
47
+ def capture_legit_output(command, expected_flow)
48
+ flow = []
49
+ any_instance_of(Legit::CLI) do |cli|
50
+ stub(cli).run { |cmd, options| flow << [:run, cmd] } # throw away options; only used for verbosity in debug mode
51
+ stub(cli).say { |*args| flow << [:say, args] }
52
+ stub(cli).exit do |code|
53
+ flow << [:exit, code]
54
+ exit code # must call exit manually instead of using proxy or it will exit before it captures the flow
55
+ end
56
+ end
57
+ begin
58
+ Legit::CLI.start(command.split(' '))
59
+ rescue SystemExit
60
+ # exit stops the thor command, but not the test runner
61
+ end
62
+ assert_equal expected_flow, flow
63
+ end
metadata CHANGED
@@ -1,187 +1,185 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: legit
3
- version: !ruby/object:Gem::Version
4
- hash: 3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.15
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 14
10
- version: 0.0.14
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dillon Kearns
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-09-01 00:00:00 -07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
12
+ date: 2013-09-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- hash: 75
28
- segments:
29
- - 10
30
- - 1
31
- - 0
20
+ - !ruby/object:Gem::Version
32
21
  version: 10.1.0
33
- version_requirements: *id001
34
- prerelease: false
35
- name: rake
36
22
  type: :development
37
- - !ruby/object:Gem::Dependency
38
- requirement: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
39
25
  none: false
40
- requirements:
26
+ requirements:
41
27
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 53
44
- segments:
45
- - 5
46
- - 0
47
- - 1
48
- version: 5.0.1
49
- version_requirements: *id002
50
- prerelease: false
28
+ - !ruby/object:Gem::Version
29
+ version: 10.1.0
30
+ - !ruby/object:Gem::Dependency
51
31
  name: minitest
52
- type: :development
53
- - !ruby/object:Gem::Dependency
54
- requirement: &id003 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
55
33
  none: false
56
- requirements:
34
+ requirements:
57
35
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 23
60
- segments:
61
- - 1
62
- - 1
63
- - 2
64
- version: 1.1.2
65
- version_requirements: *id003
36
+ - !ruby/object:Gem::Version
37
+ version: 5.0.1
38
+ type: :development
66
39
  prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 5.0.1
46
+ - !ruby/object:Gem::Dependency
67
47
  name: rr
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 1.1.2
68
54
  type: :development
69
- - !ruby/object:Gem::Dependency
70
- requirement: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
79
- version_requirements: *id004
80
55
  prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.2
62
+ - !ruby/object:Gem::Dependency
81
63
  name: guard-minitest
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
82
70
  type: :development
83
- - !ruby/object:Gem::Dependency
84
- requirement: &id005 !ruby/object:Gem::Requirement
85
- none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
- version: "0"
93
- version_requirements: *id005
94
71
  prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
95
79
  name: growl
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
96
86
  type: :development
97
- - !ruby/object:Gem::Dependency
98
- requirement: &id006 !ruby/object:Gem::Requirement
99
- none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
- version: "0"
107
- version_requirements: *id006
108
87
  prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
109
95
  name: rb-fsevent
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
110
102
  type: :development
111
- - !ruby/object:Gem::Dependency
112
- requirement: &id007 !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- hash: 3
118
- segments:
119
- - 0
120
- version: "0"
121
- version_requirements: *id007
122
103
  prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
123
111
  name: coveralls
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
124
118
  type: :development
125
- - !ruby/object:Gem::Dependency
126
- requirement: &id008 !ruby/object:Gem::Requirement
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
127
121
  none: false
128
- requirements:
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: json
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
129
131
  - - ~>
130
- - !ruby/object:Gem::Version
131
- hash: 55
132
- segments:
133
- - 1
134
- - 8
135
- - 0
132
+ - !ruby/object:Gem::Version
136
133
  version: 1.8.0
137
- version_requirements: *id008
138
- prerelease: false
139
- name: json
140
134
  type: :runtime
141
- - !ruby/object:Gem::Dependency
142
- requirement: &id009 !ruby/object:Gem::Requirement
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
143
137
  none: false
144
- requirements:
138
+ requirements:
145
139
  - - ~>
146
- - !ruby/object:Gem::Version
147
- hash: 85
148
- segments:
149
- - 0
150
- - 18
151
- - 1
152
- version: 0.18.1
153
- version_requirements: *id009
154
- prerelease: false
140
+ - !ruby/object:Gem::Version
141
+ version: 1.8.0
142
+ - !ruby/object:Gem::Dependency
155
143
  name: thor
156
- type: :runtime
157
- - !ruby/object:Gem::Dependency
158
- requirement: &id010 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
159
145
  none: false
160
- requirements:
146
+ requirements:
161
147
  - - ~>
162
- - !ruby/object:Gem::Version
163
- hash: 3106864031
164
- segments:
165
- - 0
166
- - 18
167
- - 0
168
- - b
169
- - 1
170
- version: 0.18.0.b1
171
- version_requirements: *id010
148
+ - !ruby/object:Gem::Version
149
+ version: 0.18.1
150
+ type: :runtime
172
151
  prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 0.18.1
158
+ - !ruby/object:Gem::Dependency
173
159
  name: rugged
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: 0.18.0.b1
174
166
  type: :runtime
175
- description: A collection of scripts for common git tasks to simplify and improve workflow.
176
- email:
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 0.18.0.b1
174
+ description: A collection of scripts for common git tasks to simplify and improve
175
+ workflow.
176
+ email:
177
177
  - dillon@dillonkearns.com
178
- executables:
178
+ executables:
179
179
  - legit
180
180
  extensions: []
181
-
182
181
  extra_rdoc_files: []
183
-
184
- files:
182
+ files:
185
183
  - .gitignore
186
184
  - .travis.yml
187
185
  - Gemfile
@@ -191,49 +189,41 @@ files:
191
189
  - Rakefile
192
190
  - bin/legit
193
191
  - legit.gemspec
194
- - lib/legit.rb
192
+ - lib/legit/cli.rb
195
193
  - lib/legit/helpers.rb
196
194
  - lib/legit/version.rb
197
195
  - test/legit_test.rb
198
196
  - test/test_helper.rb
199
197
  - test/test_repo.rb
200
- has_rdoc: true
201
198
  homepage: https://github.com/dillonkearns/legit
202
- licenses: []
203
-
199
+ licenses:
200
+ - MIT
204
201
  post_install_message:
205
202
  rdoc_options: []
206
-
207
- require_paths:
203
+ require_paths:
208
204
  - lib
209
- required_ruby_version: !ruby/object:Gem::Requirement
205
+ required_ruby_version: !ruby/object:Gem::Requirement
210
206
  none: false
211
- requirements:
212
- - - ">="
213
- - !ruby/object:Gem::Version
214
- hash: 57
215
- segments:
216
- - 1
217
- - 8
218
- - 7
207
+ requirements:
208
+ - - ! '>='
209
+ - !ruby/object:Gem::Version
219
210
  version: 1.8.7
220
- required_rubygems_version: !ruby/object:Gem::Requirement
211
+ required_rubygems_version: !ruby/object:Gem::Requirement
221
212
  none: false
222
- requirements:
223
- - - ">="
224
- - !ruby/object:Gem::Version
225
- hash: 3
226
- segments:
213
+ requirements:
214
+ - - ! '>='
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ segments:
227
218
  - 0
228
- version: "0"
219
+ hash: -3882495596057636106
229
220
  requirements: []
230
-
231
221
  rubyforge_project:
232
- rubygems_version: 1.5.3
222
+ rubygems_version: 1.8.25
233
223
  signing_key:
234
224
  specification_version: 3
235
225
  summary: A collection of scripts for common git tasks to simplify and improve workflow.
236
- test_files:
226
+ test_files:
237
227
  - test/legit_test.rb
238
228
  - test/test_helper.rb
239
229
  - test/test_repo.rb