sixarm_ruby_active_record_mock 1.4.2 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG.txt CHANGED
@@ -1,5 +1,6 @@
1
1
  CHANGELOG
2
2
 
3
+ 2011-04-25 1.4.4 Add find by nil
3
4
  2011-04-19 1.4.2 Add <attribute>_before_type_cast
4
5
  2011-04-19 1.4.0 Add attributes via method_missing
5
6
  2011-04-18 1.3.2 Add find(nil) to return nil
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.2
1
+ 1.4.4
@@ -23,11 +23,12 @@ class ActiveRecordMock
23
23
  def self.find(id,*ops)
24
24
  case id
25
25
  when nil
26
- nil
26
+ raise ArgumentError.new
27
27
  when :all
28
- @@find
28
+ return @@find
29
29
  else
30
- @@find.each{|x| if x.read_attribute(:id)==id then return x end } or nil
30
+ @@find.each{|x| if x.read_attribute(:id)==id then return x end }
31
+ return nil
31
32
  end
32
33
  end
33
34
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sixarm_ruby_active_record_mock
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.4.2
5
+ version: 1.4.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - SixArm
@@ -30,7 +30,7 @@ cert_chain:
30
30
  eabwpCbAopo=
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2011-04-19 00:00:00 -07:00
33
+ date: 2011-04-26 00:00:00 -07:00
34
34
  default_executable:
35
35
  dependencies: []
36
36
 
metadata.gz.sig CHANGED
Binary file