Giter Site home page Giter Site logo

[REGRESSION] FileList['[A-Z]*'] matches files starting with lower case character on default OS X file system using Ruby 2.2 about rake HOT 3 CLOSED

ruby avatar ruby commented on August 27, 2024
[REGRESSION] FileList['[A-Z]*'] matches files starting with lower case character on default OS X file system using Ruby 2.2

from rake.

Comments (3)

drbrain avatar drbrain commented on August 27, 2024

Rake uses glob and has for years (see @698a54980ef0e7f84447ee67f865366f56f2857a) so I think this comes from the glob changes in Ruby 2.2 since I don't see or remember rake changes to FileList resolution.

To check, does latest rake behave the same on Ruby 2.1? This way we can determine where the regression lies.

(See the ruby 2.2 ChangeLog for the glob changes on case insensitive filesystems)

from rake.

donv avatar donv commented on August 27, 2024

Yes, it is the change in Ruby 2.2 that does the change in FileList. Should this behavior bleed through?

Is there a way to get the old behavior back with FileList, or do we have to resort to

  spec.files = FileList['[A-Z]*'].select{|f| f =~ /^[A-Z]/} + FileList['bin/*', 'lib/**/*', 'test/**/*'].to_a

from rake.

hsbt avatar hsbt commented on August 27, 2024

It seems not Rake issue.

from rake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.