hub 1.8.4 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of hub might be problematic. Click here for more details.
- data/README.md +3 -18
- data/Rakefile +6 -2
- data/lib/hub.rb +2 -0
- data/lib/hub/commands.rb +51 -155
- data/lib/hub/context.rb +45 -185
- data/lib/hub/github_api.rb +359 -0
- data/lib/hub/json.rb +36 -0
- data/lib/hub/ssh_config.rb +91 -0
- data/lib/hub/standalone.rb +30 -29
- data/lib/hub/version.rb +1 -1
- data/man/hub.1 +3 -47
- data/man/hub.1.html +4 -25
- data/man/hub.1.ronn +3 -21
- data/test/helper.rb +14 -1
- data/test/hub_test.rb +100 -430
- data/test/standalone_test.rb +8 -3
- metadata +10 -8
data/test/standalone_test.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
require 'helper'
|
2
|
+
require 'hub/standalone'
|
2
3
|
require 'fileutils'
|
4
|
+
require 'stringio'
|
3
5
|
|
4
6
|
class StandaloneTest < Test::Unit::TestCase
|
5
7
|
include FileUtils
|
@@ -17,8 +19,11 @@ class StandaloneTest < Test::Unit::TestCase
|
|
17
19
|
end
|
18
20
|
|
19
21
|
def test_standalone
|
20
|
-
|
21
|
-
|
22
|
+
io = StringIO.new
|
23
|
+
Hub::Standalone.build io
|
24
|
+
standalone = io.string
|
25
|
+
|
26
|
+
assert_includes "This file is generated code", standalone
|
22
27
|
assert_includes "Runner", standalone
|
23
28
|
assert_includes "Args", standalone
|
24
29
|
assert_includes "Commands", standalone
|
@@ -31,7 +36,7 @@ class StandaloneTest < Test::Unit::TestCase
|
|
31
36
|
|
32
37
|
def test_standalone_save
|
33
38
|
Hub::Standalone.save("hub")
|
34
|
-
|
39
|
+
assert File.size('./hub') > 100
|
35
40
|
end
|
36
41
|
|
37
42
|
def test_standalone_save_permission_denied
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-05-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
-
requirement: &
|
17
|
+
requirement: &70352271416600 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70352271416600
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: webmock
|
28
|
-
requirement: &
|
28
|
+
requirement: &70352271431980 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,13 +33,13 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70352271431980
|
37
37
|
description: ! " `hub` is a command line utility which adds GitHub knowledge to `git`.\n\n
|
38
38
|
\ It can used on its own or as a `git` wrapper.\n\n Normal:\n\n $ hub clone
|
39
39
|
rtomayko/tilt\n\n Expands to:\n $ git clone git://github.com/rtomayko/tilt.git\n\n
|
40
40
|
\ Wrapping `git`:\n\n $ git clone rack/rack\n\n Expands to:\n $ git
|
41
41
|
clone git://github.com/rack/rack.git\n"
|
42
|
-
email:
|
42
|
+
email: mislav.marohnic@gmail.com
|
43
43
|
executables:
|
44
44
|
- hub
|
45
45
|
extensions: []
|
@@ -52,8 +52,10 @@ files:
|
|
52
52
|
- lib/hub/args.rb
|
53
53
|
- lib/hub/commands.rb
|
54
54
|
- lib/hub/context.rb
|
55
|
+
- lib/hub/github_api.rb
|
55
56
|
- lib/hub/json.rb
|
56
57
|
- lib/hub/runner.rb
|
58
|
+
- lib/hub/ssh_config.rb
|
57
59
|
- lib/hub/standalone.rb
|
58
60
|
- lib/hub/version.rb
|
59
61
|
- lib/hub.rb
|
@@ -69,7 +71,7 @@ files:
|
|
69
71
|
- test/hub_test.rb
|
70
72
|
- test/ssh_config
|
71
73
|
- test/standalone_test.rb
|
72
|
-
homepage:
|
74
|
+
homepage: http://defunkt.io/hub/
|
73
75
|
licenses: []
|
74
76
|
post_install_message: ! "\n------------------------------------------------------------\n\n
|
75
77
|
\ You there! Wait, I say!\n =======================\n\n
|