Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't work with bundler #1

Open
macfanatic opened this issue Jun 8, 2012 · 5 comments
Open

Won't work with bundler #1

macfanatic opened this issue Jun 8, 2012 · 5 comments

Comments

@macfanatic
Copy link

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
Copy link
Author

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.

@clayallsopp
Copy link
Owner

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
Copy link
Owner

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
Copy link
Owner

@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.

d0c4a9e

@macfanatic
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants