socialcast-git-extensions 3.1.9 → 3.1.10
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 +8 -8
- data/lib/socialcast-git-extensions/git.rb +1 -1
- data/lib/socialcast-git-extensions/version.rb +1 -1
- data/spec/cli_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NTVhZGZmOTIzNzM1Zjg3OTYyN2M4YjQwY2ExNjY2ZjM2MWZlMDEyZQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NzFkYjk0ZDZmNTQxYjRkNTg3NTA1ZmNkMWQ1YWYxOGVhYzgwZDkyNw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MjY1OTlkOTQwYmZkMDA2NTQ0NTc0MzZlM2U1MzRkZjdhN2JlOTkwYWMyZGVm
|
|
10
|
+
YTE4ZDFjMDczOTgwNGI3NmE1YzNhMTZjYWUyZGVkZmFmYTU3ZTUwOGFkZTIx
|
|
11
|
+
ZDdlMWM1NzE2YjBmY2Q1NjNkNmY3ZmRhODU2YmI1MmQ2NTFlNzU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
data/spec/cli_spec.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: grit
|