[Pkg-puppet-devel] [facter] 89/352: (maint) Remove rspec from shebang lines
Stig Sandbeck Mathisen
ssm at debian.org
Sun Apr 6 22:21:34 UTC 2014
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository facter.
commit b04d7012e6f85c2fe028deb7225036994ad3175d
Author: Jeff McCune <jeff at puppetlabs.com>
Date: Thu Oct 18 12:22:56 2012 -0700
(maint) Remove rspec from shebang lines
Without this patch Ruby 1.9 is still complaining loudly about trying to parse
the spec files.
I'd prefer to remove the shebang lines entirely, but doing so will cause
encoding errors in Ruby 1.9. This patch strives for a happy middle ground of
convincing Ruby it is actually working with Ruby while not confusing it to
think it should exec() to rspec.
This patch is the result of the following command run against the source tree:
find spec -type f -print0 | \
xargs -0 perl -pl -i -e 's,^\#\!\s?/(.*)rspec,\#! /usr/bin/env ruby,'
---
spec/unit/filesystems_spec.rb | 2 +-
spec/unit/kernel_spec.rb | 2 +-
spec/unit/kernelmajversion_spec.rb | 2 +-
spec/unit/kernelrelease_spec.rb | 2 +-
spec/unit/kernelversion_spec.rb | 2 +-
spec/unit/ssh_spec.rb | 2 +-
spec/unit/zonename_spec.rb | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/spec/unit/filesystems_spec.rb b/spec/unit/filesystems_spec.rb
index ab52ada..8ed6da2 100644
--- a/spec/unit/filesystems_spec.rb
+++ b/spec/unit/filesystems_spec.rb
@@ -1,4 +1,4 @@
-#! /usr/bin/env ruby -S rspec
+#! /usr/bin/env ruby
require 'spec_helper'
diff --git a/spec/unit/kernel_spec.rb b/spec/unit/kernel_spec.rb
index 79bc895..37d3431 100644
--- a/spec/unit/kernel_spec.rb
+++ b/spec/unit/kernel_spec.rb
@@ -1,4 +1,4 @@
-#! /usr/bin/env ruby -S rspec
+#! /usr/bin/env ruby
require 'spec_helper'
diff --git a/spec/unit/kernelmajversion_spec.rb b/spec/unit/kernelmajversion_spec.rb
index 1661e02..426a87c 100644
--- a/spec/unit/kernelmajversion_spec.rb
+++ b/spec/unit/kernelmajversion_spec.rb
@@ -1,4 +1,4 @@
-#! /usr/bin/env ruby -S rspec
+#! /usr/bin/env ruby
require 'spec_helper'
diff --git a/spec/unit/kernelrelease_spec.rb b/spec/unit/kernelrelease_spec.rb
index 9971087..8566d4a 100644
--- a/spec/unit/kernelrelease_spec.rb
+++ b/spec/unit/kernelrelease_spec.rb
@@ -1,4 +1,4 @@
-#! /usr/bin/env ruby -S rspec
+#! /usr/bin/env ruby
require 'spec_helper'
diff --git a/spec/unit/kernelversion_spec.rb b/spec/unit/kernelversion_spec.rb
index ea50069..98cedcc 100644
--- a/spec/unit/kernelversion_spec.rb
+++ b/spec/unit/kernelversion_spec.rb
@@ -1,4 +1,4 @@
-#! /usr/bin/env ruby -S rspec
+#! /usr/bin/env ruby
require 'spec_helper'
diff --git a/spec/unit/ssh_spec.rb b/spec/unit/ssh_spec.rb
index e1556de..7fd029d 100755
--- a/spec/unit/ssh_spec.rb
+++ b/spec/unit/ssh_spec.rb
@@ -1,4 +1,4 @@
-#! /usr/bin/env ruby -S rspec
+#! /usr/bin/env ruby
require 'spec_helper'
require 'facter/ssh'
diff --git a/spec/unit/zonename_spec.rb b/spec/unit/zonename_spec.rb
index b768642..b0c5b31 100644
--- a/spec/unit/zonename_spec.rb
+++ b/spec/unit/zonename_spec.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env rspec
+#! /usr/bin/env ruby
require 'spec_helper'
require 'facter'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git
More information about the Pkg-puppet-devel
mailing list