I had installed releasy so I could export my project, and I copied and edited a ruby file that should do the trick, but when I run it, the command prompt told me that there was a load error for the 'bundler'. I'll post my code, but I think it may have to do with the gem installed.
require 'bundler/setup' # Releasy requires require
that your application uses bundler.
verbose # Can be removed if you don't want to see
all build messages.
files "c:\ruby193\pong.rb", "c:\ruby193\data
\music2.ogg" , "c:\ruby193\data\hit.ogg", "c:
exclude_encoding # Applications that don't use
advanced encoding (e.g. Japanese characters) can save
build size with this.
add_deploy :local # Only deploy locally.
You might not have bundler gem, or have multiple versions of Ruby installed (this might cause some chaos), or something.
Just try and remove
require 'bundler/setup' line. Says it's required but I believe it actually isn't.
It depends on how you're running ruby. To use Releasy, you should use bundler and have a Gemfile with all the versions of the gems that you want to use. Bundler will track all the dependencies for you and include them in your app. If you have your Gemfile all setup, you should also ensure that you have the bundler gem installed via "gem install bundler". If you're still stuck, post your files and the error somewhere and we can try to take a look.
Hope that helps.
I removed the require bundler line, but then the command prompt tells me that there are issues in my block, argument errors, wrong number and the like.
I installed bundler and tried running the original code, but it tells me the same thing it did at first.
So should I uninstall ruby and make sure to only add certain gems or something? It took me a really long time to actually get a ruby that would work with my computer, so I'd rather not do that if I could.
Can't you just run
gem install bundler to install bundler? That seems like the obvious solution :)
I already did. When I try running the code that requires bundler, it tells me there are errors like they couldn't find the components or something.
Maybe you need to add the bundler executables to your PATH?
I'm not really sure how to do that on Windows, but I think the other people here should be able to help you with that part.
Have you tried running
bundle in a terminal, just to make sure that everything is working correctly?
By terminal, do you mean like inside the command prompt?
Sorry, sometimes I forget the Windows terminology for things.
Well, yeah. I've already done that, and that's where I get all my 'incorrect sum' or the like.
Should I reinstall releasy or bundler?
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill