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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDUxMWM3YjI0ZjM3MjU0Y2NhMGQ4Zjc3OTBiNjNiOGEwY2M5YzQ0NQ==
4
+ NDA5NTljZWI2Zjk0MjY1Yzk3YTBhZjc4OWIwZGNkM2FiYmJmMDkxOA==
5
5
  data.tar.gz: !binary |-
6
- ZDEyYjgxMDE5OWQ5ODQ5ODEyZjg5YWRlMDMwYTkxZmQzMjE4NjIxMw==
6
+ OWI1OTIzYzMwODUxNjRhYWZiMWY5MTEyYzI5NDAzMzQzNDNiNTQ0Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWQ3YzhmZmUxM2RkYjYwZGFjNmNjYWJkMWEwNTBhNjBjNTdjMmFhMDhjNjQ4
10
- ZTA3ZGZiMjhjZWQ3Mzk1YzE0YzIwNWZkMGI3ZTcxYTZiNjMyYzU0Y2RjNDc1
11
- YTI2MGYxYjMzNzBkMGE2MzQ0ZGZlZDcyYmMxMjZmZjU5YTQyMmI=
9
+ YTY2YmY2OTIxZGNhNDRkOTUxOGM4MDc3N2I4NDJiNTk1MDJhYTZmZDc0M2Uz
10
+ Nzg0OGQ3NTQ5MzdhMjMyMGIwMWNjOWIzYzJiMjMwMjk1OWUzMTBhYzI0NTRk
11
+ OGQ3NTA0MjM1ZjZkMWFhOWI2MzNhZTFkNDk1ZDg5ZmE3Njc0NmY=
12
12
  data.tar.gz: !binary |-
13
- MTFmYzc4NTRiMjVkNzkwZjNlNmEyMGMzOTY5Nzk3ZjYyYmMyMWU1MjUyZDU1
14
- YmIyYzZmMTkxOTc1Mjk0YzQyMWE5YzlhMjc4OWMzYjM0MmFmYjczNjc5YTA4
15
- NjBhMjI4ZjgwYzY1NThkMDVjZGJhNmRlZjlkMGFhOGYyMmU4NDM=
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.each do |sib|
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)
@@ -1,3 +1,3 @@
1
1
  module Genealogy
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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.0
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-15 00:00:00.000000000 Z
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: '0'
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: '0'
82
+ version: 2.99.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: debugger
85
85
  requirement: !ruby/object:Gem::Requirement