Received: by 10.204.147.73 with SMTP id k9mr644379bkv.1.1319851571373; Fri, 28 Oct 2011 18:26:11 -0700 (PDT) X-BeenThere: pdx-tech-calendar@googlegroups.com Received: by 10.204.29.7 with SMTP id o7ls224454bkc.2.gmail; Fri, 28 Oct 2011 18:26:10 -0700 (PDT) Received: by 10.204.156.155 with SMTP id x27mr632444bkw.7.1319851570172; Fri, 28 Oct 2011 18:26:10 -0700 (PDT) Received: by 10.204.156.155 with SMTP id x27mr632442bkw.7.1319851570152; Fri, 28 Oct 2011 18:26:10 -0700 (PDT) Return-Path: Received: from mail-bw0-f48.google.com (mail-bw0-f48.google.com [209.85.214.48]) by gmr-mx.google.com with ESMTPS id a16si1469243bku.3.2011.10.28.18.26.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Oct 2011 18:26:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.48 is neither permitted nor denied by best guess record for domain of i...@pragmaticraft.com) client-ip=209.85.214.48; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.214.48 is neither permitted nor denied by best guess record for domain of i...@pragmaticraft.com) smtp.mail=i...@pragmaticraft.com Received: by mail-bw0-f48.google.com with SMTP id t2so947444bka.21 for ; Fri, 28 Oct 2011 18:26:09 -0700 (PDT) Received: by 10.204.41.66 with SMTP id n2mr4063281bke.77.1319851569270; Fri, 28 Oct 2011 18:26:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.71.212 with HTTP; Fri, 28 Oct 2011 18:25:38 -0700 (PDT) From: Igal Koshevoy Date: Fri, 28 Oct 2011 18:25:38 -0700 Message-ID: Subject: Merged "with_ruby192": Complete Ruby 1.9.2 and PostgreSQL support To: calagator-development@googlegroups.com, pdx-tech-calendar Content-Type: text/plain; charset=ISO-8859-1 I've been running the "with_ruby192" branch on calagator.org for a week. It works great. I've merged it into "master" and deleted the obsoleted branch. The branch adds full support for Ruby 1.9.2p180 and p290, while still supporting 1.8.7. Most of the work needed was to deal with changes to libraries. Ruby 1.9.2 can't run Hpricot, so I had to port our old version of Mofo to Nokogiri because there are no working libraries for parsing hCalendar for Ruby. I also had to upgrade a bunch of libraries because 1.9.2 ships a broken YAML parser, with different bugs in p180 and p290, so I had to avoid using YAML and replace it JSON in some of our code and libraries. The branch adds full support for PostgreSQL, while still supporting Sqlite3. If you're writing or modifying raw SQL, then you should do this with PostgreSQL because its so much more exacting about what code it'll accept, and these resulting queries will usually run fine in Sqlite3. In contrast, Sqlite3 is very forgiving and cheerfully accepts logically absurd queries and manages to produce sensible results, and these won't run in PostgreSQL and are a pain to port. -igal