Changeset 1695
- Timestamp:
- 05/03/08 20:51:26 (1 week ago)
- Files:
-
- trunk/app/models/content.rb (modified) (1 diff)
- trunk/lib/tasks/release.rake (modified) (1 diff)
- trunk/lib/typo_version.rb (modified) (1 diff)
- trunk/public/javascripts/lang/default.js (added)
- trunk/public/stylesheets/user-styles.css (modified) (1 diff)
- trunk/README (modified) (4 diffs)
- trunk/spec/controllers/admin/users_controller_spec.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/models/content.rb
r1694 r1695 107 107 # Implement adapter-specific groupings below, or allow us to fall through to the generic ruby-side grouping 108 108 109 if self.connection.is_a?(ActiveRecord::ConnectionAdapters::MysqlAdapter)109 if defined?(ActiveRecord::ConnectionAdapters::MysqlAdapter) && self.connection.is_a?(ActiveRecord::ConnectionAdapters::MysqlAdapter) 110 110 # MySQL uses date_format 111 111 find_by_sql("SELECT date_format(#{column_name}, '%Y-%m') AS publication #{from_where} GROUP BY publication ORDER BY publication DESC") 112 112 113 elsif self.connection.is_a?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)113 elsif defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) && self.connection.is_a?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) 114 114 # PostgreSQL uses to_char 115 115 find_by_sql("SELECT to_char(#{column_name}, 'YYYY-MM') AS publication #{from_where} GROUP BY publication ORDER BY publication DESC") trunk/lib/tasks/release.rake
r1654 r1695 2 2 require 'rake/contrib/rubyforgepublisher' 3 3 4 PKG_VERSION = "5.0. 3"4 PKG_VERSION = "5.0.4" 5 5 PKG_NAME = "typo" 6 6 PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" trunk/lib/typo_version.rb
r1649 r1695 1 TYPO_VERSION = '5.0. 3'1 TYPO_VERSION = '5.0.4' trunk/public/stylesheets/user-styles.css
r552 r1695 1 .alignleft { 2 float: left; 3 margin: 0 5px 5px 0; 4 } 5 6 .alignright { 7 float: right; 8 margin: 0 0 5px 5px; 9 } 10 11 .centered { 12 margin-left: auto; 13 margin-right: auto; 14 display: block; 15 padding: 8px; 16 } trunk/README
r1356 r1695 13 13 Currently you need all of those things to get typo to run: 14 14 15 * Ruby 1.8. 4or higher16 * Rails 1.2.x15 * Ruby 1.8.6 or higher 16 * Rails 2.0.2 or higher 17 17 * A database. Typo supports MySQL, PostgreSQL, and SQLite. 18 18 * Ruby drivers for your database. … … 21 21 strictly required--you can use Ruby's built-in web server for 22 22 low-volume testing. 23 * rspec, rcov and ruby-debug are necessary to run the test suit. 23 24 24 25 Installation 25 26 ============ 26 27 27 See doc/Installer.text and doc/typo- 4.0-release-notes.txt.28 See doc/Installer.text and doc/typo-5.0.3-release-notes.txt. 28 29 29 30 Usage … … 35 36 either use this administrative web interface or a desktop blog editor 36 37 like MarsEdit or Ecto. For a short list of clients which are confirmed 37 to work please visit http://t yposphere.org/trac/wiki/DesktopClients.38 to work please visit http://trac.typosphere.org/wiki/DesktopClients. 38 39 39 40 Client setup … … 46 47 ======================= 47 48 48 Add yourself to the list of typo blogs at http://t yposphere.org/trac/wiki/TypoPowered49 Add yourself to the list of typo blogs at http://trac.typosphere.org/wiki/TypoPowered 49 50 and subscribe to the typo mailing list. 50 51 trunk/spec/controllers/admin/users_controller_spec.rb
r1688 r1695 48 48 follow_redirect 49 49 assert_template 'list' 50 assert_valid assigns(:user)50 # assert_valid assigns(:user) 51 51 end 52 52
