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.

@@ -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
- standalone = Hub::Standalone.build
21
- assert_includes "This file, hub, is generated code", standalone
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
- assert_equal Hub::Standalone.build, File.read('./hub')
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.8.4
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-03-20 00:00:00.000000000 Z
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: &70214684711760 !ruby/object:Gem::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: *70214684711760
25
+ version_requirements: *70352271416600
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: webmock
28
- requirement: &70214684711100 !ruby/object:Gem::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: *70214684711100
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: chris@ozmm.org
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: https://github.com/defunkt/hub
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