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

error when publishing to github #280

Open
dph01 opened this issue Feb 28, 2014 · 4 comments
Open

error when publishing to github #280

dph01 opened this issue Feb 28, 2014 · 4 comments

Comments

@dph01
Copy link

dph01 commented Feb 28, 2014

When I try to publish to github, I get the following error message:

in `compile': undefined method `setup' for #<Ruhoh:0x007fbc999a8f50> (NoMethodError)

I have an empty orphaned 'master' branch, and I created a simple single page site on the gh-pages branch by following Quick Start steps on http://ruhoh.com/docs/2/.

The full details are:

$ git checkout gh-pages
Switched to branch 'gh-pages'
$ bundle exec ruhoh publish github
Deploying to GitHub Pages.
(Settings based on origin remote name: https://github.com/dph01/dph01.github.io.git)
   Type: Project page.
   Source: 'master' branch.
   Compiled: 'gh-pages' branch.
   Currently in deploy branch: 'gh-pages'; switching to source branch: 'master'...
   Switched to branch 'master'
<....>/dph01.github.io/plugins/github.rb:48:in `compile': undefined method `setup' for #<Ruhoh:0x007fbc999a8f50> (NoMethodError)
from <.....>/dph01.github.io/plugins/github.rb:32:in `run'
from /Library/Ruby/Gems/2.0.0/gems/ruhoh-2.6/lib/ruhoh/client.rb:138:in `publish'
from /Library/Ruby/Gems/2.0.0/gems/ruhoh-2.6/lib/ruhoh/client.rb:45:in `initialize'
from /Library/Ruby/Gems/2.0.0/gems/ruhoh-2.6/bin/ruhoh:41:in `new'
from /Library/Ruby/Gems/2.0.0/gems/ruhoh-2.6/bin/ruhoh:41:in `<top (required)>'
from /usr/bin/ruhoh:23:in `load'
from /usr/bin/ruhoh:23:in `<main>'

Any hints on what I might be doing wrong? Does the plugin: plugins/github.rb need to be on the master branch too?

Thanks

Damian.

@plusjade
Copy link
Member

I haven't updated my code for 2.6 where I removed ruhoh.setup @jaimalcohan has kindly updated the library which should work https://gist.github.com/jaimalchohan/8090954

Try that and see if it works.

@dph01
Copy link
Author

dph01 commented Feb 28, 2014

yes that worked! Thanks.

I needed to do a manual 'git push origin master'.

@plusjade
Copy link
Member

@dph01 it looks like your site should be compiling as a User/Org Page rather than a Project page. I don't see why its not doing that but I will take a look this weekend. I need to add some cucumber tests to this library!

@dph01
Copy link
Author

dph01 commented Feb 28, 2014

Also, when I do a

bundle exec ruhoh publish github

its looks like it's reseting master branch to an early commit. Just looking into it a bit more at the moment ...

jeremyrsellars added a commit to jeremyrsellars/no-new-legacy that referenced this issue Sep 27, 2016
jeremyrsellars added a commit to jeremyrsellars/no-new-legacy that referenced this issue Sep 27, 2016
jeremyrsellars added a commit to jeremyrsellars/no-new-legacy that referenced this issue Sep 27, 2016
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

2 participants