Skip to content

Commit

Permalink
Fix jim plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
quirkey committed Oct 2, 2011
1 parent 3ffcb5b commit 336b750
Show file tree
Hide file tree
Showing 4 changed files with 8,552 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Gemfile
Expand Up @@ -11,9 +11,9 @@ gem 'mustache', '~>0.99'
gem 'coffee-script', '~>2.2'

group :development do
gem 'rake'
gem 'jeweler'
gem 'rake'
gem 'jeweler'
end
group :test do
gem "shoulda", ">= 0"
gem "shoulda", ">= 0"
end
2 changes: 2 additions & 0 deletions lib/soca/plugins/jim.rb
Expand Up @@ -11,6 +11,8 @@ def before_build
::Jim.logger = logger
logger.debug "bundling js"
bundler = ::Jim::Bundler.new(File.read(jimfile), ::Jim::Index.new(app_dir))
# set the base dir relative to the app
bundler.bundle_dir = app_dir + bundler.bundle_dir
bundler.bundle!
end

Expand Down
4 changes: 3 additions & 1 deletion lib/soca/pusher.rb
Expand Up @@ -137,7 +137,9 @@ def plugins
@plugins = config['plugins'].map do |plugin_config|
plugin_name, plugin_options = [plugin_config].flatten
require "soca/plugins/#{plugin_name}"
[plugin_name, Soca::Plugin.plugins[plugin_name].new(self, plugin_options || {})]
plugin_options ||= {}
plugin_options.each {|k, v| plugin_options[k.to_sym] = v }
[plugin_name, Soca::Plugin.plugins[plugin_name].new(self, plugin_options)]
end
else
@plugins = []
Expand Down

0 comments on commit 336b750

Please sign in to comment.