git-process-lib 3.0.0 → 3.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c814fd9a301f2ab6362a357479c92690a65b4501
4
- data.tar.gz: 503cbe342c78a16654e9f29b37a29500e885530f
3
+ metadata.gz: 1fbc5f2b542847e36c2f9d502cd55c9ec7cc3878
4
+ data.tar.gz: 9bc5ec75d04f2d53404b153988a513946456d6ae
5
5
  SHA512:
6
- metadata.gz: 02e94090e1bd1a620e4d6dd670c02fa166b04146644fe1ff197c9f2f0b05eb9dab03f0a6ccc6506b7892f337a227b3f6867dae7f118c9de6a7e7841fae76b546
7
- data.tar.gz: 779f8617a4eb111c4f9a0acac64ed4c5b2c321cedc58e46a36dca8811bf7d0dd951a3dfa33f06aae75ca3377b5bca205acf931e1ddfebde265428bc6ba937032
6
+ metadata.gz: e9905d6be43b5ed017ccbcaeda06a28e2c13b192daecb949872ae7256197647a2e137100e4d2b305dff40bd0901f454d0a62d9ab0e0321dc7d457a33c239181c
7
+ data.tar.gz: 6b88cd2ab99672bc7a5dbcf76b57dddf2071eed441e51833efe76822e4a3a9e421a8e4c498520187b6ba28ad7d55831f2d771af25c4b13e8e67e4b9402b727a5
@@ -1,4 +1,8 @@
1
- # CHANGELOG - 3.0.0 #
1
+ # CHANGELOG - 3.0.1 #
2
+
3
+ ### Since 3.0.0 ###
4
+
5
+ * Fixed "ambiguous arguments" problem ([GH-145](https://github.com/jdigger/git-process/issues/145))
2
6
 
3
7
  ### Since 2.0.5 ###
4
8
 
@@ -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
@@ -14,7 +14,7 @@ module GitProc
14
14
  module Version
15
15
  MAJOR = 3
16
16
  MINOR = 0
17
- PATCH = 0
17
+ PATCH = 1
18
18
  BUILD = nil
19
19
 
20
20
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -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
- # puts %x(gem install ./#{gem}-#{GitProc::Version::STRING}.gem -l -u)
23
- # SystemExit.new($?) if $?.exitstatus
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
@@ -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
@@ -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.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-03-18 00:00:00.000000000 Z
11
+ date: 2016-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit