git-publish 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/git-unpublish +0 -0
- data/git-publish.gemspec +1 -0
- data/lib/git-publish.rb +1 -2
- data/lib/git-publish/version.rb +1 -1
- data/lib/git-unpublish.rb +12 -2
- metadata +47 -39
data/bin/git-unpublish
CHANGED
File without changes
|
data/git-publish.gemspec
CHANGED
data/lib/git-publish.rb
CHANGED
@@ -4,7 +4,6 @@ class GitPublish
|
|
4
4
|
include Helpers
|
5
5
|
def run
|
6
6
|
init(ARGV[0], ARGV[1])
|
7
|
-
%x|git push #{@origin} #{@local_branch_name}:refs/heads/#{@remote_branch_name}|
|
8
|
-
%x|git branch --set-upstream #{@local_branch_name} #{@origin}/#{@remote_branch_name}|
|
7
|
+
%x|git push -u #{@origin} #{@local_branch_name}:refs/heads/#{@remote_branch_name}|
|
9
8
|
end
|
10
9
|
end
|
data/lib/git-publish/version.rb
CHANGED
data/lib/git-unpublish.rb
CHANGED
@@ -4,8 +4,18 @@ class GitUnpublish
|
|
4
4
|
include Helpers
|
5
5
|
def run
|
6
6
|
init(ARGV[0], ARGV[1])
|
7
|
-
%
|
8
|
-
|
7
|
+
DANGER = %w[test development master dev develop staging production]
|
8
|
+
if DANGER.include? @remote_branch_name
|
9
|
+
puts "It looks like you are trying to delete an important branch. Are you sure you want to continue?"
|
10
|
+
puts "type \"delete #{@remote_branch_name}\" (without quotes) to continue."
|
11
|
+
continue = gets.strip
|
12
|
+
if contunue != "delete #{@remote_branch_name}"
|
13
|
+
puts "aborting"
|
14
|
+
else
|
15
|
+
%x|git push #{@origin} :#{@remote_branch_name}|
|
16
|
+
puts %Q|\n Run \`git branch -d #{@local_branch_name}\` to delete the branch locally\n |
|
17
|
+
end
|
18
|
+
end
|
9
19
|
end
|
10
20
|
end
|
11
21
|
|
metadata
CHANGED
@@ -1,40 +1,47 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-publish
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Adam
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-11-22 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: grit
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70155427566340 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
25
22
|
type: :runtime
|
26
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70155427566340
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &70155427565760 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70155427565760
|
27
36
|
description: Easilly publish a topic branch
|
28
|
-
email:
|
37
|
+
email:
|
29
38
|
- adam@mintdigital.com
|
30
|
-
executables:
|
39
|
+
executables:
|
31
40
|
- git-publish
|
32
41
|
- git-unpublish
|
33
42
|
extensions: []
|
34
|
-
|
35
43
|
extra_rdoc_files: []
|
36
|
-
|
37
|
-
files:
|
44
|
+
files:
|
38
45
|
- .gitignore
|
39
46
|
- Gemfile
|
40
47
|
- LICENCE
|
@@ -47,33 +54,34 @@ files:
|
|
47
54
|
- lib/git-publish/helpers.rb
|
48
55
|
- lib/git-publish/version.rb
|
49
56
|
- lib/git-unpublish.rb
|
50
|
-
|
51
|
-
homepage: ""
|
57
|
+
homepage: ''
|
52
58
|
licenses: []
|
53
|
-
|
54
59
|
post_install_message:
|
55
60
|
rdoc_options: []
|
56
|
-
|
57
|
-
require_paths:
|
61
|
+
require_paths:
|
58
62
|
- lib
|
59
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
64
|
none: false
|
61
|
-
requirements:
|
62
|
-
- -
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version:
|
65
|
-
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
hash: 2210139559214823109
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
73
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version:
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
hash: 2210139559214823109
|
71
81
|
requirements: []
|
72
|
-
|
73
82
|
rubyforge_project: git-publish
|
74
|
-
rubygems_version: 1.
|
83
|
+
rubygems_version: 1.8.10
|
75
84
|
signing_key:
|
76
85
|
specification_version: 3
|
77
86
|
summary: Easilly publish a topic branch
|
78
87
|
test_files: []
|
79
|
-
|