lib/jjjaaa/middleware.rb in jjjaaa-1.0.0 vs lib/jjjaaa/middleware.rb in jjjaaa-1.1.0

- old
+ new

@@ -9,11 +9,13 @@ exec "afplay #{jjjaaa}" end Process.detach job - @app.call(env) + status, headers, response = @app.call(env) + + [status, headers, response] end private def path @@ -31,9 +33,9 @@ def sounds base.join "sounds" end def jjjaaa - sounds.join "jjjaaa.m4a" + sounds.join "jjjaaa#{(0..12).to_a.sample}.mp3" end end end