dm-aggregates 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,8 +54,8 @@ module DataMapper
54
54
  aggregate_field_statement(repository, property.operator, property.target, qualify)
55
55
  when Property
56
56
  original_property_to_column_name(repository, property, qualify)
57
- when Query::Path
58
- original_property_to_column_name(repository, property, qualify)
57
+ when Query::Path
58
+ original_property_to_column_name(repository, property, qualify)
59
59
  else
60
60
  raise ArgumentError, "+property+ must be a DataMapper::Query::Operator or a DataMapper::Property, but was a #{property.class} (#{property.inspect})"
61
61
  end
@@ -1,7 +1,7 @@
1
1
  module DataMapper
2
2
  module More
3
3
  module Aggregates
4
- VERSION = "0.9.3"
4
+ VERSION = "0.9.4"
5
5
  end
6
6
  end
7
7
  end
@@ -5,12 +5,12 @@ if HAS_SQLITE3 || HAS_MYSQL || HAS_POSTGRES
5
5
  describe 'DataMapper::Resource' do
6
6
  before :all do
7
7
  # A simplistic example, using with an Integer property
8
- class Knight
9
- include DataMapper::Resource
8
+ class Knight
9
+ include DataMapper::Resource
10
10
 
11
- property :id, Serial
12
- property :name, String
13
- end
11
+ property :id, Serial
12
+ property :name, String
13
+ end
14
14
 
15
15
  class Dragon
16
16
  include DataMapper::Resource
@@ -23,7 +23,7 @@ if HAS_SQLITE3 || HAS_MYSQL || HAS_POSTGRES
23
23
  property :birth_on, Date
24
24
  property :birth_time, Time
25
25
 
26
- belongs_to :knight
26
+ belongs_to :knight
27
27
  end
28
28
 
29
29
 
@@ -47,8 +47,8 @@ if HAS_SQLITE3 || HAS_MYSQL || HAS_POSTGRES
47
47
  @birth_on = Date.parse(@birth_at.to_s)
48
48
  @birth_time = Time.parse(@birth_at.to_s)
49
49
 
50
- @chuck = Knight.create( :name => 'Chuck' )
51
- @larry = Knight.create( :name => 'Larry')
50
+ @chuck = Knight.create( :name => 'Chuck' )
51
+ @larry = Knight.create( :name => 'Larry')
52
52
 
53
53
  Dragon.create(:name => 'George', :is_fire_breathing => false, :toes_on_claw => 3, :birth_at => @birth_at, :birth_on => @birth_on, :birth_time => @birth_time, :knight => @chuck )
54
54
  Dragon.create(:name => 'Puff', :is_fire_breathing => true, :toes_on_claw => 4, :birth_at => @birth_at, :birth_on => @birth_on, :birth_time => @birth_time, :knight => @larry )
@@ -319,13 +319,13 @@ if HAS_SQLITE3 || HAS_MYSQL || HAS_POSTGRES
319
319
  end
320
320
  end
321
321
  end
322
-
323
- describe "query path issue" do
324
- it "should not break when a query path is specified" do
325
- dragon = Dragon.first(Dragon.knight.name => 'Chuck')
326
- dragon.name.should == 'George'
327
- end
328
- end
329
- end
322
+
323
+ describe "query path issue" do
324
+ it "should not break when a query path is specified" do
325
+ dragon = Dragon.first(Dragon.knight.name => 'Chuck')
326
+ dragon.name.should == 'George'
327
+ end
328
+ end
329
+ end
330
330
  end
331
331
  end
data/spec/spec_helper.rb CHANGED
@@ -8,7 +8,7 @@ def load_driver(name, default_uri)
8
8
  lib = "do_#{name}"
9
9
 
10
10
  begin
11
- gem lib, '=0.9.3'
11
+ gem lib, '=0.9.4'
12
12
  require lib
13
13
  DataMapper.setup(name, ENV["#{name.to_s.upcase}_SPEC_URI"] || default_uri)
14
14
  DataMapper::Repository.adapters[:default] = DataMapper::Repository.adapters[name]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-aggregates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foy Savas
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-24 00:00:00 -05:00
12
+ date: 2008-08-21 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.9.3
23
+ version: 0.9.4
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hoe