mais_person_client 0.0.4 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7de338a07f3f6851a28604ddc6375e38928965e1a8a6d6647d0286a1cb6eb078
4
- data.tar.gz: d1d6381bfeb5896caf46407522a699537bbee3c32247d46b9ad7618f3c8f1de4
3
+ metadata.gz: 629b5bdc1835533dadf6ddb4b67f5be1e0d78ed0701b9a40f9082cb5f0ff784f
4
+ data.tar.gz: 444a22fb02e0a0de7303d20a90886c88935554049396359c28c4efb46b222186
5
5
  SHA512:
6
- metadata.gz: fa6af950fe76d47022e45f1694b29fe6ad9813613bf78debd3f3749fddfbc47abf5744e07f61182778c9e5903b3c24bbc26a6370e71ea1c387487ff1c953f30d
7
- data.tar.gz: 1392a6fcc0e3672339d863171ba590d1ded0e8761c1798780e33cd3e62034b4f950b1de2139e1e562803cb822a7ab603c8c5bd148e056e609114639693405bf1
6
+ metadata.gz: 31c99a8035117d2591753e2e0fd9578c408331c0b58e79d1c238f1144cd248b6771487a92740724b3e011c919c3f82d7ac23f4723b7b93476db45e441b810cda
7
+ data.tar.gz: 583f3e6a7cc3b265fa10d0cfd320b9eb4c3afe486731f5997b9d32efd9e4acc6456911ff6cab0254a2e738825ca7616d22a3565b87db9e307e2c3758026394b1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mais_person_client (0.0.4)
4
+ mais_person_client (0.0.6)
5
5
  activesupport (>= 4.2)
6
6
  faraday
7
7
  faraday-retry
@@ -195,9 +195,12 @@ class MaisPersonClient
195
195
 
196
196
  # indicates if a person is a member of the academic council
197
197
  def academic_council?
198
- affiliations.none? do |affiliation|
198
+ # If there are no affiliations, the person is not a member of the academic council
199
+ return false if affiliations.empty?
200
+
201
+ affiliations.any? do |affiliation|
199
202
  affiliation.affdata.any? do |affdata|
200
- affdata.type == 'academic_council' && affdata.value&.downcase == 'non-member'
203
+ affdata.type == 'academic_council' && affdata.value&.downcase == 'member of academic council'
201
204
  end
202
205
  end
203
206
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class MaisPersonClient
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mais_person_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Mangiafico