socialcast-git-extensions 3.1.33 → 3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecdfa89c3f7f393389f3bde1e5d26a9a48776536
|
4
|
+
data.tar.gz: 4a49a0336e87e091f3dd5301e17a9254fbc2689d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16673110b211af70bbd33b5ec58035976932b576c3f221e22ac2df8b00ee62dcc88f7317fc1ff765cbda6d915dfa9223c5ffb165aadf96604a3ef24ba5ac26be
|
7
|
+
data.tar.gz: 8e0d1ac0094f6229cc672f65261732d86fa7062c2d43ec465578ae31c87c1e6b90dd8f1fa75476b0c459222d64d5b921fc5ca41439d854655cd64b02d48f7ba3
|
@@ -157,7 +157,7 @@ module Socialcast
|
|
157
157
|
def start(branch_name = nil)
|
158
158
|
unless branch_name
|
159
159
|
example_branch = %w{ cpr-3922-api-fix-invalid-auth red-212-desktop-cleanup-avatar-markup red-3212-share-form-add-edit-link }.sample
|
160
|
-
repo =
|
160
|
+
repo = Rugged::Repository.new(Dir.pwd)
|
161
161
|
remote_branches = repo.remotes.collect {|b| b.name.split('/').last }
|
162
162
|
## Explicitly use Highline.ask
|
163
163
|
branch_name = $terminal.ask("What would you like to name your branch? (ex: #{example_branch})") do |q|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'rugged'
|
2
2
|
require 'pathname'
|
3
3
|
|
4
4
|
module Socialcast
|
@@ -21,8 +21,8 @@ module Socialcast
|
|
21
21
|
|
22
22
|
# lookup the current branch of the PWD
|
23
23
|
def current_branch
|
24
|
-
repo =
|
25
|
-
|
24
|
+
repo = Rugged::Repository.new(Dir.pwd)
|
25
|
+
repo.head.name.split('/').last # refs/heads/<branch-name>
|
26
26
|
end
|
27
27
|
|
28
28
|
# lookup the current repository of the PWD
|
@@ -39,7 +39,7 @@ module Socialcast
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def backport_to(branch, shas)
|
42
|
-
|
42
|
+
refresh_branch_from_remote base_branch
|
43
43
|
run_cmd "git checkout -b #{branch}"
|
44
44
|
begin
|
45
45
|
run_cmd "git cherry-pick #{shas.join(' ')}"
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
|
15
15
|
s.rubyforge_project = "socialcast-git-extensions"
|
16
16
|
|
17
|
-
s.add_runtime_dependency '
|
17
|
+
s.add_runtime_dependency 'rugged', '>= 0.23'
|
18
18
|
s.add_runtime_dependency 'socialcast', '~> 1.3.0'
|
19
19
|
s.add_runtime_dependency 'activesupport', '~> 4.0'
|
20
20
|
s.add_runtime_dependency 'rest-client', '~> 1.7'
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast-git-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: '3.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Socialcast
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rugged
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0.23'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0.23'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: socialcast
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|