socialcast-git-extensions 3.1.9 → 3.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzZjNmVjNmM0YTQ5ZGVkYTAxY2U2ZTdiZDkyMWM0ZGEyYTRlZTI5YQ==
4
+ NTVhZGZmOTIzNzM1Zjg3OTYyN2M4YjQwY2ExNjY2ZjM2MWZlMDEyZQ==
5
5
  data.tar.gz: !binary |-
6
- MjNiYjI4NmViN2NlM2Y1Y2M1NjQzZDBlMjhiM2FlZGUwODUxMDM0OQ==
6
+ NzFkYjk0ZDZmNTQxYjRkNTg3NTA1ZmNkMWQ1YWYxOGVhYzgwZDkyNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWQwODRiOTQxOGMwZTkwYmU3NGI2NGQ5YjgzZGM5NDAzZTRhODc2YzZhYmU4
10
- OWI3Nzc1MmEyNmRiMWViMTUwYzliNjVmYzU0ODUzMzc2MTQ0OWFhMDJlMGM3
11
- ZjA5OTBkZGI2NjkxNzE1MTc0NTMwMzdlMTI3NDJkZjA5M2M1NWE=
9
+ MjY1OTlkOTQwYmZkMDA2NTQ0NTc0MzZlM2U1MzRkZjdhN2JlOTkwYWMyZGVm
10
+ YTE4ZDFjMDczOTgwNGI3NmE1YzNhMTZjYWUyZGVkZmFmYTU3ZTUwOGFkZTIx
11
+ ZDdlMWM1NzE2YjBmY2Q1NjNkNmY3ZmRhODU2YmI1MmQ2NTFlNzU=
12
12
  data.tar.gz: !binary |-
13
- YTMzY2E5ZTc0ODk3M2MwMTQxNmJiOTAzZDg5OWIxYTNjMWZmMGFkOTgzNTQ0
14
- NDBjMDdhMTU3OWNkYTI4YjgxYTlkODA2YWNlYWEyYjMwNzdjYTRjMTJhNjhk
15
- MzhiNDA0ZjhlOGVmYzYzZjc3MmRjYzQ4OTI4ZGI3OGMwOTlkOTk=
13
+ NjYwNjM1MGEyZTM2MjI4NjgxMTE4MTlhNGNjYTgyOTg2ODYzMGIzMGEwZDhm
14
+ NjQ4YTI2ZDljY2Q1NjM1YWQ3NTcxNTZiMTQ0MGVhYWNlNjExYTk1MDRlMjQ1
15
+ NTM4NDA2NzM0YjM5NmEwZThhODgxMDczZTY1MDU3MDcwZjIwNTg=
@@ -190,7 +190,7 @@ module Socialcast
190
190
  end
191
191
 
192
192
  def reserved_branches
193
- @reserved_branches ||= %w{ HEAD master next_release } + [base_branch, config['base_branch']].compact.uniq + aggregate_branches
193
+ @reserved_branches ||= %w{ HEAD master next_release } + [base_branch, config['reserved_branches'], config['base_branch']].flatten.compact.uniq + aggregate_branches
194
194
  end
195
195
  end
196
196
  end
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module Gitx
3
- VERSION = "3.1.9"
3
+ VERSION = "3.1.10"
4
4
  end
5
5
  end
@@ -175,6 +175,18 @@ describe Socialcast::Gitx::CLI do
175
175
  end
176
176
  end
177
177
 
178
+ context 'with reserved_branches via config file' do
179
+ before do
180
+ Socialcast::Gitx::CLI.any_instance.should_receive(:yes?).and_return(true)
181
+ Socialcast::Gitx::CLI.any_instance.stub(:config).and_return( { 'reserved_branches' => ['dont-del-me','dont-del-me-2'] })
182
+ Socialcast::Gitx::CLI.start ['release']
183
+ end
184
+ it "treats the alternative base branch as reserved" do
185
+ Socialcast::Gitx::CLI.new.send(:reserved_branches).should include 'dont-del-me'
186
+ Socialcast::Gitx::CLI.new.send(:reserved_branches).should include 'dont-del-me-2'
187
+ end
188
+ end
189
+
178
190
  context 'with alternative base branch via config file' do
179
191
  before do
180
192
  Socialcast::Gitx::CLI.any_instance.should_receive(:post).with("#worklog releasing FOO to special-master #scgitx")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socialcast-git-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.9
4
+ version: 3.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Sonnek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-31 00:00:00.000000000 Z
11
+ date: 2014-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grit