github 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ == 0.4.1
2
+
3
+ Updated Commands:
4
+ * gh home - no longer appends /tree/master to the end of the URL
5
+ * gh create-from-local - fixed quoting bug to prevented project creation
6
+
1
7
  == 0.4.0
2
8
 
3
9
  Releasing to GemCutter!
data/Rakefile CHANGED
@@ -4,12 +4,12 @@ require 'rake'
4
4
  begin
5
5
  require 'echoe'
6
6
 
7
- Echoe.new('github', '0.4.0') do |p|
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",
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{github}
5
- s.version = "0.4.0"
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-11-06}
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"]
@@ -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
- helper.open helper.homepage_for(user || helper.owner, 'master')
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/tree/master")
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/tree/master")
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.0
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-11-06 00:00:00 +10:00
12
+ date: 2009-12-16 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency