fine_print 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/fine_print/contract.rb +2 -1
- data/app/models/fine_print/signature.rb +2 -2
- data/lib/fine_print/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +1600 -0
- data/spec/models/signature_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fd843dfe050f713c606f4abd853060268ab0219
|
4
|
+
data.tar.gz: be4fb77d6b38481e1818e0b027e2898e1caf6ace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c552a2896a6adb058e3f2cd3be90ff5e53419584f8340191890493c7f612f06e72e4e60d7a37779bebe4108344797533728a92ee925161204f56f1106eede03
|
7
|
+
data.tar.gz: 99904649e084a6280d61092564709519bf4cbd7bb6552f3a9a25f043f61cfbcf8d24f80ffadb9ff6ba349c9029960cca8e73c32c316a53b758c5ede3e1adcfaa
|
@@ -12,7 +12,8 @@ module FinePrint
|
|
12
12
|
validates :name, :presence => true, :format => /\A[\w-]+\z/
|
13
13
|
validates :title, :presence => true
|
14
14
|
validates :content, :presence => true
|
15
|
-
validates :version, :uniqueness => {:scope => :name,
|
15
|
+
validates :version, :uniqueness => {:scope => :name,
|
16
|
+
:case_sensitive => false},
|
16
17
|
:allow_nil => true
|
17
18
|
|
18
19
|
default_scope lambda { order{[name.asc, version.desc]} }
|
@@ -5,8 +5,8 @@ module FinePrint
|
|
5
5
|
|
6
6
|
validate :contract_published, :on => :create
|
7
7
|
|
8
|
-
validates :contract, :presence => true
|
9
|
-
|
8
|
+
validates :contract, :presence => true
|
9
|
+
validates :contract_id, :uniqueness => {:scope => [:user_type, :user_id]}
|
10
10
|
validates :user, :presence => true
|
11
11
|
|
12
12
|
default_scope { order(:contract_id, :user_type, :user_id) }
|
data/lib/fine_print/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|