]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(Maint) Fix interpreter lines
authorJeff McCune <jeff@puppetlabs.com>
Thu, 19 Jul 2012 22:27:52 +0000 (15:27 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Thu, 19 Jul 2012 22:41:41 +0000 (15:41 -0700)
commitf604bae98cb377b6fc55185d4eeae05d1c7876d2
tree237e3c9771232862ecf8c596d7555f366ac05fbe
parent7d3433345e5c4a35b340f628cd7d7015aadfa9a4
(Maint) Fix interpreter lines

This time around I actually know why I'm doing this thanks to the
reminder from Nick Lewis.

Ruby will replace itself in memory with the executable listed in the
interpreter line if the string "ruby" is not in there.

Since /usr/bin/env rspec doesn't contain the substring "ruby", you can't
actually run ruby -W1 or whatever on the file.

This patch fixes the problem by making sure "ruby" is present,
preventing ruby from replacing itself in memory.
47 files changed:
spec/unit/puppet/parser/functions/abs_spec.rb
spec/unit/puppet/parser/functions/bool2num_spec.rb
spec/unit/puppet/parser/functions/capitalize_spec.rb
spec/unit/puppet/parser/functions/chomp_spec.rb
spec/unit/puppet/parser/functions/chop_spec.rb
spec/unit/puppet/parser/functions/delete_at_spec.rb
spec/unit/puppet/parser/functions/delete_spec.rb
spec/unit/puppet/parser/functions/downcase_spec.rb
spec/unit/puppet/parser/functions/empty_spec.rb
spec/unit/puppet/parser/functions/flatten_spec.rb
spec/unit/puppet/parser/functions/grep_spec.rb
spec/unit/puppet/parser/functions/hash_spec.rb
spec/unit/puppet/parser/functions/is_array_spec.rb
spec/unit/puppet/parser/functions/is_domain_name_spec.rb
spec/unit/puppet/parser/functions/is_float_spec.rb
spec/unit/puppet/parser/functions/is_hash_spec.rb
spec/unit/puppet/parser/functions/is_integer_spec.rb
spec/unit/puppet/parser/functions/is_ip_address_spec.rb
spec/unit/puppet/parser/functions/is_mac_address_spec.rb
spec/unit/puppet/parser/functions/is_numeric_spec.rb
spec/unit/puppet/parser/functions/is_string_spec.rb
spec/unit/puppet/parser/functions/join_spec.rb
spec/unit/puppet/parser/functions/keys_spec.rb
spec/unit/puppet/parser/functions/lstrip_spec.rb
spec/unit/puppet/parser/functions/member_spec.rb
spec/unit/puppet/parser/functions/num2bool_spec.rb
spec/unit/puppet/parser/functions/parsejson_spec.rb
spec/unit/puppet/parser/functions/parseyaml_spec.rb
spec/unit/puppet/parser/functions/prefix_spec.rb
spec/unit/puppet/parser/functions/range_spec.rb
spec/unit/puppet/parser/functions/reverse_spec.rb
spec/unit/puppet/parser/functions/rstrip_spec.rb
spec/unit/puppet/parser/functions/shuffle_spec.rb
spec/unit/puppet/parser/functions/size_spec.rb
spec/unit/puppet/parser/functions/sort_spec.rb
spec/unit/puppet/parser/functions/squeeze_spec.rb
spec/unit/puppet/parser/functions/str2bool_spec.rb
spec/unit/puppet/parser/functions/strftime_spec.rb
spec/unit/puppet/parser/functions/strip_spec.rb
spec/unit/puppet/parser/functions/swapcase_spec.rb
spec/unit/puppet/parser/functions/time_spec.rb
spec/unit/puppet/parser/functions/type_spec.rb
spec/unit/puppet/parser/functions/unique_spec.rb
spec/unit/puppet/parser/functions/upcase_spec.rb
spec/unit/puppet/parser/functions/values_at_spec.rb
spec/unit/puppet/parser/functions/values_spec.rb
spec/unit/puppet/parser/functions/zip_spec.rb