jchris-github 0.1.4

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,36 @@
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("win32/open3")
27
+ mod.class_eval @data, @filename
28
+ end
29
+
30
+ it "should blow up if win32/open3 isn't present under Windows" do
31
+ mod = Module.new
32
+ mod.should_receive(:require).with("win32/open3").and_return { raise LoadError }
33
+ mod.should_receive(:warn).with("You must 'gem install win32-open3' to use the github command on Windows")
34
+ lambda { mod.class_eval @data, @filename }.should raise_error(SystemExit)
35
+ end
36
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jchris-github
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ platform: ruby
6
+ authors:
7
+ - Chris Wanstrath, Kevin Ballard
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-05-18 00:00:00 -07:00
13
+ default_executable: github
14
+ dependencies: []
15
+
16
+ description: The official `github` command line helper for simplifying your GitHub experience.
17
+ email: chris@ozmm.org
18
+ executables:
19
+ - github
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - bin/github
24
+ - lib/github/extensions.rb
25
+ - lib/github/command.rb
26
+ - lib/github/helper.rb
27
+ - lib/github.rb
28
+ - LICENSE
29
+ - README
30
+ files:
31
+ - bin/github
32
+ - commands/commands.rb
33
+ - commands/helpers.rb
34
+ - lib/github/extensions.rb
35
+ - lib/github/command.rb
36
+ - lib/github/helper.rb
37
+ - lib/github.rb
38
+ - LICENSE
39
+ - Manifest
40
+ - README
41
+ - spec/command_spec.rb
42
+ - spec/extensions_spec.rb
43
+ - spec/github_spec.rb
44
+ - spec/helper_spec.rb
45
+ - spec/spec_helper.rb
46
+ - spec/ui_spec.rb
47
+ - spec/windoze_spec.rb
48
+ - github-gem.gemspec
49
+ has_rdoc: true
50
+ homepage: http://github.com/
51
+ post_install_message:
52
+ rdoc_options:
53
+ - --line-numbers
54
+ - --inline-source
55
+ - --title
56
+ - Github
57
+ - --main
58
+ - README
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ version:
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: "0"
72
+ version:
73
+ requirements: []
74
+
75
+ rubyforge_project: github
76
+ rubygems_version: 1.2.0
77
+ signing_key:
78
+ specification_version: 2
79
+ summary: The official `github` command line helper for simplifying your GitHub experience.
80
+ test_files: []
81
+