{"action":"opened","issue":{"url":"https://api.github.com/repos/shoes/shoes4/issues/1146","labels_url":"https://api.github.com/repos/shoes/shoes4/issues/1146/labels{/name}","comments_url":"https://api.github.com/repos/shoes/shoes4/issues/1146/comments","events_url":"https://api.github.com/repos/shoes/shoes4/issues/1146/events","html_url":"https://github.com/shoes/shoes4/issues/1146","id":91598258,"number":1146,"title":"Runnign scripts through ruby myscript.rb is broken","user":{"login":"PragTob","id":606517,"avatar_url":"https://avatars.githubusercontent.com/u/606517?v=3","gravatar_id":"","url":"https://api.github.com/users/PragTob","html_url":"https://github.com/PragTob","followers_url":"https://api.github.com/users/PragTob/followers","following_url":"https://api.github.com/users/PragTob/following{/other_user}","gists_url":"https://api.github.com/users/PragTob/gists{/gist_id}","starred_url":"https://api.github.com/users/PragTob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PragTob/subscriptions","organizations_url":"https://api.github.com/users/PragTob/orgs","repos_url":"https://api.github.com/users/PragTob/repos","events_url":"https://api.github.com/users/PragTob/events{/privacy}","received_events_url":"https://api.github.com/users/PragTob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shoes/shoes4/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/shoes/shoes4/milestones/8","html_url":"https://github.com/shoes/shoes4/milestones/4.0.0.pre5","labels_url":"https://api.github.com/repos/shoes/shoes4/milestones/8/labels","id":1094491,"number":8,"title":"4.0.0.pre5","description":"","creator":{"login":"jasonrclark","id":130504,"avatar_url":"https://avatars.githubusercontent.com/u/130504?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonrclark","html_url":"https://github.com/jasonrclark","followers_url":"https://api.github.com/users/jasonrclark/followers","following_url":"https://api.github.com/users/jasonrclark/following{/other_user}","gists_url":"https://api.github.com/users/jasonrclark/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonrclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonrclark/subscriptions","organizations_url":"https://api.github.com/users/jasonrclark/orgs","repos_url":"https://api.github.com/users/jasonrclark/repos","events_url":"https://api.github.com/users/jasonrclark/events{/privacy}","received_events_url":"https://api.github.com/users/jasonrclark/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":17,"state":"open","created_at":"2015-05-04T05:00:18Z","updated_at":"2015-06-28T13:09:28Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-06-28T13:09:28Z","updated_at":"2015-06-28T13:09:28Z","closed_at":null,"body":"Take this script:\r\n\r\n```\r\nrequire 'shoes'\r\n\r\nShoes.app {button 'hello'}\r\n```\r\n\r\ntrying to run it via `ruby my_script.rb` (or prepended with `bundle exec`) yields this error:\r\n\r\n```\r\nNameError: uninitialized constant Shoes::Swt::App\r\n  const_missing at org/jruby/RubyModule.java:2733\r\n      setup_gui at /home/tobi/github/shoes4/shoes-core/lib/shoes/internal_app.rb:30\r\n     initialize at /home/tobi/github/shoes4/shoes-core/lib/shoes/app.rb:48\r\n            app at /home/tobi/github/shoes4/shoes-core/lib/shoes/app.rb:19\r\n```\r\n\r\nRunning through `bin/shoes` of course works fine. I'm guessing that when reworking the backend selection we forgot about good old running scripts with ruby and requiring shoes. We should get that back to possible again :)\r\n\r\nBuck courtesy of [this stackoverflow](http://stackoverflow.com/questions/31040742/shoes-cannot-find-its-own-backend) - I'm going through stackoverflow right now searching for these kind of things (really I'm just putting of unpleasant work but whatta you know.. :) )\r\n\r\nTobi"}}