In order to run specs for the first time, I added a Gemfile file to the project, simplifyng my way.
There is a questionable sdl rubygem (rubysdl). Please, modify this gem, so we can avoid the follow error:
private method `load' called for SDL::Surface:Class
Adding Gemfile with a questionable sdl rubygem
ignoring *~ files in .gitignore
describing lib sdl dependence
Good, but RSpec and SimpleCov should be namespaced for "test".
Furthermore, all "require sdl" should be converted to bundler, and spec_helper must change too.
With Gemfile like this:
group :test do
I tried to convert all "require sdl" to bundler:
And changed spec_helper:
But it didn't work, I got the follow error:
NameError: uninitialized constant Screen::SDL
Is "rubysdl" the correct gem I have to use?
It works if I keep require 'sdl' in the ar_sdl.rb file:
Is it appropriate ?
Ps.: I pushed it working to my repo...
SDL-TTF (the one you put above)
SDL-Image (the one it's missing).
green specs with Bundler.require()
Bundler working fine with sdl gem!