socialcast-git-extensions 3.1.33 → 3.2

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: d8ea01b7fd80ae11dd510c1adc02a7b542fff16b
4
- data.tar.gz: 4feb1e553b2a19e94c5380f15975128246ab4daa
3
+ metadata.gz: ecdfa89c3f7f393389f3bde1e5d26a9a48776536
4
+ data.tar.gz: 4a49a0336e87e091f3dd5301e17a9254fbc2689d
5
5
  SHA512:
6
- metadata.gz: 7038bed4dbfba680c9c92501d46970ffe5dc47fdfcb349e1c8b89d7d4a7b0c7f6221a485970cebfa5595b92bb5893f65e5c279be8821678ec8d4d84a5ab5e024
7
- data.tar.gz: 661f2006acac98cc336c3fbe568a18f8c339a024e0e43fd9c5f3c55419810847557814cb24518f9f9e53d7bdde11b0e03da6e1d4083df26853b4f09888c20b8e
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 = Grit::Repo.new(Dir.pwd)
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 'grit'
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 = Grit::Repo.new(Dir.pwd)
25
- Grit::Head.current(repo).name
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
- run_cmd "git checkout #{base_branch}"
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(' ')}"
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module Gitx
3
- VERSION = "3.1.33"
3
+ VERSION = "3.2"
4
4
  end
5
5
  end
@@ -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 'grit', '~> 2.5.0'
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.1.33
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-08-26 00:00:00.000000000 Z
11
+ date: 2015-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: grit
14
+ name: rugged
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.5.0
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: 2.5.0
26
+ version: '0.23'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: socialcast
29
29
  requirement: !ruby/object:Gem::Requirement