GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: DataMapper Adapters
Homepage: http://www.yehudakatz.com
Clone URL: git://github.com/wycats/dm-adapters.git
Changes to work with dm-core 0.9.1
hassox (author)
Sat Jun 07 08:27:02 -0700 2008
commit  358db17579557b97e3d9672de4b90acc01ea7ea8
tree    c9eae56e848e0e18a59be60f48a6845bc6540cc8
parent  97d463c31631a2138daf318c099bcfcdd5198d85
...
24
25
26
 
 
27
28
29
...
24
25
26
27
28
29
30
31
0
@@ -24,6 +24,8 @@ spec = Gem::Specification.new do |s|
0
   
0
   # Uncomment this to add a dependency
0
   # s.add_dependency "foo"
0
+ s.add_dependency "dm-core", ">= 0.9.1"
0
+ s.add_dependency "extlib"
0
   
0
   s.require_path = 'lib'
0
   s.autorequire = GEM
...
74
75
76
77
 
78
79
80
...
109
110
111
112
 
113
114
115
...
74
75
76
 
77
78
79
80
...
109
110
111
 
112
113
114
115
0
@@ -74,7 +74,7 @@ module DataMapper
0
       def initialize(name, uri_or_options)
0
         super
0
         @resource_naming_convention = proc {|value| value.split("::").last}
0
- @field_naming_convention = proc {|value| DataMapper::Inflection.camelize(value)}
0
+ @field_naming_convention = proc {|value| Extlib::Inflection.camelize(value)}
0
         connect!
0
       end
0
       
0
@@ -109,7 +109,7 @@ module DataMapper
0
         properties = query.fields
0
         properties_with_indexes = Hash[*properties.zip((0...properties.size).to_a).flatten]
0
         
0
- set = Collection.new(repository, query.model, properties_with_indexes)
0
+ set = Collection.new(query)
0
         
0
         conditions = query.conditions.map {|c| SQL.from_condition(c, repository)}.compact.join(") AND (")
0
         

Comments

    No one has commented yet.