atdis 0.3.7 → 0.3.8

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: 4c653cce18bfb433e1e323ad5980f11caac4f73f
4
- data.tar.gz: 90fc39e50ba3a7459658260b6499ab3627e443a3
3
+ metadata.gz: fce0802f4ac70ece967daf05efd685fbec2c29e1
4
+ data.tar.gz: 3975d69ae3c18812e506683d3e69f0833cf92d01
5
5
  SHA512:
6
- metadata.gz: 7454c704f38b53e817f92375b2484629f2281a6e9fc6c20ee64a410c977474a3f40f96694fca73510f9a466890d0aaf25e9c8edb9f7303368aba1e2ea0af4e29
7
- data.tar.gz: 91de8778c9f0fa6367a3d921331016aa5019f9e3571522b32c760aba7fb713ae123515ae6394d911e660b522fb18bb3fbb5bfce3840a0af9f631ce8a70e355fa
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, :documents, filled_array: {spec_section: "4.3"}
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
@@ -1,3 +1,3 @@
1
1
  module Atdis
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
@@ -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.7
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-09 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler