genealogy 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/genealogy/alter_methods.rb +2 -3
- data/lib/genealogy/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDA5NTljZWI2Zjk0MjY1Yzk3YTBhZjc4OWIwZGNkM2FiYmJmMDkxOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWI1OTIzYzMwODUxNjRhYWZiMWY5MTEyYzI5NDAzMzQzNDNiNTQ0Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTY2YmY2OTIxZGNhNDRkOTUxOGM4MDc3N2I4NDJiNTk1MDJhYTZmZDc0M2Uz
|
10
|
+
Nzg0OGQ3NTQ5MzdhMjMyMGIwMWNjOWIzYzJiMjMwMjk1OWUzMTBhYzI0NTRk
|
11
|
+
OGQ3NTA0MjM1ZjZkMWFhOWI2MzNhZTFkNDk1ZDg5ZmE3Njc0NmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDc4OTM3NjVhYTdkYzBkODYwYWRjNDRmZmY2NTIyNzQ5MTNhMjI3YTA1Mjgz
|
14
|
+
ODgxOGYwZDFkM2RlMDBjM2E1ZGQ3NTMxMjA0YmQ5ZTc1YjlhNTIzOGQ2MjY1
|
15
|
+
MGVjOTE4NWQ2ZDVjN2RlYjMzZTliODZlMDlmZjFiNjU1M2RlNDg=
|
@@ -95,14 +95,13 @@ module Genealogy
|
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
98
|
-
|
99
98
|
## siblings
|
100
99
|
def add_siblings(*args)
|
101
100
|
options = args.extract_options!
|
102
101
|
raise IncompatibleRelationshipException, "Can't add an ancestor as sibling" unless (ancestors.to_a & args).empty?
|
103
102
|
transaction do
|
104
|
-
args.
|
105
|
-
case options[:half]
|
103
|
+
args.inject(true) do |res,sib|
|
104
|
+
res &= case options[:half]
|
106
105
|
when :father
|
107
106
|
raise LineageGapException, "Can't add paternal halfsiblings without a father" unless father
|
108
107
|
sib.add_father(self.father)
|
data/lib/genealogy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: genealogy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- masciugo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 2.99.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 2.99.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: debugger
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|