git-fyncy 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module GitFyncy
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
data/lib/git-fyncy.rb CHANGED
@@ -6,7 +6,12 @@ module GitFyncy
6
6
  extend Utils
7
7
 
8
8
  def self.main(*extra_rsync_args)
9
- working_dir ||= Dir.pwd
9
+ working_dir = `git rev-parse --show-toplevel`.chomp
10
+
11
+ if working_dir.empty?
12
+ pexit "Must be in a git repository"
13
+ end
14
+
10
15
  Dir.chdir working_dir
11
16
 
12
17
  synchronizer = Synchronizer.new extra_rsync_args
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-fyncy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2014-12-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: listen
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &7275640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,12 +21,7 @@ dependencies:
21
21
  version: '1.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '1.3'
24
+ version_requirements: *7275640
30
25
  description: The funky git aware syncer.
31
26
  email:
32
27
  - ryan@ryanmcg.com
@@ -70,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
65
  version: '0'
71
66
  requirements: []
72
67
  rubyforge_project:
73
- rubygems_version: 1.8.25
68
+ rubygems_version: 1.8.11
74
69
  signing_key:
75
70
  specification_version: 3
76
71
  summary: Want to sync the working directories of your git directory with a remote