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

Using RedAlert without RMQ #18

Closed
kapso opened this issue Aug 13, 2015 · 7 comments
Closed

Using RedAlert without RMQ #18

kapso opened this issue Aug 13, 2015 · 7 comments

Comments

@kapso
Copy link

kapso commented Aug 13, 2015

Can I use this in a non-RMQ project? I get the following error in a non-RMQ project

undefined local variable or method rmq

@GantMan
Copy link
Owner

GantMan commented Aug 13, 2015

hey Kapso :)

RedAlert was def written around the idea of being an RMQ Plugin. So that leaves you with 2 options.

  1. Add RMQ: It's non-polluting and very light weight. I use it in all projects bc of this.

  2. Steal the guts: RedAlert is fundamentally not RMQ specific, I just use a lot of RMQ features to help with tests, structure, and determining what device is in use. You can look through the app for use of rmq. and replace it with non-rmq alternatives in a fork if you'd like!

@kapso
Copy link
Author

kapso commented Aug 13, 2015

Option (1) sounds more appealing, given I need to get a fix out soon, since BubbleWrap failed on me :( rubymotion-community/BubbleWrap#471

So this RedAlert has added ruby_motion_query as a dependency. What do I do next? How can I get access to rmq object inside a non-RMQ project.

I am using ProMotion in this current project, so cant switch over to RMQ completely, I just want to use RedAlert.

Thanks so much for your help!

@GantMan
Copy link
Owner

GantMan commented Aug 13, 2015

I'm surprised it didn't just include RMQ and work. The example app (in this repo) only has RMQ.

ProMotion and RMQ should play nicely. Can I have you do a rake clean? Not sure how it wouldn't find RMQ in the first place, considering, you're right, it is a dependency of the gem.

@kapso
Copy link
Author

kapso commented Aug 13, 2015

Just did a rake clean and rake clean:all and same error undefined local variable or method 'rmq'

So our views are extending from PM:Screen since its a ProMotion project.

@GantMan
Copy link
Owner

GantMan commented Aug 13, 2015

I accidentally deleted your message (WOOPS!)

I meant to delete mine. Anyhow, I found that including rmq in the gemfile works... not sure why you need to do that. It should be a dependency, but if you include RMQ in your gemfile it works fine.

@markrickert
Copy link
Collaborator

To be clear - promotion and rmq work marvelously together. And if you're going to do so, you really should be using redpotion. :)

@kapso
Copy link
Author

kapso commented Aug 14, 2015

@GantMan yea that was the fix, and the input alert works like a charm. Thanks so much for your prompt help and for your work on RedAlert.

@markrickert this is a legacy app, will be sunsetting soon, so just fixing the bugs for now :)

@kapso kapso closed this as completed Aug 14, 2015
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

3 participants