Code Monkey home page Code Monkey logo

wagn's Introduction

wagn's People

Contributors

chuenlok avatar ecton avatar ethn avatar leword avatar mike14495 avatar rhwentworth avatar splattael avatar srivig avatar stereobooster avatar tukanos avatar vineacorn avatar wagn avatar xithan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wagn's Issues

Minor Issues with Latest Code

I should still be able to run rake tasks in the gem directory, right? Rakefile includes config/application.rb, which is gone now. Just trying to test out the latest test/dev stuff.

edit'ing an edit when in edit mode

If you click on 'edit' and start editing a page and then accidentally click on 'edit' again (yeah, dumb but some how I keep doing it) you will end up losing all of your changes.

It should perhaps:

  • disable the edit button when in edit mode
  • just ignore the button press if already editing
  • replace the 'edit' button with another copy of the 'save/cancel' buttons (keep delete hidden away below).
  • replace the 'edit' button with a "edit and discard changes" button since that is what it is currently doing.

Can't search for Simplified Chinese.

Search results for: 中文
No results? ActiveRecord::StatementInvalid :: Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR ) and (t.read_rule_id IN (19077,20576)) and t.trash is false ORDER BY t.upda' at line 1: (select t.name from cards t JOIN card_revisions AS t_rev ON t.current_revision_id = t_rev.id where ( OR ) and (t.read_rule_id IN (19077,20576)) and t.trash is false ORDER BY t.updated_at desc LIMIT 20 OFFSET 0) :: {"match":"$keyword", "sort":"relevance"}

I think the same as other unicode language.

I found the reason is at line 278 of wql.rb, “ v.gsub!(/\W+/,' ')”

adding new card via /card/new misbehavior

using wagn v1.10.4 on openbsd 5. with webrick. using firefox 18.0.1.

adding new card via /card/new starts with a blank add new card form. filling up the name field renders the Home card when focus gets our of name field.

adding cards via search field (is that what it is called) and being redirected to say /card/new?card[name]=testpage works as advertised.

any other info i can send to help?

gherkin 2.2.8 error when bundle install with wagn 1.6

Hi guys,

When trying to the all the dependencies gems for wagn 1.6 I got stuck at the gherkin 2.2.8 (at the end of the post you can find the error). So I found/fix it and was looking for a way to send it back (still getting familiar with github). Then I found out that in the newest version of gherkin it is fixed. Since I'm not yet familiar with wagn code, my question is how hard would it be to migrate from gherkin 2.2.8 to the current gherkin 2.3.8 which compiles correctly.

Thanks

I got this error:

"Installing gherkin (2.2.8) with native extensions /usr/local/rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/installer.rb:533:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

    /usr/local/rvm/rubies/ruby-1.8.7-p334/bin/ruby extconf.rb 

checking for main() in -lc... yes
creating Makefile
make
gcc -I. -I. -I/usr/local/rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -O2 -fPIC -O0 -Wall -Werror -c gherkin_lexer_ar.c
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl: In function ‘CLexer_scan’:
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl:199:29: error: the comparison will always evaluate as ‘true’ for the address of ‘raise_lexer_error’ will never be NULL [-Werror=address]
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl:199:29: error: the comparison will always evaluate as ‘true’ for the address of ‘raise_lexer_error’ will never be NULL [-Werror=address]
cc1: all warnings being treated as errors

make: *** [gherkin_lexer_ar.o] Error 1

'rake aborted!' on Configuration install step, syntax error

on a Mac OSX 10.6.8:

eyan@faya $ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin10.0]

downloaded wagn from git today following the install steps in http://wagn.org/installation

steps 1 and 2 went fine. on step 3, here's the full trace:

