Giter Site home page Giter Site logo

Consider using churn gem about turbulence HOT 3 OPEN

bf4 avatar bf4 commented on June 9, 2024
Consider using churn gem

from turbulence.

Comments (3)

kerrizor avatar kerrizor commented on June 9, 2024

Nice! I'll take a look, see how hard it is to pull in.

from turbulence.

danmayer avatar danmayer commented on June 9, 2024

Cool idea @bf4 I would be interested in helping out.

churn due for a bit of refactoring. Likely just cleaning up the interface to detecting and querying interface for SCMs. I was looking at turbulance and

https://github.com/chad/turbulence/blob/master/lib/turbulence/scm/git.rb

and

https://github.com/chad/turbulence/blob/master/lib/turbulence/calculators/churn.rb

and the likely equivalent in the churn project

https://github.com/danmayer/churn/blob/master/lib/churn/git_analyzer.rb

Seems we could probably hook them up around there. Although if we want multiple SCM support, churn does that in the not very well factored out set_source_control method and would add support for additional SCMs to turbulence.

https://github.com/danmayer/churn/blob/master/lib/churn/churn_calculator.rb#L181

The last big thing I noticed is that turbulence supports perforce, which amazingly enough isn't on the list of SCMs that churn currently supports. I could try to add support for that so moving over would only add features opposed to deprecating anything.

@kerrizor let me know your thoughts and we can see if we can work something sane out.

from turbulence.

danmayer avatar danmayer commented on June 9, 2024

Before trying to add perforce support or adding any methods to return the data turbulence expects I started refactoring chrun a bit to make it easier to work with the various SCMs supported. You can see the first bit of progress

danmayer/churn@1d990a2

I plan to pull a few more methods out of the calculator and move them into the SCM classes. After a little bit more refactoring, I will try to get perforce support added.

from turbulence.

Related Issues (17)

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.