bitprophet-github 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bitprophet-github
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.4
5
+ platform: ruby
6
+ authors:
7
+ - Chris Wanstrath, Kevin Ballard, Scott Chacon
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-05-18 00:00:00 -07:00
13
+ default_executable: gh
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: json_pure
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
+ - !ruby/object:Gem::Dependency
26
+ name: text-format
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ description: The official `github` command line helper for simplifying your GitHub experience.
36
+ email: chris@ozmm.org
37
+ executables:
38
+ - github
39
+ - gh
40
+ extensions: []
41
+
42
+ extra_rdoc_files:
43
+ - bin/github
44
+ - bin/gh
45
+ - lib/github/extensions.rb
46
+ - lib/github/command.rb
47
+ - lib/github/helper.rb
48
+ - lib/github.rb
49
+ - LICENSE
50
+ - README
51
+ files:
52
+ - bin/github
53
+ - lib/commands/network.rb
54
+ - lib/commands/commands.rb
55
+ - lib/commands/helpers.rb
56
+ - lib/github/extensions.rb
57
+ - lib/github/command.rb
58
+ - lib/github/helper.rb
59
+ - lib/github.rb
60
+ - LICENSE
61
+ - Manifest
62
+ - README
63
+ - spec/command_spec.rb
64
+ - spec/extensions_spec.rb
65
+ - spec/github_spec.rb
66
+ - spec/helper_spec.rb
67
+ - spec/spec_helper.rb
68
+ - spec/ui_spec.rb
69
+ - spec/windoze_spec.rb
70
+ - github-gem.gemspec
71
+ - bin/gh
72
+ has_rdoc: true
73
+ homepage: http://github.com/
74
+ licenses:
75
+ post_install_message:
76
+ rdoc_options:
77
+ - --line-numbers
78
+ - --inline-source
79
+ - --title
80
+ - Github
81
+ - --main
82
+ - README
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: "0"
90
+ version:
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: "0"
96
+ version:
97
+ requirements: []
98
+
99
+ rubyforge_project: github
100
+ rubygems_version: 1.3.5
101
+ signing_key:
102
+ specification_version: 2
103
+ summary: The official `github` command line helper for simplifying your GitHub experience.
104
+ test_files: []
105
+