eyan@faya $ bundle exec rake wagn:install
rake aborted!
/Users/eyan/Downloads/wagn-1.10.1/wagntemp/wagn/lib/util/card_builder.rb:39: syntax error, unexpected ')'
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/Users/eyan/Downloads/wagn-1.10.1/wagntemp/wagn/lib/tasks/fixtures.rake:1
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
/Library/Ruby/Gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb:425:in `load_tasks'
/Library/Ruby/Gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb:425:in `each'
/Library/Ruby/Gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb:425:in `load_tasks'
/Library/Ruby/Gems/1.8/gems/railties-3.2.11/lib/rails/application.rb:145:in `load_tasks'
/Library/Ruby/Gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `send'
/Library/Ruby/Gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/eyan/Downloads/wagn-1.10.1/wagntemp/wagn/Rakefile:7
(See full trace by running task with --trace)

how to use regex in the wql.

I defined a seach card,the content is {"name":["match","^[0-9]"]}.but not result be found.
I expect some cards that named "163" and "163web".

I watch the debug log,found "^[0-9]" convert to "0_9" in the sql.

sql as:
select t.name from cards t where t.key REGEXP '1_9' and t.trash is false ORDER BY t.updated_at desc LIMIT 20 OFFSET 0

code: line 515 of wql.rb
[v].flatten.map(&:to_name).map(&:key)]

Is wagn project alive?

Hello Ethan,
Is wagn alive? The commits suggest that yes. All the information seems to be really old and the wagn.org is not updated anymore. All there seems to be some connection to wikirate.

Regards,

Patrik

Install instructions - Rake errors

I am trying to follow the Wagn install instructions for 1.7.

The first place that I got messed up was that the use of "bundle" requires you to update your $PATH

Now, I am stuck with and error when I try to run rake:

rake db:create
rake aborted!
Bundler couldn't find some gems.Did you run bundle install?

(See full trace by running task with --trace)

I have run gem install bundler
I have run bundle install

I have searched for these errors and have not found a resolution.

I am on a new ubuntu 11.04 install

  1. It would be nice if the update the $PATH was documented
  2. It would be nice if the "you will need mysql etc" had some documents about the commands to do that.
  3. I would like to figure out what makes rake die.

setup via gem install wagn fails due to missing seed

short story:

Apparently, when installing the wagn gem the wagn/decko-seed is not fetched correctly. After adding the seed files manually to the directory of the installed card-gem, everything works fine!

long story:

I'm using OS X 10.10 and tried to setup a wagn instance using $ gem install wagn

and creating a new wagn project with $ wagn new blorg

set up databaseconnection correctly and tried to seed this newly created database using $ wagn seed in the new blorg directory, which raised following error:

$ wagn seed
bundle exec rake wagn:seed
rake aborted!
Errno::ENOENT: No such file or directory - /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/card-1.15.5/db/seed/new/cards.yml
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures/file.rb:43:in `read'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures/file.rb:43:in `rows'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures/file.rb:29:in `each'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures.rb:670:in `block (2 levels) in read_fixture_files'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures/file.rb:20:in `open'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures.rb:669:in `block in read_fixture_files'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures.rb:668:in `each'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures.rb:668:in `read_fixture_files'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures.rb:548:in `initialize'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures.rb:482:in `new'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures.rb:482:in `block (2 levels) in create_fixtures'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures.rb:479:in `map'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures.rb:479:in `block in create_fixtures'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:232:in `disable_referential_integrity'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/fixtures.rb:476:in `create_fixtures'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/wagn-1.15.5/lib/wagn/tasks/wagn.rake:369:in `block (3 levels) in <top (required)>'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/wagn-1.15.5/lib/wagn/tasks/wagn.rake:67:in `block (2 levels) in <top (required)>'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/wagn-1.15.5/lib/wagn/tasks/wagn.rake:34:in `block (2 levels) in <top (required)>'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval'
/Users/julian/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => wagn:bootstrap:load
(See full trace by running task with --trace)
dropping
creating
...

Trying to start the wagn server anyways:

$ wagn server
=> Booting WEBrick
=> Rails 3.2.16 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/card-1.15.5/lib/card/codename.rb:68:in `const_missing': uninitialized constant Card::HtmlFormat (NameError)
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/wagn-1.15.5/rails/controllers/card_controller.rb:11:in `<class:CardController>'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/wagn-1.15.5/rails/controllers/card_controller.rb:8:in `<top (required)>'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/engine.rb:444:in `block (2 levels) in eager_load!'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/engine.rb:443:in `each'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/engine.rb:443:in `block in eager_load!'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/engine.rb:441:in `each'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/engine.rb:441:in `eager_load!'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/application/railties.rb:8:in `each'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/application/railties.rb:8:in `all'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/engine.rb:439:in `eager_load!'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `instance_exec'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `run'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `each'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `run_initializers'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/application.rb:136:in `initialize!'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/julian/Projects/wiki/blorg/config/environment.rb:5:in `<top (required)>'
    from /Users/julian/Projects/wiki/blorg/config.ru:3:in `block in <main>'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
    from /Users/julian/Projects/wiki/blorg/config.ru:in `new'
    from /Users/julian/Projects/wiki/blorg/config.ru:in `<main>'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/commands/server.rb:46:in `app'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/commands/server.rb:70:in `start'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/commands.rb:55:in `block in <top (required)>'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/commands.rb:50:in `tap'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.16/lib/rails/commands.rb:50:in `<top (required)>'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/wagn-1.15.5/lib/wagn/commands.rb:48:in `require'
    from /Users/julian/.rvm/gems/ruby-2.0.0-p353/gems/wagn-1.15.5/lib/wagn/commands.rb:48:in `<top (required)>'
    from script/wagn:6:in `require'
    from script/wagn:6:in `<main>'

According to the Error which was shown when trying to initially seed the wagn, there were some seed files missing. I found out, that in my card-gem directory those seeds were not included. After downloading them (wagn/card/db/seed) manually (from github project wagn/decko-seed) and adding them to the correct directory x/gems/card-1.15.5/db/seed a newly generated project works just fine.

I wonder why this seed initially wasn't included in gem installation.

gem wagn 1.14.1 failed to work with a postgresql 9.4 db

Hello all,

I just discover this tool which look like very fun and so I try to install it on a Debian installation (testing) with rvm to manage ruby and gems.
Today, it is a rvm 1.26.3 with "ruby-2.1.5 [ i686 ]" and a "postgresql-9.4 | 9.4~rc1-1 | i386".
After the installation of wagn gems, I creates a my new 'PGWagn' application ("# wagn new PGWagn --database=postgresql" according to the note I find in Rails) then I tried to initialise the db (wagn seed) but postgresql is complaining to ahave to creates 2 indexes with same name :
add_index "card_actions", ["card_id"], :name => "card_id_index"
and
add_index "card_acts", ["card_id"], :name => "card_id_index"

As I don't read much reference to those entries in code, I just make a try in changing the 2d in "card_acts_card_id_index" .
It continues a bit further when it complains when initializing draft field with 0, so I manage to modify the card_actions.yml to replace all 'draft: 0' into 'draft: false'.
That help me a bit to continue but obviously failed on some check like:
"(draft=0 OR draft IS NULL)"
There are few change so I can manage their replacement but now when I launch the server and conect it with my iceweasel (the ff of debian), this wagn server failed with messages like:
[2014-12-02 16:58:13] INFO WEBrick::HTTPServer#start: pid=29110 port=3000
Started GET "/" for 192.168.56.20 at 2014-12-02 16:58:57 +0000
Processing by CardController#read as HTML
Rendered text template (0.0ms)
Completed 200 OK in 445.6ms (Views: 3.0ms | ActiveRecord: 47.2ms)
Started GET "/files/_all+_style+_machine_output-7419.css" for 192.168.56.20 at 2014-12-02 16:59:08 +0000
Processing by CardController#read as CSS
Parameters: {"explicit_file"=>true, "id"=>"_all+_style+_machine_output", "rev_id"=>"7419"}
attachment_format issue: PG::InvalidTextRepresentation: ERROR: invalid input syntax for integer: "f"
LINE 1: ...draft = 0 OR draft IS NULL) AND card_action_id <= 'f') ORDER...
^

This seems to come from this function:
def last_change_on(field, opts={})
where_sql = 'card_actions.card_id = :card_id AND field = :field AND (draft = false OR draft IS NULL)'
where_sql += if opts[:before]
'AND card_action_id < :action_id'
elsif opts[:not_after]
'AND card_action_id <= :action_id'
else
''
end

action_arg = opts[:before] || opts[:not_after]
action_id = (action_arg.kind_of?(Card::Action) && action_arg.id) or action_arg
field_index = Card::TRACKED_FIELDS.index(field.to_s)
Change.joins(:action).where( where_sql,
{:card_id=>id, :field=>field_index, :action_id=>action_id}
).order(:id).last
end

where action_id is a boolean so I don't understand the comparison between card_action_id (an interger) and this boolean?

Thanks in advance for further help,

PGError: ERROR: column "trash" is of type boolean but expression is of type integer

-- initialize_schema_migrations_table()
   -> 0.0766s
-- assume_migrated_upto_version(20120812183334, ["/home/dev/code/wagn/db/migrate"])
   -> 0.0974s
loading bootstrap
bootstrap load starting
rake aborted!
PGError: ERROR:  column "trash" is of type boolean but expression is of type integer
LINE 1: ... ''updat'':11,19 ''wagn'':1A', '*all', 500, NULL, 0, 3, 1, 3...
                                                         ^ 
HINT:  You will need to rewrite or cast the expression.
: INSERT INTO "cards" ("id", "name", "key", "codename", "typecode", "trunk_id", "tag_id", "current_revision_id", "created_at", "updated_at", "creator_id", "updater_id", "extension_id", "extension_type", "indexed_name", "indexed_content", "read_rule_class", "read_rule_id", "references_expired", "trash", "type_id", "created_by", "updated_by") VALUES (1, 'Wagn Bot', 'wagn_bot', 'wagn_bot', 'Basic', NULL, NULL, 1541, '2012-09-19 15:02:27.000000', '2010-04-19 14:17:59.000000', 1, 1, 1, 'User', '''bot'':2 ''wagn'':1', '''account'':6 ''autom'':10 ''bot'':2A ''card'':12,22 ''creat'':13 ''etc'':23 ''link'':18 ''make'':8 ''renam'':21 ''sign'':16 ''someon'':15 ''updat'':11,19 ''wagn'':1A', '*all', 500, NULL, 0, 3, 1, 3)

Migration error: attempt to call private method

I'm trying to upgrade a wagn installation to a newer version of the codebase, and when running the migrations I got a message saying that I should first checkout v1.6.1 and run migrations before I tried to run v1.8.0 migrations.

However, when trying to run the v1.6.1 migrations, I get this error:

deployer@staging:~/apps/wiki2$ RAILS_ENV=production bundle exec rake db:migrate --trace
(in /home/deployer/apps/wiki2)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Invoke setup (first_time)
** Execute setup
** Execute environment
/home/deployer/.ruby_inline/Inline_ImageScience_cdab.c:2:23: fatal error: FreeImage.h: No such file or directory
compilation terminated.
/home/deployer/.ruby_inline/Inline_ImageScience_cdab.c:2:23: fatal error: FreeImage.h: No such file or directory
compilation terminated.
** Execute db:migrate
==  SetStarSendPlusStarRightPlusStarEditHelp2: migrating ======================
rake aborted!
An error has occurred, all later migrations canceled:

Attempt to call private method
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/attribute_methods.rb:236:in `method_missing'
/home/deployer/apps/wiki2/lib/cardlib/permissions.rb:112:in `block in permit'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/associations/association_collection.rb:392:in `block in method_missing'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/associations/association_proxy.rb:215:in `reject'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/associations/association_proxy.rb:215:in `method_missing'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/associations/association_collection.rb:392:in `method_missing'
/home/deployer/apps/wiki2/lib/cardlib/permissions.rb:112:in `permit'
db/migrate//20110131190400_set_star_send_plus_star_right_plus_star_edit_help_2.rb:9:in `block in up'
/home/deployer/apps/wiki2/app/models/user.rb:51:in `as'
db/migrate//20110131190400_set_star_send_plus_star_right_plus_star_edit_help_2.rb:3:in `up'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:282:in `block in migrate'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:295:in `measure'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:282:in `migrate'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:365:in `migrate'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:491:in `block (2 levels) in migrate'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:567:in `call'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:567:in `ddl_transaction'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:490:in `block in migrate'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:477:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:477:in `migrate'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:401:in `up'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/activerecord-2.3.11/lib/active_record/migration.rb:383:in `migrate'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rails-2.3.11/lib/tasks/databases.rake:112:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:636:in `block in execute'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:597:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:2029:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:2029:in `block in top_level'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:2001:in `block in run'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.8.7/bin/rake:31:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/bin/rake:19:in `load'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/bin/rake:19:in `<main>'

