remote_model icon indicating copy to clipboard operation
remote_model copied to clipboard

Won't work with bundler

Open macfanatic opened this issue 12 years ago • 5 comments

Is there any reason why this would not work with bundler? I did the following:

  • Added a Gemfile to my project with remote_model listed
  • Updated my Rakefile to include the require 'bundler' and Bundler.require lines after the require 'motion/project' line
  • ran bundle and saw that the gem is listed, with a dependency on bubble-wrap
  • ran rake clean
  • ran rake

I get an exception about an undefined method an unitialized constant RemoteModule, and from the compilation output, I don't see any mention of remote_model files, although I see all the files from the bubble-wrap gem being compiled.

Could still end up having an issue with compilation order, but do you know why the source for remote_model wouldn't even be compiling?

macfanatic avatar Jun 08 '12 12:06 macfanatic

Actually, I didn't have any luck just following the instructions with a new project & setting up remote_model - never see the files in the list (not using Bundler here), but still see bubble-wrap being compiled.

I looked through the BubbleWrap gem & see that it is injecting values into the Rakefile app.files through a bunch of magic and wonder if this gem just isn't providing paths for RubyMotion to compile.

macfanatic avatar Jun 08 '12 12:06 macfanatic

hmmm if I remove the require "bubble-wrap" in remote_model.rb and uninstall/build/install the gem locally it works (as in it at least compiles the remote_model files), but if I keep that line it fails...it wasn't always like this, I'll keep exploring.

clayallsopp avatar Jun 08 '12 17:06 clayallsopp

oh looks like there's some new instructions for using BubbleWrap as a dependency (https://github.com/mattetti/BubbleWrap/blob/master/GEM.md), looking into it

clayallsopp avatar Jun 08 '12 17:06 clayallsopp

@macfanatic can you do a gem update remote_model and try now? should update to 0.0.2.

I tried a new project locally, added remote_model to the Gemfile and it works for me, lemme know if its still borked.

https://github.com/clayallsopp/remote_model/commit/d0c4a9e01f175a17017664e45c4dc90af8e9b474

clayallsopp avatar Jun 08 '12 17:06 clayallsopp

I'll give it a go when I'm back at the office next week, thanks for looking into it so quickly!

macfanatic avatar Jun 09 '12 14:06 macfanatic