From patrick.t.joyce at gmail.com Tue Dec 4 15:54:00 2007 From: patrick.t.joyce at gmail.com (Patrick Joyce) Date: Tue, 4 Dec 2007 15:54:00 -0500 Subject: [Instiki] Failing Tests Message-ID: <44c491410712041254s7d1702f1vc8718d70978f630b@mail.gmail.com> Has anyone had success getting either trunk or 0.12.0 to pass all tests? I've included the results of my test run for revision 533 of the trunk below. I'm not entirely sure about the routing errors and the authentication failure. The fourth error appears to be a simple typo that has persisted for 7 months and was included in the 0.12.0 release. A patch to fix the error can be viewed at http://pastie.caboo.se/124731 The warnings are also strange. The deprecation warnings are pretty clear, but I am very confused by the double loading of RedCloth and BlueCloth. Any ideas? Is there a known revision that passes tests? - Patrick Joyce /opt/local/bin/ruby -Ilib:test "/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/unit/chunks/category_test.rb" "test/unit/chunks/nowiki_test.rb" "test/unit/chunks/wiki_test.rb" "test/unit/diff_test.rb" "test/unit/page_renderer_test.rb" "test/unit/page_test.rb" "test/unit/redcloth_for_tex_test.rb" "test/unit/sanitize_test.rb" "test/unit/uri_test.rb" "test/unit/web_test.rb" "test/unit/wiki_file_test.rb" "test/unit/wiki_words_test.rb" (in /Users/patrick/projects/instiki-trunk) Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader Started ...................../Users/patrick/projects/instiki-trunk/lib/redcloth.rb:169: warning: already initialized constant VERSION /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:170: warning: already initialized constant DEFAULT_RULES /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:311: warning: already initialized constant TEXTILE_TAGS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:324: warning: already initialized constant A_HLGN /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:325: warning: already initialized constant A_VLGN /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:326: warning: already initialized constant C_CLAS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:327: warning: already initialized constant C_LNGE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:328: warning: already initialized constant C_STYL /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:329: warning: already initialized constant S_CSPN /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:330: warning: already initialized constant S_RSPN /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:331: warning: already initialized constant A /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:332: warning: already initialized constant S /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:333: warning: already initialized constant C /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:335: warning: already initialized constant PUNCT /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:336: warning: already initialized constant HYPERLINK /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:342: warning: already initialized constant SIMPLE_HTML_TAGS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:364: warning: already initialized constant GLYPHS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:371: warning: already initialized constant H_ALGN_VALS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:377: warning: already initialized constant V_ALGN_VALS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:390: warning: already initialized constant QTAGS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:475: warning: already initialized constant TABLE_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:513: warning: already initialized constant LISTS_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:514: warning: already initialized constant LISTS_CONTENT_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:565: warning: already initialized constant CODE_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:583: warning: already initialized constant BLOCKS_GROUP_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:655: warning: already initialized constant BLOCK_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:671: warning: already initialized constant SETEXT_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:686: warning: already initialized constant ATX_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:696: warning: already initialized constant MARKDOWN_BQ_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:709: warning: already initialized constant MARKDOWN_RULE_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:749: warning: already initialized constant LINK_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:781: warning: already initialized constant MARKDOWN_REFLINK_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:813: warning: already initialized constant MARKDOWN_LINK_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:827: warning: already initialized constant TEXTILE_REFS_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:828: warning: already initialized constant MARKDOWN_REFS_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:868: warning: already initialized constant IMAGE_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:961: warning: already initialized constant OFFTAGS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:962: warning: already initialized constant OFFTAG_MATCH /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:963: warning: already initialized constant OFFTAG_OPEN /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:964: warning: already initialized constant OFFTAG_CLOSE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:965: warning: already initialized constant HASTAG_MATCH /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:966: warning: already initialized constant ALLTAG_MATCH /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:1085: warning: already initialized constant BASIC_TAGS ...................../Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:85: warning: already initialized constant Version /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:88: warning: already initialized constant SvnRev /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:91: warning: already initialized constant SvnId /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:94: warning: already initialized constant SvnUrl /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:100: warning: redefining constant Struct::RenderState /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:100: warning: already initialized constant RenderState /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:103: warning: already initialized constant TabWidth /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:106: warning: already initialized constant EmptyElementSuffix /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:109: warning: already initialized constant EscapeTable /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:289: warning: already initialized constant StrictBlockRegex /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:300: warning: already initialized constant LooseBlockRegex /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:323: warning: already initialized constant HruleBlockRegex /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:372: warning: already initialized constant LinkRegex /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:457: warning: already initialized constant ListRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:498: warning: already initialized constant ListItemRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:536: warning: already initialized constant CodeBlockRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:567: warning: already initialized constant BlockQuoteRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:584: warning: already initialized constant AutoAnchorURLRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:593: warning: already initialized constant AutoAnchorEmailRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:611: warning: already initialized constant Encoders /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:645: warning: already initialized constant SetextHeaderRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:655: warning: already initialized constant AtxHeaderRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:731: warning: already initialized constant RefLinkIdRegex /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:744: warning: already initialized constant InlineLinkRegex /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:848: warning: already initialized constant BoldRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:851: warning: already initialized constant ItalicRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:936: warning: already initialized constant InlineImageRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:947: warning: already initialized constant ReferenceImageRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:1005: warning: already initialized constant CodeEscapeRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:1032: warning: already initialized constant HTMLCommentRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:1033: warning: already initialized constant XMLProcInstRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:1034: warning: already initialized constant MetaTag /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:1036: warning: already initialized constant HTMLTagOpenRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:1037: warning: already initialized constant HTMLTagCloseRegexp /Users/patrick/projects/instiki-trunk/lib/bluecloth_tweaked.rb:1038: warning: already initialized constant HTMLTagPart ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ Finished in 2.548067 seconds. 902 tests, 1545 assertions, 0 failures, 0 errors /opt/local/bin/ruby -Ilib:test "/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/functional/admin_controller_test.rb" "test/functional/application_test.rb" "test/functional/file_controller_test.rb" "test/functional/routes_test.rb" "test/functional/wiki_controller_test.rb" Warning: tests involving pdflatex are very slow, therefore they are disabled by default. Set environment variable INSTIKI_TEST_PDFLATEX or global Ruby variable $INSTIKI_TEST_PDFLATEX to enable them. Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader Started ............../Users/patrick/projects/instiki-trunk/lib/redcloth.rb:169: warning: already initialized constant VERSION /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:170: warning: already initialized constant DEFAULT_RULES /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:311: warning: already initialized constant TEXTILE_TAGS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:324: warning: already initialized constant A_HLGN /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:325: warning: already initialized constant A_VLGN /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:326: warning: already initialized constant C_CLAS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:327: warning: already initialized constant C_LNGE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:328: warning: already initialized constant C_STYL /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:329: warning: already initialized constant S_CSPN /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:330: warning: already initialized constant S_RSPN /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:331: warning: already initialized constant A /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:332: warning: already initialized constant S /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:333: warning: already initialized constant C /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:335: warning: already initialized constant PUNCT /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:336: warning: already initialized constant HYPERLINK /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:342: warning: already initialized constant SIMPLE_HTML_TAGS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:364: warning: already initialized constant GLYPHS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:371: warning: already initialized constant H_ALGN_VALS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:377: warning: already initialized constant V_ALGN_VALS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:390: warning: already initialized constant QTAGS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:475: warning: already initialized constant TABLE_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:513: warning: already initialized constant LISTS_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:514: warning: already initialized constant LISTS_CONTENT_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:565: warning: already initialized constant CODE_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:583: warning: already initialized constant BLOCKS_GROUP_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:655: warning: already initialized constant BLOCK_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:671: warning: already initialized constant SETEXT_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:686: warning: already initialized constant ATX_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:696: warning: already initialized constant MARKDOWN_BQ_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:709: warning: already initialized constant MARKDOWN_RULE_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:749: warning: already initialized constant LINK_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:781: warning: already initialized constant MARKDOWN_REFLINK_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:813: warning: already initialized constant MARKDOWN_LINK_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:827: warning: already initialized constant TEXTILE_REFS_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:828: warning: already initialized constant MARKDOWN_REFS_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:868: warning: already initialized constant IMAGE_RE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:961: warning: already initialized constant OFFTAGS /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:962: warning: already initialized constant OFFTAG_MATCH /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:963: warning: already initialized constant OFFTAG_OPEN /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:964: warning: already initialized constant OFFTAG_CLOSE /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:965: warning: already initialized constant HASTAG_MATCH /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:966: warning: already initialized constant ALLTAG_MATCH /Users/patrick/projects/instiki-trunk/lib/redcloth.rb:1085: warning: already initialized constant BASIC_TAGS ................EE.F................................DEPRECATION WARNING: assert_template_xpath_match is deprecated and will be removed from Rails 2.0 (you should use assert_tag, instead) See http://www.rubyonrails.org/deprecation for details. (called from test_rss_switch_links_to_published at ./test/functional/wiki_controller_test.rb:466) DEPRECATION WARNING: assert_template_xpath_match is deprecated and will be removed from Rails 2.0 (you should use assert_tag, instead) See http://www.rubyonrails.org/deprecation for details. (called from test_rss_switch_links_to_published at ./test/functional/wiki_controller_test.rb:468) DEPRECATION WARNING: assert_template_xpath_match is deprecated and will be removed from Rails 2.0 (you should use assert_tag, instead) See http://www.rubyonrails.org/deprecation for details. (called from test_rss_switch_links_to_published at ./test/functional/wiki_controller_test.rb:469) .DEPRECATION WARNING: assert_template_xpath_match is deprecated and will be removed from Rails 2.0 (you should use assert_tag, instead) See http://www.rubyonrails.org/deprecation for details. (called from test_rss_timestamp at ./test/functional/wiki_controller_test.rb:528) ....DEPRECATION WARNING: assert_template_xpath_match is deprecated and will be removed from Rails 2.0 (you should use assert_tag, instead) See http://www.rubyonrails.org/deprecation for details. (called from test_rss_with_headlines at ./test/functional/wiki_controller_test.rb:438) DEPRECATION WARNING: assert_template_xpath_match is deprecated and will be removed from Rails 2.0 (you should use assert_tag, instead) See http://www.rubyonrails.org/deprecation for details. (called from test_rss_with_headlines at ./test/functional/wiki_controller_test.rb:440) DEPRECATION WARNING: assert_template_xpath_match is deprecated and will be removed from Rails 2.0 (you should use assert_tag, instead) See http://www.rubyonrails.org/deprecation for details. (called from test_rss_with_headlines at ./test/functional/wiki_controller_test.rb:441) ....E........... Finished in 9.990097 seconds. 1) Error: test_parse_uri_interestng_cases(RoutesTest): ActionController::RoutingError: no route found to match "///" with {:method=>:get} method recognize_path in routing.rb at line 1325 method recognize in routing.rb at line 1315 method recognized_request_for in routing_assertions.rb at line 94 method assert_recognizes in routing_assertions.rb at line 33 method clean_backtrace in assertions.rb at line 60 method assert_recognizes in routing_assertions.rb at line 31 method test_parse_uri_interestng_cases in routes_test.rb at line 24 2) Error: test_parse_uri_liberal_with_pagenames(RoutesTest): ActionController::RoutingError: no route found to match "/web/show/HomePage?" with {:method=>:get} method recognize_path in routing.rb at line 1325 method recognize in routing.rb at line 1315 method recognized_request_for in routing_assertions.rb at line 94 method assert_recognizes in routing_assertions.rb at line 33 method clean_backtrace in assertions.rb at line 60 method assert_recognizes in routing_assertions.rb at line 31 method assert_routing in routing_assertions.rb at line 74 method test_parse_uri_liberal_with_pagenames in routes_test.rb at line 32 3) Failure: test_authenticate(WikiControllerTest) [./test/functional/wiki_controller_test.rb:35]: <["pswd"]> expected but was . 4) Error: test_save_new_revision_identical_to_last(WikiControllerTest): NoMethodError: undefined method `has_key' for # method test_save_new_revision_identical_to_last in wiki_controller_test.rb at line 568 87 tests, 284 assertions, 1 failures, 3 errors /opt/local/bin/ruby -Ilib:test "/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" rake aborted! Test failures From on_groups.2007 at edpnet.be Tue Dec 11 09:22:33 2007 From: on_groups.2007 at edpnet.be (on_) Date: Tue, 11 Dec 2007 15:22:33 +0100 Subject: [Instiki] Instiki not working Message-ID: <475E9D29.6040903@edpnet.be> Hello, I'm new here. I use Ubuntu 7.10. Instiki is my first try to run a Ruby application. And it doesn't work. Here are the messages I got: $ ruby -v ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux] $ sqlite -version 2.8.17 $ ruby instiki.rb ~/Apps/Instiki/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:376:in `new_constants_in': undefined method `empty?' for nil:NilClass (NoMethodError) from ~/Apps/Instiki/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require' from ~/Apps/Instiki/vendor/rails/activerecord/lib/../../activesupport/lib/active_support.rb:34 from ~/Apps/Instiki/vendor/rails/activerecord/lib/active_record.rb:30:in `require' from ~/Apps/Instiki/vendor/rails/activerecord/lib/active_record.rb:30 from ./script/../config/../vendor/rails/railties/lib/initializer.rb:166:in `require' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:166:in `require_frameworks' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:166:in `each' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:166:in `require_frameworks' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:87:in `process' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:47:in `send' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:47:in `run' from ./script/../config/environment.rb:4 from ./script/server:55:in `require' from ./script/server:55 from instiki.rb:2:in `load' from instiki.rb:2 (same output with "chmod +x instiki; ./instiki" except for the 2 last lines) Could you help me? Thanks in advance, on_ From on_groups.2007 at edpnet.be Wed Dec 12 05:27:50 2007 From: on_groups.2007 at edpnet.be (on_) Date: Wed, 12 Dec 2007 11:27:50 +0100 Subject: [Instiki] Instiki not working [solved] In-Reply-To: References: <475E9D29.6040903@edpnet.be> Message-ID: <475FB7A6.4010803@edpnet.be> Hello, My Instiki version is 0.12.0 and I've checked that every depencies mentioned in "http://instiki.org/show/InstikiOnUbuntu" are installed... They were but in the process Instiki began to work. Don't ask me why :-) Thanks! From christophe at kualasoft.com Mon Dec 17 07:18:12 2007 From: christophe at kualasoft.com (Christophe Bouhier) Date: Mon, 17 Dec 2007 13:18:12 +0100 Subject: [Instiki] integrating Instiki Message-ID: <000001c840a6$e6b77270$01a0a8c0@msi.cell> Hello, I succesfully integrated Instiki into another web-app, which will also enhance the functionality of instiki with things, like author login. Author model, which will extend a generic User model. Now, as I needed another plugin for authentication (restful_authentication), I upgraded my rails version 2.0.1, which then broke instiki. I am now going through the rails release notes, to find out what is wrong, but while doing this. I am also wondering, why the instiki code, can't be a plugin, which would be kept compatible with rails releases? Is this something feasible? On a more direct request, when using instiki code with rails 2.0.1, I get a: noMethodError on the method: connect_To_Model in application.rb. Any ideas? thanks, Christophe Bouhier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instiki-users/attachments/20071217/50000136/attachment-0001.html From wandering at unitedalone.com Mon Dec 17 15:01:33 2007 From: wandering at unitedalone.com (wandering) Date: Mon, 17 Dec 2007 13:01:33 -0700 Subject: [Instiki] integrating Instiki In-Reply-To: <000001c840a6$e6b77270$01a0a8c0@msi.cell> References: <000001c840a6$e6b77270$01a0a8c0@msi.cell> Message-ID: <4766D59D.1030109@unitedalone.com> In addition to my issue with no longer being able to access my router through my web browser at 198.162.1.1 since installing instiki, I was wondering further more why not compile it into a secondary standaloine package for the varying OS's, which could then be easily patched or even automatically updated? Christophe Bouhier wrote: > > Hello, > > I succesfully integrated Instiki into another web-app, which will also > enhance the functionality of instiki with things, like author login. > > Author model, which will extend a generic User model. > > Now, as I needed another plugin for authentication > (restful_authentication), I upgraded my rails version 2.0.1, which > then broke instiki. > > I am now going through the rails release notes, to find out what is > wrong, but while doing this. I am also wondering, why the > > instiki code, can't be a plugin, which would be kept compatible with > rails releases? > > Is this something feasible? > > On a more direct request, when using instiki code with rails 2.0.1, I > get a: > noMethodError on the method: connect_To_Model in application.rb. > > Any ideas? > > thanks, Christophe Bouhier > > ------------------------------------------------------------------------ > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users From christophe at kualasoft.com Fri Dec 21 07:48:14 2007 From: christophe at kualasoft.com (Christophe Bouhier) Date: Fri, 21 Dec 2007 13:48:14 +0100 Subject: [Instiki] integrating Instiki In-Reply-To: <4766D59D.1030109@unitedalone.com> References: <000001c840a6$e6b77270$01a0a8c0@msi.cell> <4766D59D.1030109@unitedalone.com> Message-ID: <000001c843cf$c287a560$15a0a8c0@msi.cell> Hello, Made some more progress with migration to Rails 1.2.5 (Which kind of tells you if it will run in 2.x). Now there was this error: "Superclass mistmatch for class WikiReference". Looking through the code, I found to definitions of WikiReference class, which explains the error: In lib\chunks\wiki.rb class WikiReference < Chunk::Abstract In models\wiki_reference.rb class WikiReference < ActiveRecord::Base So why older rails version is not bothered, no idea? I will try to solve this, and provide the solution here. Cheers / Christophe -----Original Message----- From: jpodder at augustine.hostingrails.com [mailto:jpodder at augustine.hostingrails.com] On Behalf Of wandering Sent: Monday, December 17, 2007 21:02 To: Instiki-users Subject: Re: [Instiki] integrating Instiki In addition to my issue with no longer being able to access my router through my web browser at 198.162.1.1 since installing instiki, I was wondering further more why not compile it into a secondary standaloine package for the varying OS's, which could then be easily patched or even automatically updated? Christophe Bouhier wrote: > > Hello, > > I succesfully integrated Instiki into another web-app, which will also > enhance the functionality of instiki with things, like author login. > > Author model, which will extend a generic User model. > > Now, as I needed another plugin for authentication > (restful_authentication), I upgraded my rails version 2.0.1, which > then broke instiki. > > I am now going through the rails release notes, to find out what is > wrong, but while doing this. I am also wondering, why the > > instiki code, can't be a plugin, which would be kept compatible with > rails releases? > > Is this something feasible? > > On a more direct request, when using instiki code with rails 2.0.1, I > get a: > noMethodError on the method: connect_To_Model in application.rb. > > Any ideas? > > thanks, Christophe Bouhier > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users _______________________________________________ Instiki-users mailing list Instiki-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instiki-users From rubycoder at gmail.com Mon Dec 24 03:11:48 2007 From: rubycoder at gmail.com (Cecile) Date: Mon, 24 Dec 2007 16:11:48 +0800 Subject: [Instiki] Problem installing instiki-0.12 with ruby1.9 In-Reply-To: <996576.1543.qm@web34702.mail.mud.yahoo.com> References: <996576.1543.qm@web34702.mail.mud.yahoo.com> Message-ID: I downgraded to use Ruby1.8.4 and it is working now. In that case, the instiki wiki is misleading because it says that it will work with any Ruby versions greater or equal to 1.8.4. 2007/11/30, M C : > I'm running with 1.8.6 and instiki-0.12 From christophe at kualasoft.com Mon Dec 24 06:10:19 2007 From: christophe at kualasoft.com (Christophe Bouhier) Date: Mon, 24 Dec 2007 12:10:19 +0100 Subject: [Instiki] integrating Instiki In-Reply-To: <6C02CE52-9C9F-4C96-9F83-50E6B4B92102@golem.ph.utexas.edu> References: <6C02CE52-9C9F-4C96-9F83-50E6B4B92102@golem.ph.utexas.edu> Message-ID: <000001c8461d$944d9f10$05a0a8c0@msi.cell> Thank you. I have now instiki 0.12 working with Rails 1.2.5 (1.2.6 Will also work I am sure). 0.12 solves many deprecation warnings visible with rails 1.2.5. The previously reported problem of "superclass mismatch" is also gone. So to conclude: Instiki integrated into a site which implements Restful_Authentication. - Authentication on wiki, is not through instiki authentication, but restful_auth. - Uses user login instead of AnonymousCoward :-) I can commit the "standalone" code somewhere, if someone is interessted, but I can imagine the main committers, won't be too happy, of the duplicate code base. Cheers / -----Original Message----- From: jpodder at augustine.hostingrails.com [mailto:jpodder at augustine.hostingrails.com] On Behalf Of Jacques Distler Sent: Sunday, December 23, 2007 05:29 To: instiki-users at rubyforge.org Cc: Christophe Bouhier Subject: [Instiki] integrating Instiki -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christophe Bouhier wrote: >I upgraded my rails version 2.0.1, which then broke instiki. My branch of Instiki http://golem.ph.utexas.edu/instiki/show/HomePage runs on Rail 2.0.2. With a small tweak (using actionpack/lib/action_controller/routing.rb from Rails 1.2.6, to maintain backwards compatibility in naming of routes) it passes all functional tests and all but two unit tests (both minor bugs in xhtmldiff). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) Comment: PGP Key - http://golem.ph.utexas.edu/~distler/distler.asc iD8DBQFHbeQqnyqPIXpYcjcRAqRtAJ9YTVGbUoo9N+/Xpsfm4jqxqdobwACgkyhs KZysoGcVes27NgjLI+stdiE= =5JtH -----END PGP SIGNATURE----- From christophe at kualasoft.com Mon Dec 24 06:11:08 2007 From: christophe at kualasoft.com (Christophe Bouhier) Date: Mon, 24 Dec 2007 12:11:08 +0100 Subject: [Instiki] Problem installing instiki-0.12 with ruby1.9 In-Reply-To: References: <996576.1543.qm@web34702.mail.mud.yahoo.com> Message-ID: <000101c8461d$b0e1e7d0$05a0a8c0@msi.cell> Rails 2.0.1 is not even compatible with ruby 1.8.6, I read this somewhere recently. -----Original Message----- From: jpodder at augustine.hostingrails.com [mailto:jpodder at augustine.hostingrails.com] On Behalf Of Cecile Sent: Monday, December 24, 2007 09:12 To: Instiki-users Subject: Re: [Instiki] Problem installing instiki-0.12 with ruby1.9 I downgraded to use Ruby1.8.4 and it is working now. In that case, the instiki wiki is misleading because it says that it will work with any Ruby versions greater or equal to 1.8.4. 2007/11/30, M C : > I'm running with 1.8.6 and instiki-0.12 _______________________________________________ Instiki-users mailing list Instiki-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instiki-users