simple_descriptor 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,2 +1,3 @@
1
+ 0.2.1 fixed on primary key
1
2
  0.2.0 added direct bindings for ActiveRecord
2
3
  2006 11 26 first release 0.1.0
@@ -187,7 +187,7 @@ module SimpleDescriptor #:nodoc:
187
187
  if respond_to? :columns_hash
188
188
  columns_hash.each do |k, v|
189
189
  describe k.to_sym, :as => v.type
190
- describe k.to_sym, :as => :required if !v.null
190
+ describe k.to_sym, :as => :required if !v.null && k!= primary_key
191
191
  case v.type
192
192
  when :string : describe k.to_sym, :as => :limited, :with_value => v.limit
193
193
  end
@@ -2,7 +2,7 @@ module SimpleDescriptor #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: simple_descriptor
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.0
7
- date: 2007-06-04 00:00:00 +01:00
6
+ version: 0.2.1
7
+ date: 2007-06-07 00:00:00 +01:00
8
8
  summary: add description to your classes and make your ActiveRecord validations smarter
9
9
  require_paths:
10
10
  - lib