Has anyone else run into this problem, or does anyone have any pointers to give me on where to look for possible culprits?

unexpected prefix: 969

This is my first time using wagn so maybe I'm missing something obvious. I'm opted to use pg and thin but aside from that, everything else is stock. There is a log in the /log/production.log that says: Error rendering *head / raw: ArgumentError : unexpected prefix: 969- Any ideas how to address this?

Cyrillic search query and sql error

When I type cyrillic symbols in search query I get sql error.

For example:
http://wagn.org/:search?_keyword=%D1%82%D0%B0%D0%BC

Search results for: там
No results? ActiveRecord::StatementInvalid :: Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR ) and (t.read_rule_id IN (19077,20576)) and t.trash is false ORDER BY t.upda' at line 1: (select t.name from cards t JOIN card_revisions AS t_rev ON t.current_revision_id = t_rev.id where ( OR ) and (t.read_rule_id IN (19077,20576)) and t.trash is false ORDER BY t.updated_at desc LIMIT 20 OFFSET 0) :: {"match":"$keyword", "sort":"relevance"}

problem with migration

when running rake db:migrate, i get the error

no such file to load -- lib/schema_version_jump_hack

in JumpToVersion109.

also, if i comment out the require line, i get the error

uninitialized constant JumpToVersion109::BOOTSTRAP_VERSION

