mumuki-ruby-runner
docker pull mumuki/mumuki-rspec-worker:2.0
bundle install
RACK_ENV=development rackup -p 4567
:gem: Sinatra server for running Rspec tests within Mumuki
License: MIT License
Currently, if a query fails, errors are not displayed. But they should.
By some reason, when expression evaluates to nil
, it isn't printed.
Por ejemplo si en este ejercicio falta un end:
module Pepita
@energia = 1000
def self.energia
@energia
end
def self.volar_en_circulos!
@energia -= 10
end
def self.comer_alpiste!(gramos)
@energia += gramos * 15
end
def self.debil?
@energia < 100
end
def self.feliz?
@energia > 1000
end
Se obtiene el siguente error:
/usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `load': solucion.rb:93: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `block in load_spec_files'
from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `each'
from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `load_spec_files'
from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:100:in `setup'
from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:86:in `run'
from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:71:in `run'
from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:45:in `invoke'
from /usr/local/bundle/gems/rspec-core-3.5.4/exe/rspec:4:in `<top (required)>'
from /usr/local/bundle/bin/rspec:23:in `load'
from /usr/local/bundle/bin/rspec:23:in `<main>'
Más allá de que sería deseable incorporar un FeedbackHook
, el mensaje debería ser recortado, eliminado el strack-trace, y mostrando sólo lo siguiente:
solucion.rb:93: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
Some inspections should support are:
The inspector may be implemented as a simple rspec test, since most if not all those checks may be implemented at runtime
Actual message:
/tmp/mumuki.compile20170328-22351-1e53n8e.rb:22:in `<main>': undefined method `bailar' for Pepita:Module (NoMethodError)
Expected message:
undefined method `bailar' for Pepita:Module (NoMethodError)
We could use for example in this execercise https://central.mumuki.io/exercises/3391-primeros-pasos-ejecutando-nuestros-tests#console
We should update ruby language version to 2.6. This affects both the worker and the mulang-ruby
package
When a query with a syntax error is sent, all the following fail. The only way to get around is to reset the console.
This error appears after any submission:
Connection refused - connect(2)
It would be nice if Set
class would be available in the console and tests.
Ruby 2.4.0 implements #sum: https://blog.bigbinary.com/2016/11/02/ruby-2-4-introduces-enumerable-sum.html
Docs: http://ruby-doc.org/core-2.4.0/Enumerable.html#method-i-sum
sum is needed for a collections related exercise. A workaround can be found in the meantime while an older Ruby version is used.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.