acts_as_metadata 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acts_as_metadata (0.3.4)
4
+ acts_as_metadata (0.3.5)
5
5
  rails (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -19,7 +19,7 @@ class MetadataType < ActiveRecord::Base
19
19
  attr_accessible :tag, :name, :description, :models, :mandatory,
20
20
  :default, :format, :datatype, :values, :multiple,
21
21
  :models_json, :values_json, :default_json
22
- validates :tag, :presence => true, :format => {:with => /^[a-z]+[a-z0-9]*$/},
22
+ validates :tag, :presence => true, :format => {:with => /^[a-z]+[a-z0-9_]*$/},
23
23
  :exclusion => { :in => %w(format errors callback action categorie accept attributes host key layout notify open render save template type id parent_id lft rgt test select),
24
24
  :message => "this name is reserved"}
25
25
  validates :datatype, :presence => true
@@ -1,3 +1,3 @@
1
1
  module ActsAsMetadata
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-21 00:00:00.000000000 Z
12
+ date: 2012-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails