D: oolswagn-1.5.0>ruby -v
ruby 1.8.7 (2010-12-23 patchlevel 330) [i386-mingw32]
D: oolswagn-1.5.0>gem install rack --version "1.0.1"
D: oolswagn-1.5.0>gem install sqlite3-ruby
DOWNLOAD sqlite3.dll (from http://www.sqlite.org/sqlitedll-3_7_3.zip) and put it in Rubyin
D: oolswagn-1.5.0>rake gems:build (in D:/tools/wagn-1.5.0)
Built gem: 'D:/tools/wagn-1.5.0/vendor/gems/json-1.4.6'
To build gems you need DevKit (http://rubyinstaller.org/downloads/)
EDIT connfig/database.yml
+ adapter: sqlite3
+ database: db/development.sqlite3
+ pool: 5
+ timeout: 5000
- adapter: mysql
- database: wagn_development
EDIT lib/tasks/generate_fixtures.rake at line 1
- require 'lib/util/card_builder.rb'
+ require File.dirname(File.dirname(__FILE__)) + '/util/ card_builder.rb'
EDIT lib/tasks/bootstrap.rake at line 54
- %w{ users cards wiki_references revisions }.each do |table|
- ActiveRecord::Base.connection.update("update #{table} set
created_at=now(), updated_at=now() #{extra_sql[table.to_sym] || ''};")
- end
+ require 'time'
+ now = Time.new.strftime("%Y-%m-%d %H:%M:%S")
+ %w{ users cards wiki_references revisions }.each do |table|
+ ActiveRecord::Base.connection.update("update #{table} set created_at="#{now}", updated_at="#{now}" #{extra_sql[table.to_sym] || ''};")
+ end
D: oolswagn-1.5.0>rake wagn:create
EDIT lib/wagn/cache.rb at line 2 add following
require 'tempfile'
Tempfile.class_eval do
# overwrite so tempfiles implementation of attachment_fu
def make_tmpname(basename, n)
ext = nil
n = 0 if n.nil?
sprintf("%s%d-%d%s", basename.to_s.gsub(/.w+$/) { |s| ext = s; '' }, $$, n, ext)
end
end
ActiveSupport::Cache::FileStore.class_eval do
def real_file_path(name)
name = name.gsub('%','%25')
name = name.gsub('\','%5C')
name = name.gsub('*','%2A')
name = name.gsub(':','%3A')
name = name.gsub('?','%3F')
name = name.gsub('"','%22')
name = name.gsub('<','%3C')
name = name.gsub('>','%3E')
name = name.gsub('|','%7C')
'%s/%s.cache' % [@cache_path, name ]
end
end
D: oolswagn-1.5.0>ruby script/server
That's it. Home page working. Don't know what about other pages. Next
time i'll try run RSpec and cucumber to see if all is working. Didn't
work with ruby 1.9.2
This will have to do until we figure out how to integrate this into the codebase. Maybe we should ticket that.
something like integrate Windows install?
--John Abbe.....Fri Jan 07 20:22:51 -0800 2011
Some of it is even out of date. I see references to attachment_fu, a plugin we have factored out. Probably other things may have broken. Hopefully someone will try it again and update us with what they find.