1. Michael Granger
  2. ruby-mongrel2

Commits

Michael Granger  committed d1e574e

Updated Config model dataset declarations for Sequel versions > 3.42.

  • Participants
  • Parent commits 4462a9d
  • Branches default

Comments (0)

Files changed (5)

File .rvm.gems

View file
 configurability -v1.2.0
 hoe-deveiate -v0.1.1
 nokogiri -v1.5.5
-sequel -v3.39.0
+sequel -v3.43.0
 simplecov -v0.6.4
 sysexits -v1.1.0
 tnetstring -v0.3.4

File Rakefile

View file
 	self.developer 'Michael Granger', 'ged@FaerieMUD.org'
 
 	self.dependency 'nokogiri',   '~> 1.5'
-	self.dependency 'sequel',     '~> 3.39'
+	self.dependency 'sequel',     '~> 3.43'
 	self.dependency 'tnetstring', '~> 0.3'
 	self.dependency 'yajl-ruby',  '~> 1.0'
 	self.dependency 'trollop',    '~> 2.0'

File lib/mongrel2.rb

File contents unchanged.

File lib/mongrel2/config/handler.rb

View file
 	# :method: by_send_ident( uuid )
 	#
 	# Look up a Handler by its send_ident, which should be a +uuid+ or similar String.
-	def_dataset_method( :by_send_ident ) do |send_ident|
-		filter( :send_ident => send_ident )
+	dataset_module do
+		def by_send_ident( ident )
+			return self.filter( :send_ident => ident )
+		end
 	end
 
 

File lib/mongrel2/config/server.rb

View file
 	# :singleton-method: by_uuid
 	# :call-seq:
 	#    by_uuid( uuid )
-	def_dataset_method( :by_uuid ) {|uuid| filter(:uuid => uuid).limit(1) }
+	dataset_module do
+		subset( :by_uuid ) {|uuid| filter(:uuid => uuid).limit(1) }
+	end
 
 
 	##