git-process-lib 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/git-process/git_process.rb +1 -1
- data/lib/git-process/version.rb +1 -1
- data/local-build.rb +2 -6
- data/spec/git_process_spec.rb +2 -0
- data/spec/sync_spec.rb +29 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fbc5f2b542847e36c2f9d502cd55c9ec7cc3878
|
4
|
+
data.tar.gz: 9bc5ec75d04f2d53404b153988a513946456d6ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9905d6be43b5ed017ccbcaeda06a28e2c13b192daecb949872ae7256197647a2e137100e4d2b305dff40bd0901f454d0a62d9ab0e0321dc7d457a33c239181c
|
7
|
+
data.tar.gz: 6b88cd2ab99672bc7a5dbcf76b57dddf2071eed441e51833efe76822e4a3a9e421a8e4c498520187b6ba28ad7d55831f2d771af25c4b13e8e67e4b9402b727a5
|
data/CHANGELOG.md
CHANGED
@@ -114,7 +114,7 @@ module GitProc
|
|
114
114
|
includes_master_branch = my_branches.include?(config.master_branch)
|
115
115
|
current_branch_is_not_master = my_branches.current.name != config.master_branch
|
116
116
|
do_not_keep_integration_branch = !keep_local_integration_branch?
|
117
|
-
integration_branch_contains_all_of_master = my_branches[config.integration_branch].contains_all_of(config.master_branch)
|
117
|
+
integration_branch_contains_all_of_master = includes_master_branch and my_branches[config.integration_branch].contains_all_of(config.master_branch)
|
118
118
|
|
119
119
|
return (has_a_remote and
|
120
120
|
includes_master_branch and
|
data/lib/git-process/version.rb
CHANGED
data/local-build.rb
CHANGED
@@ -3,10 +3,8 @@ require File.expand_path('../lib/git-process/version', __FILE__)
|
|
3
3
|
|
4
4
|
gems = %w(git-process-lib git-sync git-to-master git-new-fb git-pull-req git-process)
|
5
5
|
|
6
|
-
puts "rake manpage"
|
7
6
|
%x[rake manpage 2>&1]
|
8
7
|
|
9
|
-
puts "uninstall"
|
10
8
|
for gem in gems.reverse
|
11
9
|
%x[gem uninstall #{gem} -x -v #{GitProc::Version::STRING} 2>&1]
|
12
10
|
end
|
@@ -15,14 +13,12 @@ for gem in gems
|
|
15
13
|
# puts %x(a2x -f manpage -D man docs/#{gem}.1.adoc)
|
16
14
|
# SystemExit.new($?) if $?.exitstatus
|
17
15
|
|
18
|
-
puts "gem build #{gem}"
|
19
16
|
%x[gem build #{gem}.gemspec]
|
20
17
|
SystemExit.new($?) if $?.exitstatus
|
21
18
|
|
22
|
-
|
23
|
-
|
19
|
+
puts %x(gem install ./#{gem}-#{GitProc::Version::STRING}.gem -l -u)
|
20
|
+
SystemExit.new($?) if $?.exitstatus
|
24
21
|
|
25
|
-
puts "gem push #{gem}"
|
26
22
|
puts %x(gem push ./#{gem}-#{GitProc::Version::STRING}.gem)
|
27
23
|
SystemExit.new($?) if $?.exitstatus
|
28
24
|
end
|
data/spec/git_process_spec.rb
CHANGED
@@ -142,6 +142,7 @@ describe GitProc::Process do
|
|
142
142
|
gl.fetch
|
143
143
|
|
144
144
|
gp = GitProc::Process.new(gl)
|
145
|
+
gp.stub(:ask_about_removing_master).and_return(false)
|
145
146
|
gp.verify_preconditions
|
146
147
|
|
147
148
|
gl.branches.include?('master').should be true
|
@@ -176,6 +177,7 @@ describe GitProc::Process do
|
|
176
177
|
gl.fetch
|
177
178
|
|
178
179
|
gp = GitProc::Process.new(gl)
|
180
|
+
gp.stub(:ask_about_removing_master).and_return(false)
|
179
181
|
gp.verify_preconditions
|
180
182
|
|
181
183
|
gl.branches.include?('master').should be true
|
data/spec/sync_spec.rb
CHANGED
@@ -219,6 +219,35 @@ describe Sync do
|
|
219
219
|
expect { when_sync_is_run }.to raise_error(RebaseError, /'a' was modified in both branches/)
|
220
220
|
end
|
221
221
|
|
222
|
+
|
223
|
+
# i
|
224
|
+
# /
|
225
|
+
# - A - C - B1
|
226
|
+
# /
|
227
|
+
# l,r
|
228
|
+
it 'should work with no local master branch (GH-145)' do
|
229
|
+
Given do
|
230
|
+
rcreate_commit_on_new_branch :origin, 'fb', 'master', :b
|
231
|
+
rfetch local_repo, 'origin'
|
232
|
+
local_repo.create_branch('fb', 'origin/fb')
|
233
|
+
@local.checkout('fb')
|
234
|
+
Rugged::Branch.lookup(local_repo, 'master').delete!
|
235
|
+
@local.config['gitProcess.keepLocalIntegrationBranch'] = true
|
236
|
+
@local.write_sync_control_file('fb')
|
237
|
+
rcreate_commit :origin, 'master', :c
|
238
|
+
end
|
239
|
+
|
240
|
+
sync = create_process(@local)
|
241
|
+
sync.verify_preconditions
|
242
|
+
sync.runner
|
243
|
+
|
244
|
+
Then do
|
245
|
+
local_and_remote_are_same
|
246
|
+
parent(l_sha).should == @c_sha
|
247
|
+
check_file_content :b
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
222
251
|
end
|
223
252
|
|
224
253
|
# i
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-process-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|