gx 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/gx-pull-check +26 -0
  2. data/lib/gx.rb +1 -1
  3. metadata +5 -20
@@ -16,6 +16,26 @@ 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
+
19
39
  puts "Performing pull check on '#{url}'"
20
40
 
21
41
  url += ".patch"
@@ -30,6 +50,10 @@ if $?.exitstatus != 0
30
50
  exit 1
31
51
  end
32
52
 
53
+ File.open ".git/pull-check-origin", "w" do |f|
54
+ f.puts current_branch
55
+ end
56
+
33
57
  puts "Step 2: Apply the pull request..."
34
58
  repo.git.branch({}, "gx-pull-check")
35
59
  repo.git.checkout({}, "gx-pull-check")
@@ -58,4 +82,6 @@ puts "Everything ran fine, feel free to merge the pull request!"
58
82
  repo.git.checkout({}, current_branch)
59
83
  repo.git.branch({:D => true}, "gx-pull-check")
60
84
 
85
+ File.unlink ".git/pull-check-origin"
86
+
61
87
  File.unlink patch
data/lib/gx.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Gx
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 0
10
- version: 1.3.0
9
+ - 1
10
+ version: 1.3.1
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: 2011-12-22 00:00:00 Z
18
+ date: 2012-01-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: grit
@@ -47,21 +47,6 @@ dependencies:
47
47
  version: "2.12"
48
48
  type: :development
49
49
  version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: rdoc
52
- prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 19
59
- segments:
60
- - 3
61
- - 10
62
- version: "3.10"
63
- type: :development
64
- version_requirements: *id003
65
50
  description: |-
66
51
  Gx is 2 git related tools: gx-update and gx-publish.
67
52
 
@@ -119,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
104
  requirements: []
120
105
 
121
106
  rubyforge_project: gx
122
- rubygems_version: 1.8.12
107
+ rubygems_version: 1.8.15
123
108
  signing_key:
124
109
  specification_version: 3
125
110
  summary: "Gx is 2 git related tools: gx-update and gx-publish"