git-fyncy 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/git-fyncy.rb CHANGED
@@ -6,8 +6,6 @@ module GitFyncy
6
6
  path[-1] == '/' ? path : path + '/'
7
7
  end
8
8
 
9
- RELATIVE_PATH = slashify `pwd`.rstrip
10
-
11
9
  class Remote
12
10
  def initialize(remote, path)
13
11
  @remote = remote
@@ -31,16 +29,12 @@ module GitFyncy
31
29
  end
32
30
 
33
31
  def self.relative_path(path)
34
- path.slice! RELATIVE_PATH
32
+ path.slice! GitFyncy.slashify(Dir.pwd)
35
33
  path
36
34
  end
37
35
 
38
36
  def self.git_aware_files
39
- `git ls-files`.split("\n")
40
- end
41
-
42
- def self.git_aware_of_path?(path)
43
- self.git_aware_files.include? path
37
+ `git ls-files -cmo --exclude-standard`.split("\n")
44
38
  end
45
39
 
46
40
  def self.pexit(error)
@@ -1,3 +1,3 @@
1
1
  module GitFyncy
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: