2011-12-06 9 views
28

Gollumn Wikiを使用しようとしていますので、私のGitHub Wikiを編集することはできますが、動作させることができません。Gollum Wiki - Redcarpetの未定義メソッド `new '

私はUbuntu 11.10、64Bitを使用しています。

私もこれをRuby 1.9で試してみましたが、これも同じエラーです。

私は、私のプロジェクトのための私のGitHub Wiki git repositoryをクローン化されたゴラムを解雇し、これは私が受け取ったエラーです:Redcarpetのための「未定義のメソッド `新しい/

NoMethodError:モジュール

フルスタックトレースを次のとおりです。

:public is no longer used to avoid overloading Module#public, use :public_folder instead 
from /var/lib/gems/1.8/gems/gollum-1.3.1/bin/../lib/gollum/frontend/app.rb:17 
[2011-12-06 15:20:15] INFO WEBrick 1.3.1 
[2011-12-06 15:20:15] INFO ruby 1.8.7 (2011-06-30) [x86_64-linux] 
== Sinatra/1.3.1 has taken the stage on 4567 for development with backup from WEBrick 
[2011-12-06 15:20:20] INFO WEBrick::HTTPServer#start: pid=22017 port=4567 
NoMethodError - undefined method `new' for Redcarpet:Module: 
/var/lib/gems/1.8/gems/gollum-1.3.1/lib/gollum/markup.rb:463:in `render' 
/var/lib/gems/1.8/gems/gollum-1.3.1/lib/gollum/page.rb:171:in `formatted_data' 
/var/lib/gems/1.8/gems/gollum-1.3.1/bin/../lib/gollum/frontend/app.rb:190:in `show_page_or_file' 
/var/lib/gems/1.8/gems/gollum-1.3.1/bin/../lib/gollum/frontend/app.rb:42:in `GET /' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `call' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `compile!' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `[]' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in `route_eval' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:in `process_route' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `catch' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `process_route' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in `route!' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `each' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `route!' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in `dispatch!' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `catch' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in `call' 
/var/lib/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call' 
/var/lib/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call' 
/var/lib/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call' 
/var/lib/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call' 
/var/lib/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call' 
/var/lib/gems/1.8/gems/rack-1.3.5/lib/rack/nulllogger.rb:9:in `call' 
/var/lib/gems/1.8/gems/rack-1.3.5/lib/rack/head.rb:9:in `call' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/showexceptions.rb:21:in `call' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1403:in `synchronize' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call' 
/var/lib/gems/1.8/gems/rack-1.3.5/lib/rack/handler/webrick.rb:59:in `service' 
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' 
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' 
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' 
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start' 
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' 
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start' 
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each' 
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start' 
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start' 
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start' 
/var/lib/gems/1.8/gems/rack-1.3.5/lib/rack/handler/webrick.rb:13:in `run' 
/var/lib/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1295:in `run!' 
/var/lib/gems/1.8/gems/gollum-1.3.1/bin/gollum:125 
/usr/local/bin/gollum:19:in `load' 
/usr/local/bin/gollum:19 

助けてください。

+0

これは、私はこの問題を解決するために(https://github.com/github/gollum/pull/271) –

+0

[関連プルリクエスト](https://github.com/github/)を作成しました。ゴラム/プル/ 242) –

答えて

56

このようredcarpetを再インストールしてみてください:あなたのGemfile

gem 'redcarpet', '1.17.2' 
gem 'gollum' 
+0

ありがとう非常に親切な先生! –

+5

http://github.com/tanoku/redcarpet/blob/master/README.markdownに従って > Redcarpetバージョン2は1.Xバージョンと下位互換性がありません。 Lame!このアップデートは、私が使用しているサイトジェネレータを壊しました。楽しいことに、RedcarpetとJekyllはどちらもGitHubによって作られています。彼らは他の人々のソフトウェアを壊し、自分たちが壊れてしまったことを恥ずかしく思っています。 –

+4

@MattHickford少なくとも彼らはセーバーに続きましたhttp://semver.org/ –

8

に入れバンドラを、使用している場合、私は新しいプロジェクトのための私のドキュメントとしてゴラムを使用しようとしていますと、この問題は最近私を襲った

gem uninstall redcarpet 
gem install redcarpet --version=1.17.2 

また、これを解決するために、Bundlerを使用して変更を隔離しました。

# Create a Gemfile with the following: 
source "http://rubygems.org" 
gem 'redcarpet', '1.17.2' 
gem 'gollum' 

次はちょうどすべてをセットアップするbundle installを実行します。私のローカルマシン上で私のクローン化されたゴラムディレクトリには、私は次のようでした。ゴラムサーバを起動する準備ができたら、コマンドラインからbundle exec gollumを実行します。

これは、特別にバンドルされた宝石を使用して素敵な隔離されたゴラムサーバーを提供し、あなたの質問で説明したこの問題を解決します。

0

私は同じ「Redcarpetのための 『新しい』未定義の方法:モジュール」だ上記と同様bundle update.

、私は戻って行っている可能性側バージョン1に沿って宝石のこのインストールされたバージョン2を実行した後、エラーをv1のように修正する必要がありますが、私は実際に宝石の最初の世代を必要とするシステムを使用していないので、バージョン1を削除してv2を使いました。

関連する問題