Plz help?

config/initializers/postgresql_schema_support.rb Is broken

The file config/initializers/postgresql_schema_support.rb is broken, it causes the following error when using PostgreSQL as the database:

/usr/local/rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:205:in `': superclass mismatch for class PostgreSQLAdapter (TypeError)

I was able to work around the issue by removing this file.

I have not investigated to see if schema support has been added to upstream ActiveRecord, but I suspect so since this hack is from 2007.

Nessus finds a cookie injection security hole

Nessus finds a cookie injection security hole when requesting a card like:

/<script>document.cookie=%22testvgve=6625;%22</script>

Here's the nessus violation text:

Web Server Generic Cookie Injection

Synopsis :

The remote web server is prone to a cookie injection attack.

Description :

The remote host is running a web server that fails to adequately
sanitize request strings of malicious JavaScript. By leveraging this
issue, an attacker may be able to inject arbitrary cookies. Depending
on the structure of the web application, it may be possible to launch
a 'session fixation' attack using this mechanism. 

Please note that :

- Nessus did not check if the session fixation attack is
feasible.

- This is not the only vector of session fixation.

See also :

http://en.wikipedia.org/wiki/Session_fixation
http://www.owasp.org/index.php/Session_Fixation
http://www.acros.si/papers/session_fixation.pdf
http://projects.webappsec.org/Session-Fixation

Solution :

Contact the vendor for a patch or upgrade.

Risk factor :

Medium / CVSS Base Score : 4.3
(CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N)

Plugin output :

The request string used to detect this flaw was :

/<script>document.cookie=%22testvgve=6625;%22</script>

The output was :

HTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Wed, 30 Nov 2011 01:38:47 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Status: 200
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.11
ETag: "41c2079201b3b76a689d9f1fc123c34f"
X-Runtime: 88
Content-Length: 5109
Set-Cookie: wagn_production=BAh7BzoPc2Vzc2lvbl9pZCIlNWE3MWUxNzAzODRlZWMyNjM3NWE4NjhiMzgzYzk5MjQ6DGhpc3RvcnlbBiIGLw%3D%3D--2a8de202b1e8b2c52f94a1f4a4937cb0383dc701; path=/; HttpOnly
Cache-Control: private, max-age=0, must-revalidate

[...]

There's no card named <script>document.cookie="testvgve=6625;"</script>.

Sign In or Sign Up to create it.

[...]

Nessus ID : 44135

The issue seems to be the unfiltered use of card.name in app/views/card/missing.rhtml:

6     <p>There's no card named <strong><%= @card.name %></strong>.</p> <%#ENGLISH%>

The fix could be:

6     <p>There's no card named <strong><%= strip_tags card.name %></strong>.</p> <%#ENGLISH%>

Rake aborted while doing environment task

Here's what happens when I try to follow the setup guide at http://www.wagn.org/wagn/Download
with 9016e84

> bundle install --without test hosting postgres mysql
...
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

> rake wagn:create --trace
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
Running without hoptoad
** Invoke wagn:create (first_time)
** Invoke environment (first_time)
** Invoke setup (first_time)
** Execute setup
** Execute environment
rake aborted!
Error loading card/file.rb: undefined method `has_attachment' for #<Class:0x7fbeb5259588>
/home/etsvigun/devenv/ruby/wagn/config/wagn_initializer.rb:143:in `load_cardtypes'
/home/etsvigun/devenv/ruby/wagn/config/wagn_initializer.rb:138:in `each'
/home/etsvigun/devenv/ruby/wagn/config/wagn_initializer.rb:138:in `load_cardtypes'
/home/etsvigun/devenv/ruby/wagn/config/wagn_initializer.rb:71:in `load'
/home/etsvigun/devenv/ruby/wagn/config/wagn_initializer.rb:53:in `run'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:182:in `call'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:182:in `evaluate_method'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:166:in `call'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:in `run'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:in `each'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:in `send'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:in `run'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:276:in `run_callbacks'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:51:in `send'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks'
/usr/lib64/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:631:in `prepare_dispatcher'
/usr/lib64/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:185:in `process'
/usr/lib64/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:113:in `send'
/usr/lib64/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:113:in `run'
/home/etsvigun/devenv/ruby/wagn/config/environment.rb:11
...
Tasks: TOP => wagn:create => environment

My environment:

> ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]

> rake --version
rake, version 0.9.2

>git show --pretty=oneline 
9016e8480528165a53f4a463256c93473f9bcb4e updated version and changelog

Configuration:

> cat ./config/database.yml
common: &common
  adapter: sqlite3
  database: db/wagn.sqlite3
  pool: 5
  timeout: 5000

development:
  database: wagn_development
  session_key: wagn_development
  <<: *common

test:
  database: wagn_test
  session_key: wagn_test
  <<: *common

cucumber:
  database: wagn_test
  session_key: wagn_test
  <<: *common

production:
  database: wagn_production
  session_key: wagn_production
  <<: *common

The same sequence works ok for downloaded 1.6.1 archive.

/var/lib/gems/2.3.0/gems/wagn-1.20.2/lib/wagn/generators/wagn/wagn_generator.rb:259:in `valid_const?': uninitialized constant WagnGenerator::Error (NameError)

