Closed colinta closed 10 years ago
So the use case here is in gems like Teacup / BubbleWrap, that would like to add some files depending on the platform.
I think this makes sense, thanks!
Can you change the style to this so the diff is a bit cleaner?:
Motion::Project::App.setup do |app|
# ...
current_platform = app.respond_to?(:template) ? app.template : :ios
return unless Motion::Require.check_platform(current_platform, check_platform
# ...
end
Pushed! Thanks, Clay.
Got it resolved; turns out the App
class includes a template
method as well, so I could move the code outside the block. Tested, ready to merge.
Sweet, will release as 0.2.0
And it's about damn time. This is for gems that are using MotionRequire
AND there are SPECS for this bad boy!