Git Product home page Git Product logo

Comments (3)

danmayer avatar danmayer commented on August 16, 2024

hmmm that implies that the rake task for churn is being loaded outside of the rake environment. Could you share some of how you are setting up the project?

How are you requiring and loading churn, could you share the gemfile and rakefile you are using? I think you might just need to add , :require => false after you gemfile entry for churn and then manually add the require churn to your rakefile. If that works let me know and I can update the documentation.

from churn.

leebrooks0 avatar leebrooks0 commented on August 16, 2024

My Rails project is stock standard... I added :require => false (and did
not require churn), and the problem seems to have gone away?

I am calling Churn from a rake file in lib/task and it looks like this:

image

My gem file is as follows:

image

from churn.

danmayer avatar danmayer commented on August 16, 2024

Awesome thanks for the info. That should work fine if you have :require => false it just won't load churn by default when booting bundle. If you do that and then explicitly add require 'churn' to your Rakefile everything should work for you. I actually would recommend that strategy as churn won't load when running a webserver, tests, etc, so it shouldn't add unnecessary code into memory. Adding the explicit require into the Rakefile will only load it when you are running your rake environment.

I update the readme to explain that a bit better, I also just released a new version 0.0.29 which will detect this issue and not load unless churn is booted in a rake environment. Feel free to upgrade or just continue using the preferred :require => false setup.

Thanks for the report and the info to track down and debug the problem.

from churn.

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.