composite_primary_keys 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ *** 0.8.4 / 2007-5-3
2
+
3
+ + 1 bugfix
4
+ + Corrected ids_list => ids in the exception message. That'll teach me for not adding unit tests before fixing bugs.
5
+
1
6
  *** 0.8.3 / 2007-5-3
2
7
 
3
8
  + 1 bugfix
@@ -303,7 +303,7 @@ module CompositePrimaryKeys
303
303
  if result.size == ids.size
304
304
  ids.size == 1 ? result[0] : result
305
305
  else
306
- raise ::ActiveRecord::RecordNotFound, "Couldn't find all #{name.pluralize} with IDs (#{ids_list})#{conditions}"
306
+ raise ::ActiveRecord::RecordNotFound, "Couldn't find all #{name.pluralize} with IDs (#{ids.inspect})#{conditions}"
307
307
  end
308
308
  end
309
309
 
@@ -2,7 +2,7 @@ module CompositePrimaryKeys
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 8
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/test/test_find.rb CHANGED
@@ -65,4 +65,9 @@ class TestFind < Test::Unit::TestCase
65
65
  end
66
66
  end
67
67
 
68
+ def test_not_found
69
+ assert_raise(::ActiveRecord::RecordNotFound) do
70
+ ReferenceCode.send :find, '999,999'
71
+ end
72
+ end
68
73
  end
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>Composite Primary Keys</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/compositekeys"; return false'>
35
35
  Get Version
36
- <a href="http://rubyforge.org/projects/compositekeys" class="numbers">0.8.3</a>
36
+ <a href="http://rubyforge.org/projects/compositekeys" class="numbers">0.8.4</a>
37
37
  </div>
38
38
  <h1>&#x2192; Ruby on Rails</h1>
39
39
 
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.8.3";
2
+ var version = "0.8.4";
3
3
  MagicAnnouncement.show('compositekeys', version);
data/website/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.8.3";
2
+ var version = "0.8.4";
3
3
 
4
4
  document.write(" - " + version);
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: composite_primary_keys
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.8.3
6
+ version: 0.8.4
7
7
  date: 2007-05-03 00:00:00 +02:00
8
8
  summary: Composite key support for ActiveRecords
9
9
  require_paths: