trogdir_models 0.1.1 → 0.1.2

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: 3d83e77767db508a904b010c5a180b4f92ae77f8
4
- data.tar.gz: b362556c04a9a7c69783815c3b742c3108b6c319
3
+ metadata.gz: 80233da71ac3d3bf5357cca18d7ff05b0039b792
4
+ data.tar.gz: 9159cd72f2f3f277f88b1c81b7eefd5147271013
5
5
  SHA512:
6
- metadata.gz: dbd3a77df248f6c12e01167d1d805a6181d218bffaba77351815a7c966733f9485db054c35dfdd3f8f531bdb08f4774fe057cd4d4ea3ad53a2ffef145048ad8a
7
- data.tar.gz: a00769b836abe865bf1fc23c0e57d8be222a150999838c143d22b782524d7f3b569820d77140c2f22d8b9ac4fb12abd4da55dbff2285190840f6927a9b11142a
6
+ metadata.gz: 6e1ed80068eb888db90a807c3f7b15cc240e035c48e31da92d55f5bca99d60ca5277861c4df96c4ab7c1713de5bbf41423ff37163ca2ad5923921e148604a50b
7
+ data.tar.gz: ed1117a72b2e69b91c2ce432c7aa4488d688e21e28be1026956d9cf8ab1c9975016df71d47779a60a2a2f335e7112531135b917bfd8db6c9a5cc31602497cc11
data/lib/trogdir/email.rb CHANGED
@@ -8,7 +8,7 @@ class Email
8
8
 
9
9
  field :type, type: Symbol
10
10
  field :address, type: String
11
- field :primary, type: Boolean
11
+ field :primary, type: Boolean, default: false
12
12
 
13
13
  validates :type, presence: true, inclusion: { in: Email::TYPES }
14
14
  validates :address, presence: true, email: true
data/lib/trogdir/phone.rb CHANGED
@@ -8,7 +8,7 @@ class Phone
8
8
 
9
9
  field :type, type: Symbol
10
10
  field :number, type: String
11
- field :primary, type: Boolean
11
+ field :primary, type: Boolean, default: false
12
12
 
13
13
  validates :type, presence: true, inclusion: { in: Phone::TYPES }
14
14
  validates :number, presence: true
@@ -1,3 +1,3 @@
1
1
  module TrogdirModels
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -2,6 +2,5 @@ FactoryGirl.define do
2
2
  factory :email do
3
3
  type :university
4
4
  address { Faker::Internet.email }
5
- primary false
6
5
  end
7
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trogdir_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Crownoble
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-21 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api-auth
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.3.0
89
+ version: '1.3'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.3.0
96
+ version: '1.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement