Comments (3)
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.
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:
My gem file is as follows:
from churn.
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)
- License missing from gemspec HOT 2
- Remove jeweler and simply gem build process
- Add support for sending churn results to a host
- Add support for perforce to help support Turbulence HOT 2
- add documentation about remote churn metric pushing
- Allow more flexible ignores (e.g. **/<file> for nested files) HOT 3
- Hide "Classes:" and "Methods:" when empty HOT 4
- Support for more syntaxes HOT 2
- Cannot insert password for SVN repository HOT 3
- SVN: FATAL: child class must implement HOT 1
- Vim: Warning: Output is not to a terminal HOT 1
- Churn requires a bazaar, git, mercurial, or subversion source control (RuntimeError) HOT 1
- Invalid byte sequence in UTF-8 HOT 1
- [Question] How to set file extention of the checked files? HOT 1
- Support for TFS
- Document that file_extension and file_prefix can also be supplied as regular expression HOT 1
- Passing an empty Array as the ignore_files value generates a RegexpError HOT 5
- Feature request: Support `churn --version` HOT 6
- Feature request: Add support for json output HOT 2
- switch to using Prism for parsing Ruby methods
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from churn.