grancher icon indicating copy to clipboard operation
grancher copied to clipboard

Does Grancher work on Ruby 1.9.2-p136?

Open chrisjacob opened this issue 14 years ago • 7 comments

Has anyone got Grancher working on Ruby 1.9.2-p136?... Or any Ruby 1.9.x?

If it's not working does anyone know how to patch the issue(s)?

chrisjacob avatar Feb 13 '11 12:02 chrisjacob

The problem probably lies in Gash (see http://github.com/judofyr/gash) which I haven't worked on for ages. It definitely needs to be rewritten to use Grit.

judofyr avatar Feb 14 '11 18:02 judofyr

I'm looking at writing a bash script to do similar functionality to Grancher.

If I write it I'll share it as a Gist once complete and link to it from here.

Basic functionality is:

Put gh-pages.sh file in root of your "master" branch.

Run with ./gh-pages.sh "commit message".

Auto detects or generates your gh-pages branch.

Detect or create a ../projectname.gh-pages folder.

Copy over files from "/" in master - or a specified subfolder e.g. "/_sites" for Jekyll, or "/output" for nanoc.

git add . , git commit -am , git commit origin gh-pages

... I'll look into adding configuration for overwrite all/none and include/exclude lists...

... no need for gem dependencies, and the script is recorded in "master" - so every clone gets a copy.

Minor setback ... I haven't written a bash script before :-P But I'm quietly confident.

chrisjacob avatar Feb 14 '11 22:02 chrisjacob

How involved would the rewrite to grit be? I am willing to give it a try if I someone is willing to offer some guidance.

trans avatar May 29 '11 09:05 trans

FYI I never got around to writing that bash script. Would love to see the grit rewrite tho if you're able to get it done.

chrisjacob avatar May 30 '11 00:05 chrisjacob

Working on it. Does any know what Gash#keys is? I looked at the code for Gash and can't even find the method.

trans avatar May 30 '11 01:05 trans

Okay. I figured it out, it is the list of files.

Honestly I'm starting to think fixing Gash would be much easier. It works very differently from Grit.

trans avatar May 30 '11 01:05 trans

FYI, I totally gave up on the rewrite to use grit. From my experience gash seems much more fitting grancher's needs. And I think gash is finally fixed (when it gets release next).

trans avatar Jan 27 '12 22:01 trans