enju_core 0.1.1.pre5 → 0.1.1.pre6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb9aab9f73125b6b894986a68a44718519ee2d18
4
- data.tar.gz: b31c77961142b4aa886284c83d7ba795604d780b
3
+ metadata.gz: 6c7bd5ddc527dbf678fd31e1fd1cd347fab0cc20
4
+ data.tar.gz: 8c8a1e1d666599d7cc0e183dcf004f00cf2c81c0
5
5
  SHA512:
6
- metadata.gz: f0803fcfb1a88abc208a1bc0993f0140f2c4180c805b596b5b6bb0a52c6a2496d0117a32e7988a16b689292370b6066c4972aee0786bbcc776eb30e4a0cc0e91
7
- data.tar.gz: 7ee7364ed1207a07d60cc39c33e72e323cd8cb5ff4816a4740201eb155c5393ee4803258a88f60357fd807c6a23777960f7ad0eff87bc0fb0ae3b41cf4c8637e
6
+ metadata.gz: 8315794883565c82257cdf284a7e04698cbdf46931bb6de60bf81b7be65f24900ead1b970a69cefd82856fe731cc6aa9bbfd5e8fc559a6d5e62ce815ebd4807c
7
+ data.tar.gz: c752c003902a867d6fc8e1c8dbf2fd4e17be05f3a6ec719144a3bdcf2e44bcc6ddfe688766e387ccd2e645926bf0e73545ee7d8a2cb5cf92d10844cd059fedec
@@ -6,7 +6,7 @@ module MasterModel
6
6
  acts_as_list
7
7
  validates_uniqueness_of :name, :case_sensitive => false,
8
8
  :message => I18n.t('Only lowercase letters and numbers are allowed.')
9
- validates :name, :presence => true, :format => {:with => /\A[0-9a-z][0-9a-z_\-]*[0-9a-z]\Z/}
9
+ validates :name, :presence => true, :format => {:with => /\A[0-9A-Za-z][0-9A-Za-z_\-\s]*[0-9a-z]\Z/}
10
10
  validates :display_name, :presence => true
11
11
  before_validation :set_display_name, :on => :create
12
12
  normalize_attributes :name
@@ -1,3 +1,3 @@
1
1
  module EnjuCore
2
- VERSION = "0.1.1.pre5"
2
+ VERSION = "0.1.1.pre6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.pre5
4
+ version: 0.1.1.pre6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe