{"comment":{"created_at":"2011-10-22T03:41:44Z","body":"Hey man, yeah, it's actually pretty easy to run the mercury repo as\r\nit's own application.. so, I'm going to assume you have RVM installed\r\nand setup, because that simplifies things a bit.. if not, check out:\r\nhttp://beginrescueend.com/  RVM lets you run different versions of\r\nruby, and I'm using 1.9.2 in the development of mercury.\r\n\r\nSo yeah, if you've already got RVM setup it's about as simple as\r\nrunning (within your mercury fork):\r\n\r\ngem install bundler\r\nbundle\r\nrails s thin\r\n\r\nThere's an application.rb in there (along with the engine.rb) that\r\nmakes it behave as both a normal rails application, and as a mountable\r\ngem/engine.. the gem itself doesn't package the application.rb, so\r\nit's really only the repo that you can use this with.\r\n\r\nTo run the tests:\r\n\r\nrake spec:javascripts\r\nThe unit tests are are written in coffeescript, using jasmine as the\r\nspec framework -- it expects firefox to be installed on your machine I\r\nthink.\r\n\r\nrake cucumber\r\nthese are the integration features (aka Behavior Driven Development),\r\nand it'll open the browser and run through actual user scenarios --\r\neg, opening the insert link modal, filling it out, and clicking\r\nsubmit.\r\n\r\nLet me know if you have any trouble getting that setup.. I'm around on\r\nAIM/gchat/skype as jejacks0n, although I don't always keep skype open.\r\n\r\n- Jeremy\r\n\r\n\r\nOn Thu, Oct 20, 2011 at 1:55 AM, Jean Mertz\r\n<reply@reply.github.com>\r\nwrote:\r\n> Thank you for the Gist. The toolbar now looks like the one I used, but it doesn't work. I think it's because of `toolbar.addClass('disabled') unless toolbarName == 'primary'` in `toolbar.js.coffee` on `line 29`.\r\n>\r\n> An unrelated question: If I want to work on this locally, how would I be able to do that? I forked the repository and cloned it to my Mac. Then I have `gem \"mercury-rails\", path: \"~/nulvierdrie/GitHub/mercury/\"` in my Gemfile to point to my local repository. However, any changes aren't picked up. Also, doing bundle update doesn't do anything. Do I need to run `rake assets:precompile` from the mercury repository? Or perhaps bump the version (which I guess, isn't very optimal)? Or do I need to use the gem as a plugin instead of a gem to have the changes picked up, and if so, how can I do this?\r\n>\r\n> Thank you for the help, this is basically the first open-source project which I try to actively work on, so it's all kind of new to me.\r\n>\r\n> --\r\n> Reply to this email directly or view it on GitHub:\r\n> https://github.com/jejacks0n/mercury/issues/44#issuecomment-2465784\r\n>","updated_at":"2011-10-22T03:41:44Z","url":"https://api.github.com/repos/jejacks0n/mercury/issues/comments/2488270","id":2488270,"user":{"gravatar_id":"42daadccf24dfa8556aa4a5b1e6d4c26","avatar_url":"https://secure.gravatar.com/avatar/42daadccf24dfa8556aa4a5b1e6d4c26?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jejacks0n","id":13765,"login":"jejacks0n"}},"action":"created","issue":{"number":44,"created_at":"2011-10-19T14:21:07Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I've been working on reducing the toolbar to a single row of (small) buttons, instead of the large row on top, and the smaller row(s) below that. While working on doing this, I noticed it's not as easy as I hoped, because some rows disable themselves completely when no region was focused, even though I only wanted to have a few buttons disabled and keep the rest active.\r\n\r\nMaybe this is something to look into, especially since screen real-estate is quite important on smaller devises (like the Macbook Air), and having this huge toolbar on top feels very wrong (and windows-like, if you don't mind me saying).","comments":3,"title":"Make the toolbar layout more flexible","updated_at":"2011-10-22T03:41:44Z","url":"https://api.github.com/repos/jejacks0n/mercury/issues/44","id":1994310,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"ac1a21fc292d40405a7c7bcf29bca380","avatar_url":"https://secure.gravatar.com/avatar/ac1a21fc292d40405a7c7bcf29bca380?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/JeanMertz","id":383250,"login":"JeanMertz"},"html_url":"https://github.com/jejacks0n/mercury/issues/44","labels":[],"state":"open"},"legacy":{"issue_id":1994310,"comment_id":2488270}}