gx 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Manifest.txt +1 -0
  2. data/bin/gx-pull-check +45 -0
  3. data/lib/gx.rb +1 -1
  4. metadata +26 -12
@@ -3,6 +3,7 @@ Manifest.txt
3
3
  README.txt
4
4
  Rakefile
5
5
  bin/gx-publish
6
+ bin/gx-pull-check
6
7
  bin/gx-update
7
8
  lib/gx.rb
8
9
  lib/gx/enhance.rb
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'pathname'
4
+
5
+ require 'gx/enhance'
6
+
7
+ STDOUT.sync = true
8
+
9
+ repo = Grit::Repo.current
10
+
11
+ head = Grit::Head.current(repo)
12
+
13
+ current_branch = head.name
14
+
15
+ url = ARGV.shift
16
+ cmd = ARGV.shift || "rake"
17
+
18
+ repo.git.branch({}, "gx-pull-check")
19
+ repo.git.checkout({}, "gx-pull-check")
20
+
21
+ puts "Performing pull check on '#{url}'"
22
+
23
+ puts "Step 1: Apply the pull request..."
24
+ system "hub am '#{url}'"
25
+
26
+ if $?.exitstatus != 0
27
+ puts "Error applying the pull request, leaving you in the branch"
28
+ exit 1
29
+ end
30
+
31
+ puts "Step 2: run '#{cmd}'..."
32
+
33
+ system cmd
34
+
35
+ if $?.exitstatus != 0
36
+ puts "Error running test command, leaving you in the branch"
37
+ exit 1
38
+ end
39
+
40
+ puts "========================================="
41
+ puts "Everything ran fine, feel free to merge the pull request!"
42
+
43
+ repo.git.checkout({}, current_branch)
44
+ repo.git.branch({:D => true}, "gx-pull-check")
45
+
data/lib/gx.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Gx
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
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: 19
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 1.1.0
10
+ version: 1.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Evan Phoenix
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-02 00:00:00 -07:00
19
- default_executable:
18
+ date: 2011-12-21 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: grit
@@ -39,16 +38,30 @@ dependencies:
39
38
  requirement: &id002 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
- - - ">="
41
+ - - ~>
43
42
  - !ruby/object:Gem::Version
44
- hash: 41
43
+ hash: 27
45
44
  segments:
46
45
  - 2
47
- - 9
48
- - 1
49
- version: 2.9.1
46
+ - 12
47
+ version: "2.12"
50
48
  type: :development
51
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
52
65
  description: |-
53
66
  Gx is 2 git related tools: gx-update and gx-publish.
54
67
 
@@ -58,6 +71,7 @@ email:
58
71
  - evan@fallingsnow.net
59
72
  executables:
60
73
  - gx-publish
74
+ - gx-pull-check
61
75
  - gx-update
62
76
  extensions: []
63
77
 
@@ -71,10 +85,10 @@ files:
71
85
  - README.txt
72
86
  - Rakefile
73
87
  - bin/gx-publish
88
+ - bin/gx-pull-check
74
89
  - bin/gx-update
75
90
  - lib/gx.rb
76
91
  - lib/gx/enhance.rb
77
- has_rdoc: true
78
92
  homepage: http://github.com/evanphx/gx
79
93
  licenses: []
80
94
 
@@ -105,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
119
  requirements: []
106
120
 
107
121
  rubyforge_project: gx
108
- rubygems_version: 1.6.2
122
+ rubygems_version: 1.8.12
109
123
  signing_key:
110
124
  specification_version: 3
111
125
  summary: "Gx is 2 git related tools: gx-update and gx-publish"