drnic-github 0.3.9

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,38 @@
1
+ # this is an extremely hacky spec
2
+ # intended purely to test the Windoze-specific code
3
+
4
+ require 'rubygems'
5
+ require 'spec'
6
+
7
+ describe "github/command.rb" do
8
+ before(:all) do
9
+ @orig_platform = RUBY_PLATFORM
10
+ Object.send :remove_const, :RUBY_PLATFORM
11
+ Object.const_set :RUBY_PLATFORM, "mswin"
12
+ end
13
+
14
+ after(:all) do
15
+ Object.send :remove_const, :RUBY_PLATFORM
16
+ Object.const_set :RUBY_PLATFORM, @orig_platform
17
+ end
18
+
19
+ before(:each) do
20
+ @filename = File.dirname(__FILE__) + "/../lib/github/command.rb"
21
+ @data = File.read(@filename)
22
+ end
23
+
24
+ it "should require win32/open3 under Windows" do
25
+ mod = Module.new
26
+ mod.should_receive(:require).with("fileutils")
27
+ mod.should_receive(:require).with("win32/open3")
28
+ mod.class_eval @data, @filename
29
+ end
30
+
31
+ it "should blow up if win32/open3 isn't present under Windows" do
32
+ mod = Module.new
33
+ mod.should_receive(:require).with("fileutils")
34
+ mod.should_receive(:require).with("win32/open3").and_return { raise LoadError }
35
+ mod.should_receive(:warn).with("You must 'gem install win32-open3' to use the github command on Windows")
36
+ lambda { mod.class_eval @data, @filename }.should raise_error(SystemExit)
37
+ end
38
+ end
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: drnic-github
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.9
5
+ platform: ruby
6
+ authors:
7
+ - Chris Wanstrath, Kevin Ballard, Scott Chacon
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-04 00:00:00 +10:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: text-format
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description: The official `github` command line helper for simplifying your GitHub experience.
26
+ email: chris@ozmm.org
27
+ executables:
28
+ - gh
29
+ - github
30
+ extensions: []
31
+
32
+ extra_rdoc_files:
33
+ - LICENSE
34
+ - README
35
+ - bin/gh
36
+ - bin/github
37
+ - lib/commands/commands.rb
38
+ - lib/commands/helpers.rb
39
+ - lib/commands/issues.rb
40
+ - lib/commands/network.rb
41
+ - lib/github.rb
42
+ - lib/github/command.rb
43
+ - lib/github/extensions.rb
44
+ - lib/github/helper.rb
45
+ - lib/github/ui.rb
46
+ files:
47
+ - History.txt
48
+ - LICENSE
49
+ - Manifest
50
+ - README
51
+ - Rakefile
52
+ - bin/gh
53
+ - bin/github
54
+ - github.gemspec
55
+ - lib/commands/commands.rb
56
+ - lib/commands/helpers.rb
57
+ - lib/commands/issues.rb
58
+ - lib/commands/network.rb
59
+ - lib/github.rb
60
+ - lib/github/command.rb
61
+ - lib/github/extensions.rb
62
+ - lib/github/helper.rb
63
+ - lib/github/ui.rb
64
+ - setup.rb
65
+ - spec/command_spec.rb
66
+ - spec/extensions_spec.rb
67
+ - spec/github_spec.rb
68
+ - spec/helper_spec.rb
69
+ - spec/spec_helper.rb
70
+ - spec/ui_spec.rb
71
+ - spec/windoze_spec.rb
72
+ has_rdoc: true
73
+ homepage: http://github.com/
74
+ licenses: []
75
+
76
+ post_install_message:
77
+ rdoc_options:
78
+ - --line-numbers
79
+ - --inline-source
80
+ - --title
81
+ - Github
82
+ - --main
83
+ - README
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
91
+ version:
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: "1.2"
97
+ version:
98
+ requirements: []
99
+
100
+ rubyforge_project: github
101
+ rubygems_version: 1.3.5
102
+ signing_key:
103
+ specification_version: 3
104
+ summary: The official `github` command line helper for simplifying your GitHub experience.
105
+ test_files: []
106
+