Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed typo. $/ and NOT $\ #1998

Merged
merged 1 commit into from

3 participants

@postmodern

Oops. That should be $/, which is "\n" on UNIX systems and "\r\n" on Windows.

@travisbot

This pull request passes (merged 312fb52 into 68bdb44).

@radar radar merged commit accdd1c into from
@radar
Collaborator

Thank you :)

@postmodern

Luckily split($\) shouldn't break any gemspecs, unless you have file-names containing spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/bundler/templates/newgem/newgem.gemspec.tt
View
2  lib/bundler/templates/newgem/newgem.gemspec.tt
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
gem.summary = %q{TODO: Write a gem summary}
gem.homepage = ""
- gem.files = `git ls-files`.split($\)
+ gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
Something went wrong with that request. Please try again.