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

Guard notification not properly escaped #443

Closed
leoc opened this issue May 17, 2013 · 4 comments
Closed

Guard notification not properly escaped #443

leoc opened this issue May 17, 2013 · 4 comments
Assignees

Comments

@leoc
Copy link

leoc commented May 17, 2013

Using guard-jasmine with the PlayerSpec that´s found all over the the internet:

sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `notify-send 'Jasmine spec failed' 'should be able to play a Song: ReferenceError: Can't find variable: Player in http://localhost:9292/assets/spec.js (line 6), TypeError: 'undefined' is not an object (evaluating 'player.play') in http://localhost:9292/assets/spec.js (line 11), ReferenceError: Can't find variable: $ in http://localhost:9292/assets/jasminetea.js (line 3427)' -t '3000' -h 'int:transient:1' -i '/home/arthur/.rvm/gems/ruby-1.9.3-p392@survey_element_test/gems/guard-1.8.0/images/failed.png' -u 'normal''

sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `notify-send 'Jasmine spec failed' 'tells the current song if the user has made it a favorite: ReferenceError: Can't find variable: Player in http://localhost:9292/assets/spec.js (line 6), spyOn could not find an object to spy upon for persistFavoriteStatus(), ReferenceError: Can't find variable: $ in http://localhost:9292/assets/jasminetea.js (line 3427)' -t '3000' -h 'int:transient:1' -i '/home/arthur/.rvm/gems/ruby-1.9.3-p392@survey_element_test/gems/guard-1.8.0/images/failed.png' -u 'normal''

sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `notify-send 'Jasmine spec failed' 'should indicate that the song is currently paused: ReferenceError: Can't find variable: Player in http://localhost:9292/assets/spec.js (line 6), TypeError: 'undefined' is not an object (evaluating 'player.play') in http://localhost:9292/assets/spec.js (line 20), TypeError: 'undefined' is not an object (evaluating 'player.isPlaying') in http://localhost:9292/assets/spec.js (line 25), ReferenceError: Can't find variable: $ in http://localhost:9292/assets/jasminetea.js (line 3427)' -t '3000' -h 'int:transient:1' -i '/home/arthur/.rvm/gems/ruby-1.9.3-p392@survey_element_test/gems/guard-1.8.0/images/failed.png' -u 'normal''
@thibaudgg
Copy link
Member

Please open an issue in the guard-jasmine repository instead. Thanks!

@netzpirat
Copy link
Contributor

He's just using Guard Jasmine as an example, but the error is with the Guard notifier here: https://github.com/guard/guard/blob/master/lib/guard/notifiers/notifysend.rb#L51

I'll take care of it...

@netzpirat netzpirat reopened this May 17, 2013
@ghost ghost assigned netzpirat May 17, 2013
@leoc
Copy link
Author

leoc commented May 17, 2013

Wow! Just wanted to make that clear...

Thanks!

@thibaudgg
Copy link
Member

Oops, sorry my bad!

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