Permalink
Browse files

Fixed ".git" errors.

Redirected std err to /dev/null in the git commands in the gemspecs. This will stop errors on those commands from being shown to the user (which often results in panic and posts to /issues/)
  • Loading branch information...
plamoni committed Nov 28, 2011
1 parent 8fbc880 commit 6683e00232d9e38647f118f65b9ea53f2b4f12ce
Showing with 8 additions and 7 deletions.
  1. +3 −3 plugins/siriproxy-example/siriproxy-example.gemspec
  2. +5 −4 siriproxy.gemspec
@@ -12,9 +12,9 @@ Gem::Specification.new do |s|
s.rubyforge_project = "siriproxy-example"
- s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.files = `git ls-files 2> /dev/null`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/* 2> /dev/null`.split("\n")
+ s.executables = `git ls-files -- bin/* 2> /dev/null`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
# specify any dependencies here; for example:
View
@@ -13,11 +13,12 @@ Gem::Specification.new do |s|
s.rubyforge_project = "siriproxy"
- s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.files = `git ls-files 2> /dev/null`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/* 2> /dev/null`.split("\n")
+ s.executables = `git ls-files -- bin/* 2> /dev/null`.split("\n").map{ |f| File.basename(f) }
+
s.require_paths = ["lib"]
-
+
s.executables << 'siriproxy'
s.add_runtime_dependency "CFPropertyList"

0 comments on commit 6683e00

Please sign in to comment.