Hello,

I don't know enough about wagn to know if this is a config issue or what, but I followed the "hard-mode" directions here inside a vagrant box (ubuntu xenial) and I get this when I try to new:

ubuntu@ubuntu-xenial:/vagrant$ wagn new wagn
Expected string default value for '--gem-path'; got false (boolean)
/var/lib/gems/2.3.0/gems/wagn-1.20.2/lib/wagn/generators/wagn/wagn_generator.rb:259:in `valid_const?': uninitialized constant WagnGenerator::Error (NameError)
Did you mean?  KeyError
               IOError
               Errno
	from /var/lib/gems/2.3.0/gems/railties-4.2.8/lib/rails/generators/app_base.rb:137:in `create_root'
	from (eval):1:in `create_root'
	from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
	from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
	from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `block in invoke_all'
	from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `each'
	from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `map'
	from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `invoke_all'
	from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/group.rb:232:in `dispatch'
	from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
	from /var/lib/gems/2.3.0/gems/wagn-1.20.2/lib/wagn/commands/application.rb:10:in `<top (required)>'
	from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /var/lib/gems/2.3.0/gems/wagn-1.20.2/lib/wagn/cli.rb:16:in `<top (required)>'
	from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /var/lib/gems/2.3.0/gems/wagn-1.20.2/bin/wagn:9:in `<top (required)>'
	from /usr/local/bin/wagn:23:in `load'
	from /usr/local/bin/wagn:23:in `<main>'

Any ideas?

I give up...

neither current nor the 1.0 version can be bootstrapped. Even a great idea needs some testing. I hope I can give it a second try soon.

Error when creating a card type (e.g.HTML, Cardtype, Number, etc.)

Hi Ethan,

I'm slowly getting aquinted with Wagn. I just wanted to report a error I can occasionally when creating a new card. It does not happen always. It happens only time to time. When I click create a card and I try to select one of the options (in this case HTML) sometimes I get this kind of error (maybe the caching is the issue here?):

ActiveRecord::UnknownAttributeError in CardController#new

unknown attribute: attachment_id

RAILS_ROOT: /home/tukan/public_html/wagn
Application Trace | Framework Trace | Full Trace

/usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-2.3.11/lib/active_record/base.rb:2918:in assign_attributes' /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-2.3.11/lib/active_record/base.rb:2914:ineach'
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-2.3.11/lib/active_record/base.rb:2914:in assign_attributes' /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-2.3.11/lib/active_record/base.rb:2787:inattributes='
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-2.3.11/lib/active_record/base.rb:2477:in initialize' /home/tukan/public_html/wagn/app/models/card/base.rb:180:inar_new'
/home/tukan/public_html/wagn/app/models/card/base.rb:180:in new' /home/tukan/public_html/wagn/app/models/card.rb:25:insend'
/home/tukan/public_html/wagn/app/models/card.rb:25:in method_missing' /home/tukan/public_html/wagn/app/controllers/card_controller.rb:96:innew'

Request

Parameters:

{"card"=>{"attachment_id"=>"",
"type"=>"HTML",
"content"=>"2011-6-1"},
"home_view"=>"open",
"context"=>"main_55849c1",
"_update"=>"true"}

Show session dump
Response

Headers:

{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}

Change log ?

Hi there,

Would be great to have a changelog regarding minor releases. I'm on 1.16.3 and don't know how to decide if I should update to 1.16.7

Cheers,

Jun

File name too long

Another problem with cyrillic.

Error message (visible to admin only)

File name too long - /home/a/production/tp_wiki/releases/20130520120452/tmp/cache/tp_wiki%2FCard%2F136924735234ip%2F%24%D0%9F%D1%83%D0%BB%D0%B0%D0%B2%D1%81%D1%8C%D0%BA%D0%B0_%D0%9D%D0%B0%D1%82%D0%B0%D0%BB%D1%96%D1%8F%2B%D0%BC%D0%BE%D0%B1%D1%96%D0%BB%D1%8C%D0%BD%D0%B8%D0%B9_%D0%BD%D0%BE%D0%BC%D0%B5%D1%80%2B*self20130522-25500-wg4th9.lock
/home/a/.rbenv/versions/1.9.3-p327-perf/lib/ruby/1.9.1/tempfile.rb:346:in rmdir' /home/a/.rbenv/versions/1.9.3-p327-perf/lib/ruby/1.9.1/tempfile.rb:346:inrmdir'
/home/a/.rbenv/versions/1.9.3-p327-perf/lib/ruby/1.9.1/tempfile.rb:338:in ensure in locking' /home/a/.rbenv/versions/1.9.3-p327-perf/lib/ruby/1.9.1/tempfile.rb:338:inlocking'
/home/a/.rbenv/versions/1.9.3-p327-perf/lib/ruby/1.9.1/tempfile.rb:144:in block in initialize' /home/a/.rbenv/versions/1.9.3-p327-perf/lib/ruby/1.9.1/tmpdir.rb:133:increate'
/home/a/.rbenv/versions/1.9.3-p327-perf/lib/ruby/1.9.1/tempfile.rb:134:in initialize' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/file/atomic.rb:19:innew'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/file/atomic.rb:19:in atomic_write' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache/file_store.rb:91:inwrite_entry'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache/strategy/local_cache.rb:140:in write_entry' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache.rb:364:inblock in write'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache.rb:520:in instrument' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache.rb:362:inwrite'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/cache.rb:123:in write' /home/a/production/tp_wiki/releases/20130520120452/lib/cardlib/fetch.rb:145:inblock in set_members'
/home/a/production/tp_wiki/releases/20130520120452/lib/cardlib/fetch.rb:135:in map' /home/a/production/tp_wiki/releases/20130520120452/lib/cardlib/fetch.rb:135:inset_members'
/home/a/production/tp_wiki/releases/20130520120452/lib/cardlib/pattern.rb:68:in set_names' /home/a/production/tp_wiki/releases/20130520120452/lib/cardlib/pattern.rb:74:inrule_set_keys'
/home/a/production/tp_wiki/releases/20130520120452/lib/cardlib/rules.rb:37:in rule_card_id' /home/a/production/tp_wiki/releases/20130520120452/lib/cardlib/rules.rb:32:inrule_card'
/home/a/production/tp_wiki/releases/20130520120452/lib/cardlib/templating.rb:56:in content_rule_card' /home/a/production/tp_wiki/releases/20130520120452/lib/cardlib/templating.rb:31:intemplate'
/home/a/production/tp_wiki/releases/20130520120452/lib/cardlib/templating.rb:42:in hard_template' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:342:inprocess_inclusion'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:303:in expand_inclusion' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:206:inblock in process_content_object'
/home/a/production/tp_wiki/releases/20130520120452/lib/chunks/include.rb:75:in process_chunk' /home/a/production/tp_wiki/releases/20130520120452/lib/object_content.rb:119:inblock in process_content_object'
/home/a/production/tp_wiki/releases/20130520120452/lib/object_content.rb:107:in block in each_chunk' /home/a/production/tp_wiki/releases/20130520120452/lib/object_content.rb:107:ineach_chunk'
/home/a/production/tp_wiki/releases/20130520120452/lib/object_content.rb:119:in process_content_object' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:205:inprocess_content_object'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:194:in process_content' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer/html.rb:213:inblock in edit_slot'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer/html.rb:212:in map' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer/html.rb:212:inedit_slot'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/set/all/rich_html.rb:261:in block (4 levels) in ' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer/html.rb:315:inblock in card_form'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:112:in block in method_missing' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/capture_helper.rb:40:inblock in capture'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/capture_helper.rb:187:in with_output_buffer' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/capture_helper.rb:40:incapture'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/form_helper.rb:378:in form_for' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:114:inmethod_missing'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer/html.rb:315:in card_form' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/set/all/rich_html.rb:258:inblock (3 levels) in '
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer/html.rb:198:in block in wrap_content' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:112:inblock in method_missing'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/capture_helper.rb:40:in block in capture' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/capture_helper.rb:187:inwith_output_buffer'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/capture_helper.rb:40:in capture' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/tag_helper.rb:95:incontent_tag'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:114:in method_missing' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer/html.rb:198:inwrap_content'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/set/all/rich_html.rb:257:in block (2 levels) in ' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer/html.rb:192:inblock in wrap'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:112:in block in method_missing' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/capture_helper.rb:40:inblock in capture'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/capture_helper.rb:187:in with_output_buffer' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/capture_helper.rb:40:incapture'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/helpers/tag_helper.rb:95:in content_tag' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:114:inmethod_missing'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer/html.rb:192:in wrap' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/set/all/rich_html.rb:254:inblock in '
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/sets.rb:106:in block (3 levels) in define_view' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:288:inwith_inclusion_mode'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/sets.rb:104:in block (2 levels) in define_view' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/sets.rb:120:inblock (2 levels) in define_view'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:126:in render' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/set/all/rich_html.rb:13:inblock in '
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/sets.rb:106:in block (3 levels) in define_view' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/renderer.rb:288:inwith_inclusion_mode'
/home/a/production/tp_wiki/releases/20130520120452/lib/wagn/sets.rb:104:in block (2 levels) in define_view' /home/a/production/tp_wiki/releases/20130520120452/lib/wagn/sets.rb:120:inblock (2 levels) in define_view'
/home/a/production/tp_wiki/releases/20130520120452/app/controllers/application_controller.rb:93:in show' /home/a/production/tp_wiki/releases/20130520120452/app/controllers/card_controller.rb:19:inread'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:4:in send_action' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:167:inprocess_action'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:10:in process_action' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:18:inblock in process_action'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:436:in _run__4138813704040927769__process_action__2577927598290162581__callbacks' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in__run_callback'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:inrun_callbacks'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:17:in process_action' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rescue.rb:29:inprocess_action'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:30:in block in process_action' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:inblock in instrument'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in instrument' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:ininstrument'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:29:in process_action' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:18:in process_action' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:121:inprocess'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:45:in process' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal.rb:203:indispatch'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rack_delegation.rb:14:in dispatch' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal.rb:246:inblock in action'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:indispatch'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:36:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:inblock in call'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in each' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:612:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/head.rb:14:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/params_parser.rb:21:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/flash.rb:242:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:incontext'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/cookies.rb:341:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/query_cache.rb:64:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:28:in block in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in_run__1362580917109867828__call__3009810355570047680__callbacks'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in __run_callback' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in_run_call_callbacks'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in run_callbacks' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:27:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/remote_ip.rb:31:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/airbrake-3.1.12/lib/airbrake/rails/middleware.rb:13:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/rack/logger.rb:32:in call_app' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:inblock in call'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/tagged_logging.rb:22:in tagged' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/request_id.rb:22:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache/strategy/local_cache.rb:72:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:inforward'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in fetch' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:inlookup'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in call!' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/airbrake-3.1.12/lib/airbrake/user_informer.rb:16:in _call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/airbrake-3.1.12/lib/airbrake/user_informer.rb:12:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:479:in call' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:223:incall'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in method_missing' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:552:inprocess_client'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:632:in worker_loop' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:500:inspawn_missing_workers'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:142:in start' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/gems/unicorn-4.6.2/bin/unicorn:126:in'
/home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/bin/unicorn:23:in load' /home/a/production/tp_wiki/shared/bundle/ruby/1.9.1/bin/unicorn:23:in

Missing gem colorize?

I ran the following using wagn 1.20.2 (Ruby 2.3.2)

wagn new mysite -d postgresql
cd mysite
wagn seed

Which resulted in

rake aborted!
LoadError: cannot load such file -- colorize

After adding gem 'colorize' to the Gemfile and rerunning bundle install the wagn seed command now works.

Segmentation fault

Hi Ethan,
Still continue to use the wagn and I'm reporting the issues as I encounter them. I have closed the Home card and I got this issue. I hope later on I can check myself. However, I wanted to report so you have the issues. (Maybe it is problem of activesupport gem)

Processing CardController#show (for 127.0.0.1 at 2011-06-01 18:15:01) [GET]
Parameters: {"id"=>"programming"}
Completed in 243ms (View: 1, DB: 20) | 200 OK [http://localhost/wagn/programming]
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.11/lib/active_support/core_ext/module/introspection.rb:73: [BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]

Aborted (core dumped)

tukanos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.