Coder Social home page Coder Social logo

Comments (10)

fabiopelosin avatar fabiopelosin commented on September 24, 2024

This issue can be implemented by improving this two methods to check against a regex.

from core.

squarefrog avatar squarefrog commented on September 24, 2024

I would love to have a go at this, but I'm struggling to find the spec where these methods are tested. Can anyone point me in the right direction?

from core.

fabiopelosin avatar fabiopelosin commented on September 24, 2024

Hi @squarefrog... great to hear that!

The specs are here (by convention we name the test file like TESTED_CLASS_spec.rb and use the the same tree of the lib/cocoapods-core dir in the spec dir).

from core.

squarefrog avatar squarefrog commented on September 24, 2024

Thanks! I'll start on this tomorrow. I'll just add a simple regex to look for any non-alphanumeric. If this needs to change down the line (support symbols?), it should be easy to add new rules.

from core.

fabiopelosin avatar fabiopelosin commented on September 24, 2024

Sounds great!

from core.

squarefrog avatar squarefrog commented on September 24, 2024

Couldn't sleep ;)

Frameworks
AddressBook.framework
AddressBook!
AddressBook

Libraries
MyLibrary.a
MyLibrary.dylib
libMyLibrary
MyLibrary
Mylib2

Strikethroughs are strings filtered out by the validation.

from core.

fabiopelosin avatar fabiopelosin commented on September 24, 2024

@squarefrog in case any is missing... the tests of your patch should include all the cases that you presented above in #66 (comment)

from core.

squarefrog avatar squarefrog commented on September 24, 2024

Sure I can do that. Is there a way to check for passing cases? For example:

  it 'checks that acceptable frameworks do not raise messages' do
    @spec.frameworks = %w(MyLibrary Mylib2)
    message_should_not_include('framework', 'name')
  end

I know message_should_not_include does not exist but is there something similar.

from core.

fabiopelosin avatar fabiopelosin commented on September 24, 2024

You can create any function that would helpful as showcased in this spec

from core.

squarefrog avatar squarefrog commented on September 24, 2024

OK I'll see what I can come up with this weekend!

from core.

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.