gx 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +5 -2
- data/bin/gx-pull-check +0 -26
- data/lib/gx.rb +1 -1
- metadata +30 -12
data/README.txt
CHANGED
@@ -4,14 +4,17 @@
|
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
|
-
Gx is
|
7
|
+
Gx is 3 git related tools: gx-update, gx-publish, and gx-pull-check
|
8
8
|
|
9
9
|
gx-update is a replacement for 'git pull' that includes an integrated
|
10
10
|
conflict resolver.
|
11
11
|
|
12
|
+
gx-pull-check integrates with github to provide the ability to test a
|
13
|
+
pull requests against your tests.
|
14
|
+
|
12
15
|
== FEATURES/PROBLEMS:
|
13
16
|
|
14
|
-
*
|
17
|
+
* git fu for you.
|
15
18
|
|
16
19
|
== SYNOPSIS:
|
17
20
|
|
data/bin/gx-pull-check
CHANGED
@@ -16,26 +16,6 @@ current_branch = head.name
|
|
16
16
|
url = ARGV.shift
|
17
17
|
cmd = ARGV.shift || "rake"
|
18
18
|
|
19
|
-
if current_branch == "gx-pull-check" and url == "done"
|
20
|
-
puts "Cleaning up pull-check..."
|
21
|
-
current_branch = File.read(".git/pull-check-origin").strip
|
22
|
-
|
23
|
-
repo.git.checkout({}, current_branch)
|
24
|
-
repo.git.branch({:D => true}, "gx-pull-check")
|
25
|
-
|
26
|
-
File.unlink ".git/pull-check-origin"
|
27
|
-
|
28
|
-
exit 0
|
29
|
-
elsif current_branch == "gx-pull-check"
|
30
|
-
puts "Currently handling a pull check already, please finish it first."
|
31
|
-
exit 1
|
32
|
-
end
|
33
|
-
|
34
|
-
unless url
|
35
|
-
puts "Usage: gx-pull-check URL [command to test]"
|
36
|
-
exit 1
|
37
|
-
end
|
38
|
-
|
39
19
|
puts "Performing pull check on '#{url}'"
|
40
20
|
|
41
21
|
url += ".patch"
|
@@ -50,10 +30,6 @@ if $?.exitstatus != 0
|
|
50
30
|
exit 1
|
51
31
|
end
|
52
32
|
|
53
|
-
File.open ".git/pull-check-origin", "w" do |f|
|
54
|
-
f.puts current_branch
|
55
|
-
end
|
56
|
-
|
57
33
|
puts "Step 2: Apply the pull request..."
|
58
34
|
repo.git.branch({}, "gx-pull-check")
|
59
35
|
repo.git.checkout({}, "gx-pull-check")
|
@@ -82,6 +58,4 @@ puts "Everything ran fine, feel free to merge the pull request!"
|
|
82
58
|
repo.git.checkout({}, current_branch)
|
83
59
|
repo.git.branch({:D => true}, "gx-pull-check")
|
84
60
|
|
85
|
-
File.unlink ".git/pull-check-origin"
|
86
|
-
|
87
61
|
File.unlink patch
|
data/lib/gx.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 2
|
10
|
+
version: 1.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Evan Phoenix
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-03-19 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: grit
|
@@ -33,25 +33,43 @@ dependencies:
|
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: rdoc
|
37
37
|
prerelease: false
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
hash:
|
43
|
+
hash: 19
|
44
44
|
segments:
|
45
|
-
-
|
46
|
-
-
|
47
|
-
version: "
|
45
|
+
- 3
|
46
|
+
- 10
|
47
|
+
version: "3.10"
|
48
48
|
type: :development
|
49
49
|
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: hoe
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ~>
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 35
|
59
|
+
segments:
|
60
|
+
- 2
|
61
|
+
- 16
|
62
|
+
version: "2.16"
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id003
|
50
65
|
description: |-
|
51
|
-
Gx is
|
66
|
+
Gx is 3 git related tools: gx-update, gx-publish, and gx-pull-check
|
52
67
|
|
53
68
|
gx-update is a replacement for 'git pull' that includes an integrated
|
54
69
|
conflict resolver.
|
70
|
+
|
71
|
+
gx-pull-check integrates with github to provide the ability to test a
|
72
|
+
pull requests against your tests.
|
55
73
|
email:
|
56
74
|
- evan@fallingsnow.net
|
57
75
|
executables:
|
@@ -104,9 +122,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
122
|
requirements: []
|
105
123
|
|
106
124
|
rubyforge_project: gx
|
107
|
-
rubygems_version: 1.8.
|
125
|
+
rubygems_version: 1.8.18
|
108
126
|
signing_key:
|
109
127
|
specification_version: 3
|
110
|
-
summary: "Gx is
|
128
|
+
summary: "Gx is 3 git related tools: gx-update, gx-publish, and gx-pull-check gx-update is a replacement for 'git pull' that includes an integrated conflict resolver"
|
111
129
|
test_files: []
|
112
130
|
|