plugin_assets: breaks, again
2007-01-25
As I reported earlier, I now use plugin_assets in my applications. Two days ago, I ran
1 $ piston status --show-updates
and noticed some changes in the PluginAWeek.org plugins.
Naïvely, I ran:
1 $ piston update vendor/plugins/*
Now, rake assets:update breaks silently. It won’t find any plugins, no matter what. I finally traced the problem to this:
1Index: loaded_plugins.rb2===================================================================3--- loaded_plugins.rb (revision 310)4+++ loaded_plugins.rb (revision 311)5@@ -1,4 +1,4 @@6-$LOADED_PLUGINS = []7+$LOADED_PLUGINS = ActiveSupport::OrderedHash.new
The full diff can be obtained as
1 $ svn diff -r 310:311 http://svn.pluginaweek.org/trunk/plugins/rails/loaded_plugins/lib
For the moment, I’m using this fix:
1 $ svn diff 2 Index: vendor/plugins/loaded_plugins/tasks/loaded_plugins_tasks.rake 3 =================================================================== 4 --- vendor/plugins/loaded_plugins/tasks/loaded_plugins_tasks.rake (revision 2648) 5 +++ vendor/plugins/loaded_plugins/tasks/loaded_plugins_tasks.rake (working copy) 6 @@ -11,5 +11,5 @@ 7 plugins = $LOADED_PLUGINS.empty? ? nil : $LOADED_PLUGINS 8 end 9 10 - plugins.kind_of?(Hash) ? plugins.values : plugins 11 + plugins.respond_to?(:values) ? plugins.values : plugins 12 end 13 \ No newline at end of file
Just a warning for everyone out there who might be using plugin_assets.
blog comments powered by Disqus