hubflow 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,48 @@
1
+ require 'helper'
2
+ require 'fileutils'
3
+
4
+ class StandaloneTest < Test::Unit::TestCase
5
+ include FileUtils
6
+
7
+ def setup
8
+ rm "hub" if File.exists? 'hub'
9
+ rm_rf "/tmp/_hub_private" if File.exists? '/tmp/_hub_private'
10
+ mkdir "/tmp/_hub_private"
11
+ chmod 0400, "/tmp/_hub_private"
12
+ end
13
+
14
+ def teardown
15
+ rm "hub" if File.exists? 'hub'
16
+ rm_rf "/tmp/_hub_private" if File.exists? "/tmp/_hub_private"
17
+ end
18
+
19
+ def test_standalone
20
+ standalone = Hub::Standalone.build
21
+ assert_includes "This file, hub, is generated code", standalone
22
+ assert_includes "Runner", standalone
23
+ assert_includes "Args", standalone
24
+ assert_includes "Commands", standalone
25
+ assert_includes ".execute(*ARGV)", standalone
26
+ assert_not_includes "module Standalone", standalone
27
+
28
+ standalone =~ /__END__\s*(.+)/m
29
+ assert_equal File.read('man/hub.1'), $1
30
+ end
31
+
32
+ def test_standalone_save
33
+ Hub::Standalone.save("hub")
34
+ assert_equal Hub::Standalone.build, File.read('./hub')
35
+ end
36
+
37
+ def test_standalone_save_permission_denied
38
+ assert_raises Errno::EACCES do
39
+ Hub::Standalone.save("hub", "/tmp/_hub_private")
40
+ end
41
+ end
42
+
43
+ def test_standalone_save_doesnt_exist
44
+ assert_raises Errno::ENOENT do
45
+ Hub::Standalone.save("hub", "/tmp/something/not/real")
46
+ end
47
+ end
48
+ end
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hubflow
3
+ version: !ruby/object:Gem::Version
4
+ hash: 11
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 7
9
+ - 0
10
+ version: 1.7.0
11
+ platform: ruby
12
+ authors:
13
+ - Tom Bombadil
14
+ - Chris Wanstrath
15
+ - "Mislav Marohni\xC4\x87"
16
+ autorequire:
17
+ bindir: bin
18
+ cert_chain: []
19
+
20
+ date: 2011-11-30 00:00:00 Z
21
+ dependencies: []
22
+
23
+ description: " `hubflow` is a command line utility which adds GitHub knowledge to `git`\n combined with workflow inspired by `git flow`.\n\n It can used on its own or as a `git` wrapper.\n\n Normal:\n\n $ hubflow 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"
24
+ email: amanibhavam@destructuring.org
25
+ executables:
26
+ - hubflow
27
+ extensions: []
28
+
29
+ extra_rdoc_files: []
30
+
31
+ files:
32
+ - README.md
33
+ - Rakefile
34
+ - LICENSE
35
+ - lib/hub/args.rb
36
+ - lib/hub/commands.rb
37
+ - lib/hub/context.rb
38
+ - lib/hub/runner.rb
39
+ - lib/hub/standalone.rb
40
+ - lib/hub/version.rb
41
+ - lib/hub.rb
42
+ - bin/hubflow
43
+ - man/hub.1
44
+ - man/hub.1.html
45
+ - man/hub.1.ronn
46
+ - test/alias_test.rb
47
+ - test/deps.rip
48
+ - test/fakebin/git
49
+ - test/fakebin/open
50
+ - test/helper.rb
51
+ - test/hub_test.rb
52
+ - test/standalone_test.rb
53
+ homepage: https://github.com/HeSYINUvSBZfxqA/hubflow
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 `hubflow` the old
65
+ fashioned way. Faster startup time, you see.
66
+
67
+ Check out the installation instructions at
68
+ https://github.com/HeSYINUvSBZfxqA/hubflow#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.8.11
102
+ signing_key:
103
+ specification_version: 3
104
+ summary: Command-line wrapper for git and GitHub with a workflow inspired by git flow
105
+ test_files: []
106
+