atdis 0.3.7 → 0.3.8
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.
- checksums.yaml +4 -4
- data/lib/atdis/models/application.rb +1 -1
- data/lib/atdis/version.rb +1 -1
- data/spec/atdis/models/application_spec.rb +7 -0
- 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: fce0802f4ac70ece967daf05efd685fbec2c29e1
|
|
4
|
+
data.tar.gz: 3975d69ae3c18812e506683d3e69f0833cf92d01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a40f0335410392626f235ddb3f1cd8c8a4c5f2403ece186a39ae6bad8d5d39dd83a528595d231e9783e53b9ac263f9d0bb6f8cab5ea9136ea659df3924569ac2
|
|
7
|
+
data.tar.gz: 67e4b86cff42104cfeba53016169b8e739176669943a8b5ff320659a515b35bd303737c0ae4653773ecf69a21056f56e049382e6085698d5b9c7e61d15b1775c
|
|
@@ -22,7 +22,7 @@ module ATDIS
|
|
|
22
22
|
validates :info, :reference, :locations, :events, :documents, presence_before_type_cast: {spec_section: "4.3"}
|
|
23
23
|
|
|
24
24
|
validates :people, array: {spec_section: "4.3"}
|
|
25
|
-
validates :locations, :events,
|
|
25
|
+
validates :locations, :events, filled_array: {spec_section: "4.3"}
|
|
26
26
|
|
|
27
27
|
# This model is only valid if the children are valid
|
|
28
28
|
validates :info, :reference, :locations, :events, :documents, :people, valid: true
|
data/lib/atdis/version.rb
CHANGED
|
@@ -242,5 +242,12 @@ describe ATDIS::Models::Application do
|
|
|
242
242
|
a.errors.messages.should == {events: [ATDIS::ErrorMessage["can't be blank", "4.3"]]}
|
|
243
243
|
end
|
|
244
244
|
end
|
|
245
|
+
|
|
246
|
+
describe "documents" do
|
|
247
|
+
it "can be an empty array" do
|
|
248
|
+
a.documents = []
|
|
249
|
+
a.should be_valid
|
|
250
|
+
end
|
|
251
|
+
end
|
|
245
252
|
end
|
|
246
253
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: atdis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew Landauer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-10-
|
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|