Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

runs on ruby 1.9.2-preview3

  • Loading branch information...
commit e85a9d321acc0c7762a1b8a810a5232af9e13364 1 parent 864cc9f
Jai-gouk Kim authored
26  Gemfile
... ...
@@ -1,13 +1,32 @@
1 1
 source :rubygems
2 2
 
3 3
 # Specify the database driver as appropriate for your application (only one).
4  
-gem 'mysqlplus', :require => 'mysql'
  4
+
5 5
 #gem 'sqlite3-ruby', :require => 'sqlite3'
  6
+#===========================================                                  
  7
+# # async wrappers 
  8
+# gem 'eventmachine', :git => 'http://github.com/eventmachine/eventmachine.git'
  9
+# gem 'rack-fiber_pool', :require => 'rack/fiber_pool'   
  10
+# 
  11
+# gem 'em-synchrony',   :git => 'git://github.com/igrigorik/em-synchrony.git', :require => [
  12
+#   'em-synchrony',
  13
+#   'em-synchrony/em-http'
  14
+#   ]
  15
+#   gem 'em-http-request',:git => 'git://github.com/igrigorik/em-http-request.git', :require => 'em-http'
  16
+#   gem 'addressable', :require => 'addressable/uri'
  17
+#     
  18
+# # async activerecord requires
  19
+# gem 'mysqlplus',      :git => 'git://github.com/oldmoe/mysqlplus.git',        :require => 'mysqlplus'
  20
+# gem 'em-mysqlplus',   :git => 'git@github.com:jaigouk/em-mysqlplus.git',  :require => 'em-activerecord'
  21
+#===========================================
  22
+gem 'mysqlplus',      :git => 'git://github.com/oldmoe/mysqlplus.git',        :require => 'mysql'
  23
+#===========================================
6 24
 
7 25
 gem 'fattr'
8 26
 # Specify your favourite web server (only one).
9  
-gem 'unicorn', :group => :development
  27
+#gem 'unicorn', :group => :development
10 28
 #gem 'mongrel', :group => :development
  29
+gem 'thin'
11 30
 
12 31
 # Deploy with Capistrano
13 32
 # gem 'capistrano'
@@ -20,7 +39,8 @@ gem 'acts_as_indexed', '= 0.6.2', :require => 'acts_as_indexed', :git => 'git://
20 39
 gem 'authlogic',       '= 2.1.5', :require => 'authlogic'
21 40
 gem 'friendly_id',     '= 3.0.6', :require => 'friendly_id'
22 41
 gem 'hpricot',         '= 0.8.2', :require => 'hpricot'
23  
-gem 'rails',           '= 2.3.8'
  42
+gem 'rails',           '= 2.3.8' 
  43
+# gem 'rails',           '= 2.3.5'
24 44
 gem 'rmagick',         '~> 2.12.2'         
25 45
 
26 46
 gem 'acts-as-taggable-on'
6  config/application.rb
@@ -4,7 +4,7 @@
4 4
 # Here we load in Refinery to do the rest of the heavy lifting.
5 5
 # Refinery is setup in config/preinitializer.rb
6 6
 require Refinery.root.join("lib", "refinery_initializer").cleanpath.to_s
7  
-
  7
+# require 'rack/fiber_pool' 
8 8
 # Boot with Refinery. Most configuration is handled by Refinery.
9 9
 # Anything you specify here that Refinery specified internally will override Refinery.
10 10
 Refinery::Initializer.run do |config|
@@ -12,12 +12,12 @@
12 12
   # Application configuration should go into files in config/initializers
13 13
   # -- all .rb files in that directory are automatically loaded.
14 14
   # See Rails::Configuration for more options.
15  
-
  15
+  # config.middleware.use Rack::FiberPool
16 16
   config.action_controller.session = {
17 17
     :key    => '_refinery_session',
18 18
     :secret => 'eec8fffc3637c05895f8e6a355179eaad0003ac5617e5368955baf7989e1faca4d8ab37140d690c20b05d5815609b7c680c644277b6a892be316a85c6596d75c'
19 19
   }
20  
-
  20
+  # config.threadsafe!
21 21
 end
22 22
 
23 23
 # You can set things in the following file and we'll try hard not to destroy them in updates, promise.
4  vendor/plugins/acts-as-taggable-on/lib/acts_as_taggable_on/acts_as_taggable_on/cache.rb
@@ -2,8 +2,8 @@ module ActsAsTaggableOn::Taggable
2 2
   module Cache
3 3
     def self.included(base)
4 4
       # Skip adding caching capabilities if table not exists or no cache columns exist
5  
-      return unless base.table_exists? && base.tag_types.any? { |context| base.column_names.include?("cached_#{context.to_s.singularize}_list") }
6  
-
  5
+      # return unless base.tag_types.any? { |context| base.column_names.include?("cached_#{context.to_s.singularize}_list") }
  6
+      # return unless base.table_exists? && base.tag_types.any? { |context| base.column_names.include?("cached_#{context.to_s.singularize}_list") }
7 7
       base.send :include, ActsAsTaggableOn::Taggable::Cache::InstanceMethods
8 8
       base.extend ActsAsTaggableOn::Taggable::Cache::ClassMethods
9 9
       
2  vendor/plugins/authentication/app/models/user.rb
@@ -19,7 +19,7 @@ class User < ActiveRecord::Base
19 19
     # This currently only affects which field is displayed in the login form. As long as we have
20 20
     # find_by_login_method :find_by_login_or_email, they can still actually use either one.
21 21
     c.login_field = defined?(Refinery.authentication_login_field) ? Refinery.authentication_login_field : "login"
22  
-  end if self.table_exists?
  22
+  end #if self.table_exists?
23 23
 
24 24
   # Allow users to log in with either their username *or* email, even though we only ask for one of those.
25 25
   def self.find_by_login_or_email(login_or_email)
2  vendor/plugins/pages/app/models/page.rb
@@ -7,7 +7,7 @@ class Page < ActiveRecord::Base
7 7
   has_friendly_id :title, :use_slug => true,
8 8
     :reserved_words => %w(index new session login logout users refinery admin images wymiframe)
9 9
 
10  
-  has_many :parts, :class_name => "PagePart", :order => "position ASC", :inverse_of => :page
  10
+  has_many :parts, :class_name => "PagePart", :order => "position ASC" #, :inverse_of => :page
11 11
   accepts_nested_attributes_for :parts, :allow_destroy => true
12 12
 
13 13
   # Docs for acts_as_indexed http://github.com/dougal/acts_as_indexed
4  vendor/plugins/refinerycms-blog/app/models/blog.rb
@@ -44,10 +44,10 @@ def self.grouped_by_date
44 44
   end
45 45
    
46 46
   def self.search(search, page)
47  
-      paginate ,   :per_page => 5
  47
+      self.paginate(:per_page => 5,
48 48
                    :page => page,
49 49
                    :order => "name", 
50  
-                   :conditions => ['title like ?', "%#{search}%"]
  50
+                   :conditions => ['title like ?', "%#{search}%"])
51 51
   
52 52
   end
53 53
 end

0 notes on commit e85a9d3

Please sign in to comment.
Something went wrong with that request. Please try again.