killbill / killbill-plugin-framework-ruby

Framework to write Kill Bill plugins in Ruby
http://killbill.io
8 stars 11 forks source link

[feature] fully name-spacing plugins #38

Open kares opened 9 years ago

kares commented 9 years ago

seems that plugins are not "really" name-spaces at least in terms of files put on the $LOAD_PATH

e.g. killbill-stripe gem provides stripe.rb on the load-path which is fine but could be slightly better (esp. since it introduces a Killbill::Stripe and not Stripe constant)

the gem convention is that the name killbill-stripe would map to loading killbill/stripe.rb or killbill-stripe.rb (already supported by JRubyPlugin) ... it's probably not an issue for existing plugins but some of the AM supported GW are calling for a potential collision course e.g. eway.rb, balanced.rb, quickpay.rb

seems that it's not hard to support new plugins to be generated, JRubyPlugin can be updated to support the require name.gsub('-', '/') convention