-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm starting to package hobo-metasearch into a gem, and I have seen
something interesting inside the hobo_simple_color gemspec. The line
that starts with "s.files" can't be parsed correctly by some apps
(Gedit, Firefox, Github syntax highlight):
This is what it looks like in gedit and github:
s.files = `git ls-files -z`.split('')
In vim:
s.files = `git ls-files -z`.split('^@')
In firefox
(
https://raw.github.com/Hobo/hobo_simple_color/master/hobo_simple_color.gemspec):
s.files = `git ls-files -z`.split('?')
I've looked for examples elsewhere and I've found different approaches:
s.files = `git ls-files`.split("\n")
s.files = `git ls-files -x #{name}/* -z`.split("\0")
- From the rubygems documentation
(
http://docs.rubygems.org/read/chapter/20#files), it looks like this
line just sets an array of all files in the gem. As hobo_simple_color
is the main example for creating hobo plugin/gems, should I follow any
particular approach?
Regards,
Ignacio
- --
Ignacio Huerta Arteche
http://www.ihuerta.net
Tel�fono: 0034 645 70 77 35
Email realizado con software libre
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://www.enigmail.net/
iEYEARECAAYFAlB877IACgkQBPlUJ6RHaOS2uwCfbMANR4TLGMmBnrKBBGUPvxc2
CPYAoP5UlQbOTDi2wRwWMavMPVvsaMMq
=Ze/2
-----END PGP SIGNATURE-----