github_helper 1.0.3 → 1.0.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.
Files changed (3) hide show
  1. data/bin/ghh +4 -0
  2. data/lib/github_helper/version.rb +1 -1
  3. metadata +2 -3
data/bin/ghh CHANGED
@@ -100,7 +100,11 @@ end
100
100
  begin
101
101
  optparse.parse!
102
102
 
103
+ topFolder = `git rev-parse --show-toplevel`.chomp!
104
+ raise ArgException, "This isn't a git directory" if topFolder == nil
105
+
103
106
  # Do we have a config file ? If we don't, lets make one !
107
+ Dir.chdir(topFolder)
104
108
  f = GithubHelper::FirstTime.new() if !File.exists?('.git/githelper.config.yml') || options[:regenconfig]
105
109
 
106
110
  raise ArgException, "No action specified" if !action
@@ -1,3 +1,3 @@
1
1
  module GithubHelper
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-11 00:00:00.000000000 Z
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -123,4 +123,3 @@ specification_version: 3
123
123
  summary: A useful tool to commit, push to remote and open a pull request, in a single
124
124
  line.
125
125
  test_files: []
126
- has_rdoc: