github 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/Rakefile +2 -2
- data/github.gemspec +3 -3
- data/lib/commands/commands.rb +4 -2
- data/spec/commands/command_home_spec.rb +2 -2
- metadata +3 -3
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -4,12 +4,12 @@ require 'rake'
|
|
4
4
|
begin
|
5
5
|
require 'echoe'
|
6
6
|
|
7
|
-
Echoe.new('github', '0.4.
|
7
|
+
Echoe.new('github', '0.4.1') do |p|
|
8
8
|
p.rubyforge_name = 'github'
|
9
9
|
p.summary = "The official `github` command line helper for simplifying your GitHub experience."
|
10
10
|
p.description = "The official `github` command line helper for simplifying your GitHub experience."
|
11
11
|
p.url = "http://github.com/"
|
12
|
-
p.author = ['Chris Wanstrath', 'Kevin Ballard', 'Scott Chacon']
|
12
|
+
p.author = ['Chris Wanstrath', 'Kevin Ballard', 'Scott Chacon', 'Dr Nic Williams']
|
13
13
|
p.email = "chris@ozmm.org"
|
14
14
|
p.dependencies = [
|
15
15
|
"text-format >=1.0.0",
|
data/github.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{github}
|
5
|
-
s.version = "0.4.
|
5
|
+
s.version = "0.4.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Chris Wanstrath, Kevin Ballard, Scott Chacon"]
|
9
|
-
s.date = %q{2009-
|
8
|
+
s.authors = ["Chris Wanstrath, Kevin Ballard, Scott Chacon, Dr Nic Williams"]
|
9
|
+
s.date = %q{2009-12-16}
|
10
10
|
s.description = %q{The official `github` command line helper for simplifying your GitHub experience.}
|
11
11
|
s.email = %q{chris@ozmm.org}
|
12
12
|
s.executables = ["gh", "github"]
|
data/lib/commands/commands.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
desc "Open this repo's master branch in a web browser."
|
2
2
|
command :home do |user|
|
3
3
|
if helper.project
|
4
|
-
|
4
|
+
homepage = helper.homepage_for(user || helper.owner, 'master')
|
5
|
+
homepage.gsub!(%r{/tree/master$}, '')
|
6
|
+
helper.open homepage
|
5
7
|
end
|
6
8
|
end
|
7
9
|
|
@@ -231,7 +233,7 @@ command :'create-from-local' do
|
|
231
233
|
repo = File.basename(cwd)
|
232
234
|
is_repo = !git("status").match(/fatal/)
|
233
235
|
raise "Not a git repository. Use gh create instead" unless is_repo
|
234
|
-
sh "curl -F 'repository[name]=#{repo}' -F 'repository[public]=#{!options[:private].inspect} -F 'login=#{github_user}' -F 'token=#{github_token}' http://github.com/repositories"
|
236
|
+
sh "curl -F 'repository[name]=#{repo}' -F 'repository[public]=#{!options[:private].inspect}' -F 'login=#{github_user}' -F 'token=#{github_token}' http://github.com/repositories"
|
235
237
|
git "remote add origin git@github.com:#{github_user}/#{repo}.git"
|
236
238
|
git_exec "push origin master"
|
237
239
|
end
|
@@ -7,14 +7,14 @@ describe "github home" do
|
|
7
7
|
specify "home should open the project home page" do
|
8
8
|
running :home do
|
9
9
|
setup_url_for
|
10
|
-
@helper.should_receive(:open).once.with("https://github.com/user/project
|
10
|
+
@helper.should_receive(:open).once.with("https://github.com/user/project")
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
14
|
specify "home defunkt should open the home page of defunkt's fork" do
|
15
15
|
running :home, "defunkt" do
|
16
16
|
setup_url_for
|
17
|
-
@helper.should_receive(:open).once.with("https://github.com/defunkt/project
|
17
|
+
@helper.should_receive(:open).once.with("https://github.com/defunkt/project")
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Chris Wanstrath, Kevin Ballard, Scott Chacon
|
7
|
+
- Chris Wanstrath, Kevin Ballard, Scott Chacon, Dr Nic Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-16 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|