Today’s “refactoring” isn’t a refactoring in the classic sense, since it includes a behavior change. But if you squint your eyes enough to only see the Controller as the “public interface”, then we can call it a refactor. The Refactoring Yesterday I moved the create_bulk_time_entry into the TimeEntry class where it fit better. Today I …
Tag: plugins
Daily Refactor #2: Move Method in the BulkTimeEntriesController – saving a new TimeEntry
The Refactoring Following up to yesterday’s refactoring, today I kept refactoring the Bulk Time Entry plugin’s controller. The save_time_entry_from_params method I extracted yesterday only uses the TimeEntry class, so it would be perfect to move the method to the TimeEntry class. Since the TimeEntry class is defined by Redmine, I had to monkey-patch that class. …
Daily Refactor #1: Extract Method in the BulkTimeEntriesController – saving a new TimeEntry
I’m having two problems right now: Not enough time to write to my blogs Not enough time to keep my Redmine plugins maintained To try and fix both of these problems, I’m going to try and start something new here: a daily refactoring. I’m going do a small refactoring to my Redmine plugins or Redmine …
Redmine Plugin Dependencies
I’ve been doing a lot of integration work with Redmine lately and needed one Redmine plugin to be depend on another plugin. So yesterday I added a new method to the Redmine plugin API called requires_redmine_plugin. It’s a simple method that will make sure another Redmine plugin is installed. Using the API is simple, just …
Question: Bug fix releases or release new plugins?
I recently asked a question on Twitter and I wanted to get some more feedback on here. To add a some context: I have about 20 Redmine plugins Open Sourced that are ready for another release. With Redmine 0.9 coming up, I’d like to do a final bugfix release of them for the final 0.8 …