hub 1.6.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.

@@ -0,0 +1,49 @@
1
+ $LOAD_PATH.unshift File.dirname(__FILE__)
2
+ require 'helper'
3
+ require 'fileutils'
4
+
5
+ class StandaloneTest < Test::Unit::TestCase
6
+ include FileUtils
7
+
8
+ def setup
9
+ rm "hub" if File.exists? 'hub'
10
+ rm_rf "/tmp/_hub_private" if File.exists? '/tmp/_hub_private'
11
+ mkdir "/tmp/_hub_private"
12
+ chmod 0400, "/tmp/_hub_private"
13
+ end
14
+
15
+ def teardown
16
+ rm "hub" if File.exists? 'hub'
17
+ rm_rf "/tmp/_hub_private" if File.exists? "/tmp/_hub_private"
18
+ end
19
+
20
+ def test_standalone
21
+ standalone = Hub::Standalone.build
22
+ assert_includes "This file, hub, is generated code", standalone
23
+ assert_includes "Runner", standalone
24
+ assert_includes "Args", standalone
25
+ assert_includes "Commands", standalone
26
+ assert_includes ".execute(*ARGV)", standalone
27
+ assert_not_includes "module Standalone", standalone
28
+
29
+ standalone =~ /__END__\s*(.+)/m
30
+ assert_equal File.read('man/hub.1'), $1
31
+ end
32
+
33
+ def test_standalone_save
34
+ Hub::Standalone.save("hub")
35
+ assert_equal Hub::Standalone.build, File.read('./hub')
36
+ end
37
+
38
+ def test_standalone_save_permission_denied
39
+ assert_raises Errno::EACCES do
40
+ Hub::Standalone.save("hub", "/tmp/_hub_private")
41
+ end
42
+ end
43
+
44
+ def test_standalone_save_doesnt_exist
45
+ assert_raises Errno::ENOENT do
46
+ Hub::Standalone.save("hub", "/tmp/something/not/real")
47
+ end
48
+ end
49
+ end
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hub
3
+ version: !ruby/object:Gem::Version
4
+ hash: 15
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 6
9
+ - 0
10
+ version: 1.6.0
11
+ platform: ruby
12
+ authors:
13
+ - Chris Wanstrath
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-24 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: " `hub` is a command line utility which adds GitHub knowledge to `git`.\n\n It can used on its own or as a `git` wrapper.\n\n Normal:\n\n $ hub clone rtomayko/tilt\n\n Expands to:\n $ git clone git://github.com/rtomayko/tilt.git\n\n Wrapping `git`:\n\n $ git clone rack/rack\n\n Expands to:\n $ git clone git://github.com/rack/rack.git\n"
23
+ email: chris@ozmm.org
24
+ executables:
25
+ - hub
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - README.md
32
+ - Rakefile
33
+ - LICENSE
34
+ - lib/hub/args.rb
35
+ - lib/hub/commands.rb
36
+ - lib/hub/context.rb
37
+ - lib/hub/runner.rb
38
+ - lib/hub/standalone.rb
39
+ - lib/hub/version.rb
40
+ - lib/hub.rb
41
+ - bin/hub
42
+ - man/hub.1
43
+ - man/hub.1.html
44
+ - man/hub.1.ronn
45
+ - test/alias_test.rb
46
+ - test/deps.rip
47
+ - test/fakebin/git
48
+ - test/fakebin/open
49
+ - test/helper.rb
50
+ - test/hub_test.rb
51
+ - test/standalone_test.rb
52
+ has_rdoc: true
53
+ homepage: http://github.com/defunkt/hub
54
+ licenses: []
55
+
56
+ post_install_message: |+
57
+
58
+ ------------------------------------------------------------
59
+
60
+ You there! Wait, I say!
61
+ =======================
62
+
63
+ If you are a heavy user of `git` on the command
64
+ line you may want to install `hub` the old
65
+ fashioned way. Faster startup time, you see.
66
+
67
+ Check out the installation instructions at
68
+ http://github.com/defunkt/hub#readme under the
69
+ "Standalone" section.
70
+
71
+ Cheers,
72
+ defunkt
73
+
74
+ ------------------------------------------------------------
75
+
76
+ rdoc_options: []
77
+
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ hash: 3
86
+ segments:
87
+ - 0
88
+ version: "0"
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ hash: 3
95
+ segments:
96
+ - 0
97
+ version: "0"
98
+ requirements: []
99
+
100
+ rubyforge_project:
101
+ rubygems_version: 1.3.7
102
+ signing_key:
103
+ specification_version: 3
104
+ summary: hub introduces git to GitHub
105
+ test_files: []
106
+