|
Lines 188-194
Link Here
|
| 188 |
# the metadata distributed by the gem itself. This is similar to how |
188 |
# the metadata distributed by the gem itself. This is similar to how |
| 189 |
# rubygems creates an installation from a .gem file. |
189 |
# rubygems creates an installation from a .gem file. |
| 190 |
ruby_fakegem_metadata_gemspec() { |
190 |
ruby_fakegem_metadata_gemspec() { |
| 191 |
${RUBY} -r yaml -e "puts Gem::Specification.from_yaml(File::open('$1').read).to_ruby" > $2 |
191 |
case ${RUBY} in |
|
|
192 |
*ruby19) |
| 193 |
${RUBY} -r yaml -e "puts Gem::Specification.from_yaml(File::open('$1', :encoding => 'UTF-8').read).to_ruby" > $2 |
| 194 |
;; |
| 195 |
*) |
| 196 |
${RUBY} -r yaml -e "puts Gem::Specification.from_yaml(File::open('$1').read).to_ruby" > $2 |
| 197 |
;; |
| 198 |
esac |
| 192 |
} |
199 |
} |
| 193 |
|
200 |
|
| 194 |
# @FUNCTION: ruby_fakegem_genspec |
201 |
# @FUNCTION: ruby_fakegem_genspec |